/* ── Hero demo wrapper (preserved) ─────────────────────────────── */
.hero-demo { width: 100%; max-width: 960px; margin: 0 auto; }
.hero-demo .demo-shell { max-width: 100%; }
.hero-demo .demo-chrome {
  box-shadow: 0 30px 70px -30px rgba(11,13,16,.35), 0 0 0 1px rgba(11,13,16,.06);
}
/* Keep the demo in its original typeface so it stays pixel-identical */
.hero-demo, .hero-demo input, .hero-demo button {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══════════════════════════════════════════════ INTERACTIVE DEMO */
.demo-section { background: #f8fafc; }
.section-sub { color: #64748b; font-size: 16px; max-width: 560px; margin: 10px auto 0; text-align: center; }

/* Shell */
.demo-shell { max-width: 860px; margin: 0 auto; }

/* Step progress bar */
.demo-steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 8px;
  overflow-x: auto;
}
.demo-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.demo-step-btn:hover { background: #f1f5f9; color: #475569; }
.demo-step-btn--active { background: #16181d !important; color: #fff !important; }
.demo-step-btn--done { color: #16181d; }
.demo-step-btn--done .dsb-num { background: #dcfce7; color: #16a34a; }
.dsb-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-step-btn--active .dsb-num { background: rgba(255,255,255,.18); color: #fff; }
.dsb-label { font-size: 12.5px; }
.dsb-connector {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Chrome wrapper */
.demo-chrome {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.demo-chrome-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.demo-chrome-dots { display: flex; gap: 5px; }
.demo-chrome-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e2e8f0;
}
.demo-chrome-dots span:first-child { background: #fc5f57; }
.demo-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.demo-chrome-dots span:nth-child(3) { background: #27ca40; }
.demo-chrome-url {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
}
.demo-chrome-spacer { width: 52px; }

/* Pane shared */
.demo-pane { padding: 0; animation: demoPaneIn .25s ease; }
@keyframes demoPaneIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top bar inside demo */
.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #16181d;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.demo-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.demo-logo-mark {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.demo-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content area */
.demo-content { padding: 20px; }

/* Card title row */
.demo-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.demo-card-title-icon {
  width: 36px; height: 36px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}

/* Platform label */
.demo-platform-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* Channel buttons */
.demo-channels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.demo-channel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.demo-channel-btn:hover { border-color: #16181d; background: #fafafa; }
.demo-channel-btn--active { border-color: #16181d !important; background: #f8fafc; }
.demo-ch-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-ch-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.demo-ch-sub  { font-size: 11px; color: #94a3b8; }
.demo-ch-check { margin-left: auto; font-size: 13px; color: #16181d; font-weight: 700; }

/* Upload zone */
.demo-upload-zone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 22px 16px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.demo-upload-zone.demo-upload-zone--loaded {
  border-color: #16a34a;
  background: #f0fdf4;
}
.demo-upload-icon { margin-bottom: 6px; }
.demo-upload-text { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 3px; }
.demo-upload-hint { font-size: 11.5px; color: #94a3b8; margin-bottom: 12px; }
.demo-upload-btn {
  display: inline-block;
  background: #16181d;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.demo-upload-btn:hover { background: #2d3039; }
.demo-upload-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
}

/* Nav row */
.demo-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
.demo-next-btn {
  background: #16181d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.demo-next-btn:hover { background: #2d3039; }
.demo-back-btn {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.demo-back-btn:hover { border-color: #16181d; color: #16181d; }

/* ── Step 2: Detected files */
.demo-detect-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.demo-detect-count {
  background: #16181d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.demo-file-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.demo-file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.demo-file-chip.visible { opacity: 1; transform: translateY(0); }
.demo-file-chip-icon {
  width: 32px; height: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}
.demo-file-chip-type { font-size: 11.5px; font-weight: 700; color: #16181d; display: block; }
.demo-file-chip-name { font-size: 11px; color: #94a3b8; }
.demo-file-size { margin-left: auto; font-size: 11px; color: #94a3b8; }
.demo-schema-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 12px;
  transition: opacity .4s;
}

/* ── Step 3: Cover */
.demo-content--cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-cover-label { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 5px; display: block; }
.demo-cover-field { margin-bottom: 14px; }
.demo-cover-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  transition: border-color .15s;
}
.demo-cover-input:focus { border-color: #16181d; }
.demo-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.demo-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.demo-swatch:hover { transform: scale(1.15); }
.demo-swatch--active { border-color: #16181d !important; transform: scale(1.1); }
.demo-cover-preview {
  border-radius: 10px;
  padding: 20px 16px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background .25s;
  position: relative;
}
.demo-cover-preview-logo { margin-bottom: auto; }
.demo-mini-logo {
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-mini-logo-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-cover-preview-eyebrow {
  font-size: 9px;
  letter-spacing: .1em;
  font-weight: 700;
  color: #fff;
  opacity: .6;
  margin-bottom: 5px;
  margin-top: 18px;
}
.demo-cover-preview-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 5px;
}
.demo-cover-preview-period { font-size: 11px; color: #fff; opacity: .65; }

/* Build button */
.demo-build-btn {
  background: #16181d;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .15s, transform .1s;
}
.demo-build-btn:hover { background: #2d3039; transform: translateY(-1px); }
.demo-build-btn:active { transform: translateY(0); }

/* ── Step 4: Report */
.demo-report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.demo-action-btn:hover { background: rgba(255,255,255,.18); }
.demo-action-btn--slack { background: rgba(74,144,226,.25); }

.demo-report-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.demo-report-cover {
  border-radius: 10px;
  padding: 22px 20px;
  background: #16181d;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .25s;
}
.demo-report-cover-logo { margin-bottom: 12px; }
.demo-report-eyebrow { font-size: 9.5px; letter-spacing: .1em; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; }
.demo-report-title { font-size: 18px; font-weight: 800; color: #fff; }
.demo-report-period { font-size: 12px; color: rgba(255,255,255,.55); }

.demo-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.demo-kpi {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 12px 10px;
  text-align: center;
}
.demo-kpi--green { background: #f0fdf4; border-color: #bbf7d0; }
.demo-kpi-val { font-size: 18px; font-weight: 800; color: #16181d; }
.demo-kpi--green .demo-kpi-val { color: #16a34a; }
.demo-kpi-label { font-size: 11px; color: #94a3b8; font-weight: 500; margin-top: 3px; }

/* Chart */
.demo-chart-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}
.demo-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #16181d;
  margin-bottom: 14px;
}
.demo-chart { overflow: hidden; }
.demo-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
}
.demo-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.demo-bar {
  width: 100%;
  background: #6366f1; /* overridden per-bar via inline style */
  border-radius: 4px 4px 0 0;
  height: 0;
  transition: height .65s cubic-bezier(.22,.68,0,1.15);
  position: relative;
  cursor: pointer;
  opacity: 0.9;
}
.demo-bar:hover { opacity: 1; filter: brightness(1.1); }
/* Height is set directly in px by JS — no CSS custom property needed */
.demo-bar::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: inherit; /* picks up the bar's own colour */
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.demo-bar:hover::after { opacity: 1; }
.demo-bar-label { font-size: 10px; color: #94a3b8; font-weight: 500; }

/* Insights */
.demo-insights-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}
.demo-insights-list { display: flex; flex-direction: column; gap: 8px; }
.demo-insight-item {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s, transform .35s;
}
.demo-insight-item.visible { opacity: 1; transform: translateY(0); }
.demo-insight-dot {
  width: 20px; height: 20px;
  background: #16181d;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA button in nav row */
.demo-cta-btn {
  background: #16181d;
  color: #fff;
  text-decoration: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-block;
  transition: background .15s;
}
.demo-cta-btn:hover { background: #2d3039; }

/* Processing animation */
.demo-building-overlay {
  padding: 48px 20px;
  text-align: center;
}
.demo-building-spinner {
  width: 44px; height: 44px;
  border: 3px solid #e2e8f0;
  border-top-color: #16181d;
  border-radius: 50%;
  animation: spinDemo .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spinDemo { to { transform: rotate(360deg); } }
.demo-building-label { font-size: 14px; font-weight: 600; color: #475569; margin-bottom: 8px; }
.demo-building-steps { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.demo-build-step {
  font-size: 12px;
  color: #94a3b8;
  opacity: 0;
  transition: opacity .3s, color .3s;
}
.demo-build-step.active { opacity: 1; color: #16a34a; font-weight: 600; }
.demo-build-step.done { opacity: 1; color: #16a34a; }

/* Responsive */
@media (max-width: 720px) {
  .demo-steps-bar { gap: 0; padding: 4px; }
  .dsb-label { display: none; }
  .dsb-connector { min-width: 8px; }
  .demo-content--cover { grid-template-columns: 1fr; }
  .demo-report-kpis { grid-template-columns: repeat(2, 1fr); }
  .demo-chart-bars { gap: 6px; }
}

/* ═══════════════════════════════════════ EDIT INSIGHTS & RECS (step 4) */
.demo-action-btn--share { background: #fff; color: #16181d; font-family: inherit; border: none; }
.demo-action-btn--share:hover { background: #e8eaed; }

.demo-insights-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.demo-edit-hint {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; color: #94a3b8;
}
.demo-insights-list { display: flex; flex-direction: column; gap: 4px; }

/* Insight row — now interactive */
.demo-insight-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  padding: 8px 8px 8px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s, transform .35s, background .15s, border-color .15s;
}
.demo-insight-item.visible { opacity: 1; transform: translateY(0); }
.demo-insight-item:hover { background: #fff; border-color: #e2e8f0; }
.demo-insight-tx { flex: 1; cursor: text; }
.demo-insight-tx:hover { color: #16181d; }
.demo-insight-tools { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.demo-insight-item:hover .demo-insight-tools { opacity: 1; }
.demo-ins-tool {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid #e2e8f0; border-radius: 6px;
  background: #fff; color: #64748b; cursor: pointer;
  font-family: inherit; transition: border-color .15s, color .15s, background .15s;
}
.demo-ins-tool:hover { border-color: #16181d; color: #16181d; }
.demo-ins-del:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* Inline edit state */
.demo-insight-item--editing { background: #fff; border-color: #16181d; cursor: default; }
.demo-insight-edit { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.demo-insight-area {
  width: 100%;
  border: 1px solid #cbd5e1; border-radius: 7px;
  padding: 8px 10px;
  font-family: inherit; font-size: 12.5px; line-height: 1.5; color: #16181d;
  resize: none; outline: none; overflow: hidden;
  transition: border-color .15s;
}
.demo-insight-area:focus { border-color: #16181d; }
.demo-insight-editrow { display: flex; gap: 8px; }
.demo-ins-save, .demo-ins-cancel {
  font-family: inherit; font-size: 12px; font-weight: 600;
  border-radius: 7px; padding: 6px 14px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.demo-ins-save { background: #16181d; color: #fff; }
.demo-ins-save:hover { background: #2d3039; }
.demo-ins-cancel { background: #fff; color: #64748b; border-color: #e2e8f0; }
.demo-ins-cancel:hover { border-color: #16181d; color: #16181d; }

/* Add recommendation */
.demo-add-insight {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: #475569;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.demo-add-insight:hover { border-color: #16181d; color: #16181d; border-style: solid; }
.demo-add-plus { font-size: 15px; line-height: 1; font-weight: 700; }

/* ═══════════════════════════════════════ SHARE OVERLAY (step 4) */
.demo-share-backdrop {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(15, 18, 22, .42);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.demo-share-backdrop.is-open { display: flex; animation: demoShareIn .2s ease; }
@keyframes demoShareIn { from { opacity: 0; } to { opacity: 1; } }
.demo-share-card {
  width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(11,13,16,.5);
  padding: 22px; position: relative;
  animation: demoShareCardIn .22s cubic-bezier(.22,.68,0,1.1);
}
@keyframes demoShareCardIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-share-x {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 7px;
  border: none; background: #f1f5f9; color: #64748b;
  font-size: 18px; line-height: 1; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.demo-share-x:hover { background: #e2e8f0; color: #16181d; }
.demo-share-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-right: 28px; }
.demo-share-ic {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 9px; background: #16181d; color: #fff;
  display: grid; place-items: center;
}
.demo-share-title { font-size: 15px; font-weight: 700; color: #16181d; }
.demo-share-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.demo-share-lab {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 6px;
}
.demo-share-field { display: flex; gap: 7px; margin-bottom: 16px; }
.demo-share-input {
  flex: 1; min-width: 0;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  padding: 9px 11px; font-family: inherit; font-size: 13px; color: #16181d;
  background: #f8fafc; outline: none;
}
.demo-share-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; }
.demo-share-copy {
  flex-shrink: 0; border: none; border-radius: 8px;
  background: #16181d; color: #fff;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 0 15px; cursor: pointer; transition: background .15s;
}
.demo-share-copy:hover { background: #2d3039; }
.demo-share-copy.is-copied { background: #16a34a; }
.demo-share-regen {
  flex-shrink: 0; width: 38px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  background: #fff; color: #64748b; cursor: pointer; display: grid; place-items: center;
  transition: border-color .15s, color .15s;
}
.demo-share-regen:hover { border-color: #16181d; color: #16181d; }

.demo-share-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
  margin-bottom: 16px;
}
.demo-share-toggle-t { font-size: 13px; font-weight: 600; color: #16181d; }
.demo-share-toggle-d { font-size: 11.5px; color: #94a3b8; margin-top: 1px; }
.demo-share-switch {
  flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px;
  border: none; background: #cbd5e1; cursor: pointer; position: relative;
  transition: background .2s;
}
.demo-share-switch span {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s;
}
.demo-share-switch.is-on { background: #16a34a; }
.demo-share-switch.is-on span { transform: translateX(18px); }

.demo-share-pw { transition: opacity .2s; }
.demo-share-pw.is-hidden { display: none; }

.demo-share-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding-top: 16px; border-top: 1px solid #f1f5f9;
}
.demo-share-expiry { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b; }
.demo-share-expiry select {
  font-family: inherit; font-size: 12.5px; color: #16181d;
  border: 1.5px solid #e2e8f0; border-radius: 7px; padding: 6px 8px; background: #fff; cursor: pointer;
}
.demo-share-done {
  border: none; border-radius: 8px; background: #16181d; color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 16px; cursor: pointer;
  transition: background .15s;
}
.demo-share-done:hover { background: #2d3039; }

@media (max-width: 560px) {
  .demo-share-foot { flex-direction: column; align-items: stretch; }
  .demo-share-done { width: 100%; }
}
