/* Settings, Email signatures (js/sigadmin.js). Previews reuse signature.css and stay on white paper in dark mode. */
.sa-page .sa-step { margin-bottom: 12px; }
.sa-sum { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.sa-sum::-webkit-details-marker { display: none; }
.sa-sum > .ic { width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.sa-step[open] > .sa-sum > .ic { transform: rotate(180deg); }
.sa-sumt { font-weight: 800; color: var(--ink); }
.sa-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-ink); font-size: 0.75rem; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.sa-body { padding: 0 16px 16px; display: block; }
.sa-body > .inform > .minihead:first-child { display: none; }
.sa-body .formact { margin-top: 12px; }

.sa-staff { padding: 16px; }
.sa-staffhd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sa-stafft { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sa-stafft h2 { margin: 0; }
.sa-bulk { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-warn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.sa-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sa-tools .searchbar { margin: 0; flex: 1 1 260px; }

.sa-lhd { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 4px; background: var(--ground); }
.sa-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 4px; min-height: 64px; }
.sa-face { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; }
.sa-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: var(--divider); }
.sa-ph.off { opacity: 0.45; }
.sa-face .av.sa-av { width: 40px; height: 40px; font-size: 0.8125rem; }
.sa-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sa-who b { font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-who span { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-who i { font-style: normal; }
.sa-st { flex: none; width: 190px; display: flex; flex-direction: column; gap: 2px; }
.sa-st .kind { white-space: normal; align-items: baseline; }
.sa-st small { font-size: 0.75rem; }
.sa-acts { flex: none; display: flex; gap: 6px; }
.sa-acts .btn[aria-expanded="true"] { background: var(--blue-tint); border-color: var(--blue-btn); color: var(--blue-ink); }
.sa-panel { padding: 4px 16px 16px 60px; }
.sa-paper { max-width: 600px; min-width: 0; }
.sa-paper .sigp.sg2 { margin-top: 0; max-width: none; }
.sa-edit { margin-top: 0; }
.sa-none { padding: 16px; margin: 0; border-top: 1px solid var(--divider); }

@media (max-width: 1100px) {
  .sa-row { flex-wrap: wrap; }
  .sa-who { flex-basis: calc(100% - 120px); }
  .sa-st { width: auto; flex: 1 1 auto; padding-left: 104px; }
  .sa-acts { flex-wrap: wrap; }
  .sa-panel { padding-left: 16px; }
}
@media (max-width: 640px) {
  .sa-st { padding-left: 52px; flex-basis: 100%; }
  .sa-acts { padding-left: 52px; flex-basis: 100%; }
  .sa-acts .btn { flex: 1 1 0; min-width: 0; padding: 0 4px; justify-content: center; }
  .sa-acts .btn .ic { display: none; }
  .sa-bulk, .sa-bulk .btn { width: 100%; }
  .sa-sum { padding: 8px 12px; }
  .sa-body { padding: 0 12px 12px; }
  .sa-staff { padding: 12px; }
}

/* Custom signatures */
.sa-cface { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2, #eef1f5); color: var(--muted, #667); }
.sa-cface svg { width: 20px; height: 20px; }
.sa-cintro { margin: 0 16px 8px; }
.sa-cnone { padding: 8px 16px 16px; }
.sa-newpanel { border-top: 1px solid var(--line, #e2e2e2); }
.sa-archive { margin-left: auto; }
