/* ======================================================== */
/* CLAUDE DESIGN PROMO VIDEO STYLESHEET                     */
/* Ground-Truth 1:1 Parity with Anthropic Official Launch   */
/* Design Tokens: #F5F3ED / #080A0E / #D97757 / #34D399     */
/* ======================================================== */

:root {
  --bg-stage: #F5F3ED;
  --bg-dark: #080A0E;
  --bg-sidebar: #FAF9F5;
  --bg-tab-bar: #ECEAE4;
  --bg-tab-active: #FFFFFF;
  --border-subtle: #E5E3DC;
  --border-dark: #1F2430;
  --coral-claude: #D97757;
  --coral-hover: #C56546;
  --coral-light: #FBF0EB;
  --emerald-accent: #34D399;
  --emerald-glow: #10B981;
  --text-dark: #18181B;
  --text-muted: #71717A;
  --text-light: #F4F4F5;
  --text-light-muted: #A1A1AA;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Canela, "Playfair Display", Georgia, serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-morph: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #0c0c0e;
  color: var(--text-dark);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* --- CLEAN EXPORT FULL-BLEED MODE (For Headless Video Rendering) --- */
html.clean-export,
body.clean-export {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #000000 !important;
}
body.clean-export .video-toolbar {
  display: none !important;
}
body.clean-export .video-stage-wrapper {
  margin-top: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  width: 1920px !important;
  height: 1080px !important;
}
body.clean-export .video-stage {
  width: 1920px !important;
  height: 1080px !important;
  max-width: 1920px !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.clean-export .s1-expanded-box,
body.clean-export .s1-morph-pill,
body.clean-export .app-window,
body.clean-export .tweaks-popover,
body.clean-export .tweaks-drawer,
body.clean-export .pin-comment-box,
body.clean-export .export-dropdown-card {
  animation: none !important;
}

/* ======================================================== */
/* TOP PLAYBACK CONTROLS & TIMELINE TOOLBAR                 */
/* ======================================================== */
.video-toolbar {
  height: 56px;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.claude-star-icon {
  width: 20px;
  height: 20px;
  color: var(--coral-claude);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.brand-tag {
  font-size: 10px;
  background: #27272a;
  border: 1px solid #3f3f46;
  padding: 2px 7px;
  border-radius: 9999px;
  color: #a1a1aa;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: 620px;
  margin: 0 20px;
}

.btn-ctrl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral-claude);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-ctrl:hover {
  background: var(--coral-hover);
  transform: scale(1.05);
}

.timeline-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#video-scrubber {
  width: 100%;
  accent-color: var(--coral-claude);
  cursor: pointer;
  height: 5px;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: monospace;
  color: #a1a1aa;
}

.scene-indicator {
  color: var(--coral-claude);
  font-family: var(--font-sans);
  font-weight: 500;
}

.speed-selector {
  display: flex;
  background: #27272a;
  border-radius: 6px;
  padding: 2px;
}

.speed-btn {
  background: none;
  border: none;
  color: #a1a1aa;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.speed-btn.active {
  background: #18181b;
  color: #ffffff;
}

.scene-jump-pills {
  display: flex;
  gap: 6px;
}

.pill-btn {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.active, .pill-btn:hover {
  background: var(--coral-claude);
  color: white;
  border-color: var(--coral-claude);
}

/* ======================================================== */
/* MASTER VIDEO VIEWPORT (16:9 1920x1080 RATIO)            */
/* ======================================================== */
.video-stage-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  position: relative;
}

.video-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  background: var(--bg-stage);
  transform-origin: center center;
  overflow: hidden;
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.9);
  flex: none;
}

.scene {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-stage);
}

.scene.active {
  display: flex;
}

.hidden {
  display: none !important;
}

/* ======================================================== */
/* VIRTUAL MOUSE CURSOR OVERLAY                             */
/* ======================================================== */
.virtual-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  z-index: 1000;
  pointer-events: none;
  transform: translate3d(960px, 540px, 0);
  will-change: transform;
}

.virtual-cursor.pressed .cursor-arrow {
  transform: scale(0.88);
  transition: transform 0.05s ease;
}

.cursor-arrow {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  transform-origin: 0 0;
}

.cursor-crosshair {
  font-size: 26px;
  font-weight: 300;
  color: #18181b;
  transform: translate(-50%, -50%);
}

