[data-page="admin-dashboard"],
[data-page="email-templates"] {
  display: block;
  min-height: 100vh;
}

.admin-auth-page,
.admin-page {
  min-height: 100vh;
  color: #292524;
  background: #f5f5f4;
}

.admin-auth-page {
  padding: 1rem;
  display: grid;
  place-items: center;
}

.admin-auth-card {
  width: min(28rem, 100%);
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.1);
}

.admin-auth-card > header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  background: #15803d;
}

.admin-auth-card > header .ps-icon { width: 1.5rem; height: 1.5rem; }
.admin-auth-card h1 { margin: 0; font-family: Poppins, sans-serif; font-size: 1.25rem; }
.admin-auth-card > div { padding: 1.5rem; display: grid; gap: 1rem; }
.admin-auth-card p { margin: 0; color: #57534e; font-size: 0.875rem; }

.admin-auth-card input,
.admin-modal input,
.admin-modal textarea,
.admin-user-tools input {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  color: #292524;
  background: #fff;
  outline: none;
}

.admin-auth-card input { padding: 0.75rem; }
.admin-auth-card input:focus,
.admin-modal input:focus,
.admin-modal textarea:focus,
.admin-user-tools input:focus { border-color: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12); }

.admin-primary-button,
.admin-link-button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  font-weight: 600;
}
.admin-primary-button { color: #fff; background: #15803d; }
.admin-primary-button:hover:not(:disabled) { background: #166534; }
.admin-primary-button:disabled { opacity: 0.55; }
.admin-primary-button .ps-spinner { width: 1rem; height: 1rem; }
.admin-link-button { color: #57534e; background: transparent; }
.admin-link-button:hover { background: #f5f5f4; }

.admin-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 1rem;
  color: #fff;
  background: #15803d;
}

.admin-topbar__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-brand > .ps-icon { width: 1.5rem; height: 1.5rem; }
.admin-brand h1 { margin: 0; font-family: Poppins, sans-serif; font-size: 1.25rem; }
.admin-brand p { margin: 0; color: #bbf7d0; font-size: 0.875rem; }

.admin-topbar__actions { display: flex; align-items: center; gap: 0.5rem; }
.admin-topbar__actions button {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0.4rem;
  color: #fff;
  background: transparent;
  font-size: 0.875rem;
}
.admin-topbar__actions button:hover:not(:disabled) { background: #16a34a; }
.admin-topbar__actions .ps-icon { width: 1rem; height: 1rem; }

.admin-container {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1.5rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.admin-stat-card,
.admin-panel,
.admin-loading-card {
  border: 1px solid #e7e5e4;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.admin-stat-card {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-stat-card > span {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  color: #15803d;
  background: #dcfce7;
}
.admin-stat-card.is-amber > span { color: #d97706; background: #fef3c7; }
.admin-stat-card.is-blue > span { color: #2563eb; background: #dbeafe; }
.admin-stat-card.is-purple > span { color: #9333ea; background: #f3e8ff; }
.admin-stat-card > span .ps-icon { width: 1.5rem; height: 1.5rem; }
.admin-stat-card strong, .admin-stat-card small { display: block; }
.admin-stat-card strong { color: #15803d; font-size: 1.5rem; }
.admin-stat-card.is-amber strong { color: #d97706; }
.admin-stat-card.is-blue strong { color: #2563eb; }
.admin-stat-card.is-purple strong { color: #9333ea; }
.admin-stat-card small { color: #78716c; font-size: 0.75rem; }

.admin-loading-card { min-height: 7rem; display: grid; place-items: center; }
.admin-loading-card .ps-spinner { width: 2rem; height: 2rem; color: #15803d; }

.admin-panel { padding: 1.25rem; }
.admin-panel > h2,
.admin-users > header h2 {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #292524;
  font-family: Poppins, sans-serif;
  font-size: 1.0625rem;
}
.admin-panel > h2 .ps-icon,
.admin-users > header h2 .ps-icon { width: 1.25rem; height: 1.25rem; color: #f59e0b; }

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.admin-overview-grid > div { padding: 0.75rem; border-radius: 0.5rem; background: #fafaf9; text-align: center; }
.admin-overview-grid > div.is-blue { background: #eff6ff; }
.admin-overview-grid > div.is-green { background: #f0fdf4; }
.admin-overview-grid > div.is-amber { background: #fffbeb; }
.admin-overview-grid strong, .admin-overview-grid small { display: block; }
.admin-overview-grid strong { font-size: 1.25rem; }
.admin-overview-grid .is-blue strong { color: #2563eb; }
.admin-overview-grid .is-green strong { color: #16a34a; }
.admin-overview-grid .is-amber strong { color: #d97706; }
.admin-overview-grid small { color: #78716c; font-size: 0.75rem; }

.admin-signups { margin-top: 1.5rem; }
.admin-signups > p { margin: 0 0 0.75rem; color: #57534e; font-size: 0.875rem; font-weight: 600; }
.admin-signups > div { height: 6rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; }
.admin-signups span { height: 100%; min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.2rem; }
.admin-signups i { width: 100%; max-height: 5rem; border-radius: 0.25rem 0.25rem 0 0; background: #22c55e; }
.admin-signups small { color: #78716c; font-size: 0.65rem; }
.admin-signups b { font-size: 0.7rem; }

.admin-usage { margin-top: 1rem; }
.admin-usage > span { display: flex; justify-content: space-between; color: #78716c; }
.admin-usage > div { height: 0.5rem; margin-top: 0.25rem; overflow: hidden; border-radius: 999px; background: #e7e5e4; }
.admin-usage i { height: 100%; display: block; border-radius: inherit; background: #22c55e; }
.admin-usage i.is-amber { background: #f59e0b; }
.admin-usage i.is-red { background: #ef4444; }
.admin-usage p { margin: 1rem 0 0; color: #a8a29e; font-size: 0.75rem; text-align: center; }

.admin-users { padding: 0; overflow: hidden; }
.admin-users > header { padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-users > header h2 { margin: 0; }
.admin-users > header h2 .ps-icon { color: #57534e; }

.admin-user-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.admin-user-tools label { position: relative; }
.admin-user-tools label > .ps-icon { position: absolute; top: 50%; left: 0.65rem; width: 1rem; height: 1rem; color: #a8a29e; transform: translateY(-50%); }
.admin-user-tools input { width: 12rem; padding: 0.5rem 0.65rem 0.5rem 2rem; }
.admin-user-tools button { min-height: 2.25rem; padding: 0.4rem 0.65rem; display: flex; align-items: center; gap: 0.3rem; border: 1px solid #d6d3d1; border-radius: 0.4rem; color: #44403c; background: #fff; font-size: 0.8rem; }
.admin-user-tools button:hover { background: #fafaf9; }
.admin-user-tools button .ps-icon { width: 1rem; height: 1rem; }

.admin-table-wrap { overflow-x: auto; border-top: 1px solid #e7e5e4; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.admin-table-wrap th { padding: 0.75rem; color: #44403c; background: #fafaf9; text-align: left; font-weight: 600; white-space: nowrap; }
.admin-table-wrap th:last-child { text-align: center; }
.admin-table-wrap td { min-width: 7rem; padding: 0.75rem; border-top: 1px solid #e7e5e4; color: #57534e; vertical-align: middle; }
.admin-table-wrap tbody tr:hover { background: #fafaf9; }
.admin-table-wrap td small { display: flex; align-items: center; gap: 0.2rem; }
.admin-table-wrap td small + small { margin-top: 0.25rem; }
.admin-table-wrap td small .ps-icon { width: 0.75rem; height: 0.75rem; }
.admin-table-wrap td small.is-muted { color: #a8a29e; }
.admin-table-wrap td .is-complete { color: #16a34a; }
.admin-table-wrap td .is-incomplete { color: #d97706; }
.admin-no-users { padding: 2rem !important; color: #a8a29e !important; text-align: center; }

.admin-user-cell { display: flex; align-items: center; gap: 0.5rem; }
.admin-user-cell > img,
.admin-user-cell > span,
.admin-selected-user--row > img,
.admin-selected-user--row > span { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border-radius: 999px; object-fit: cover; }
.admin-user-cell > span,
.admin-selected-user--row > span { display: grid; place-items: center; color: #15803d; background: #dcfce7; font-weight: 700; }
.admin-user-cell div b, .admin-user-cell div small { display: block; }
.admin-user-cell div small { color: #78716c; }
.admin-phone .ps-icon:last-child { color: #22c55e; }
.admin-handicap { width: fit-content; padding: 0.125rem 0.5rem; display: block; border-radius: 0.25rem; color: #15803d; background: #dcfce7; font-size: 0.75rem; }

.admin-row-actions { display: flex; justify-content: center; gap: 0.125rem; }
.admin-row-actions button { width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; border: 0; border-radius: 0.4rem; color: #78716c; background: transparent; }
.admin-row-actions button:hover { background: #f5f5f4; }
.admin-row-actions button:nth-child(2) { color: #3b82f6; }
.admin-row-actions button:nth-child(2):hover { background: #dbeafe; }
.admin-row-actions button:nth-child(3) { color: #ef4444; }
.admin-row-actions button:nth-child(3):hover { background: #fee2e2; }
.admin-row-actions .ps-icon { width: 1rem; height: 1rem; }

.admin-pagination { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e7e5e4; }
.admin-pagination p { margin: 0; color: #78716c; font-size: 0.8rem; }
.admin-pagination div { display: flex; align-items: center; gap: 0.5rem; }
.admin-pagination button { width: 2.25rem; height: 2.25rem; padding: 0; display: grid; place-items: center; border: 1px solid #d6d3d1; border-radius: 0.4rem; color: #44403c; background: #fff; font-size: 1.25rem; line-height: 1; }
.admin-pagination button:disabled { opacity: 0.4; }
.admin-pagination span { padding: 0 0.5rem; font-size: 0.8rem; }

.admin-table-loading { min-height: 12rem; display: grid; place-items: center; border-top: 1px solid #e7e5e4; }
.admin-table-loading .ps-spinner { width: 2rem; height: 2rem; color: #15803d; }

.admin-modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 1rem;
  display: grid;
  place-items: center;
  background: rgba(28, 25, 23, 0.55);
}

.admin-modal {
  width: min(32rem, 100%);
  max-height: 86vh;
  padding: 1.5rem;
  overflow-y: auto;
  border-radius: 0.75rem;
  color: #292524;
  background: #fff;
  box-shadow: 0 24px 50px rgba(28, 25, 23, 0.25);
}

.admin-modal > header { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.admin-modal > header.is-danger { color: #dc2626; }
.admin-modal > header .ps-icon { width: 1.25rem; height: 1.25rem; }
.admin-modal > header h2 { margin: 0; flex: 1; font-family: Poppins, sans-serif; font-size: 1.125rem; }
.admin-modal > header > button { border: 0; color: #78716c; background: transparent; font-size: 1.5rem; }
.admin-modal > p { color: #57534e; }
.admin-modal > label { margin-top: 1rem; display: block; color: #44403c; font-size: 0.875rem; font-weight: 600; }
.admin-modal > label input,
.admin-modal > label textarea { margin-top: 0.35rem; padding: 0.7rem; resize: vertical; font-weight: 400; }
.admin-modal > footer { margin-top: 1.25rem; padding-top: 1rem; display: flex; justify-content: flex-end; gap: 0.5rem; border-top: 1px solid #e7e5e4; }
.admin-modal > footer button { min-height: 2.4rem; padding: 0.5rem 0.9rem; display: flex; align-items: center; justify-content: center; gap: 0.35rem; border: 1px solid #d6d3d1; border-radius: 0.45rem; color: #44403c; background: #fff; font-weight: 600; }
.admin-modal > footer button.is-danger { border-color: #dc2626; color: #fff; background: #dc2626; }
.admin-modal > footer button.is-blue { border-color: #2563eb; color: #fff; background: #2563eb; }
.admin-modal > footer button.is-danger-outline { border-color: #fecaca; color: #dc2626; }
.admin-modal > footer button:disabled { opacity: 0.5; }
.admin-modal > footer [data-delete-idle],
.admin-modal > footer [data-email-idle] { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.admin-modal > footer button .ps-icon,
.admin-modal > footer button .ps-spinner { width: 1rem; height: 1rem; }

.admin-selected-user { padding: 1rem; border-radius: 0.5rem; background: #fafaf9; }
.admin-selected-user b, .admin-selected-user small { display: block; }
.admin-selected-user small { color: #78716c; }
.admin-selected-user p { margin: 0.5rem 0 0; color: #a8a29e; font-size: 0.75rem; }
.admin-selected-user--row { display: flex; align-items: center; gap: 0.75rem; }
.admin-selected-user--row div { min-width: 0; }

.admin-modal--details { width: min(34rem, 100%); }
.admin-profile-state { width: fit-content; margin: 0.6rem 0 1rem 3.25rem; padding: 0.125rem 0.5rem; display: block; border-radius: 0.25rem; font-size: 0.75rem; }
.admin-profile-state.is-complete { color: #15803d; background: #dcfce7; }
.admin-profile-state.is-incomplete { color: #b45309; background: #fef3c7; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.admin-detail-grid small, .admin-detail-grid b { display: block; }
.admin-detail-grid small, .admin-user-bio > small { color: #a8a29e; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-detail-grid b { overflow-wrap: anywhere; font-size: 0.8rem; }
.admin-user-bio { margin-top: 1rem; }
.admin-user-bio p { margin: 0.25rem 0 0; padding: 0.75rem; border-radius: 0.4rem; background: #fafaf9; font-size: 0.8rem; }

@media (max-width: 900px) {
  .admin-stat-grid, .admin-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-users > header { align-items: flex-start; flex-direction: column; }
  .admin-user-tools { width: 100%; }
  .admin-user-tools label { flex: 1; }
  .admin-user-tools input { width: 100%; }
}

@media (max-width: 720px) {
  .admin-md-column { display: none; }
  .admin-topbar__inner { align-items: flex-start; }
  .admin-topbar__actions { flex-direction: column; align-items: stretch; }
  .admin-topbar__actions button { justify-content: center; }
}

@media (max-width: 560px) {
  .admin-lg-column { display: none; }
  .admin-brand p { display: none; }
  .admin-topbar__actions button:first-child { width: 2.5rem; height: 2.5rem; padding: 0; font-size: 0; }
  .admin-topbar__actions button:first-child .ps-icon { width: 1.1rem; height: 1.1rem; }
  .admin-stat-grid { gap: 0.5rem; }
  .admin-stat-card { padding: 0.75rem; gap: 0.5rem; }
  .admin-stat-card > span { width: 2rem; height: 2rem; }
  .admin-stat-card > span .ps-icon { width: 1.15rem; height: 1.15rem; }
  .admin-stat-card strong { font-size: 1.2rem; }
  .admin-user-tools button { flex: 1; justify-content: center; }
  .admin-pagination { gap: 0.5rem; }
  .admin-pagination p { font-size: 0.7rem; }
  .admin-detail-grid { grid-template-columns: 1fr; }
}

/* Email template preview */
.email-templates-page {
  min-height: 100%;
  color: var(--ps-text-primary, #f5f5f5);
  background: var(--ps-bg-base, #0a0a0a);
}

.email-templates-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ps-border, #292929);
  background: var(--ps-bg-surface, #171717);
}

.email-templates-header > button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.5rem;
  color: var(--ps-text-primary, #f5f5f5);
  background: transparent;
}

.email-templates-header > button:hover { background: var(--ps-bg-hover, #292929); }
.email-templates-header > button .ps-icon { width: 1.25rem; height: 1.25rem; }
.email-templates-header h1 { margin: 0; font-family: Poppins, sans-serif; font-size: 1.125rem; }
.email-templates-header p { margin: 0; color: var(--ps-text-secondary, #a3a3a3); font-size: 0.875rem; }

.email-templates-container {
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.email-tools-card {
  padding: 1rem;
  border: 1px solid var(--ps-border, #292929);
  border-radius: 0.75rem;
  background: var(--ps-bg-surface, #171717);
}

.email-tools-card > label { margin-bottom: 0.5rem; display: block; color: var(--ps-text-secondary, #a3a3a3); font-size: 0.875rem; font-weight: 600; }

.email-template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.email-template-grid button {
  padding: 0.75rem;
  border: 1px solid var(--ps-border, #292929);
  border-radius: 0.5rem;
  color: var(--ps-text-primary, #f5f5f5);
  background: var(--ps-bg-elevated, #202020);
  text-align: left;
}
.email-template-grid button:hover { border-color: color-mix(in srgb, var(--ps-primary, #22c55e) 50%, var(--ps-border, #292929)); }
.email-template-grid button.is-active { border-color: var(--ps-primary, #22c55e); background: color-mix(in srgb, var(--ps-primary, #22c55e) 10%, transparent); }
.email-template-grid b, .email-template-grid small { display: block; }
.email-template-grid b { font-size: 0.875rem; }
.email-template-grid button.is-active b { color: var(--ps-primary, #22c55e); }
.email-template-grid small { margin-top: 0.125rem; overflow: hidden; color: var(--ps-text-muted, #737373); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }

.email-tools-card > header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.email-tools-card > header > span { display: flex; align-items: center; gap: 0.5rem; }
.email-tools-card > header .ps-icon { width: 1rem; height: 1rem; color: var(--ps-text-secondary, #a3a3a3); }
.email-tools-card > header b { font-size: 0.875rem; }

.email-view-toggle {
  padding: 0.25rem;
  display: flex;
  border-radius: 0.5rem;
  background: var(--ps-bg-elevated, #202020);
}
.email-view-toggle button { width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; border: 0; border-radius: 0.35rem; color: var(--ps-text-secondary, #a3a3a3); background: transparent; font-size: 1.2rem; line-height: 1; }
.email-view-toggle button.is-active { color: #fff; background: var(--ps-primary, #22c55e); }

.email-test-row { display: flex; gap: 0.5rem; }
.email-test-row > label { position: relative; min-width: 0; flex: 1; }
.email-test-row > label .ps-icon { position: absolute; top: 50%; left: 0.75rem; width: 1rem; height: 1rem; color: var(--ps-text-muted, #737373); transform: translateY(-50%); }
.email-test-row input { width: 100%; padding: 0.6rem 0.75rem 0.6rem 2.35rem; border: 1px solid var(--ps-border, #292929); border-radius: 0.5rem; color: var(--ps-text-primary, #f5f5f5); background: var(--ps-bg-elevated, #202020); outline: none; }
.email-test-row input:focus { border-color: var(--ps-primary, #22c55e); }
.email-test-row > button { padding: 0.55rem 0.85rem; display: flex; align-items: center; gap: 0.4rem; border: 0; border-radius: 0.5rem; color: #fff; background: var(--ps-primary, #22c55e); font-weight: 600; white-space: nowrap; }
.email-test-row > button:disabled { opacity: 0.5; }
.email-test-row > button .ps-icon, .email-test-row > button .ps-spinner { width: 1rem; height: 1rem; }

.email-preview-section > header {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.email-preview-section h2 { margin: 0; color: var(--ps-text-secondary, #a3a3a3); font-family: Poppins, sans-serif; font-size: 0.875rem; font-weight: 600; }
.email-preview-section > header span { max-width: 60%; padding: 0.25rem 0.5rem; overflow: hidden; border-radius: 0.3rem; color: var(--ps-text-muted, #737373); background: var(--ps-bg-elevated, #202020); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }

.email-preview-canvas {
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  background: #e5e7eb;
}
.email-preview-canvas.is-mobile { display: flex; justify-content: center; }

.welcome-email-preview {
  width: min(37.5rem, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.5rem;
  color: #374151;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
  font-family: Arial, Helvetica, sans-serif;
}
.welcome-email-preview.is-mobile { width: min(23.4375rem, 100%); }
.welcome-email-preview > header { padding: 2rem; border-bottom: 4px solid #1a472a; background: #fff; text-align: center; }
.welcome-email-preview > header img { height: 7rem; max-width: 100%; margin: 0 auto; object-fit: contain; }
.welcome-email-body { padding: 1.5rem; background: #f8faf8; }
.welcome-email-title { margin-bottom: 1.5rem; text-align: center; }
.welcome-email-title h1 { margin: 0 0 0.5rem; color: #1a472a; font-family: Arial, sans-serif; font-size: 1.5rem; }
.welcome-email-title p { margin: 0; color: #22c55e; font-size: 1.125rem; font-style: italic; font-weight: 600; }
.welcome-email-intro { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.65; text-align: center; }
.welcome-email-lead { margin-bottom: 1rem; font-weight: 600; }
.welcome-feature-list { margin: 0 0 1.5rem; padding: 1rem; display: grid; gap: 0.75rem; border: 1px solid #f3f4f6; border-radius: 0.75rem; background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.05); list-style: none; }
.welcome-feature-list li { display: flex; align-items: center; gap: 0.75rem; }
.welcome-feature-list span { font-size: 1.25rem; }
.welcome-start-card { margin-bottom: 1.5rem; padding: 1.25rem; border-radius: 0.75rem; color: #fff; background: #1a472a; }
.welcome-start-card h2 { margin: 0 0 0.5rem; color: #fff; font-family: Arial, sans-serif; font-size: 1.25rem; }
.welcome-start-card > p { margin: 0 0 1rem; color: #bbf7d0; font-size: 0.875rem; }
.welcome-start-card ol { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.welcome-start-card blockquote { margin: 0; padding-top: 1rem; border-top: 1px solid #166534; color: #bbf7d0; font-size: 0.875rem; font-style: italic; }
.welcome-tips { margin-bottom: 1.5rem; }
.welcome-tips h2 { color: #1a472a; font-family: Arial, sans-serif; font-size: 1.125rem; text-align: center; }
.welcome-tips ul { padding: 0; display: grid; gap: 0.5rem; color: #4b5563; font-size: 0.875rem; list-style: none; }
.welcome-tips li::before { content: '•'; margin-right: 0.5rem; color: #22c55e; }
.welcome-closing { padding-top: 1.5rem; border-top: 1px solid #e5e7eb; text-align: center; }
.welcome-closing h2 { color: #1a472a; font-family: Arial, sans-serif; font-size: 1.25rem; }
.welcome-closing p { color: #4b5563; font-size: 0.875rem; line-height: 1.6; }
.welcome-closing b, .welcome-closing em, .welcome-closing strong { margin-top: 0.4rem; display: block; }
.welcome-closing em { color: #22c55e; font-weight: 600; }
.welcome-closing strong { margin-top: 1rem; color: #1a472a; font-size: 1.125rem; }
.welcome-email-body > footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; color: #9ca3af; font-size: 0.7rem; text-align: center; }
.welcome-email-body > footer p { margin: 0.35rem 0; }
.welcome-email-body > footer a { text-decoration: underline; }

.email-placeholder {
  width: min(37.5rem, 100%);
  min-height: 18rem;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #6b7280;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(17,24,39,.16);
}
.email-placeholder .ps-icon { width: 4rem; height: 4rem; margin-bottom: 1rem; color: #d1d5db; }
.email-placeholder h3 { margin: 0 0 0.5rem; color: #4b5563; font-family: Arial, sans-serif; }
.email-placeholder p { margin: 0; }

.email-info-note { padding: 1rem; border: 1px solid rgba(59,130,246,.3); border-radius: 0.5rem; color: #60a5fa; background: rgba(59,130,246,.1); font-size: 0.875rem; }

@media (max-width: 600px) {
  .email-template-grid { grid-template-columns: 1fr; }
  .email-test-row { flex-direction: column; }
  .email-test-row > button { justify-content: center; }
  .email-preview-section > header { align-items: flex-start; flex-direction: column; }
  .email-preview-section > header span { max-width: 100%; }
  .welcome-email-preview > header { padding: 1.25rem; }
  .welcome-email-preview > header img { height: 5rem; }
  .welcome-email-body { padding: 1rem; }
}
