/* SEO Center — unified simple dashboard (Gift In Day) */
:root {
  --sc-bg: #f4efe9;
  --sc-card: #fffdfb;
  --sc-ink: #2a1f1a;
  --sc-muted: #7a6a63;
  --sc-line: #e8ddd6;
  --sc-burgundy: #8f1825;
  --sc-deep: #6e121c;
  --sc-ok: #1f7a3a;
  --sc-warn: #b36b00;
  --sc-bad: #a31d2a;
  --sc-serif: "Cormorant Garamond", Georgia, serif;
  --sc-sans: Manrope, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body.sc-seo {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sc-sans);
  color: var(--sc-ink);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(223, 168, 166, 0.22), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--sc-bg) 40%);
}
.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #3a1218, #6e121c);
  color: #fff;
}
.sc-brand { display: flex; align-items: center; gap: 12px; }
.sc-brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; }
.sc-brand b { display: block; font-size: 1.05rem; }
.sc-brand small { opacity: 0.8; font-size: 0.78rem; }
.sc-top a {
  color: #ffe8ea;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 8px 14px;
}
.sc-wrap { width: min(1120px, 94%); margin: 28px auto 60px; }
.sc-hero h1 {
  font-family: var(--sc-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 8px;
}
.sc-hero p { color: var(--sc-muted); margin: 0 0 18px; max-width: 52rem; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sc-btn {
  border: 1px solid var(--sc-line);
  background: #fff;
  color: var(--sc-ink);
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sc-btn-primary {
  background: linear-gradient(135deg, var(--sc-burgundy), var(--sc-deep));
  color: #fff;
  border-color: transparent;
}
.sc-btn-ghost { background: #fff; }
.sc-btn:disabled { opacity: 0.55; cursor: wait; }
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.sc-card {
  background: var(--sc-card);
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  padding: 14px 16px;
}
.sc-card h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-muted);
  font-weight: 700;
}
.sc-big {
  font-family: var(--sc-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.sc-big-sm { font-size: 1.15rem; }
.sc-ai {
  margin: 18px 0 28px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  color: var(--sc-muted);
}
.sc-report-head { margin: 8px 0 14px; }
.sc-report-head h2 { font-family: var(--sc-serif); margin: 0 0 6px; }
.sc-report-head p { margin: 0; color: var(--sc-muted); }
.sc-score-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.sc-section-block { margin-bottom: 22px; }
.sc-section-block h3 {
  font-family: var(--sc-serif);
  font-size: 1.35rem;
  margin: 0 0 10px;
}
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
}
.sc-row b { display: block; }
.sc-row span { color: var(--sc-muted); font-size: 0.86rem; }
.sc-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3e6e4;
  color: var(--sc-burgundy);
  margin-right: 6px;
}
.sc-pill.warn { background: #fff1d6; color: var(--sc-warn); }
.sc-pill.ok { background: #e4f5ea; color: var(--sc-ok); }
.sc-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 8, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}
.sc-modal[hidden] { display: none !important; }
.sc-modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
}
.sc-modal-card h2 { font-family: var(--sc-serif); margin: 0 0 6px; }
.sc-hint { color: var(--sc-muted); margin: 0 0 14px; font-size: 0.9rem; }
.sc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  font-weight: 600;
  cursor: pointer;
}
.sc-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 8px;
}
.sc-sub {
  margin: 12px 0;
  padding: 12px;
  background: var(--sc-bg);
  border-radius: 12px;
}
.sc-sub h3 { margin: 0 0 8px; font-size: 0.95rem; }
.sc-scroll {
  max-height: 140px;
  overflow: auto;
  margin-top: 8px;
}
.sc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.sc-progress { margin-top: 14px; }
.sc-progress-bar {
  height: 8px;
  background: #eee4de;
  border-radius: 999px;
  overflow: hidden;
}
.sc-progress-bar i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--sc-burgundy), #c45);
  transition: width 0.35s ease;
}
.sc-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 12px;
  background: #1c1614;
  color: #f4ece4;
  font-size: 0.84rem;
  max-width: min(360px, 90vw);
}
.sc-toast[hidden] { display: none !important; }

