/*
  The list editor ("Lista na miesiąc"). It reuses the board builder's page heading,
  layout, preview and phone bar (builder.css) and adds two columns: suggestions and your list.
*/
.nz-list-how {
  padding-top: var(--nz-space-5);
}

.nz-list-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--nz-space-6);
  padding: var(--nz-space-5) 0 var(--nz-space-6);
  border-bottom: 1px solid var(--nz-color-rule);
}

.nz-list-bank,
.nz-list-mine {
  display: flex;
  flex-direction: column;
  gap: var(--nz-space-4);
  min-width: 0;
}

/* Suggestions: one button per task, with a plus; a task already on the list is marked. */
.nz-bank {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: var(--nz-slot-height);
  border-radius: var(--nz-radius-card);
}

.nz-bank.is-drop {
  outline: 2px dashed var(--nz-color-accent);
  background: var(--nz-color-drop);
}

.nz-suggestion {
  width: 100%;
  min-height: var(--nz-slot-height);
  padding: 0 16px;
  border: 1.5px solid var(--nz-frame);
  border-radius: var(--nz-radius-card);
  background: var(--nz-color-surface);
  color: var(--nz-color-text);
  font-family: var(--nz-font-text);
  font-size: var(--nz-text-small);
  font-weight: var(--nz-weight-bold);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: grab;
}

.nz-suggestion:hover {
  background: var(--nz-cream-deep);
}

.nz-suggestion:disabled {
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.nz-suggestion svg {
  flex: none;
  color: var(--nz-color-accent);
}

.nz-suggestion-tag {
  flex: none;
  font-size: var(--nz-text-caption);
  font-weight: var(--nz-weight-semibold);
}

.nz-own-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nz-own-row .nz-input {
  flex: 1 1 220px;
  min-width: 0;
}

.nz-own-row .nz-button {
  flex: none;
  min-height: var(--nz-input-height);
}

/* Your list: three groups with an editable name and four spaces each. */
.nz-list-group-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--nz-space-3);
}

.nz-group-input {
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--nz-color-reward-step-bg);
  font-family: var(--nz-font-display);
  font-size: 1.125rem;
}

.nz-group-input::placeholder {
  color: var(--nz-color-text);
}

.nz-spaces {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nz-space {
  min-height: var(--nz-slot-height);
  padding: 0 6px 0 10px;
  border: 1.5px solid var(--nz-frame);
  border-radius: var(--nz-radius-card);
  background: var(--nz-color-surface);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--nz-text-small);
  font-weight: var(--nz-weight-bold);
  cursor: grab;
}

.nz-space.is-empty {
  padding: 0;
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.nz-space.is-target {
  border-color: var(--nz-color-accent);
  background: var(--nz-color-drop);
}

.nz-space.is-drop {
  border: 2px dashed var(--nz-color-accent);
  background: var(--nz-color-drop);
}

.nz-space-grip {
  flex: none;
  display: flex;
  color: var(--nz-frame);
}

.nz-space-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nz-space-tools {
  flex: none;
  display: flex;
}

.nz-icon-button {
  width: var(--nz-target-min);
  height: var(--nz-target-min);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--nz-color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nz-icon-button:hover:not(:disabled) {
  background: var(--nz-cream-deep);
}

.nz-icon-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.nz-space-empty {
  width: 100%;
  min-height: var(--nz-slot-height);
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--nz-color-text);
  font-family: var(--nz-font-display);
  font-style: italic;
  font-size: var(--nz-text-small);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.nz-space-target {
  font-family: var(--nz-font-text);
  font-style: normal;
  font-size: var(--nz-text-caption);
  font-weight: var(--nz-weight-bold);
  color: var(--nz-terracotta-dark);
}

/* The A4 next to the editor is a little smaller than in the board builder. */
.nz-list-preview {
  flex-basis: var(--nz-sheet-width-list);
  width: var(--nz-sheet-width-list);
}

.nz-list-editor .nz-builder-action {
  padding-left: 0;
}

@media (max-width: 1100px) {
  .nz-list-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 859px) {
  .nz-list-how {
    padding-top: var(--nz-space-4);
  }

  .nz-list-columns {
    padding-top: var(--nz-space-4);
  }
}
