/* VariableInputDialog — compact inline form for unresolved prompt variables */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog {
  width: 360px;
  max-width: 90vw;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border);
}

.title {
  display: block;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--fg-primary);
}

.subtitle {
  display: block;
  font-size: var(--font-xs);
  color: var(--fg-muted);
  margin-top: 2px;
}

.fields {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fieldName {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
}

.fieldDesc {
  font-size: var(--font-xs);
  color: var(--fg-muted);
}

.fieldInput {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-primary);
  font-size: var(--font-base);
  font-family: inherit;
  outline: none;
}

.fieldInput:focus {
  border-color: var(--accent);
}

.fieldInput::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border);
}

.cancelBtn {
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-secondary);
  font-size: var(--font-sm);
  cursor: pointer;
}

.cancelBtn:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.submitBtn {
  padding: 5px 14px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
}

.submitBtn:hover {
  opacity: 0.9;
}

.submitBtn:disabled {
  opacity: 0.4;
  cursor: default;
}