/* Global processing overlay + button busy state */
.sc-busy {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 16, 14, 0.42);
  backdrop-filter: blur(2px);
  padding: 20px;
}
.sc-busy[hidden] { display: none !important; }
.sc-busy-card {
  width: min(360px, 92vw);
  background: #fffdfb;
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(40, 18, 14, 0.22);
  animation: scBusyIn 0.22s ease-out;
}
@keyframes scBusyIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.sc-busy-spin {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid #eadfd8;
  border-top-color: var(--sc-burgundy);
  border-radius: 50%;
  animation: scSpin 0.75s linear infinite;
}
@keyframes scSpin {
  to { transform: rotate(360deg); }
}
.sc-busy-card b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.sc-busy-card p {
  margin: 0 0 14px;
  color: var(--sc-muted);
  font-size: 0.86rem;
}
.sc-busy-track {
  height: 8px;
  border-radius: 999px;
  background: #eee4de;
  overflow: hidden;
}
.sc-busy-track i {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sc-burgundy), #c45a5a, var(--sc-burgundy));
  background-size: 200% 100%;
  animation: scBusyBar 1.1s ease-in-out infinite;
}
.sc-busy-track.is-determinate i {
  animation: none;
  background: linear-gradient(135deg, var(--sc-burgundy), var(--sc-deep));
  transition: width 0.25s ease;
}
@keyframes scBusyBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}
.sc-btn.is-busy {
  position: relative;
  pointer-events: none;
  opacity: 0.78;
}
.sc-btn.is-busy::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: scSpin 0.7s linear infinite;
}
.sc-apply-flash {
  animation: scApplyFlash 0.55s ease;
}
@keyframes scApplyFlash {
  0% { box-shadow: 0 0 0 0 rgba(143, 24, 37, 0.35); }
  100% { box-shadow: 0 0 0 12px rgba(143, 24, 37, 0); }
}
.sc-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .sc-item-grid { grid-template-columns: 1fr; }
  .sc-check-grid { grid-template-columns: 1fr; }
}
.sc-field { margin-bottom: 10px; }
.sc-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sc-muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.sc-field input, .sc-field textarea {
  width: 100%;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.sc-field textarea { min-height: 88px; resize: vertical; }
.sc-preview {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--sc-line);
  border-radius: 12px;
  background: #faf7f4;
}
.sc-preview .sc-g-title { color: #1a0dab; font-size: 1.1rem; }
.sc-preview .sc-g-url { color: #006621; font-size: 0.82rem; }
.sc-preview .sc-g-desc { color: #545454; font-size: 0.9rem; }

.sc-shell { display: flex; width: min(1280px, 96%); margin: 0 auto 48px; gap: 18px; align-items: flex-start; }
.sc-side {
  position: sticky;
  top: 12px;
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  margin-top: 24px;
}
.sc-side button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  color: var(--sc-ink);
  cursor: pointer;
}
.sc-side button.is-on {
  background: linear-gradient(135deg, var(--sc-burgundy), var(--sc-deep));
  color: #fff;
}
.sc-main.sc-wrap { width: auto; flex: 1; margin: 24px 0 0; }
.sc-panel { display: none; }
.sc-panel.is-on { display: block; }
.sc-input {
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  min-width: 200px;
}
.sc-pre {
  white-space: pre-wrap;
  font-size: 0.82rem;
  margin: 0;
  max-height: 420px;
  overflow: auto;
}
.sc-research-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sc-research-head h3 { margin: 0 0 4px; }
.sc-research-view { display: flex; flex-direction: column; gap: 14px; }
.sc-research-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.sc-research-stat {
  background: #faf7f4;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  padding: 10px 12px;
}
.sc-research-stat b {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sc-muted);
  margin-bottom: 4px;
}
.sc-research-stat span { font-weight: 700; font-size: 0.92rem; word-break: break-word; }
.sc-research-group {
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.sc-research-group h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.sc-research-group .sc-hint { margin: 0 0 10px; }
.sc-kw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--sc-line);
  background: #faf7f4;
  color: var(--sc-ink);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}
.sc-kw-chip:hover { border-color: #c9a8a4; background: #fff; }
.sc-kw-chip.is-on {
  background: linear-gradient(135deg, var(--sc-burgundy), var(--sc-deep));
  color: #fff;
  border-color: transparent;
}
.sc-kw-chip .sc-kw-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.75;
}
.sc-kw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.sc-kw-actions .sc-btn { padding: 8px 12px; font-size: 0.78rem; }
.sc-research-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-research-list .sc-row {
  align-items: flex-start;
}
.sc-research-list .sc-row b { display: block; margin-bottom: 2px; }
.sc-research-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #f0dfb8;
  color: #6a5318;
  font-size: 0.84rem;
}
.sc-bars { display: flex; flex-direction: column; gap: 8px; }
.sc-bar-row { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; font-size: 0.82rem; }
.sc-bar-track { height: 8px; background: #eee4de; border-radius: 999px; overflow: hidden; grid-column: 1 / -1; }
.sc-bar-track i { display: block; height: 100%; background: var(--sc-burgundy); }
.sc-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #eee; flex-shrink: 0; }
.sc-row-main { display: flex; gap: 12px; align-items: center; flex: 1; }
/* SOS Phase 3 — monitoring dashboard */
.sc-nav-label {
  margin: 14px 10px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-muted);
}
.sc-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sc-global-search {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sc-global-search .sc-input {
  min-width: min(280px, 42vw);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.sc-global-search .sc-input::placeholder { color: rgba(255,255,255,.65); }
.sc-global-search .sc-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.sc-card-link {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sc-card-link:hover {
  border-color: #d8b4b0;
  box-shadow: 0 8px 22px rgba(111, 24, 32, 0.08);
  transform: translateY(-1px);
}
.sc-dash-click .sc-card { min-height: 92px; }
.sc-card .sc-btn { margin-top: 10px; }
@media print {
  .sc-side, .sc-top-actions, .sc-actions, .sc-busy, .sc-toast, .sc-modal { display: none !important; }
  .sc-panel { display: block !important; page-break-inside: avoid; }
}
@media (max-width: 900px) {
  .sc-shell { flex-direction: column; }
  .sc-side { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .sc-global-search { width: 100%; }
  .sc-global-search .sc-input { flex: 1; min-width: 0; }
}
