/* =====================================================================
   Dictionary editor (Settings -> Journaling)
   ================================================================== */
.dictionary-editor {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dict-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--row-h);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
}

.dict-item + .dict-item {
  border-top: 1px solid var(--color-border);
}

.dict-item__label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-footnote);
  color: var(--color-text-primary);
}

.dict-item__actions {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
}

.dict-item__actions .btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.dictionary-editor__add {
  flex-wrap: wrap;
}

.dictionary-editor__add .input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 280px;
}

/* A stored value that is no longer on its dictionary, shown as a badge
   rather than a chip (read-only surfaces: trade detail, breakdown tables). */
.badge--offlist {
  border: 1px dashed var(--color-border-strong);
}

/* Tick-box variant of the chip picker: a multi-select list of ACTIONS reads
   as a set of tags when drawn as pills. Same data, same bind() contract. */
.chip-picker--check {
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.check-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: var(--fs-footnote);
  transition: background-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.check-item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.check-item__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--color-border-strong);
  color: transparent;
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.check-item__label {
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease-standard);
}

.check-item.is-active {
  color: var(--color-text-primary);
}

.check-item.is-active .check-item__box {
  background: var(--color-accent-fill);
  border-color: var(--color-accent-fill);
  color: var(--color-on-accent);
}

/* The classic "done" look: struck through and dimmed, once ticked. */
.check-item.is-active .check-item__label {
  color: var(--color-text-tertiary);
  text-decoration: line-through;
  text-decoration-color: var(--color-border-strong);
}

