/* GoalBar: the second standalone card in the composer context stack (Figma
   1236:32276). Its dock column (card cap minus four insets) matches Todo and
   the Queue panel. */

.dock {
  box-sizing: border-box;
  width: calc(
    100% -
    var(--dsh-composer-side-clearance) -
    var(--dsh-composer-side-clearance) -
    var(--dsh-composer-dock-inset) -
    var(--dsh-composer-dock-inset) -
    var(--dsh-composer-dock-inset) -
    var(--dsh-composer-dock-inset)
  );
  margin: 0 auto;
}

.bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: calc(var(--dsh-composer-card-max-width) - 4 * var(--dsh-composer-dock-inset));
  height: 36px;
  margin: 0 auto;
  padding: 4px 5px 4px 12px;
  border: 1px solid var(--dsw-alias-border-l1);
  border-radius: 12px;
  background: var(--dsw-specific-tip);
}

.goalGlyph {
  display: inline-flex;
  flex: none;
  color: var(--dsw-alias-label-tertiary);
}

/* Matches the Todo/Queue panel titles (13/24 medium, primary) so the three
   composer-stack cards read as one family. */
.label {
  flex: none;
  font-size: 13px;
  line-height: 24px;
  font-weight: 500;
  color: var(--dsw-alias-label-primary);
}

.objective {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  color: var(--dsw-alias-label-primary-dimmed);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--dsw-alias-state-error-primary);
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Inline edit form ---- */

.objectiveInput {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 6px;
  background: var(--dsw-alias-bg-base);
  font-size: 13px;
  line-height: 20px;
  color: var(--dsw-alias-label-primary);
  outline: none;
}

.objectiveInput:focus {
  border-color: var(--dsw-alias-state-business-primary);
}

.objectiveInput::placeholder {
  color: var(--dsw-alias-label-caption);
}

/* ---- Icon actions ---- */

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dsw-alias-label-tertiary);
  cursor: pointer;
}

.iconBtn:hover {
  background: var(--dsw-alias-interactive-bg-hover);
  color: var(--dsw-alias-label-secondary);
}

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