/* Task detail actions (#6185765732): stage change, comments and additions, post form. */
.ta-sections { display: grid; gap: 14px; min-width: 0; }
.ta-stage-current { margin-top: 8px; }
.ta-stage-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ta-stage {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-elev);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.ta-stage .stage-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ta-stage.current { background: var(--primary-soft); border-color: transparent; cursor: default; }
.ta-stage-now { font-size: 12px; color: var(--primary); }
.ta-stage.busy { opacity: 0.6; }
.ta-stage:disabled:not(.current) { opacity: 0.5; }

.ta-activity { display: grid; gap: 10px; margin-top: 10px; }
.ta-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.ta-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 6px; font-size: 13px; }
.ta-kind { font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.ta-kind-addition { background: var(--warning-soft); color: var(--warning); }
.ta-author { font-weight: 600; }
.ta-date { color: var(--muted); margin-left: auto; }
.ta-body { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.ta-body p, .ta-body ul, .ta-body ol { margin: 0 0 6px; }
.ta-body ul, .ta-body ol { padding-left: 22px; }
.ta-body a { color: var(--primary); text-decoration: underline; }
.ta-files { margin-top: 4px; overflow-wrap: anywhere; }

.ta-form { display: grid; gap: 10px; }
.ta-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.ta-kind-btn { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted); }
.ta-kind-btn.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.ta-attach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ta-chips:empty, .ta-file-errors:empty { display: none; }
.ta-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 0 4px 0 12px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px;
}
.ta-chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ta-chip-size { color: var(--muted); flex: none; }
.ta-chip-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
.ta-file-errors { display: grid; gap: 4px; }
