/* 2048 Micro World — Magi2Free "Take a Break" 3D Isometric World Module
 * Scoped under .m2w2-root, aligned with Magi2Free Daylight Studio (--m2w-*) tokens.
 */
.m2w2-root {
  --w2-page: var(--m2w-page, #F7F8FA);
  --w2-surface: var(--m2w-surface, #FFFFFF);
  --w2-mist: var(--m2w-mist, #F1F3F7);
  --w2-border: var(--m2w-border, #E5E7EB);
  --w2-control-border: var(--m2w-control-border, #D1D5DB);
  --w2-ink: var(--m2w-ink, #0F172A);
  --w2-muted: var(--m2w-muted, #64748B);
  --w2-primary: var(--m2w-primary, #4F46E5);
  --w2-primary-hover: var(--m2w-primary-hover, #4338CA);
  --w2-primary-ink: var(--m2w-primary-ink, #FFFFFF);
  --w2-indigo-wash: var(--m2w-indigo-wash, #EEF2FF);
  --w2-indigo-border: var(--m2w-indigo-border, #C7D2FE);
  --w2-indigo-ink: var(--m2w-indigo-ink, #3730A3);
  --w2-font-display: var(--m2w-font-display, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
  --w2-font-sans: var(--m2w-font-sans, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
  --w2-font-mono: var(--m2w-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  --w2-r-sm: var(--m2w-r-sm, 10px);
  --w2-r-md: var(--m2w-r-md, 16px);
  --w2-r-pill: var(--m2w-r-pill, 9999px);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: var(--w2-ink);
  font-family: var(--w2-font-sans);
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
}

.m2w2-root *,
.m2w2-root *::before,
.m2w2-root *::after {
  box-sizing: border-box;
}

.m2w2-root [hidden] {
  display: none !important;
}

.m2w2-root :focus-visible {
  outline: 2px solid var(--w2-primary);
  outline-offset: 2px;
}

/* Main 3D Ocean Viewport Stage */
.m2w2-stage {
  position: relative;
  width: 100%;
  height: clamp(290px, 44vh, 372px);
  border-radius: var(--w2-r-md);
  overflow: hidden;
  border: 1px solid var(--w2-border);
  background: #5B8798;
  touch-action: none;
}

.m2w2-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.m2w2-canvas.is-orbiting {
  cursor: grabbing;
}

/* Top HUD Overlay */
.m2w2-hud-top {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  z-index: 4;
}

.m2w2-hud-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.m2w2-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  min-height: 28px;
  border-radius: var(--w2-r-pill);
  background: rgba(15, 36, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.35);
  font-family: var(--w2-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.m2w2-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.m2w2-stat-lbl {
  font-family: var(--w2-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
}

.m2w2-stat-val {
  color: #FFFFFF;
  font-weight: 700;
}

.m2w2-stat-val.is-mint {
  color: #86EFAC;
}

.m2w2-sep {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.22);
}

.m2w2-icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  border-radius: var(--w2-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 36, 48, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F8FAFC;
  font-family: var(--w2-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3);
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.m2w2-icon-btn:hover {
  background: rgba(15, 36, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
}

.m2w2-icon-btn[aria-pressed="true"] {
  background: rgba(79, 70, 229, 0.88);
  border-color: rgba(199, 210, 254, 0.65);
  color: #FFFFFF;
}

/* Bottom floating camera + discovery bar inside stage */
.m2w2-stage-foot {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 4;
  transition: opacity 140ms ease;
}

.m2w2-stage.has-toast .m2w2-stage-foot {
  opacity: 0.25;
}

.m2w2-cam-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: var(--w2-r-pill);
  background: rgba(15, 36, 48, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.m2w2-cam-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #F8FAFC;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m2w2-cam-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.m2w2-disc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--w2-r-pill);
  background: rgba(15, 36, 48, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: #F8FAFC;
  pointer-events: auto;
}

.m2w2-disc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.m2w2-disc-bar {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.m2w2-disc-fill {
  display: block;
  height: 100%;
  background: #86EFAC;
  border-radius: 99px;
  transition: width 220ms ease;
}

/* Floating merge toast */
.m2w2-toast {
  position: absolute;
  left: 50%;
  bottom: 11px;
  transform: translateX(-50%);
  z-index: 8;
  padding: 4px 12px;
  border-radius: var(--w2-r-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: var(--w2-font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: m2w2Pop 140ms ease-out;
}

.m2w2-toast.is-discovery {
  background: #4F46E5;
  border-color: rgba(199, 210, 254, 0.6);
}

/* Atlas 11-Landscape Popover */
.m2w2-atlas-pop {
  position: absolute;
  top: 42px;
  right: 9px;
  width: 244px;
  max-height: calc(100% - 54px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.32);
  padding: 9px 11px;
  z-index: 9;
  color: #0F172A;
}

.m2w2-atlas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #E2E8F0;
}

.m2w2-atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}

.m2w2-atlas-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  color: #94A3B8;
  padding: 2px 4px;
  border-radius: 6px;
}

.m2w2-atlas-item.is-unlocked {
  color: #0F172A;
  font-weight: 600;
  background: #F8FAFC;
}

.m2w2-atlas-l {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m2w2-atlas-num {
  font-family: var(--w2-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
}

.m2w2-atlas-item.is-unlocked .m2w2-atlas-num {
  color: #4F46E5;
}

/* Video Ready Banner */
.m2w2-ready-banner {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 11px;
  border-radius: var(--w2-r-pill);
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.45);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  animation: m2w2Pop 180ms ease-out;
}

.m2w2-ready-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
  flex: 0 0 auto;
}

.m2w2-ready-btn {
  appearance: none;
  border: 0;
  background: #4F46E5;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--w2-r-pill);
  cursor: pointer;
}

.m2w2-ready-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Overlays: Global Leaderboard Top-3 Podium & Game Over */
.m2w2-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.m2w2-card {
  width: 100%;
  max-width: 396px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  background-image: radial-gradient(ellipse 70% 42% at 50% 0%, rgba(251, 191, 36, 0.16), transparent 72%);
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 20px 44px -14px rgba(15, 23, 42, 0.36);
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #0F172A;
  animation: m2w2CardPop 160ms ease-out;
}

.m2w2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m2w2-kicker {
  font-family: var(--w2-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4F46E5;
}

.m2w2-summary {
  font-family: var(--w2-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.m2w2-close-x {
  appearance: none;
  border: 0;
  background: #F1F5F9;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m2w2-lb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 11px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 10px 0;
  overflow: hidden;
}

.m2w2-lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m2w2-lb-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.m2w2-lb-globe {
  color: #2563EB;
  flex: 0 0 auto;
}

.m2w2-lb-head-r {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m2w2-lb-top-tag {
  font-family: var(--w2-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B45309;
}

.m2w2-lb-scopes {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--w2-r-pill);
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

.m2w2-lb-scope {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--w2-r-pill);
  cursor: pointer;
}

.m2w2-lb-scope.is-active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.m2w2-podium {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  align-items: end;
  gap: 7px;
  padding-top: 2px;
}

.m2w2-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.m2w2-pod-medal {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 1px;
}

.m2w2-pod.is-1 .m2w2-pod-medal {
  font-size: 17px;
}

.m2w2-pod-name {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.m2w2-pod.is-1 .m2w2-pod-name {
  font-size: 12px;
  color: #0F172A;
  font-weight: 700;
}

.m2w2-pod.is-me .m2w2-pod-name {
  color: #4F46E5;
}

.m2w2-pod-score {
  font-family: var(--w2-font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 4px;
}

.m2w2-pod.is-1 .m2w2-pod-score {
  font-size: 21px;
  color: #92400E;
}

.m2w2-pod-bar {
  width: 100%;
  border-radius: 7px 7px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--w2-font-mono);
  font-size: 11px;
  font-weight: 700;
}

.m2w2-pod.is-1 .m2w2-pod-bar {
  height: 38px;
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 100%);
  color: #78350F;
  box-shadow: 0 -4px 16px -4px rgba(245, 158, 11, 0.45);
}

.m2w2-pod.is-2 .m2w2-pod-bar {
  height: 29px;
  background: linear-gradient(180deg, #E2E8F0 0%, #94A3B8 100%);
  color: #1E293B;
}

.m2w2-pod.is-3 .m2w2-pod-bar {
  height: 23px;
  background: linear-gradient(180deg, #FED7AA 0%, #C27849 100%);
  color: #431407;
}

.m2w2-lb-foot {
  margin: 0 -10px;
  padding: 5px 10px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  min-height: 29px;
}

.m2w2-lb-me {
  font-weight: 600;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m2w2-lb-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #4F46E5;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 6px;
  cursor: pointer;
}

.m2w2-lb-link:hover {
  background: #EEF2FF;
  color: #3730A3;
}

.m2w2-nick-form {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.m2w2-nick-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 12px;
}

.m2w2-card-acts {
  display: flex;
  gap: 7px;
}

.m2w2-card-acts > button {
  flex: 1 1 0;
}

/* Bottom Studio Dock */
.m2w2-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 7px 10px;
  border-radius: var(--w2-r-sm);
  background: var(--w2-mist);
  border: 1px solid var(--w2-border);
}

.m2w2-dock-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m2w2-dpad {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 9px;
  background: var(--w2-surface);
  border: 1px solid var(--w2-control-border);
}

.m2w2-dir-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--w2-ink);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m2w2-dir-btn:hover {
  background: var(--w2-indigo-wash);
  color: var(--w2-primary);
}

.m2w2-key-hint {
  font-family: var(--w2-font-mono);
  font-size: 11px;
  color: var(--w2-muted);
}

.m2w2-dock-acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m2w2-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid var(--w2-control-border);
  background: var(--w2-surface);
  color: var(--w2-ink);
  font-family: var(--w2-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.m2w2-btn:hover:not(:disabled) {
  border-color: var(--w2-primary);
}

.m2w2-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.m2w2-btn.is-primary {
  background: var(--w2-primary);
  border-color: var(--w2-primary);
  color: var(--w2-primary-ink);
}

.m2w2-btn.is-accent-soft {
  background: var(--w2-indigo-wash);
  border-color: var(--w2-indigo-border);
  color: var(--w2-indigo-ink);
}

.m2w2-btn.is-accent-soft:hover {
  background: var(--w2-primary);
  border-color: var(--w2-primary);
  color: var(--w2-primary-ink);
}

@keyframes m2w2Pop {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes m2w2CardPop {
  from { opacity: 0; transform: scale(0.97) translateY(5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 600px) {
  .m2w2-key-hint {
    display: none;
  }
}


/* ==========================================================================
   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;
  }
}