.click-ripple {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--coral-claude);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.click-ripple.active {
  animation: clickRipplePulse 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes clickRipplePulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* ======================================================== */
/* SCENE 1: INITIAL PROMPT (00:00 – 00:12)                  */
/* ======================================================== */
#scene-1 {
  background: var(--bg-stage);
  transition: background 1.2s ease;
}

#scene-1.dark-bg {
  background: var(--bg-dark);
}

.s1-bg-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.s1-bg-globe.revealed {
  opacity: 1;
}

.s1-center-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapsed Pill Button (Specular Gloss & Glint) */
.s1-pill-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDEBE3 100%);
  border: 1px solid rgba(223, 221, 214, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specular Top Cap */
.s1-pill-btn::before {
  content: "";
  position: absolute;
  top: 1px; left: 8px; right: 8px; height: 44%;
  border-radius: 999px 999px 60% 60% / 999px 999px 80% 80%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

/* 105deg Moving Glint Sweep */
.s1-pill-btn::after {
  content: "";
  position: absolute;
  top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: rotate(25deg);
  animation: pillGlintSweep 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes pillGlintSweep {
  0% { transform: translateX(-120px) rotate(25deg); opacity: 0; }
  15% { opacity: 1; }
  35% { transform: translateX(380px) rotate(25deg); opacity: 0; }
  100% { transform: translateX(380px) rotate(25deg); opacity: 0; }
}

.icon-palette {
  width: 20px;
  height: 20px;
  color: #18181B;
}

.pill-label {
  font-size: 16px;
  font-weight: 500;
  color: #18181B;
}

/* Expanded Card (Audio Reactive + Tactile Inset) */
.s1-expanded-box {
  width: 620px;
  min-height: 165px;
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid rgba(223, 221, 214, 0.6);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 0 calc(16px + var(--audio-energy, 0) * 36px) rgba(217, 107, 67, calc(0.08 + var(--audio-energy, 0) * 0.32)),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: s1BoxExpand 0.375s var(--ease-spring) forwards;
  transition: box-shadow 0.08s ease-out;
}

@keyframes s1BoxExpand {
  from { width: 140px; min-height: 48px; border-radius: 24px; opacity: 0.8; }
  to { width: 620px; min-height: 165px; border-radius: 26px; opacity: 1; }
}

.s1-attachments {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.s1-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F3F2EE;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #3F3F46;
}

.s1-badge svg {
  width: 14px;
  height: 14px;
}

.s1-prompt-content {
  flex: 1;
  font-size: 17px;
  line-height: 1.45;
  color: #18181B;
  min-height: 60px;
}

.s1-caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--coral-claude);
  border-radius: 1px;
  vertical-align: middle;
  margin-left: 2px;
  box-shadow: 0 0 8px rgba(217, 119, 87, 0.65);
  animation: s1CaretBreathe 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes s1CaretBreathe {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.12; transform: scaleY(0.88); }
}

.s1-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.s1-left-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s1-tool-sq {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  cursor: pointer;
}

.s1-tool-sq svg {
  width: 16px;
  height: 16px;
}

.s1-import-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  font-size: 13px;
  font-weight: 500;
  color: #3F3F46;
  cursor: pointer;
}

.s1-send-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--coral-claude);
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.s1-send-pill svg {
  width: 14px;
  height: 14px;
}

/* Centered Morphing Pill (Designing... / Editing...) */
.s1-morph-pill {
  height: 64px;
  padding: 0 32px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: s1MorphPill 0.42s var(--ease-morph) forwards;
}

@keyframes s1MorphPill {
  from { width: 620px; min-height: 165px; border-radius: 26px; }
  to { width: 220px; height: 64px; border-radius: 20px; }
}

.s1-claude-star-spin {
  width: 28px;
  height: 28px;
  color: var(--coral-claude);
  transform-origin: center center;
  animation: s1StarSpinGlow 2.4s ease-in-out infinite;
}

@keyframes s1StarSpinGlow {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 8px rgba(217, 119, 87, 0.55)) drop-shadow(0 0 16px rgba(217, 119, 87, 0.3));
  }
  50% {
    transform: rotate(180deg) scale(1.07);
    filter: drop-shadow(0 0 18px rgba(217, 119, 87, 0.95)) drop-shadow(0 0 32px rgba(217, 119, 87, 0.5));
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: drop-shadow(0 0 8px rgba(217, 119, 87, 0.55)) drop-shadow(0 0 16px rgba(217, 119, 87, 0.3));
  }
}

