* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  width: 340px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #1f2937;
  background: #ffffff;
}
header {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 16px 10px;
  background: linear-gradient(135deg, #fdf2fa, #f5f3ff);
  border-bottom: 1px solid #f3e8ff;
}
header h1 { font-size: 15px; margin: 0; color: #6B21A8; }
header p { font-size: 11px; margin: 2px 0 0; color: #6b7280; }
section { padding: 12px 16px; }
p { margin: 0 0 10px; line-height: 1.4; }
.muted { color: #6b7280; }
.small { font-size: 11px; }
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: #6B21A8; letter-spacing: .04em; margin: 12px 0 6px;
}
.hint {
  background: #faf5ff; border: 1px solid #f3e8ff; border-radius: 8px;
  padding: 8px 10px; color: #6b21a8; font-size: 11px; margin: 8px 0 0;
}
button {
  font-family: inherit; font-size: 13px; border-radius: 8px;
  padding: 9px 12px; cursor: pointer; border: 1px solid transparent;
}
button.primary {
  width: 100%; background: linear-gradient(135deg, #C43AAF, #6B21A8);
  color: #fff; border: 0; font-weight: 600;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.25);
}
button.primary:hover:not(:disabled) { filter: brightness(1.05); }
button.primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
button.ghost {
  background: transparent; color: #6b7280; border-color: #e5e7eb;
  font-size: 12px; padding: 5px 10px;
}
button.ghost:hover { background: #f9fafb; }
.row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.link { color: #6B21A8; font-weight: 600; text-decoration: none; font-size: 12px; }
.link:hover { text-decoration: underline; }
#signature-list { display: flex; flex-direction: column; gap: 6px; }
.sig-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; font-size: 12px; cursor: pointer; transition: all .12s;
}
.sig-item:hover { border-color: #d8b4fe; background: #fefcff; }
.sig-item.active { border-color: #C43AAF; background: linear-gradient(135deg,#fdf2fa,#faf5ff); }
.sig-item input[type=radio] { accent-color: #6B21A8; margin: 0; }
.sig-item .name { flex: 1; font-weight: 600; color: #111827; }
.sig-item .badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: #6B21A8; color: #fff; padding: 2px 6px; border-radius: 999px;
}
footer {
  display: flex; justify-content: space-between;
  padding: 8px 16px 12px; font-size: 11px; color: #9ca3af;
  border-top: 1px solid #f3f4f6;
}
footer a { color: #6B21A8; text-decoration: none; }
