:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-control: 8px;
  --radius-panel: 12px;
  --shadow-panel: 0 8px 24px rgba(0, 0, 0, 0.08);
  --bg: #f4f4f6;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #1f6feb;
  --brand-soft: #eaf2ff;
  --accent: #0f766e;
  --accent-soft: #d9fbf6;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b1120;
  --panel: #111827;
  --text: #f1f5f9;
  --muted: #a8b3c4;
  --line: #334155;
  --brand: #60a5fa;
  --shadow-panel: 0 8px 24px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}
* { box-sizing: border-box; }
      body {
        font-family: "Segoe UI", Arial, sans-serif;
        background: var(--bg);
        color: var(--text);
        margin: 0;
      }
      .app-shell { min-height: 100vh; }
      .sidebar {
        width: 240px;
        background: #0f172a;
        color: #fff;
        padding: 16px 12px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        overflow-y: auto;
      }
      .sidebar .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        margin-bottom: 18px;
        padding: 6px 8px;
        border-radius: 10px;
      }
      .sidebar img { width: 28px; height: 28px; }
      .sidebar nav { display: flex; flex-direction: column; gap: 6px; }
      .nav-section { margin-bottom: 14px; }
      .nav-title {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(255,255,255,0.5);
        margin: 10px 8px 6px;
      }
      .nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 8px;
        color: #e5e7eb;
        text-decoration: none;
        font-size: 13px;
      }
      .nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
      .content { min-width: 0; margin-left: 240px; }
      .topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
        background: #111827;
        color: #fff;
      }
      .topbar a { color: #fff; text-decoration: none; }
      .topbar-right { display: flex; align-items: center; gap: 12px; }
      .context-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.18);
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        font-weight: 700;
      }
      .context-label { opacity: 0.75; font-weight: 700; }
      .dev-banner {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(251, 191, 36, 0.2);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.5);
        white-space: nowrap;
      }
      .btn {
        padding: 8px 14px;
        border-radius: 6px;
        border: 1px solid transparent;
        background: var(--brand);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .btn.secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
      .panel {
        background: var(--panel);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 20px;
        margin-bottom: 20px;
      }
      .panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
      }
      .helper { color: var(--muted); font-size: 12px; }
      .notice {
        padding: 10px 12px;
        border-radius: 6px;
        margin-bottom: 12px;
        font-size: 13px;
      }
      .notice.good { background: #ecfdf3; color: #027a48; }
      .notice.bad { background: #fef2f2; color: #b42318; }

body.mobile-menu-ready .mobile-menu-toggle,
  body.mobile-menu-ready .mobile-menu-backdrop {
    display: none;
  }
  body.mobile-menu-ready .topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
  }
  body.mobile-menu-ready .topbar-row {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
  }
  body.mobile-menu-ready .topbar-row-account {
    justify-content: flex-end;
  }
  body.mobile-menu-ready .topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body.mobile-menu-ready .quick-profile-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    min-width: 0;
  }
  body.mobile-menu-ready .quick-profile-switch-label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
  }
  body.mobile-menu-ready .quick-profile-switch select {
    min-width: 170px;
    max-width: 260px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    font-size: 12px;
  }
  .sidebar .nav-link.nav-link-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(59, 130, 246, 0.24));
    border: 1px solid rgba(125, 211, 252, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 20px rgba(2, 132, 199, 0.2);
    font-weight: 600;
  }
  .sidebar .nav-link.nav-link-active:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(59, 130, 246, 0.3));
  }
  .sidebar .brand.nav-link-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.17));
    border: 1px solid rgba(125, 211, 252, 0.3);
  }
  .sidebar .brand.nav-link-active:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(59, 130, 246, 0.24));
  }
  @media (max-width: 980px) {
    body.mobile-menu-ready .content {
      margin-left: 0 !important;
    }
    body.mobile-menu-ready .topbar {
      position: sticky;
      top: 0;
      z-index: 1300;
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 8px;
      padding: 10px 12px !important;
    }
    body.mobile-menu-ready .topbar > .mobile-menu-toggle {
      order: 1;
    }
    body.mobile-menu-ready .topbar > .topbar-right {
      order: 3;
      width: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      margin-top: 2px;
      flex-wrap: wrap;
    }
    body.mobile-menu-ready .topbar > .topbar-right .topbar-row {
      justify-content: flex-start;
      width: auto;
    }
    body.mobile-menu-ready .topbar > .topbar-right .quick-profile-switch {
      width: auto;
    }
    body.mobile-menu-ready .topbar > .topbar-right .quick-profile-switch select {
      min-width: 0;
      width: auto;
      max-width: min(220px, calc(100vw - 130px));
    }
    body.mobile-menu-ready .topbar .dev-banner {
      max-width: calc(100% - 86px);
      white-space: normal;
      overflow-wrap: anywhere;
    }
    body.mobile-menu-ready .mobile-menu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      padding: 8px 10px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.9);
      color: #f8fafc;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      flex-shrink: 0;
    }
    body.mobile-menu-ready .mobile-menu-toggle:focus-visible {
      outline: 2px solid #60a5fa;
      outline-offset: 1px;
    }
    body.mobile-menu-ready .mobile-menu-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      border: 0;
      margin: 0;
      padding: 0;
      background: rgba(15, 23, 42, 0.45);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      z-index: 1350;
    }
    body.mobile-menu-ready .sidebar {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      bottom: 0 !important;
      width: min(84vw, 320px) !important;
      max-width: 320px;
      height: 100dvh !important;
      overflow-y: auto !important;
      z-index: 1400 !important;
      transform: translateX(-104%);
      transition: transform 0.2s ease;
      box-shadow: 0 18px 34px rgba(15, 23, 42, 0.36);
    }
    body.mobile-menu-ready.menu-open {
      overflow: hidden;
    }
    body.mobile-menu-ready.menu-open .mobile-menu-backdrop {
      opacity: 1;
      pointer-events: auto;
    }
    body.mobile-menu-ready.menu-open .sidebar {
      transform: translateX(0);
    }
    body.mobile-menu-ready.menu-open .support-assistant-root {
      display: none;
    }

    body.mobile-menu-ready .topbar {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: start;
      column-gap: 8px;
      row-gap: 6px;
    }
    body.mobile-menu-ready .topbar > .mobile-menu-toggle {
      grid-column: 1;
      grid-row: 1;
      margin: 0;
      padding: 7px 10px;
      font-size: 12px;
    }
    body.mobile-menu-ready .topbar > .topbar-right {
      grid-column: 2;
      grid-row: 1;
      width: auto;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "theme activity" "profile profile" "account account";
      align-items: center;
      gap: 6px;
      margin: 0;
    }
    body.mobile-menu-ready .topbar > .topbar-right > .socialsync-theme-toggle {
      grid-area: theme;
      justify-self: start;
      min-height: 30px;
      padding: 4px 8px;
      font-size: 11px;
    }
    body.mobile-menu-ready .topbar > .topbar-right > .ss-activity-badge {
      grid-area: activity;
      justify-self: end;
      font-size: 11px;
      padding: 5px 8px;
    }
    body.mobile-menu-ready .topbar > .topbar-right > .topbar-row-profile {
      grid-area: profile;
      width: 100%;
      justify-content: flex-start;
    }
    body.mobile-menu-ready .topbar > .topbar-right > .topbar-row-account {
      grid-area: account;
      width: 100%;
      justify-content: flex-start;
    }
    body.mobile-menu-ready .context-pill {
      display: none;
    }
    body.mobile-menu-ready .topbar .quick-profile-switch {
      width: 100%;
      flex: 1 1 auto;
    }
    body.mobile-menu-ready .topbar .quick-profile-switch select {
      width: 100%;
      max-width: none;
    }
  }