.s1-status-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: #18181B;
}

/* ======================================================== */
/* SCENE 2: FULL CLAUDE APP WORKSPACE & GLOBE (00:12–00:27) */
/* ======================================================== */
.app-window {
  width: 88%;
  height: 90%;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: appWindowReveal 0.65s var(--ease-spring) forwards;
}

@keyframes appWindowReveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Top Browser / Window Tab Bar */
.app-header-bar {
  height: 44px;
  background: var(--bg-tab-bar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px;
  position: relative;
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
}

.control-dot.dot-close {
  background: #FF5F56;
  border: 0.5px solid #E0443E;
}

.control-dot.dot-minimize {
  background: #FFBD2E;
  border: 0.5px solid #DEA123;
}

.control-dot.dot-maximize {
  background: #27C93F;
  border: 0.5px solid #1AAB29;
}

.tab-group-left {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  flex: 1;
}

.window-tab {
  height: 35px;
  padding: 0 12px;
  background: transparent;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #71717A;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: -1px; /* Seamless baseline anchor */
  border: 1px solid transparent;
  border-bottom: none;
}

.window-tab .tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #71717A;
  display: flex;
  align-items: center;
}

.window-tab .tab-icon svg {
  width: 14px;
  height: 14px;
}

.window-tab .tab-close {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  opacity: 0.45;
  transition: opacity 0.15s ease;
  color: #71717A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-tab .tab-close svg {
  width: 10px;
  height: 10px;
}

.window-tab:hover .tab-close {
  opacity: 0.85;
}

.window-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #18181B;
}

.window-tab.active {
  background: #FFFFFF;
  color: #18181B;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-bottom: 1px solid #FFFFFF;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.03);
}

.window-tab.active .tab-icon {
  color: var(--coral-claude);
}

.window-tab.active .tab-close {
  opacity: 0.5;
}

.window-tab.active .tab-close:hover {
  opacity: 1;
  color: #18181B;
}

.tab-divider {
  width: 1px;
  height: 16px;
  background: #D4D2CA;
  margin-bottom: 10px;
}

.tab-sub-label {
  font-size: 12px;
  color: #71717A;
  margin-bottom: 10px;
}

.btn-new-tab {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-new-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #18181B;
}

.btn-new-tab svg {
  width: 14px;
  height: 14px;
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  margin-bottom: 6px;
  position: relative;
}

.btn-share {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #3F3F46;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-share:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-share svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-export-pill {
  background: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn-export-pill:hover {
  background: #27272A;
}

.avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E07A5F;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas Sub-bar / Browser Navigation Toolbar */
.canvas-sub-bar {
  height: 42px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  user-select: none;
}

.nav-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #71717A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.icon-btn:hover {
  background: #F4F4F5;
  color: #18181B;
}

/* Simulated Browser Omnibox / Address Bar */
.browser-address-bar {
  flex: 1;
  max-width: 420px;
  height: 28px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-size: 11.5px;
  color: #71717A;
}

.browser-address-bar .address-lock {
  width: 12px;
  height: 12px;
  color: #10B981;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.browser-address-bar .address-lock svg {
  width: 12px;
  height: 12px;
}

.browser-address-bar .address-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #3F3F46;
}

.canvas-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-pill-coral {
  background: var(--coral-claude);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.tool-sep {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.tool-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #3F3F46;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.tool-btn:hover {
  background: #F4F4F5;
}

.tool-btn.highlight {
  background: #F4F4F5;
  border-color: #E5E3DC;
}

/* Tactile Dial Knob Tick Feedback Popover */
.knob-tick-popover {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 24, 27, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid #3F3F46;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 50;
  animation: knobFadeIn 0.22s var(--ease-spring) forwards;
}

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

.knob-dial-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18181B;
  border: 1.5px solid #52525B;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.knob-dial-pointer {
  position: absolute;
  width: 2px;
  height: 12px;
  background: var(--coral-claude);
  border-radius: 1px;
  top: 3px;
  transform-origin: bottom center;
  transform: rotate(0deg);
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 6px rgba(217, 119, 87, 0.7);
}

.knob-tick-dots {
  position: absolute;
  inset: -4px;
  pointer-events: none;
}

