/* ─── Modal Overlay ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  width: 420px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}

.modal-wide { width: 580px; }

.modal h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  justify-content: flex-end;
}

/* Wide textarea inside modal */
.modal textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  resize: vertical;
  margin-bottom: 16px;
}
.modal textarea:focus { outline: none; border-color: var(--accent); }

/* ─── Column config modal ─────────────────────────────────────────────────── */
#col-config-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.col-config-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
  transition: background .15s;
}
.col-config-row.col-row-dragging { opacity: .4; }
.col-config-row.col-row-over     { border-color: var(--accent); background: rgba(64,144,255,.1); }

.col-config-drag {
  cursor: grab;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.col-config-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.col-config-name {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px;
  outline: none;
  min-width: 0;
}
.col-config-name:focus { border-bottom-color: var(--accent); }

.col-config-default {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .15s, transform .1s;
  flex-shrink: 0;
}
.col-config-default:hover    { color: var(--warn); }
.col-config-default.is-default { color: var(--warn); transform: scale(1.2); }

.col-config-delete {
  color: var(--text-muted);
  flex-shrink: 0;
}
.col-config-delete:hover:not(:disabled) { color: var(--danger); }
.col-config-delete:disabled { opacity: .3; cursor: not-allowed; }

.col-config-add {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.col-config-add input {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}
.col-config-add input:focus { border-color: var(--accent); }
