/* ==========================================================================
   Holiday Studio Shared Styles (V4 Direction B — Scoped to 3 Holiday Tools)
   Strict adherence to ux-ui-design-playbook.md (zero orphans, mobile dock)
   ========================================================================== */

/* Safe page-scoped mobile hero wrap override (never touches homepage /) */
@media (max-width: 640px) {
  .tool-page:has([data-gf-tool="ai-santa-video"], [data-gf-tool="ai-christmas-card"], [data-gf-tool="santa-voice-generator"]) .hero-title {
    white-space: normal;
    text-wrap: balance;
    font-size: 1.38rem;
    line-height: 1.15;
    margin-bottom: 5px;
  }
  .tool-page:has([data-gf-tool="ai-santa-video"], [data-gf-tool="ai-christmas-card"], [data-gf-tool="santa-voice-generator"]) .hero-subtitle {
    font-size: 13.5px;
    line-height: 1.38;
    margin-bottom: 7px;
    text-wrap: balance;
  }
  .tool-page:has([data-gf-tool="ai-santa-video"], [data-gf-tool="ai-christmas-card"], [data-gf-tool="santa-voice-generator"]) .hero-trust {
    gap: 4px 10px;
    flex-wrap: nowrap;
  }
  .tool-page:has([data-gf-tool="ai-santa-video"], [data-gf-tool="ai-christmas-card"], [data-gf-tool="santa-voice-generator"]) .hero-trust li {
    font-size: 12px;
    gap: 5px;
    letter-spacing: -0.01em;
  }
  .tool-page:has([data-gf-tool="ai-santa-video"], [data-gf-tool="ai-christmas-card"], [data-gf-tool="santa-voice-generator"]) .hero-pill-ico {
    width: 15px;
    height: 15px;
  }
  body:has([data-hs-mobile-dock]) .site-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

body.hs-modal-open .hs-mobile-dock {
  display: none !important;
}

.hs-root {
  width: 100%;
  min-width: 0;
  font-family: var(--font-sans);
  color: var(--text);
}
.hs-root *,
.hs-root *::before,
.hs-root *::after {
  box-sizing: border-box;
}
.hs-root [hidden] {
  display: none !important;
}

/* Dual-Column Workbench (46:54) */
.hs-workbench {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 20px;
  align-items: stretch;
}
.hs-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Form Controls */
.hs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hs-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hs-field-top label,
.hs-field-top > span:first-child {
  white-space: nowrap;
}
.hs-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-on-bg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.hs-meta.is-good {
  color: var(--do-ink);
  font-weight: 600;
}
.hs-meta.is-warn {
  color: var(--warn-ink);
  font-weight: 600;
}

/* 4-Item Presets: 4x1 Desktop, 2x2 Mobile (Zero Orphans / Zero Clipping) */
.hs-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.hs-pill {
  appearance: none;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.hs-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}
.hs-pill.is-selected {
  background: var(--surface-tint);
  border-color: var(--primary);
  color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--primary);
}

.hs-input,
.hs-textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.hs-input:focus,
.hs-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.hs-textarea {
  resize: vertical;
  min-height: 76px;
}