.tick-dot {
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  width: 2px;
  height: 3px;
  background: #71717A;
  border-radius: 1px;
  transform-origin: center 20px;
}

.knob-dial-readout {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #F4F4F5;
  letter-spacing: -0.02em;
}

.zoom-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #71717A;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.zoom-dropdown:hover {
  background: #F4F4F5;
  color: #18181B;
}

.zoom-dropdown .ph-caret-down {
  width: 10px;
  height: 10px;
  display: block;
}

/* App Body (Sidebar + Canvas) */
.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar Pane */
.sidebar-pane {
  width: 340px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-section {
  margin-bottom: 16px;
}

.chat-sender {
  font-size: 12px;
  font-weight: 700;
  color: #18181B;
  margin-bottom: 6px;
}

.chat-bubble-user {
  font-size: 13px;
  line-height: 1.45;
  color: #27272A;
  margin-bottom: 10px;
}

.tool-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0EEE6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #3F3F46;
  margin-bottom: 4px;
}

.progress-card {
  background: #F0EEE6;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}

.progress-header {
  font-size: 12px;
  font-weight: 600;
  color: #18181B;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-header svg {
  width: 14px;
  height: 14px;
  color: #71717A;
}

.progress-list {
  list-style: none;
  font-size: 12px;
  color: #52525B;
}

.progress-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.check-box {
  color: #10B981;
  font-weight: bold;
}

.artifact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0EEE6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #3F3F46;
  margin-bottom: 4px;
  margin-right: 4px;
}

.chat-prose {
  font-size: 12px;
  line-height: 1.5;
  color: #3F3F46;
  margin-top: 10px;
}

.chat-prose ul {
  padding-left: 18px;
  margin-top: 6px;
}

.sidebar-input-box {
  margin: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
}

.sidebar-input-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 12px;
  color: #18181B;
  margin-bottom: 6px;
}

.sidebar-input-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #71717A;
}

.input-icons-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-icon-btn {
  background: none;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.input-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #18181B;
}

.input-icon-btn svg {
  width: 14px;
  height: 14px;
}

.mini-import {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #71717A;
  transition: background 0.15s ease, color 0.15s ease;
}

.mini-import:hover {
  background: #F4F4F5;
  color: #18181B;
}

.mini-import svg {
  width: 11px;
  height: 11px;
}

.mini-send {
  background: #F2A285;
  border: none;
  border-radius: 10px;
  color: white;
  padding: 3px 8px;
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-send svg {
  width: 10px;
  height: 10px;
}

/* Right Canvas Pane */
.canvas-pane {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-dark-canvas {
  background: var(--bg-dark);
}

.bg-cream-canvas {
  background: #F4F2EC;
}

/* Canvas Overlay Headline & Stats */
.globe-overlay-content {
  position: absolute;
  top: 32px;
  left: 36px;
  z-index: 5;
  pointer-events: none;
}

.canela-headline {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.emerald-word {
  color: var(--emerald-accent);
  text-shadow: 0 0 16px rgba(52,211,153,0.5);
}

.headline-sub {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-top: 8px;
  line-height: 1.45;
}

.vertical-metrics {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: #FFFFFF;
}

.metric-lbl {
  font-size: 10px;
  color: #71717A;
  letter-spacing: 0.08em;
  font-weight: 600;
}

#globe-canvas, #s5-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-bottom-link {
  position: absolute;
  bottom: 20px;
  right: 28px;
  color: #71717A;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.canvas-bottom-link:hover {
  color: #18181B;
}

.canvas-bottom-link svg {
  width: 14px;
  height: 14px;
  color: #71717A;
}

/* Floating Tweaks Prompt Popover (14s) */
.tweaks-popover {
  position: absolute;
  top: 48px;
  right: 260px;
  width: 310px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  padding: 14px;
  z-index: 20;
  animation: popoverFade 0.28s var(--ease-spring) forwards;
}

@keyframes popoverFade {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-title {
  font-size: 13px;
  font-weight: 500;
  color: #3F3F46;
  margin-bottom: 8px;
}

.popover-textarea {
  min-height: 48px;
  border: 1.5px solid #F2A285;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #18181B;
}

.s2-popover-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--coral-claude);
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

.popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.btn-cancel {
  background: #F4F4F5;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #3F3F46;
  cursor: pointer;
}

.btn-send-coral {
  background: var(--coral-claude);
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
}

/* Floating Right Tweaks Control Drawer (18s) */
.tweaks-glass-panel {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 250px;
  background: rgba(14, 17, 23, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 16px;
  color: #FFFFFF;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  animation: drawerSlide 0.38s var(--ease-spring) forwards;
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.tweaks-section-checks, .tweaks-footer-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tweaks-group {
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  padding: 10px 0;
  margin-bottom: 12px;
}

.group-hdr {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #71717A;
  margin-bottom: 8px;
}

.tweak-slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #D4D4D8;
  margin-top: 6px;
}

.tweaks-group input[type=range], .floating-tweaks-card input[type=range] {
  width: 100%;
  accent-color: #FFFFFF;
  height: 4px;
  cursor: pointer;
}

/* ======================================================== */
/* SCENE 3: MEDITATION APP WORKSPACE (00:27 – 00:44)         */
/* ======================================================== */
.infinite-grid-layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px;
  background: var(--bg-stage);
  transform-origin: center center;
  animation: infiniteGridZoom 3s ease forwards;
}

@keyframes infiniteGridZoom {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; pointer-events: none; }
}

.grid-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 10px;
}

