/* Dedicated Instagram Carousel Splitter Styles (Desktop + Mobile First-Screen Workspace) */
body.carousel-page {
  margin: 0;
  background: #f5f7fb;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", sans-serif;
  overflow-x: hidden;
}

body.carousel-page *,
.cs-sheet-backdrop * {
  box-sizing: border-box;
}

/* Neutralize main.css global button/input/canvas margins inside carousel UI */
.cs-workspace button,
.cs-workspace input,
.cs-workspace select,
.cs-sheet-backdrop button,
.cs-sheet-backdrop input {
  margin: 0 !important;
}

/* Desktop Hero */
.cs-hero {
  width: clamp(90%, 100vw - 160px, 75%);
  margin: 0 auto;
  padding: 14px 16px 24px;
  text-align: center;
}

@media (min-width: 1920px) { .cs-hero, .cs-workspace-shell, .cs-seo-wrap { width: 70% !important; } }
@media (min-width: 1440px) and (max-width: 1919px) { .cs-hero, .cs-workspace-shell, .cs-seo-wrap { width: 90% !important; } }

.cs-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f172a;
  text-wrap: balance;
}

.cs-hero-sub {
  display: block;
  margin: 12px auto 0;
  max-width: 740px;
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
}

/* Desktop Main Workspace Shell */
.cs-workspace-shell {
  width: clamp(90%, 100vw - 160px, 75%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.cs-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .cs-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
}

/* Left Column: Editor + Controls */
.cs-editor-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cs-stage-card {
  position: relative;
  background: #0f172a;
  border-radius: 16px;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 52px;
  overflow: hidden;
  user-select: none;
}

#csCropCanvas {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 6px;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#csCropCanvas:active {
  cursor: grabbing;
}

.cs-stage-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.35s ease;
}

.cs-stage-hint.is-faded {
  opacity: 0;
}

.cs-empty-upload {
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
  text-align: center;
  padding: 20px;
  z-index: 6;
}

.cs-empty-upload.is-hidden {
  display: none;
}

.cs-zoom-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  z-index: 5;
}

.cs-zoom-btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cs-zoom-slider {
  flex: 1;
  height: 4px;
  accent-color: #c084fc;
  cursor: pointer;
}

.cs-zoom-pct {
  font-size: 11px;
  font-weight: 600;
  min-width: 34px;
  text-align: right;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.cs-reset-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Controls Deck */
.cs-controls-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.cs-control-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cs-control-row::-webkit-scrollbar {
  display: none;
}

.cs-row-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  min-width: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cs-chip {
  flex: 1 0 auto;
  height: 32px;
  line-height: 1;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cs-chip:hover {
  border-color: #c084fc;
  color: #7c3aed;
}

.cs-chip.active {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(147, 51, 234, 0.24);
}

/* Action Bar */
.cs-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-btn-upload {
  flex: 0.9 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.cs-btn-upload:hover {
  background: #f8fafc;
}

.cs-btn-joy-preview {
  display: none; /* Shown on mobile (<= 768px) to open swipe preview sheet */
}

.cs-btn-save {
  flex: 1.35 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.28);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cs-btn-save:hover {
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.34);
}

.cs-btn-save:active {
  transform: scale(0.98);
}

.cs-btn-save:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cs-sr-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Right Column: Live Interactive Swipeable Instagram Post Card */
.cs-preview-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-preview-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  padding: 0 4px;
}

.cs-preview-badge span.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
}

.cs-ig-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.cs-ig-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cs-ig-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cs-ig-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-ig-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
}

.cs-ig-username {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.cs-ig-sub {
  font-size: 11px;
  color: #64748b;
}

/* Swipeable Viewport */
.cs-carousel-viewport {
  position: relative;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}

.cs-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.cs-carousel-track::-webkit-scrollbar {
  display: none;
}

.cs-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

.cs-carousel-slide canvas {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  margin: 0 !important;
}

.cs-slide-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}

.cs-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 4;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cs-nav-arrow.is-prev { left: 8px; }
.cs-nav-arrow.is-next { right: 8px; }
.cs-nav-arrow.is-disabled { opacity: 0; pointer-events: none; }

.cs-ig-post-footer {
  padding: 10px 12px 12px;
}

.cs-ig-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
}

.cs-ig-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
}

.cs-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cs-dot.active {
  background: #2563eb;
  transform: scale(1.25);
}