.ss-btn-working {
    position: relative;
    isolation: isolate;
    animation: socialsyncButtonAuraBlink 0.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.42);
  }
  .ss-btn-working::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(37, 99, 235, 0.45);
    pointer-events: none;
    animation: socialsyncButtonAuraRing 1.2s ease-out infinite;
  }
  @keyframes socialsyncButtonAuraBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18); }
    50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.26); }
  }
  @keyframes socialsyncButtonAuraRing {
    0% { opacity: 0.92; transform: scale(0.98); }
    70% { opacity: 0.18; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.08); }
  }

.ss-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
  }
  .ss-legal-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
  }
  .ss-legal-links a:hover {
    color: #1f6feb;
    text-decoration: underline;
  }
  .ss-legal-links-divider {
    color: #94a3b8;
  }
  .ss-login-legal {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
  }
  .ss-app-legal {
    margin-top: 20px;
    padding: 14px 18px 0;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-start;
  }
  @media (max-width: 980px) {
    .ss-app-legal {
      padding-left: 0;
      padding-right: 0;
      justify-content: center;
    }
  }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  button, input, select, textarea {
    font-family: inherit;
  }
  :focus-visible {
    outline: 2px solid #1f6feb;
    outline-offset: 2px;
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

#socialsync-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: 100%;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.65);
  transition: transform 180ms ease, opacity 160ms ease;
}
#socialsync-progress.ss-progress-active {
  opacity: 1;
  transform: scaleX(0.78);
  transition: transform 8s cubic-bezier(0.1, 0.65, 0.3, 1), opacity 160ms ease;
}
#socialsync-progress.ss-progress-done {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 120ms ease, opacity 240ms ease 80ms;
}