/* Photo Upload Dropzone (Christmas Card) */
.hs-dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.hs-dropzone:hover,
.hs-dropzone.is-drag {
  border-color: var(--primary);
  background: var(--surface-tint);
}
.hs-dropzone.is-loaded {
  border-style: solid;
  border-color: var(--accent-border);
  background: var(--surface-tint);
}
.hs-dz-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hs-dz-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--primary);
}
.hs-dz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hs-dz-copy {
  min-width: 0;
}
.hs-dz-copy strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-dz-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted-on-bg);
}
.hs-dz-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hs-dz-act {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.hs-dz-clear {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted-on-bg);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hs-dz-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.hs-sr-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Segmented 3-Column Options */
.hs-seg-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hs-seg-opt {
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.hs-seg-opt:hover {
  border-color: var(--primary);
}
.hs-seg-opt strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hs-seg-opt span {
  font-size: 12px;
  color: var(--muted-on-bg);
  white-space: nowrap;
}
.hs-seg-opt.is-selected {
  background: var(--surface-tint);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.hs-seg-opt.is-selected strong {
  color: var(--accent-text);
}

.hs-inline-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hs-mini-chip {
  appearance: none;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.hs-mini-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Primary & Secondary Buttons (Unique Sitewide Brand Purple #5236FF) */
.hs-action-dock {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hs-btn-primary {
  appearance: none;
  text-decoration: none;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 62%, transparent);
  transition: background-color 140ms ease, transform 100ms ease, opacity 140ms ease;
}
.hs-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #FFFFFF;
}
.hs-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}
.hs-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.hs-btn-secondary {
  appearance: none;
  text-decoration: none;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.hs-btn-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  color: var(--text);
}
.hs-cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted-on-bg);
  text-wrap: balance;
}

/* Right Panel Tabs (Examples | My Creations | Break 2048) */
.hs-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hs-right-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, auto);
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  max-width: 100%;
}
.hs-right-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-on-bg);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.hs-right-tab:hover:not(.is-active) {
  color: var(--text);
}
.hs-right-tab.is-active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.hs-tab-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-tint);
  color: var(--accent-text);
}
.hs-tab-badge.is-done {
  background: var(--do-bg);
  color: var(--do-ink);
}

.hs-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

/* Clean Visual Stage (Zero Blocking Spec Badges) */
.hs-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #121122;
  color: #FFFFFF;
  min-height: 270px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hs-stage.is-audio {
  background: linear-gradient(145deg, #1E1A3C 0%, #121122 100%);
  padding: 22px 18px;
  gap: 14px;
  text-align: center;
}
.hs-stage.is-card {
  background: linear-gradient(145deg, #1A2F24 0%, #121122 100%);
  padding: 14px;
}
.hs-stage video {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  background: #121122;
}
.hs-card-canvas {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: block;
}
.hs-card-pair {
  display: grid;
  grid-template-columns: 0.72fr auto 1.28fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.hs-card-pair figure {
  margin: 0;
  text-align: center;
}
.hs-card-pair img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.hs-card-pair figcaption {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.hs-pair-arrow {
  font-size: 20px;
  font-weight: 700;
  color: #A79BFF;
}

/* Audio Stage Waveform & Native Controls */
.hs-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
}
.hs-wave i {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: #A79BFF;
  opacity: 0.72;
}
.hs-stage.is-playing .hs-wave i {
  animation: hsWave 0.9s ease-in-out infinite alternate;
}
@keyframes hsWave {
  from { opacity: 0.45; transform: scaleY(0.42); }
  to { opacity: 1; transform: scaleY(1); }
}
.hs-stage-quote {
  max-width: 410px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  text-wrap: balance;
}
.hs-audio-el {
  width: 100%;
  max-width: 380px;
  height: 40px;
  border-radius: 999px;
}

/* Example Switcher Rail */
.hs-ex-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hs-ex-rail.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hs-ex-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hs-ex-btn:hover {
  border-color: var(--primary);
}
.hs-ex-btn.is-active {
  background: var(--surface-tint);
  border-color: var(--primary);
}
.hs-ex-btn strong {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-ex-btn span {
  font-size: 12px;
  color: var(--muted-on-bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* My Creations: Progress + 2048 Break Portal + Delivery + Cross-Sell */
.hs-render-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  justify-content: center;
}
.hs-rs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.hs-rs-pct {
  font-family: var(--font-mono);
  color: var(--accent-text);
}
.hs-prog-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--border);
  overflow: hidden;
}
.hs-prog-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-pill);
  transition: width 300ms ease;
}
.hs-rs-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted-on-bg);
  text-wrap: balance;
}
.hs-portal-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #1A1830;
  color: #FFFFFF;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}
