/* Seller Notification Center */
.sg-sn {
  --sn-ink: #1a1220;
  --sn-muted: #6b6470;
  --sn-line: rgba(26, 18, 32, 0.08);
  --sn-wine: #9b4d66;
  --sn-bg: #f7f4f6;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: "Plus Jakarta Sans", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--sn-ink);
}
.sg-sn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 246, 0.92);
  backdrop-filter: blur(12px);
}
.sg-sn-back, .sg-sn-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--sn-ink);
  text-decoration: none;
  border: 1px solid var(--sn-line);
}
.sg-sn-brand { text-align: center; }
.sg-sn-brand span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sn-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sg-sn-brand strong { font-size: 1.05rem; font-weight: 800; }
.sg-sn-banner { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 0.85rem; font-weight: 600; }
.sg-sn-banner--warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.sg-sn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.sg-sn-stat {
  background: #fff;
  border: 1px solid var(--sn-line);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
}
.sg-sn-stat strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.sg-sn-stat span { font-size: 0.68rem; font-weight: 700; color: var(--sn-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sg-sn h2 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.sg-sn-lead { margin: 0 0 12px; font-size: 0.88rem; color: var(--sn-muted); line-height: 1.4; }
.sg-sn-perf, .sg-sn-ai, .sg-sn-compose, .sg-sn-auto, .sg-sn-history {
  background: #fff;
  border: 1px solid var(--sn-line);
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
}
.sg-sn-perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sg-sn-perf-grid > div {
  background: var(--sn-bg);
  border-radius: 12px;
  padding: 12px;
}
.sg-sn-perf-grid strong { display: block; font-size: 1.2rem; font-weight: 800; }
.sg-sn-perf-grid span { font-size: 0.72rem; font-weight: 600; color: var(--sn-muted); text-transform: uppercase; }
.sg-sn-perf-wide { grid-column: 1 / -1; }
.sg-sn-ai-card {
  background: linear-gradient(145deg, #1a1220, #3d2a36);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
}
.sg-sn-ai-when span { font-size: 0.8rem; opacity: 0.75; font-weight: 600; }
.sg-sn-ai-when strong { display: block; font-size: 1.6rem; font-weight: 800; margin: 2px 0 14px; }
.sg-sn-ai-expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sg-sn-ai-expect strong { display: block; font-size: 1.05rem; }
.sg-sn-ai-expect span { font-size: 0.65rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; }
.sg-sn-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--sn-muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.sg-sn-input {
  width: 100%;
  border: 1.5px solid var(--sn-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--sn-ink);
  box-sizing: border-box;
}
.sg-sn-input:focus { outline: none; border-color: rgba(155, 77, 102, 0.45); }
.sg-sn-limit { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; color: var(--sn-wine); }
.sg-sn-preview {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #111;
  color: #fff;
}
.sg-sn-preview-push { display: flex; gap: 12px; align-items: flex-start; }
.sg-sn-preview-push img { border-radius: 8px; flex-shrink: 0; }
.sg-sn-preview-push strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.sg-sn-preview-push p { margin: 0 0 6px; font-size: 0.82rem; opacity: 0.85; line-height: 1.35; }
.sg-sn-preview-push em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: #f9a8d4; }
.sg-sn-actions { display: flex; gap: 10px; margin-top: 14px; }
.sg-sn-btn {
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}
.sg-sn-btn--ghost { background: var(--sn-bg); color: var(--sn-ink); }
.sg-sn-btn--primary { background: var(--sn-ink); color: #fff; }
.sg-sn-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sg-sn-status { margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; }
.sg-sn-status.is-ok { color: #059669; }
.sg-sn-status.is-err { color: #b91c1c; }
.sg-sn-auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sn-line);
}
.sg-sn-auto-row:last-child { border-bottom: 0; }
.sg-sn-auto-row strong { display: block; font-size: 0.9rem; }
.sg-sn-auto-row small { display: block; color: var(--sn-muted); font-size: 0.75rem; margin-top: 2px; line-height: 1.35; }
.sg-sn-switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.sg-sn-switch input { opacity: 0; width: 0; height: 0; }
.sg-sn-switch span {
  position: absolute; inset: 0;
  background: #d4d0d6;
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}
.sg-sn-switch span::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.sg-sn-switch input:checked + span { background: var(--sn-wine); }
.sg-sn-switch input:checked + span::before { transform: translateX(18px); }
.sg-sn-empty { color: var(--sn-muted); font-size: 0.9rem; margin: 0; }
.sg-sn-hist-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--sn-line);
}
.sg-sn-hist-item:last-child { border-bottom: 0; }
.sg-sn-hist-main strong { font-size: 0.95rem; }
.sg-sn-hist-main p { margin: 4px 0; font-size: 0.85rem; color: #3d3344; }
.sg-sn-hist-main small { color: var(--sn-muted); font-size: 0.72rem; }
.sg-sn-hist-metrics {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sn-muted);
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .sg-sn-ai-expect { grid-template-columns: 1fr; }
}