.ss-activity-badge,
.ss-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.ss-activity-badge[hidden] { display: none; }
.ss-status-pending { background: #fef9c3; color: #92400e; border-color: #facc15; }
.ss-status-running,
.ss-status-posting { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.ss-status-completed,
.ss-status-posted { background: #dcfce7; color: #065f46; border-color: #86efac; }
.ss-status-failed,
.ss-status-rejected,
.ss-status-expired { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.ss-toast-region {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2147483000;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.ss-toast {
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.ss-toast-visible { opacity: 1; transform: translateY(0); }
.ss-toast-success { border-color: #86efac; }
.ss-toast-error { border-color: #fca5a5; }
.ss-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2147483647;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: #fff;
  color: #1d4ed8;
  box-shadow: var(--shadow-panel);
  transform: translateY(-160%);
  transition: transform 120ms ease;
}
.ss-skip-link:focus { transform: translateY(0); }
.socialsync-theme-toggle {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.ss-confirm-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}
.ss-confirm-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.ss-confirm-body { padding: var(--space-6); }
.ss-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.ss-inline-error {
  display: block;
  margin-top: 4px;
  color: #b42318;
  font-size: 12px;
}
.nav-link-active,
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #60a5fa;
}
.ss-empty-state {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px dashed var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
}
.ss-empty-state h3,
.ss-empty-state p { margin: 0; }
.ss-empty-state p { color: var(--muted); }
@keyframes ss-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ss-media-loading,
.ss-skeleton-active::after {
  background: linear-gradient(90deg, #e5e7eb 25%, #f8fafc 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: ss-skeleton-pulse 1.2s ease-in-out infinite;
}
.ss-media-loading { opacity: 0.55; }
.chart-box.ss-skeleton-active {
  position: relative;
  min-height: 240px;
}
.chart-box.ss-skeleton-active::after {
  content: "";
  position: absolute;
  inset: var(--space-4);
  border-radius: var(--radius-control);
  z-index: 2;
}

/* ===== Help / onboarding (home) page styles =====
   Moved out of the _HOME_TEMPLATE inline <style> so they persist across
   htmx-boosted navigation (hx-select=".content" does not re-apply <head>). */
      .help-tabs {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 18px;
      }
      .help-tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 16px;
        border-radius: 999px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #475569;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
      }
      .help-tab:hover {
        border-color: #93c5fd;
        color: #1d4ed8;
      }
      .help-tab.active {
        border-color: #7aa2e8;
        background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
        color: #1d4ed8;
        box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
      }
      .hero {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
        gap: 18px;
        margin-bottom: 18px;
      }
      .hero-single {
        grid-template-columns: 1fr;
      }
      .hero-single .hero-points {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
      }
      .hero-single .hero-card {
        max-width: none;
      }
      .hero-single .hero-point {
        padding: 12px;
      }
      .hero-single .hero-point-step {
        margin-bottom: 4px;
      }
      .hero-single .hero-point-title {
        font-size: 14px;
      }
      .hero-single .hero-point-text {
        font-size: 12px;
      }
      .hero-card,
      .workflow-card {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
      }
      .hero-card {
        padding: 24px;
      }
      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        background: var(--brand-soft);
        color: #1e40af;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }
      .hero-card h2 {
        margin: 14px 0 10px;
        font-size: 34px;
        line-height: 1.05;
      }
      .hero-copy {
        margin: 0;
        color: #475569;
        font-size: 15px;
        line-height: 1.65;
        max-width: 720px;
      }
      .hero-points {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 18px;
      }
      .hero-point {
        padding: 14px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
      }
      .hero-point-step {
        color: #1d4ed8;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
      }
      .hero-point-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 4px;
      }
      .hero-point-text {
        color: #64748b;
        font-size: 13px;
        line-height: 1.45;
      }
      .quick-panel {
        padding: 22px;
        background:
          radial-gradient(circle at top right, rgba(31,111,235,0.14), transparent 34%),
          linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      }
      .quick-panel h3 {
        margin: 0 0 8px;
        font-size: 18px;
      }
      .quick-panel .helper {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 14px;
      }
      .example-menu-compact {
        display: flex;
        flex-direction: column;
      }
      .example-menu-compact-list {
        display: grid;
        gap: 8px;
        max-height: 360px;
        overflow-y: auto;
        padding-right: 2px;
      }
      .example-menu-compact-link {
        display: block;
        text-decoration: none;
        color: inherit;
        border: 1px solid #dbe4f0;
        border-radius: 12px;
        background: #f8fbff;
        padding: 10px 12px;
        transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
      }
      .example-menu-compact-link:hover {
        background: #eef4ff;
        border-color: #bcd1f5;
        transform: translateY(-1px);
      }
      .example-menu-compact-link-active {
        background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
        border-color: #7aa2e8;
        box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
      }
      .example-menu-compact-link .example-menu-kicker {
        margin-bottom: 4px;
      }
      .example-menu-compact-link .example-menu-title {
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.35;
      }
      .quick-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      .quick-link,
      .action-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #0f172a;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
      }
      .quick-link.primary,
      .action-link.primary {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
      }
      .section-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin: 8px 0 16px;
      }
      .section-heading h3 {
        margin: 0 0 4px;
        font-size: 22px;
      }
      .section-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
      }
      .help-content-tabs {
        display: grid;
        gap: 18px;
      }
      .help-content-tab-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }
      .help-content-tab-pill,
      .gallery-tab-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #334155;
        cursor: pointer;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
      }
      .help-content-tab-pill:hover,
      .gallery-tab-pill:hover {
        background: #eef4ff;
        border-color: #93c5fd;
        color: #1d4ed8;
        transform: translateY(-1px);
      }
      .help-content-tab-pill.active,
      .gallery-tab-pill.active {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
      }
      .help-content-tab-panel[hidden],
      .gallery-tab-panel[hidden] {
        display: none;
      }
      .gallery-wrap {
        padding: 20px;
      }
      .gallery-tabs {
        border: 1px solid #dbe4f0;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
        overflow: hidden;
      }
      .gallery-tab-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 18px;
        border-bottom: 1px solid #e2e8f0;
        background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
      }
      .gallery-tab-panel {
        padding: 18px;
        min-width: 0;
      }
      .gallery-embeds {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 14px;
      }
      .gallery-embed {
        min-width: 0;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #f8fafc;
        padding: 10px;
      }
      .gallery-embed blockquote {
        margin: 0 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .gallery-embed .twitter-tweet,
      .gallery-embed .instagram-media,
      .gallery-embed iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .gallery-howto {
        margin-top: 12px;
        border-top: 1px solid #e2e8f0;
        padding-top: 12px;
      }
      .gallery-howto summary {
        cursor: pointer;
        color: #1d4ed8;
        font-size: 13px;
        font-weight: 700;
        list-style: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
      .gallery-howto summary::-webkit-details-marker {
        display: none;
      }
      .gallery-howto summary::after {
        content: "Show";
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }
      .gallery-howto[open] summary::after {
        content: "Hide";
      }
      .gallery-howto-diagram {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
        margin-top: 12px;
      }
      .gallery-howto-node {
        border: 1px solid #dbe4f0;
        border-radius: 12px;
        background: #fff;
        padding: 14px 14px 12px;
        min-width: 0;
      }
      .gallery-howto-label {
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        line-height: 1.35;
        margin-bottom: 8px;
      }
      .gallery-howto-value {
        color: #0f172a;
        font-size: 12.5px;
        line-height: 1.6;
        white-space: pre-line;
        overflow-wrap: anywhere;
        word-break: break-word;
      }
      .workflow-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }
      .workflow-card {
        padding: 20px;
        border-color: var(--workflow-accent-border, var(--line));
        border-top: 4px solid var(--workflow-accent, #dbe4f0);
        background:
          linear-gradient(180deg, var(--workflow-accent-soft, #f8fafc) 0%, #ffffff 24%);
      }
      .workflow-step {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 5px 10px;
        border-radius: 999px;
        background: var(--workflow-accent-soft, var(--accent-soft));
        color: var(--workflow-accent, #0f766e);
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 12px;
      }
      .workflow-card h4 {
        margin: 0 0 8px;
        font-size: 18px;
      }
      .workflow-card p {
        margin: 0 0 12px;
        color: #475569;
        font-size: 14px;
        line-height: 1.6;
      }
      .workflow-page-list {
        margin: 0 0 12px;
        padding-left: 18px;
        color: var(--workflow-accent, #0f766e);
      }
      .workflow-page-list li {
        margin-bottom: 7px;
        line-height: 1.5;
      }
      .workflow-page-link {
        color: var(--workflow-accent, #0f766e);
        font-weight: 700;
        text-decoration: none;
      }
      .workflow-page-link:hover { text-decoration: underline; }
      .action-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 12px;
      }
      details.workflow-details {
        border-top: 1px solid #e2e8f0;
        padding-top: 12px;
      }
      details.workflow-details summary {
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        color: var(--workflow-accent, #1d4ed8);
      }
      .detail-list {
        margin: 12px 0 0;
        padding-left: 18px;
        color: #475569;
      }
      .detail-list li {
        margin-bottom: 8px;
        line-height: 1.55;
      }
      .summary-panel {
        margin-top: 18px;
        padding: 18px 20px;
      }
      .summary-panel h3 {
        margin: 0 0 8px;
        font-size: 18px;
      }
      .summary-panel p {
        margin: 0;
        color: #475569;
        line-height: 1.65;
        font-size: 14px;
      }
      .asset-panel {
        margin-bottom: 18px;
        padding: 20px;
      }
      .asset-panel h3 {
        margin: 0 0 8px;
        font-size: 20px;
      }
      .asset-panel > p {
        margin: 0 0 14px;
        color: #475569;
        line-height: 1.6;
        font-size: 14px;
      }
      .asset-meta-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 16px;
      }
      .asset-meta-card {
        border: 1px solid #dbe4f0;
        border-radius: 12px;
        background: #f8fbff;
        padding: 14px;
      }
      .asset-meta-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #475569;
        margin-bottom: 8px;
      }
      .code-line,
      .asset-file-list code {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 8px;
        background: #eaf2ff;
        color: #1e40af;
        font-family: Consolas, "SFMono-Regular", Menlo, monospace;
        font-size: 12px;
      }
      .asset-file-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }
      .asset-file-group {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px;
        background: #fff;
      }
      .asset-file-list {
        margin: 10px 0 0;
        padding-left: 18px;
      }
      .asset-file-list li {
        margin-bottom: 8px;
        color: #475569;
      }
      .example-menu-panel {
        margin-bottom: 18px;
        padding: 20px;
      }
      .example-menu-header {
        margin-bottom: 14px;
      }
      .example-menu-header h3 {
        margin: 0 0 6px;
        font-size: 20px;
      }
      .example-menu-header p {
        margin: 0;
        color: #475569;
        font-size: 14px;
        line-height: 1.6;
      }
      .example-menu-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .example-menu-link {
        display: block;
        text-decoration: none;
        color: inherit;
        border: 1px solid #dbe4f0;
        border-radius: 14px;
        background: #f8fbff;
        padding: 14px;
        transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
      }
      .example-menu-link:hover {
        background: #eef4ff;
        border-color: #bcd1f5;
        transform: translateY(-1px);
      }
      .example-menu-link-active {
        background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
        border-color: #7aa2e8;
        box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
      }
      .example-menu-kicker {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #1d4ed8;
        margin-bottom: 6px;
      }
      .example-menu-title {
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 6px;
      }
      .example-menu-copy {
        color: #475569;
        font-size: 13px;
        line-height: 1.55;
      }
      .example-shot-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin: 14px 0 12px;
      }
      .example-shot {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #f8fafc;
        padding: 12px;
      }
      .example-shot-frame {
        aspect-ratio: 16 / 10;
        border-radius: 10px;
        overflow: hidden;
        border: 1px dashed #94a3b8;
        background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
      }
      .example-shot-trigger {
        width: 100%;
        height: 100%;
        border: 0;
        padding: 0;
        margin: 0;
        display: block;
        background: transparent;
        cursor: zoom-in;
        position: relative;
      }
      .example-shot-trigger::after {
        content: "Expand";
        position: absolute;
        right: 10px;
        bottom: 10px;
        padding: 5px 9px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.78);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
      }
      .example-shot-trigger:hover::after,
      .example-shot-trigger:focus-visible::after {
        background: rgba(29, 78, 216, 0.92);
      }
      .example-shot-trigger:focus-visible {
        outline: 2px solid #1d4ed8;
        outline-offset: -2px;
      }
      .example-shot-frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .example-shot-placeholder {
        padding: 14px;
        text-align: center;
        color: #64748b;
        font-size: 13px;
        line-height: 1.5;
      }
      .example-shot-file {
        margin-bottom: 8px;
      }
      .example-shot-title {
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 4px;
      }
      .example-shot-caption {
        font-size: 13px;
        color: #475569;
        line-height: 1.55;
      }
      .shot-lightbox[hidden] {
        display: none;
      }
      .shot-lightbox {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }
      .shot-lightbox-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(2, 6, 23, 0.82);
        backdrop-filter: blur(3px);
      }
      .shot-lightbox-dialog {
        position: relative;
        z-index: 1;
        width: min(1120px, 100%);
        max-height: calc(100vh - 40px);
        overflow: auto;
        border-radius: 18px;
        background: #0f172a;
        border: 1px solid rgba(191, 219, 254, 0.24);
        box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
        padding: 18px;
      }
      .shot-lightbox-close {
        position: sticky;
        top: 0;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        min-height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(191, 219, 254, 0.28);
        background: rgba(15, 23, 42, 0.88);
        color: #fff;
        font-size: 20px;
        cursor: pointer;
      }
      .shot-lightbox-image-wrap {
        border-radius: 14px;
        overflow: hidden;
        background: #020617;
        border: 1px solid rgba(148, 163, 184, 0.3);
      }
      .shot-lightbox-image {
        display: block;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 180px);
        object-fit: contain;
        margin: 0 auto;
      }
      .shot-lightbox-meta {
        display: grid;
        gap: 6px;
        margin-top: 14px;
        color: #dbeafe;
      }
      .shot-lightbox-file {
        font-family: Consolas, "SFMono-Regular", Menlo, monospace;
        font-size: 12px;
        color: #93c5fd;
      }
      .shot-lightbox-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
      }
      .shot-lightbox-caption {
        font-size: 14px;
        line-height: 1.6;
        color: #cbd5e1;
      }
      @media (max-width: 1120px) {
        .hero,
        .workflow-grid,
        .asset-meta-grid,
        .example-shot-grid,
        .example-menu-grid {
          grid-template-columns: 1fr;
        }
        .gallery-howto-diagram {
          grid-template-columns: 1fr;
        }
        .hero-single .hero-points {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
@media (max-width: 980px) {
        .hero-points,
        .quick-grid,
        .asset-file-groups {
          grid-template-columns: 1fr;
        }
        .shot-lightbox {
          padding: 12px;
        }
        .shot-lightbox-dialog {
          max-height: calc(100vh - 24px);
          padding: 14px;
        }
        .shot-lightbox-image {
          max-height: calc(100vh - 210px);
        }
        .gallery-wrap {
          padding: 10px;
        }
        .gallery-tab-panel {
          padding: 10px;
        }
        .gallery-embeds {
          grid-template-columns: 1fr;
        }
        .gallery-embed .twitter-tweet,
        .gallery-embed .instagram-media,
        .gallery-embed iframe {
          width: 100% !important;
          max-width: 100% !important;
        }
}