.hs-portal-btn:hover {
  border-color: var(--primary);
  background: #232042;
}
.hs-portal-btn strong {
  display: block;
  font-size: 14px;
}
.hs-portal-btn span {
  display: block;
  font-size: 12px;
  color: #C8C4E0;
}
.hs-portal-go {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.hs-empty-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.hs-empty-box strong {
  font-size: 15px;
}
.hs-empty-box p {
  margin: 0;
  font-size: 13px;
  color: var(--muted-on-bg);
  max-width: 320px;
  text-wrap: balance;
}

/* Inline Card Text Editor */
.hs-card-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.hs-card-editor .is-full {
  grid-column: 1 / -1;
}
.hs-card-editor label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-on-bg);
  margin-bottom: 3px;
}
.hs-card-editor input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
}

.hs-deliver-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hs-deliver-actions .hs-btn-primary {
  grid-column: 1 / -1;
}
.hs-cross-sell {
  border-radius: var(--r-sm);
  padding: 12px 14px;
  background: var(--surface-tint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hs-cs-copy {
  min-width: 0;
}
.hs-cs-copy strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
}
.hs-cs-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted-on-bg);
}
.hs-cs-btn {
  appearance: none;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.hs-cs-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.hs-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hs-job-row {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.hs-job-row:hover {
  border-color: var(--primary);
}

/* Break 2048 Mount */
.hs-world-mount {
  width: 100%;
  min-height: 360px;
}

/* Centered Modals (Paywall / Free Cap / Refund Recovery — Zero Orphans) */
.hs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(18, 17, 34, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hs-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 92vh;
  overflow-y: auto;
}
.hs-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hs-modal-kicker {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-tint);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
  margin-right: 42px;
  max-width: calc(100% - 42px);
}
.hs-modal-kicker.is-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-border);
}
.hs-modal-kicker.is-ok {
  background: var(--do-bg);
  color: var(--do-ink);
  border-color: var(--do-border);
}
.hs-modal-head {
  padding-right: 34px;
}
.hs-modal-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.hs-modal-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-on-bg);
  line-height: 1.48;
  text-wrap: balance;
}
.hs-try4-banner {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--do-bg);
  border: 1px solid var(--do-border);
  color: var(--do-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hs-try4-banner strong {
  display: block;
  font-size: 13.5px;
}
.hs-try4-banner span {
  display: block;
  font-size: 12px;
  opacity: 0.9;
}
.hs-try4-go {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hs-pack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-pack-opt {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.hs-pack-opt:hover {
  border-color: var(--primary);
}
.hs-pack-opt.is-selected {
  border-color: var(--primary);
  background: var(--surface-tint);
  box-shadow: 0 0 0 1px var(--primary);
}
.hs-pack-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.hs-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  margin-top: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hs-pack-opt.is-selected .hs-radio-dot {
  border-color: var(--primary);
}
.hs-pack-opt.is-selected .hs-radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.hs-pack-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.hs-pack-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.hs-pack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #FFFFFF;
  white-space: nowrap;
}
.hs-pack-tag.is-sub {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.hs-pack-meta {
  display: block;
  font-size: 12.5px;
  color: var(--muted-on-bg);
}
.hs-pack-price {
  text-align: right;
  flex-shrink: 0;
}
.hs-pack-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.hs-pack-price small {
  display: block;
  font-size: 12px;
  color: var(--muted-on-bg);
  white-space: nowrap;
}
.hs-modal-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hs-modal-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted-on-bg);
  text-wrap: balance;
}

/* Silent 15-Min First-Creator Pass Dock */
.hs-pass-dock {
  position: fixed;
  bottom: 14px;
  right: 16px;
  z-index: 90;
  max-width: 340px;
  background: #121122;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hs-pass-dock strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}
.hs-pass-dock span {
  display: block;
  font-size: 12px;
  color: #C8C4E0;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.hs-fp-cta {
  appearance: none;
  border: 0;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Mobile Fixed Floating Bottom CTA Dock */
.hs-mobile-dock {
  display: none;
}

/* Toast (Errors & Explicit Download Feedback Only) */
.hs-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  background: #121122;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.hs-toast.is-err {
  background: var(--danger);
}

/* Below-the-Fold 3-Card Benefits Grid & Cross-Tool Strip */
.hs-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 12px;
}
.hs-why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.hs-why-card h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--text);
}
.hs-why-card p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}
.hs-related-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}
.hs-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.hs-related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.hs-related-card strong {
  font-size: 14.5px;
  color: var(--accent-text);
}
.hs-related-card span {
  font-size: 13px;
  color: var(--muted-on-bg);
}

