.dashboard-page {
  padding: 3rem 0 5rem;
  min-height: 60vh;
}

.dashboard-panel.is-hidden {
  display: none;
}

.dashboard-panel .section-title,
.dashboard-panel .section-subtitle {
  text-align: left;
  margin-left: 0;
}

#logged-out-view,
#guild-picker-view {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

#logged-out-view .section-title,
#logged-out-view .section-subtitle,
#guild-picker-view .section-title,
#guild-picker-view .section-subtitle {
  text-align: center;
}

#header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-username {
  font-weight: 600;
}

.guild-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.guild-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream-card);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(74, 47, 31, 0.08);
}

.guild-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.guild-name {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

#settings-view {
  max-width: 42rem;
  margin: 0 auto;
}

#back-to-guilds {
  margin-bottom: 1rem;
}

.settings-form fieldset {
  border: 2px solid rgba(138, 154, 91, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--cream-card);
}

.settings-form legend {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--apple-red);
  padding: 0 0.5rem;
}

.settings-form label {
  display: block;
  margin-bottom: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.settings-form label:last-child {
  margin-bottom: 0;
}

.settings-form input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 2px solid rgba(138, 154, 91, 0.4);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label input {
  width: auto;
}

.list-editor {
  margin-bottom: 1.25rem;
}

.list-editor:last-child {
  margin-bottom: 0;
}

.list-editor-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
  min-height: 1.5rem;
}

.list-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(183, 65, 14, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.5rem 0.25rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.list-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--apple-red);
}

.list-editor-add {
  display: flex;
  gap: 0.5rem;
}

.list-editor-add input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 2px solid rgba(138, 154, 91, 0.4);
}

.settings-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.save-status {
  font-weight: 600;
  color: var(--orchard-green);
}

.error-text {
  color: var(--apple-red);
}