.cs-ig-caption {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.cs-ig-caption strong {
  color: #0f172a;
}

/* =====================================================================
   Mobile First-Screen Workspace (<= 768px) — Matches Plan A Polish!
   ===================================================================== */
@media (max-width: 768px) {
  body.carousel-page {
    background: #f8fafc;
  }

  body.carousel-page .header-container {
    position: relative;
    z-index: 1500;
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 10px !important;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
  }

  body.carousel-page .header-container .navbar.has-header-ad {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  body.carousel-page .header-ad-slot {
    display: none !important;
  }

  body.carousel-page .nav-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  body.carousel-page .site-logo {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    flex-shrink: 0;
  }

  body.carousel-page .nav-items {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 4px !important;
    padding-left: 0 !important;
    padding-right: 16px !important;
    border-left: 0 !important;
    height: 34px !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }

  body.carousel-page .nav-items::-webkit-scrollbar {
    display: none;
  }

  body.carousel-page .nav-link {
    flex: 0 0 auto;
    height: 30px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }

  body.carousel-page .language-selector {
    position: relative;
    z-index: 1501;
    flex-shrink: 0;
  }

  body.carousel-page .language-btn {
    margin: 0 !important;
    padding: 5px 8px !important;
    height: 32px;
  }

  body.carousel-page:not(.cs-scrolled-past-editor) #feedbackFab,
  body.carousel-page:not(.cs-scrolled-past-editor) .feedback-fab {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Move Hero below workspace on mobile via flex container */
  .cs-page-flow {
    display: flex;
    flex-direction: column;
  }

  .cs-hero {
    order: 2;
    width: 100% !important;
    padding: 22px 16px 8px;
  }

  .cs-hero h1 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.25;
  }

  .cs-hero-sub {
    font-size: 14px;
  }

  .cs-workspace-shell {
    order: 1;
    width: 100% !important;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    box-shadow: none;
  }

  .cs-workspace {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 53px);
    min-height: 540px;
    max-height: 820px;
    gap: 0;
  }

  .cs-editor-col {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
  }

  .cs-stage-card {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-radius: 0;
    padding: 12px 12px 46px;
  }

  .cs-preview-col {
    display: none; /* Replaced by joyful Swipe Preview Bottom Sheet on mobile! */
  }

  .cs-controls-deck {
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    padding: 8px 12px 6px;
    gap: 7px;
  }

  .cs-row-label {
    min-width: auto;
    font-size: 11px;
  }

  .cs-chip {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .cs-action-bar {
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
  }

  .cs-btn-upload {
    flex: 0.85 1 auto;
    padding: 0 11px;
    font-size: clamp(12px, 3.3vw, 13.5px);
  }

  .cs-btn-joy-preview {
    display: inline-flex;
    flex: 1.05 1 auto;
    min-width: 0;
    position: relative;
    overflow: hidden;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5789 0%, #a855f7 56%, #6366f1 100%);
    color: #ffffff;
    font-size: clamp(12px, 3.3vw, 13.5px);
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.34);
  }

  .cs-btn-save {
    flex: 1.25 1 auto;
    padding: 0 12px;
    font-size: clamp(12px, 3.4vw, 14px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  }

  .cs-seo-wrap {
    order: 3;
    width: 92% !important;
    margin-top: 24px !important;
  }
}

/* Bottom Sheets (Mobile Swipe Preview & Export) */
.cs-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  z-index: 2147482000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.cs-sheet-backdrop.is-open {
  display: flex;
}

@media (min-width: 769px) {
  .cs-sheet-backdrop.is-export {
    align-items: center;
    padding: 20px;
  }
  .cs-sheet-backdrop.is-export .cs-sheet-panel {
    max-width: 560px;
    border-radius: 22px;
  }
}

.cs-sheet-panel {
  width: 100%;
  max-height: 90dvh;
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.28);
  animation: csSheetUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes csSheetUp {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.cs-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 8px auto 2px;
  flex-shrink: 0;
}

.cs-sheet-header {
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.cs-sheet-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.cs-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-sheet-body {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cs-order-banner {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cs-export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.cs-export-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cs-export-media {
  position: relative;
  background: #0f172a;
}

.cs-export-media img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-export-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.cs-export-dl {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  text-decoration: none;
  text-align: center;
}

.cs-export-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-export-primary {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.28);
}

.cs-export-zip {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-export-tip {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

/* SEO Content Sections */
.cs-seo-wrap {
  width: clamp(90%, 100vw - 160px, 75%);
  margin: 44px auto 0;
}

.cs-seo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
  .cs-seo-card { padding: 20px 16px; border-radius: 16px; }
}

.cs-seo-card h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.cs-seo-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  max-width: 760px;
}

.cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

@media (max-width: 768px) {
  .cs-grid-3, .cs-grid-2 { grid-template-columns: 1fr; }
}

.cs-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.cs-info-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.cs-info-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

.cs-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cs-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  min-width: 520px;
}

.cs-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.cs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.5;
}

.cs-table tr:last-child td { border-bottom: 0; }

.cs-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cs-related-links a {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cs-related-links a:hover {
  border-color: #9333ea;
  color: #7c3aed;
  background: #faf5ff;
}

.cs-toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2147482500;
}

.cs-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
