.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.dialog {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 480px) {
  .dialog {
    max-width: 95vw;
  }
}

.dialog-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.dialog-field input,
.dialog-field textarea {
  padding: 0.6em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
}

.color-swatch-btn.selected {
  border-color: var(--color-text);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.dialog-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 45vh;
  overflow-y: auto;
}

.dialog-list-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.dialog-list-row button.dialog-list-main {
  flex: 1;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 0.9rem;
}

.dialog-list-empty {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.about-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.about-logo {
  width: 72px;
  height: 72px;
  align-self: center;
}

.about-text {
  text-align: center;
  font-size: 0.9rem;
}

.about-credit {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
