.password-row,
.status-row,
.quick-actions,
.stack-item {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.password-row input,
.status-row .sync-status,
.stack-item > div {
  flex: 1;
}

.compact-button {
  width: auto;
  min-height: 36px;
  padding: .45rem .75rem;
}

.quick-actions {
  margin: .75rem 0 1rem;
}

.quick-actions button {
  width: auto;
}

.optional-fields {
  margin: .5rem 0 1rem;
  border: 1px solid var(--line, #e5ddd3);
  border-radius: 14px;
  padding: .75rem;
}

.optional-fields summary {
  cursor: pointer;
  font-weight: 700;
}

.stack-list {
  display: grid;
  gap: .65rem;
  margin: 1rem 0;
}

.stack-item {
  justify-content: space-between;
  padding: .8rem;
  border: 1px solid var(--line, #e5ddd3);
  border-radius: 12px;
}

.stack-item small {
  display: block;
  margin-top: .2rem;
  color: var(--muted, #6e665e);
}

.undo-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(92vw, 520px);
  padding: .8rem 1rem;
  border-radius: 14px;
  background: #2f2924;
  color: white;
  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
}

.undo-toast button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff1c8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 560px) {
  .quick-actions {
    align-items: stretch;
  }

  .quick-actions .primary-button {
    flex: 1;
  }
}