/* Below-the-Fold GEO & On-Page Editorial Blocks (Zero impact on above-the-fold) */
.hs-geo-brief {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hs-geo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-on-bg);
}
.hs-geo-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hs-geo-crumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.hs-geo-crumb a:hover {
  color: var(--primary);
}
.hs-geo-meta time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.hs-geo-brief p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}
.hs-geo-brief strong {
  color: var(--text);
}

.hs-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hs-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.48;
  min-width: 540px;
}
.hs-spec-table th,
.hs-spec-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.hs-spec-table thead th {
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.hs-spec-table tbody tr:last-child td {
  border-bottom: 0;
}
.hs-spec-table td strong {
  color: var(--text);
}
.hs-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hs-ok {
  color: var(--do-ink);
  font-weight: 600;
}

.hs-script-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}
.hs-script-card {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hs-script-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hs-script-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.hs-script-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hs-script-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--text-secondary);
}
.hs-script-quote {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text);
}

.hs-bounds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}
.hs-bounds-card {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hs-bounds-card.is-yes {
  border-top: 3px solid var(--do-ink);
}
.hs-bounds-card.is-no {
  border-top: 3px solid var(--border-strong);
}
.hs-bounds-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.hs-bounds-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text-secondary);
}
.hs-bounds-list strong {
  color: var(--text);
}

.hs-lang-bar {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-secondary);
}
.hs-lang-bar strong {
  color: var(--text);
}

/* Mobile Responsive Overrides (<=900px & <=640px) */
@media (max-width: 900px) {
  .hs-workbench,
  .hs-why-grid,
  .hs-related-row,
  .hs-script-grid,
  .hs-bounds-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hs-workbench {
    gap: 12px;
  }
  .hs-panel {
    padding: 13px;
    gap: 9px;
  }
  .hs-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .hs-pill {
    min-height: 36px;
    padding: 5px 8px;
  }
  .hs-input {
    padding: 8px 10px;
    font-size: 14px;
  }
  .hs-textarea {
    min-height: 66px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .hs-seg-row {
    gap: 6px;
  }
  .hs-seg-opt {
    padding: 9px 5px;
    align-items: center;
    text-align: center;
  }
  .hs-seg-opt strong {
    font-size: 12.5px;
  }
  .hs-seg-opt span {
    display: none;
  }
  .hs-action-dock {
    display: none;
  }
  .hs-mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 14px max(10px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -10px 28px -14px rgba(18, 17, 34, 0.24);
  }
  .hs-mobile-dock-note {
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--do-ink);
    line-height: 1.25;
  }
  .hs-mobile-dock .hs-btn-primary {
    min-height: 46px;
    font-size: 15px;
    border-radius: 12px;
  }
  .hs-right-tabs {
    width: 100%;
    grid-auto-columns: 1fr;
  }
  .hs-right-tab {
    font-size: 12.5px;
    padding: 6px 8px;
  }
  .hs-stage {
    min-height: 220px;
  }
  .hs-card-editor,
  .hs-deliver-actions {
    grid-template-columns: 1fr;
  }
  .hs-cross-sell {
    flex-direction: column;
    align-items: stretch;
  }
  .hs-cs-btn {
    width: 100%;
    text-align: center;
  }
  .hs-pass-dock {
    left: 12px;
    right: 12px;
    bottom: 98px;
    max-width: none;
  }
  .hs-toast {
    bottom: 104px;
  }
}
