*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --secondary: #f1f5f9;
  --text: #1e293b;
  --text-dim: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', sans-serif;
  background: #fafafa;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
    padding: 32px 24px 48px;
  }
  .header { padding: 40px 0 32px; }
  .header h1 { font-size: 32px; }
  .step-content { padding: 32px; }
  .agent-card { padding: 24px; }
  .persona-card { padding: 20px; }
}

/* ── Top-left logo / home link ───────── */

.top-left-logo {
  position: fixed;
  top: 16px;
  left: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 100;
}
.top-left-logo:hover { opacity: 1; }

/* ── wxecho 引流横幅 ─────────────────── */

#wxecho-banner {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 0;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 900;
}
.banner-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.banner-text {
  flex: 1;
  min-width: 0;
  line-height: 1.6;
}
.banner-text strong {
  font-size: 14px;
}
.banner-note {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}
.banner-btn {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  color: #6366f1;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.banner-btn:hover {
  background: #eef2ff;
}

/* ── Header ──────────────────────────── */

.header {
  text-align: center;
  padding: 32px 0 28px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.header p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ── Progress Bar ────────────────────── */

.alt-entries { text-align: center; margin-top: 28px; }
.alt-divider { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.alt-links { display: flex; gap: 16px; justify-content: center; }
.alt-link { font-size: 13px; color: var(--text-dim); text-decoration: none; cursor: pointer; transition: color 0.15s; }
.alt-link:hover { color: var(--primary); }
.alt-back { text-align: center; margin-bottom: 16px; }
.alt-back .alt-link { font-size: 13px; }

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.progress-item::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-item:first-child::before { display: none; }

.progress-item.completed::before,
.progress-item.active::before {
  background: var(--primary);
}

.progress-item .step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-item.active .step {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.progress-item.completed .step {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.progress-item .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  transition: color 0.3s ease;
}

.progress-item.active .label { color: var(--primary); }
.progress-item.completed .label { color: var(--primary-dark); }

/* ── Step Content ────────────────────── */

.step-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

/* ── Form ────────────────────────────── */

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

/* ── Upload Area ─────────────────────── */

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-area.has-file {
  border-color: var(--success);
  background: #f0fdf4;
}

.upload-area .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.upload-area .text {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.upload-area .hint {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-area.has-file .text {
  color: var(--success);
  font-weight: 500;
}

/* ── Buttons ─────────────────────────── */

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.btn-secondary:hover { background: #e5e7eb; }

.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: var(--error);
}

.btn-danger:hover {
  background: #fef2f2;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  width: auto;
}

/* ── Phone Input Group ───────────────── */

.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-input-group input { flex: 1; }

.phone-input-group .btn {
  width: auto;
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 13px;
}

/* ── Task Progress (Distill) ─────────── */

.task-progress {
  text-align: center;
  padding: 20px 0;
}

.progress-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--secondary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-fill {
  width: 100%;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress-bar-fill-inner {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.stage-message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.stage-message strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Persona Cards ───────────────────── */

.persona-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.persona-card label {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.persona-card textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  line-height: 1.7;
}

.persona-card textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── QR Code ─────────────────────────── */

.qrcode-container {
  text-align: center;
  padding: 8px 0;
}

.qrcode-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.qrcode-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  background: #fff;
}

.qrcode-scan-line {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(99,102,241,0.5);
  animation: scanLine 2.5s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { top: 8px; }
  50% { top: calc(100% - 10px); }
}

.qrcode-status {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 12px;
}

.qrcode-status.scaned { color: var(--warning); }
.qrcode-status.ok { color: var(--success); }
.qrcode-status.expired { color: var(--error); }

/* ── Agent Cards ─────────────────────── */

.agent-list { display: flex; flex-direction: column; gap: 14px; }

.agent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.agent-card:hover { border-color: var(--primary); }

.agent-card .info { flex: 1; min-width: 0; }

.agent-card .name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.agent-card .meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.agent-card .actions {
  flex-shrink: 0;
  margin-left: 16px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-active { background: #f0fdf4; color: var(--success); }
.badge-expired { background: #fef2f2; color: var(--error); }
.badge-pending { background: #fffbeb; color: var(--warning); }

/* ── Empty State ─────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ── Quote ───────────────────────────── */

.quote {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: italic;
  line-height: 1.8;
}

/* ── Toast ───────────────────────────── */

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 12px 16px 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast span { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  padding: 0 2px;
}

.toast-close:hover { opacity: 1; }

.toast-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Modal ───────────────────────────── */

.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  animation: fadeIn 0.2s;
}

.modal-box {
  background: #fff !important;
  color: #374151 !important;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 360px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: scaleIn 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box h3 {
  font-size: 18px !important;
  margin: 0 0 12px;
  color: #1e1b4b !important;
}

.modal-box p {
  font-size: 14px !important;
  color: #6b7280 !important;
  line-height: 1.7;
  margin: 0 0 10px;
}

.modal-box a {
  color: var(--primary) !important;
  font-weight: 500;
}

.modal-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.modal-qrcode {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

.modal-box .btn { width: 100%; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.toast-info { background: var(--primary-light); color: #3730a3; border: 1px solid #c7d2fe; }

/* ── Inline Error ────────────────────── */

.inline-error {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── Back Link ───────────────────────── */

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--primary); }

/* ── Account ─────────────────────────── */

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.info-card .label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.info-card .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.info-card .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.invite-code-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-code-display code {
  flex: 1;
  padding: 10px 14px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--primary-dark);
}

/* ── Top Bar ─────────────────────────── */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.top-bar .home-icon {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  text-decoration: none;
}

.top-bar .home-icon:hover { color: var(--primary); }

/* ── Dropdown Menu ─────────────────────── */

.dropdown {
  position: relative;
}

.dropdown-trigger {
  font-size: 13px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

.dropdown-trigger:hover { color: var(--primary); }

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 50;
  overflow: hidden;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-phone {
  padding: 12px 16px 8px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.dropdown-item:hover { background: var(--secondary); }

.dropdown-item.logout-item {
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

.dropdown-item.logout-item:hover {
  color: var(--error);
  background: #fef2f2;
}

/* ── Promo Banner ─────────────────────── */

.promo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.promo-banner:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(99,102,241,0.1);
}

.promo-banner .promo-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.promo-banner .promo-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.promo-banner .promo-arrow {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.promo-banner.promo-invite {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-color: #fde68a;
}

.promo-banner.promo-invite:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 12px rgba(245,158,11,0.1);
}

.promo-banner.promo-invite .promo-text {
  color: #92400e;
}

.promo-banner.promo-invite .promo-arrow {
  color: #d97706;
}

/* ── Delete Confirm Dialog ───────────── */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.dialog {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.dialog h3 { margin-bottom: 8px; }
.dialog p { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.dialog .btn-group { display: flex; gap: 10px; }
.dialog .btn-group .btn { flex: 1; }

/* ── Responsive ──────────────────────── */

@media (max-width: 480px) {
  .container { padding: 16px; }
  .header { padding: 20px 0 24px; }
  .header h1 { font-size: 24px; }
  .step-content { padding: 20px 16px; }
}

/* sender selection chips */
.sender-chip {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  user-select: none;
  background: var(--bg-card, #fff);
}
.sender-chip:hover {
  border-color: var(--primary, #6366f1);
  background: var(--primary-light, #eef2ff);
}
.sender-chip.selected {
  border-color: var(--primary, #6366f1);
  background: var(--primary, #6366f1);
  color: #fff;
}

/* vote badge */
.vote-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  margin-left: 2px;
}
.vote-badge:hover { background: #fef3c7; }
.vote-badge.voted { background: #fde68a; }

/* ── Contest ──────────────────────────── */

.contest-hero {
  text-align: center;
  padding: 24px 0 20px;
}

.contest-hero-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

.contest-hero h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.contest-hero p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 14px;
}

.contest-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hashtag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.contest-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contest-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contest-step strong {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contest-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.contest-prizes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contest-prize {
  padding: 14px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
}

.contest-prize strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.contest-prize span {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.contest-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contest-rule {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.contest-rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Submission card */
.submission-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.submission-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.submission-head strong {
  font-size: 13px;
}

.submission-date {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.submission-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-pending { background: #fffbeb; color: #92400e; }
.status-approved { background: #f0fdf4; color: #166534; }
.status-rejected { background: #fef2f2; color: #991b1b; }

.submission-url {
  font-size: 12px;
  color: var(--primary);
  word-break: break-all;
  text-decoration: none;
}

.submission-url:hover { text-decoration: underline; }

.submission-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.hint.error { color: var(--error); }
.hint.success { color: var(--success); }

/* ── Persona Result (铸魂) ─────────────── */

.persona-result { margin-bottom: 4px; }

.persona-hero {
  text-align: center;
  padding: 16px 0 20px;
}

.persona-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.persona-summary {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto;
}

.persona-section {
  margin-bottom: 18px;
}

.persona-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.persona-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.persona-trait {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.persona-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.persona-event {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.event-dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.persona-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.persona-sample {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  padding: 8px 12px;
  background: var(--secondary);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}

.persona-shared {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-shared-item {
  font-size: 12px;
  color: var(--text-dim);
  padding: 5px 10px;
  background: var(--secondary);
  border-radius: 6px;
}

.persona-tabs { margin-top: 4px; }

.persona-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
}

.persona-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.persona-tab:hover { color: var(--text-dim); }

.persona-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.persona-tab-content {
  display: none;
}

.persona-tab-content.active {
  display: block;
}

.persona-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
}
