/* 3-Column Planner Workspace (Kanban Board: Brain Dump -> Planned -> Summary) */
.planner-workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 8px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.planner-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.subcard {
  background: var(--bg-subcard);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.subcard-highlight {
  background: linear-gradient(180deg, rgba(108, 122, 224, 0.06) 0%, var(--bg-subcard) 50%);
  border-color: rgba(108, 122, 224, 0.30);
}

.subcard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.subcard-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.subcard-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-hint {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

textarea,
input[type="text"],
input[type="number"]:not(.input-modify-baseline-eu):not(.task-edit-input-cost),
select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  outline: none;
  width: 100%;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent-indigo);
}

/* Combined Brain Dump & Decomposer */
.decomposer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#textarea-brain-dump {
  height: 360px;
  min-height: 120px;
  resize: vertical;
}

.decomposer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.decomposer-row-bottom {
  display: flex;
  align-items: center;
  width: 100%;
}

.decomposer-left-btns,
.decomposer-main-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

#btn-clear-brain-dump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  font-size: 0.68rem;
  font-weight: 500;
  height: 26px;
  min-width: unset;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

#btn-clear-brain-dump:hover {
  background: var(--bg-subcard);
  border-color: rgba(224, 93, 111, 0.4);
  color: var(--accent-rose);
}

#btn-add-brain-dump-tasks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.79rem;
  font-weight: 600;
  height: 31px;
  min-width: unset;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--accent-emerald);
  color: #ffffff;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

#btn-add-brain-dump-tasks:hover {
  filter: brightness(1.06);
}

#btn-decompose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.79rem;
  font-weight: 600;
  height: 31px;
  width: 100%;
  padding: 5px 12px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

#btn-decompose:hover {
  filter: brightness(1.08);
}

.preset-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 999px;
}

.chip-btn:hover,
.chip-btn.active {
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
  background: var(--accent-indigo-soft);
  font-weight: 600;
}

.encouragement-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(135deg, rgba(47, 158, 119, 0.08), rgba(108, 122, 224, 0.07));
  border: 1px solid rgba(47, 158, 119, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
}

.encourage-task-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2f9e77;
}

.encourage-text {
  font-size: 0.76rem;
  color: #374151;
}

.section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.71rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  gap: 6px;
  flex-wrap: wrap;
}

.decomposed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.decomp-step-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
}

.step-index-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #5866c9;
  background: rgba(99, 102, 241, 0.14);
  padding: 1px 5px;
  border-radius: 4px;
}

.slot-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #b8710f;
  background: rgba(217, 138, 28, 0.12);
  border: 1px solid rgba(217, 138, 28, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
}

.roi-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #5866c9;
  background: rgba(108, 122, 224, 0.12);
  border: 1px solid rgba(108, 122, 224, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
}

.due-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.due-pill.is-due-date {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.badge-earned.badge-muted-roi {
  background: var(--bg-hover, rgba(148, 163, 184, 0.12));
  color: var(--text-secondary, #64748b);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.25));
}