.phone-frame {
  width: 270px;
  height: 550px;
  background: #FFFFFF;
  border-radius: 44px;
  border: 6px solid #1C1C1E;
  box-shadow: 0 25px 65px rgba(0,0,0,0.32), inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -1px 2px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: background 0.6s ease;
}

.phone-specular-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.06) 35%, rgba(255,255,255,0) 65%);
  pointer-events: none;
  z-index: 25;
  border-radius: 38px 38px 0 0;
}

.phone-frame.moss-active {
  background: linear-gradient(180deg, #E2E8DE 0%, #D3DCD0 100%);
}

.phone-frame.dark-active {
  background: #000000 !important;
  color: #FFFFFF;
}

.phone-top-bar {
  height: 38px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}

.dynamic-island {
  width: 72px;
  height: 18px;
  background: #000000;
  border-radius: 9999px;
}

.phone-icons {
  display: flex;
  gap: 4px;
}

.phone-view {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-screen-hdr h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.month-sub {
  font-size: 11px;
  color: #71717A;
}

.stat-tiles-row {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.stat-tile {
  flex: 1;
  background: #FAF8F5;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}

.stat-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.stat-l {
  font-size: 8px;
  color: #71717A;
  font-weight: 600;
}

.weekly-chart-card {
  background: #FAF8F5;
  border-radius: 10px;
  padding: 10px;
}

.card-hdr-sm {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mini-bars-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 60px;
}

/* 2.5D Extruded Mini Bar (2.5D Bar Pattern) */
.mini-bar {
  width: 14px;
  background: #E8DFCE;
  border-radius: 2px 2px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 8px;
  padding-bottom: 2px;
  color: #71717A;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mini-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 100%; width: 5px; height: 100%;
  background: #D5C7B3;
  transform: skewY(-34deg);
  transform-origin: top left;
  border-radius: 0 2px 0 0;
}

.mini-bar.tall {
  background: #B39B78;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mini-bar.tall::after {
  background: #8F7757;
}

/* Screen View 2: Player Screen */
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.enso-circle-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enso-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.enso-content {
  text-align: center;
  z-index: 2;
}

.enso-time {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  display: block;
}

.enso-rem {
  font-size: 10px;
  color: #71717A;
}

.player-meta {
  text-align: center;
}

.track-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.track-type {
  font-size: 11px;
  color: #71717A;
}

.phone-nav-bar {
  height: 42px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 10px;
  color: #71717A;
}

.p-nav-item.active {
  color: #18181B;
  font-weight: 600;
}

/* Floating Right Tweaks Card */
.floating-tweaks-card {
  position: absolute;
  top: 36px;
  right: 60px;
  width: 250px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t-card-hdr {
  font-size: 11px;
  font-weight: 700;
  color: #71717A;
  letter-spacing: 0.06em;
}

.t-sub-hdr {
  font-size: 10px;
  font-weight: 700;
  color: #A1A1AA;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.theme-swatch-list {
  display: flex;
  gap: 6px;
}

.swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 0;
  cursor: pointer;
}

.swatch-btn.active {
  border-color: #18181B;
}

.swatch-btn.stone { background: #E7E2D8; }
.swatch-btn.moss { background: #9DB49B; }
.swatch-btn.mist { background: #CCD5D9; }
.swatch-btn.clay { background: #D9B89E; }
.swatch-btn.dusk { background: #B3A8C6; }
.swatch-btn.sakura { background: #E4B5B5; }
.swatch-btn.ink { background: #555555; }

/* Dynamic Dark Mode Toggle */
.dark-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.ios-switch {
  width: 38px;
  height: 22px;
  background: #E4E4E7;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.ios-switch.on {
  background: #10B981;
}

.switch-thumb {
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ios-switch.on .switch-thumb {
  transform: translateX(16px);
}

/* Canvas Comment Pin */
.comment-bubble-pin {
  position: absolute;
  top: 180px;
  left: 540px;
  width: 240px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 12px;
  z-index: 30;
  animation: pinDrop 0.32s var(--ease-spring) forwards;
}

@keyframes pinDrop {
  from { opacity: 0; transform: translateY(-10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.comment-pin-hdr {
  font-size: 11px;
  font-weight: 700;
  color: #71717A;
}

.comment-pin-text {
  font-size: 13px;
  font-weight: 500;
  color: #18181B;
  margin: 6px 0;
}

.comment-pin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn-cancel-sm {
  background: #F4F4F5;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: #52525B;
}

.btn-send-sm {
  background: var(--coral-claude);
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: #FFFFFF;
}

/* ======================================================== */
/* SCENE 4: INLINE EDITING & MORPHING CHARTS (00:44–01:03)  */
/* ======================================================== */
.bg-light-spread {
  background: #EDEAE1;
}

.spread-pages-row {
  display: flex;
  gap: 20px;
  padding: 24px;
  height: 100%;
}

.guide-page-cover {
  width: 480px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex;
  overflow: hidden;
}

.cover-hero-image {
  width: 48%;
  background: url('https://images.unsplash.com/photo-1511497584788-87676104235f?w=600&auto=format&fit=crop&q=80') center/cover no-repeat;
  position: relative;
  transition: background-image 0.6s ease;
}

.cover-hero-image.coastline {
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=600&auto=format&fit=crop&q=80');
}

.photo-overlay-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
}

.photo-swap-pin {
  position: absolute;
  top: 40%;
  left: 20%;
  background: #FFFFFF;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cover-content-col {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo-row {
  font-size: 11px;
  font-weight: 600;
  color: #71717A;
}

.offsite-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--coral-claude);
  letter-spacing: 0.08em;
}

.retreat-h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  color: #18181B;
  margin: 6px 0;
  transition: font-size 0.4s ease;
}

.coral-txt {
  color: var(--coral-claude);
}

.retreat-p {
  font-size: 11px;
  line-height: 1.4;
  color: #52525B;
}

.retreat-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 10px;
}

.t-col span {
  display: block;
  color: #A1A1AA;
}

.t-col strong {
  color: #18181B;
}

.guide-page-sched {
  width: 240px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  padding: 20px;
}

.day-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--coral-claude);
}

.guide-page-sched h3 {
  font-size: 14px;
  margin: 6px 0 12px;
}

.sched-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
}

.sched-item strong {
  display: block;
  color: #18181B;
}

.sched-item span {
  color: #71717A;
}

/* Feature Deck & Chart Spline */
.bg-deck-canvas {
  background: #F4F2EC;
}

.deck-slide-container {
  display: flex;
  gap: 24px;
  padding: 30px;
  height: 100%;
}

.slide-card {
  width: 440px;
  height: 320px;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.slide-card.slate-bg {
  background: #5B6D82;
  color: #FFFFFF;
}

.slide-card.white-bg {
  background: #FFFFFF;
  position: relative;
}

.slide-card.selected-slide {
  outline: 2px solid #2563EB;
}

.slide-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.big-metric-stat {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.slide-sub-txt {
  font-size: 13px;
  opacity: 0.9;
}

.growth-badge {
  font-size: 14px;
  font-weight: 600;
}

.morph-svg-chart {
  width: 100%;
  height: 100%;
}

.chart-axis-txt {
  font-size: 10px;
  fill: #A1A1AA;
}

/* ======================================================== */
/* SCENE 5: EXPORT & OUTRO (01:03 – 01:22)                  */
/* ======================================================== */
.export-dropdown-card {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 8px 0;
  z-index: 50;
  display: none;
}

.export-dropdown-card.active {
  display: block;
}

.export-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #18181B;
  cursor: pointer;
}

.export-item:hover, .export-item.highlight {
  background: #F4F4F5;
}

.export-item.highlight {
  font-weight: 600;
}

.item-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  flex-shrink: 0;
}

.item-icon svg {
  width: 16px;
  height: 16px;
}

.cli-handoff-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 16px;
  color: #FFFFFF;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  z-index: 60;
  animation: popoverFade 0.35s var(--ease-spring) forwards;
}

.cli-modal-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.cli-icon-bolt {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #27272A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cli-modal-header h3 {
  font-size: 16px;
}

.cli-modal-header p {
  font-size: 12px;
  color: #A1A1AA;
}

.cli-command-row {
  background: #09090B;
  border: 1px solid #27272A;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.cli-ripple-wave {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.45) 0%, rgba(52, 211, 153, 0.18) 45%, transparent 70%);
  transform: translate(50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease-out;
}

.cli-ripple-wave.active {
  transform: translate(50%, -50%) scale(45);
  opacity: 1;
}

.prompt-sym {
  color: #71717A;
  font-weight: 600;
  user-select: none;
}

.cmd-tokens {
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}

.token-bin {
  color: var(--coral-claude);
  font-weight: 600;
}

.token-sub {
  color: #60A5FA;
  font-weight: 500;
}

.token-act {
  color: #C084FC;
  font-weight: 500;
}

.token-url {
  color: #F4F4F5;
}

.token-proto {
  color: #71717A;
}

.token-host {
  color: #34D399;
}

.token-path {
  color: #FBBF24;
}

.btn-copy-cli {
  background: #27272A;
  border: 1px solid #3F3F46;
  border-radius: 7px;
  padding: 5px 12px;
  color: white;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  transition: all 0.2s ease;
}

.btn-copy-cli:hover {
  background: #3F3F46;
}

.btn-copy-cli.copied {
  background: #059669;
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* 16-Project Montage Zoomout */
.montage-grid-overlay {
  position: absolute;
  inset: 0;
  background: #0B0D0E;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 36px;
  z-index: 40;
  box-sizing: border-box;
  animation: montageZoomOut 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes montageZoomOut {
  0% { transform: scale(1.5); opacity: 0; }
  15% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1.0); opacity: 1; }
}

body.clean-export .montage-grid-overlay {
  animation: none !important;
  transform: scale(1.0) !important;
  opacity: 1 !important;
}

.montage-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #27272A;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 236px;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.montage-card.center-hero {
  border: 2px solid var(--coral-claude);
  box-shadow: 0 10px 32px rgba(217, 119, 87, 0.22);
}

.montage-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.montage-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #E4E4E7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 3;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.montage-badge.hero {
  background: var(--coral-claude);
  color: #FFFFFF;
}

.montage-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #A1A1AA;
}

.montage-badge.hero .montage-badge-dot {
  background: #FFFFFF;
}

.montage-thumb svg.preview-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card Footer */
.montage-card-footer {
  height: 44px;
  padding: 0 12px;
  background: #18181B;
  border-top: 1px solid #27272A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.montage-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.montage-icon {
  width: 15px;
  height: 15px;
  color: #A1A1AA;
  flex-shrink: 0;
}

.center-hero .montage-icon {
  color: var(--coral-claude);
}

.montage-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #F4F4F5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.montage-status {
  font-size: 9.5px;
  font-weight: 500;
  color: #71717A;
  background: #27272A;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.center-hero .montage-status {
  color: var(--coral-claude);
  background: rgba(217, 119, 87, 0.15);
  border: 1px solid rgba(217, 119, 87, 0.3);
}

/* Finale Outro Screen */
.finale-screen {
  position: absolute;
  inset: 0;
  background: #F5F3ED !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
}

.finale-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
  transform-origin: center center;
  will-change: transform, opacity;
}

.finale-star-svg {
  width: 96px;
  height: 96px;
  color: var(--coral-claude);
  animation: finaleStarSpin 6s linear infinite;
  filter: drop-shadow(0 12px 28px rgba(217, 119, 87, 0.28));
}

@keyframes finaleStarSpin {
  100% { transform: rotate(360deg); }
}

.finale-wordmark {
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: 700;
  color: #18181B;
  letter-spacing: -0.02em;
}

/* Phosphor SVG Icon Universal Standard */
.ph-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  fill: currentColor;
  display: inline-block;
}
