/* THE CANVAS (window carousel) */
        .canvas {
            position: fixed; inset: 0;
            z-index: 20;
            overflow: hidden;
            opacity: 0; pointer-events: none;
            transition: opacity 0.6s var(--ease-sheet);
        }
        .canvas.open { opacity: 1; pointer-events: all; }

        .window-track {
            position: relative;
            width: 100%;
            height: 100%;
            perspective: 800px;
            transform-style: preserve-3d;
            transition: background 0.3s ease;
        }
        /* Tablet / Smart glasses landscape */
        @media (min-width: 768px) { .window-track { perspective: 1200px; } }
        /* Apple TV / Desktop */
        @media (min-width: 1280px) { .window-track { perspective: 1600px; } }
        /* Apple Vision Pro / 4K — spatial depth */
        @media (min-width: 1920px) { .window-track { perspective: 2400px; } }

        /* === COLD OPEN — Stark Industries hologram ignition. AGI awakening sequence. === */
        .cold-open {
            position: fixed; inset: 0; z-index: 9999;
            background: radial-gradient(ellipse at center, #0a041a 0%, #04020a 60%, #000 100%);
            display: flex; align-items: center; justify-content: center;
            opacity: 1; pointer-events: auto;
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: opacity;
        }
        .cold-open.dismissed { opacity: 0; pointer-events: none; }
        .cold-open.skipped { display: none; }
        .cold-open-stage {
            position: relative; width: 320px; height: 320px;
            display: flex; align-items: center; justify-content: center;
        }
        .cold-open-singularity {
            position: absolute; top: 50%; left: 50%;
            width: 4px; height: 4px;
            margin: -2px 0 0 -2px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 0 8px 2px rgba(255,255,255,0.9), 0 0 24px 6px rgba(180,140,255,0.6);
            opacity: 0;
            transform: scale(0);
            animation: coSingularityBloom 1100ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
            will-change: transform, opacity;
        }
        @keyframes coSingularityBloom {
            0%   { opacity: 0; transform: scale(0); }
            20%  { opacity: 1; transform: scale(1); }
            70%  { opacity: 1; transform: scale(1.5); }
            100% { opacity: 0; transform: scale(0.6); }
        }
        .cold-open-bloom {
            position: absolute; top: 50%; left: 50%;
            width: 120px; height: 120px;
            margin: -60px 0 0 -60px;
            background: radial-gradient(circle, rgba(180,140,255,0.95) 0%, rgba(140,90,220,0.6) 30%, rgba(90,40,180,0.0) 70%);
            border-radius: 50%;
            opacity: 0;
            transform: scale(0.1);
            animation: coBloomIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) 900ms forwards;
            filter: blur(2px);
            will-change: transform, opacity;
        }
        @keyframes coBloomIn {
            0%   { opacity: 0; transform: scale(0.1); }
            40%  { opacity: 1; transform: scale(1); }
            100% { opacity: 0.85; transform: scale(1.15); }
        }
        .cold-open-ring {
            position: absolute; top: 50%; left: 50%;
            width: 8px; height: 8px;
            margin: -4px 0 0 -4px;
            border-radius: 50%;
            border: 1px solid rgba(180,140,255,0.7);
            box-shadow: 0 0 12px rgba(180,140,255,0.4), inset 0 0 8px rgba(180,140,255,0.2);
            opacity: 0;
            transform: scale(0);
            will-change: transform, opacity;
        }
        .cold-open-ring.r1 { animation: coRingExpand 1600ms cubic-bezier(0.22, 1, 0.36, 1) 500ms forwards; }
        .cold-open-ring.r2 { animation: coRingExpand 1600ms cubic-bezier(0.22, 1, 0.36, 1) 700ms forwards; }
        .cold-open-ring.r3 { animation: coRingExpand 1600ms cubic-bezier(0.22, 1, 0.36, 1) 900ms forwards; }
        @keyframes coRingExpand {
            0%   { opacity: 0; transform: scale(0); }
            20%  { opacity: 1; }
            100% { opacity: 0; transform: scale(40); }
        }
        .cold-open-subtitle {
            position: absolute; left: 50%; top: calc(50% + 110px);
            transform: translateX(-50%);
            font-family: 'Inter', -apple-system, system-ui, sans-serif;
            font-weight: 200;
            font-size: 22px;
            letter-spacing: 0.18em;
            color: rgba(255,255,255,0.92);
            text-shadow: 0 0 20px rgba(180,140,255,0.5);
            white-space: nowrap;
        }
        .co-letter {
            display: inline-block; opacity: 0;
            transform: translateY(8px);
            animation: coLetterIn 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
            will-change: transform, opacity;
        }
        .co-l1  { animation-delay: 1500ms; }  .co-l2  { animation-delay: 1560ms; }
        .co-l3  { animation-delay: 1620ms; }  .co-l4  { animation-delay: 1680ms; }
        .co-l5  { animation-delay: 1740ms; }  .co-l6  { animation-delay: 1800ms; }
        .co-l7  { animation-delay: 1860ms; }  .co-l8  { animation-delay: 1920ms; }
        .co-l9  { animation-delay: 1980ms; }  .co-l10 { animation-delay: 2040ms; }
        .co-l11 { animation-delay: 2100ms; }
        @keyframes coLetterIn {
            0%   { opacity: 0; transform: translateY(8px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce) {
            .cold-open-singularity, .cold-open-bloom, .cold-open-ring,
            .co-letter { animation: none !important; opacity: 1 !important; transform: none !important; }
            .cold-open { transition: opacity 0.2s ease; }
        }

        /* === THINKING STATE — three particles orbiting the heart while LLM computes. AGI tell. === */
        .heart-container.thinking::before,
        .heart-container.thinking::after,
        .heart-container.thinking .think-particle {
            content: ''; position: absolute;
            top: 50%; left: 50%;
            width: 6px; height: 6px;
            margin: -3px 0 0 -3px;
            background: rgba(180,140,255,0.95);
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(180,140,255,0.7);
            animation: thinkOrbit 1.8s linear infinite;
            pointer-events: none;
            will-change: transform;
        }
        .heart-container.thinking::after { animation-delay: -0.6s; opacity: 0.7; }
        .heart-container.thinking .think-particle { animation-delay: -1.2s; opacity: 0.5; }
        @keyframes thinkOrbit {
            0%   { transform: rotate(0deg) translateX(64px) rotate(0deg); }
            100% { transform: rotate(360deg) translateX(64px) rotate(-360deg); }
        }
        @media (prefers-reduced-motion: reduce) {
            .heart-container.thinking::before,
            .heart-container.thinking::after,
            .heart-container.thinking .think-particle { animation: none; }
        }

        /* ══════════════════════════════════════════════════════════════════════
           CINEMATIC FRONTEND WAVE (2056-aesthetic, Jobs-discipline)
           ══════════════════════════════════════════════════════════════════════
           Cursor aura + state-driven screen tint + vignette + film grain +
           text materialization + cinematic breath + tab-wake re-greeting.
           All GPU-accelerated. Respects prefers-reduced-motion. */

        /* Cursor aura — Violet's "eye". Subtle glow that trails the cursor with
           physics-feel lag. Intensifies on hover over interactive elements. */
        .violet-aura {
            position: fixed;
            width: 28px; height: 28px;
            left: 0; top: 0;
            pointer-events: none;
            z-index: 9998;
            background: radial-gradient(circle, rgba(180,140,255,0.35) 0%, rgba(180,140,255,0.1) 45%, transparent 70%);
            border-radius: 50%;
            transform: translate3d(-50px, -50px, 0);
            transition: opacity 0.6s ease, width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
            mix-blend-mode: screen;
            will-change: transform, opacity;
        }
        .violet-aura.ready { opacity: 1; }
        .violet-aura.hot {
            width: 44px; height: 44px;
            background: radial-gradient(circle, rgba(220,180,255,0.55) 0%, rgba(180,140,255,0.18) 45%, transparent 70%);
        }
        .violet-aura.thinking {
            background: radial-gradient(circle, rgba(140,180,255,0.42) 0%, rgba(100,140,220,0.14) 45%, transparent 70%);
        }
        .violet-aura.working {
            background: radial-gradient(circle, rgba(255,200,130,0.45) 0%, rgba(220,160,100,0.15) 45%, transparent 70%);
        }
        @media (hover: none), (prefers-reduced-motion: reduce) {
            .violet-aura { display: none; }
        }

        /* State-driven screen tint — entire body subtly shifts color based on state.
           Default deep violet, shifts toward warmer amber during working state,
           deeper blue during thinking, warm green on success flash. */
        body {
            transition: background-color 0.9s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body.vio-state-thinking::before,
        body.vio-state-working::before,
        body.vio-state-speaking::before,
        body.vio-state-success::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.8s ease;
            mix-blend-mode: overlay;
        }
        body.vio-state-thinking::before {
            background: radial-gradient(ellipse at center, rgba(80,120,220,0.08) 0%, transparent 70%);
            opacity: 1;
        }
        body.vio-state-working::before {
            background: radial-gradient(ellipse at center, rgba(255,180,100,0.10) 0%, transparent 70%);
            opacity: 1;
        }
        body.vio-state-speaking::before {
            background: radial-gradient(ellipse at center, rgba(200,160,255,0.09) 0%, transparent 70%);
            opacity: 1;
        }
        body.vio-state-success::before {
            background: radial-gradient(ellipse at center, rgba(140,230,180,0.12) 0%, transparent 70%);
            opacity: 1;
        }

        /* Vignette + film grain — instant cinematic quality. */
        .violet-vignette {
            position: fixed; inset: 0;
            pointer-events: none;
            z-index: 9000;
            background: radial-gradient(ellipse at center,
                transparent 40%,
                rgba(0,0,0,0.12) 75%,
                rgba(0,0,0,0.35) 100%);
        }
        .violet-grain {
            position: fixed; inset: 0;
            pointer-events: none;
            z-index: 9001;
            opacity: 0.035;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
            background-size: 200px 200px;
            animation: grainShift 0.24s steps(3) infinite;
            mix-blend-mode: overlay;
        }
        @keyframes grainShift {
            0%, 100% { transform: translate(0, 0); }
            33%      { transform: translate(-4px, 3px); }
            66%      { transform: translate(3px, -4px); }
        }
        @media (prefers-reduced-motion: reduce) {
            .violet-grain { animation: none; }
        }

        /* JARVIS persistent status line — monospace, scanline-lit, always visible
           beneath the heart (or near the dock). Auto-updates from state. */
        .violet-jarvis-line {
            position: fixed;
            left: 50%;
            top: calc(50% + 80px);
            transform: translateX(-50%);
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.22em;
            color: rgba(220,200,255,0.60);
            padding: 3px 10px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.4s ease, color 0.6s ease, letter-spacing 0.4s ease;
            pointer-events: none;
            z-index: 8400;
            text-shadow: 0 0 10px rgba(180,140,255,0.35);
            user-select: none;
        }
        .violet-jarvis-line.visible { opacity: 1; }
        .violet-jarvis-line.listening { color: rgba(180,240,220,0.75); }
        .violet-jarvis-line.thinking { color: rgba(180,200,255,0.80); letter-spacing: 0.28em; }
        .violet-jarvis-line.working  { color: rgba(255,210,160,0.82); }
        .violet-jarvis-line.speaking { color: rgba(220,180,255,0.85); }
        .violet-jarvis-line.success  { color: rgba(180,230,200,0.85); }
        .violet-jarvis-line::before { content: '› '; opacity: 0.55; }

        /* Text materialization — words fade in sequentially when Violet speaks.
           Applied to transcript text via a class. */
        .vio-materialize > .vio-word {
            opacity: 0;
            display: inline-block;
            transform: translateY(2px);
            animation: vioWordIn 0.26s cubic-bezier(0.2, 1, 0.3, 1) forwards;
        }
        @keyframes vioWordIn {
            0%   { opacity: 0; transform: translateY(2px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce) {
            .vio-materialize > .vio-word { animation: none; opacity: 1; transform: none; }
        }

        /* Cinematic breath — when idle, EVERYTHING breathes together. */
        body.vio-idle-breath .ambient-orb {
            animation: vioBreath 4.2s ease-in-out infinite;
        }
        body.vio-idle-breath .violet-icon {
            animation: vioBreath 4.2s ease-in-out infinite;
            animation-delay: 0.8s;
        }
        body.vio-idle-breath .violet-jarvis-line {
            animation: vioBreathLine 4.2s ease-in-out infinite;
        }
        @keyframes vioBreath {
            0%, 100% { filter: brightness(0.96); }
            50%      { filter: brightness(1.06); }
        }
        @keyframes vioBreathLine {
            0%, 100% { text-shadow: 0 0 8px rgba(180,140,255,0.30); }
            50%      { text-shadow: 0 0 14px rgba(180,140,255,0.55); }
        }
        @media (prefers-reduced-motion: reduce) {
            body.vio-idle-breath .ambient-orb,
            body.vio-idle-breath .violet-icon,
            body.vio-idle-breath .violet-jarvis-line { animation: none; }
        }

        /* Tab-wake re-greeting — when tab becomes visible, heart does a soft pulse. */
        .violet-icon.vio-tab-wake {
            animation: vioTabWake 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes vioTabWake {
            0%   { transform: scale(1); filter: brightness(1); }
            25%  { transform: scale(1.06); filter: brightness(1.3); }
            100% { transform: scale(1); filter: brightness(1); }
        }

        /* === JARVIS HUD — Intent Lock-On Chip. Materializes the moment Hermes classifies an intent,
              before the panel emerges. Holographic label with scan-line, dissolves into the panel. === */
        .jarvis-chip {
            position: fixed;
            left: 50%;
            top: calc(50% - 120px);
            transform: translate(-50%, 0) scale(0.9);
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.25em;
            color: rgba(220, 200, 255, 0.95);
            padding: 6px 14px 6px 18px;
            background: linear-gradient(90deg, rgba(180,140,255,0.15) 0%, rgba(180,140,255,0.05) 100%);
            border: 1px solid rgba(180,140,255,0.45);
            border-left: 2px solid rgba(180,140,255,0.95);
            border-radius: 2px;
            box-shadow: 0 0 12px rgba(180,140,255,0.35), inset 0 0 8px rgba(180,140,255,0.08);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            z-index: 9000;
            will-change: transform, opacity;
            text-shadow: 0 0 8px rgba(180,140,255,0.6);
        }
        .jarvis-chip::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(180,140,255,0.25) 50%, transparent 100%);
            opacity: 0;
            pointer-events: none;
        }
        .jarvis-chip.lockon {
            animation: jarvisChipLockOn 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        .jarvis-chip.lockon::before {
            animation: jarvisChipScan 800ms linear forwards;
        }
        @keyframes jarvisChipLockOn {
            0%   { opacity: 0; transform: translate(-50%, 6px) scale(0.85); }
            18%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
            70%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -8px) scale(0.95); }
        }
        @keyframes jarvisChipScan {
            0%   { opacity: 0; transform: translateX(-100%); }
            20%  { opacity: 1; }
            80%  { opacity: 1; }
            100% { opacity: 0; transform: translateX(100%); }
        }

        /* === JARVIS HUD — Active Status Badge. Persistent low-key indicator showing what panel
              Violet is currently attending to. Like JARVIS's status overlay during suit-up. === */
        .jarvis-active-badge {
            display: none !important; /* Jobs rule 2026-04-18: don't label what the user is already looking at. */
            position: fixed;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.22em;
            color: rgba(220, 200, 255, 0.85);
            padding: 5px 12px 5px 22px;
            background: rgba(20, 10, 40, 0.55);
            border: 1px solid rgba(180,140,255,0.28);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            z-index: 8500;
            transition: opacity 0.3s ease;
            text-shadow: 0 0 6px rgba(180,140,255,0.4);
        }
        .jarvis-active-badge::before {
            content: '';
            position: absolute;
            left: 9px; top: 50%;
            transform: translateY(-50%);
            width: 7px; height: 7px;
            border-radius: 50%;
            background: rgba(140, 230, 180, 0.95);
            box-shadow: 0 0 8px rgba(140, 230, 180, 0.7);
            animation: jarvisActiveDot 1.6s ease-in-out infinite;
        }
        .jarvis-active-badge.visible { opacity: 1; }
        @keyframes jarvisActiveDot {
            0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
            50%      { opacity: 1; transform: translateY(-50%) scale(1.2); }
        }
        @media (prefers-reduced-motion: reduce) {
            .jarvis-chip.lockon,
            .jarvis-chip.lockon::before,
            .jarvis-active-badge::before { animation: none; }
            .jarvis-chip.lockon { opacity: 1; }
        }

        /* === CELEBRATION ENGINE — balloons, fireworks, confetti, hearts.
              Pixar-grade visuals + Web Audio synth sounds. Memory-aware when wired.
              GPU-accelerated, capped particles, auto-cleanup. No external assets. === */
        .violet-celebrate-canvas {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 10000;
            opacity: 1;
            mix-blend-mode: screen;
        }
        .violet-balloon-layer {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 10001;
            overflow: hidden;
        }
        .violet-balloon {
            position: absolute;
            width: 60px;
            height: 76px;
            border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
            background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 18%, transparent 38%),
                        radial-gradient(circle at 50% 50%, var(--bcolor1, #b48cff) 0%, var(--bcolor2, #6e3ddc) 100%);
            box-shadow: inset -8px -12px 18px rgba(0,0,0,0.18),
                        0 0 24px rgba(180,140,255,0.35);
            transform-origin: 50% 100%;
            will-change: transform, opacity;
            opacity: 0;
            animation: balloonRise var(--brise, 6s) cubic-bezier(0.42, 0, 0.58, 1) forwards,
                       balloonWobble 2.4s ease-in-out infinite;
        }
        .violet-balloon::after {
            content: '';
            position: absolute;
            left: 50%; top: 100%;
            width: 1px; height: 80px;
            background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
            transform-origin: 50% 0%;
            animation: balloonString 2.4s ease-in-out infinite;
        }
        @keyframes balloonRise {
            0%   { opacity: 0; transform: translate(0, 20vh) scale(0.85); }
            8%   { opacity: 1; }
            85%  { opacity: 1; }
            100% { opacity: 0; transform: translate(var(--bdrift, 30px), -120vh) scale(1); }
        }
        @keyframes balloonWobble {
            0%, 100% { filter: hue-rotate(0deg); }
            50%      { filter: hue-rotate(8deg) brightness(1.05); }
        }
        @keyframes balloonString {
            0%, 100% { transform: rotate(-2deg); }
            50%      { transform: rotate(2deg); }
        }
        @media (prefers-reduced-motion: reduce) {
            .violet-balloon { animation: balloonRiseSimple 2.5s linear forwards; }
            @keyframes balloonRiseSimple {
                0%   { opacity: 0; transform: translate(0, 0); }
                30%  { opacity: 1; }
                100% { opacity: 0; transform: translate(0, -30vh); }
            }
        }

        /* === ORIGIN-BOUND PANEL MOTION — panels physically emerge from the heart (Pillar 3 + Magic #9).
              Duration tuned to 280ms to stay well under the 200ms perception bar for "responsive"
              while still reading as cinematic. First paint is frame 1 (~16ms); the full animation
              completes inside Apple HIG's "responsive" window. No blur filter — GPU-expensive on
              mid-range devices and not needed at this duration. === */
        .window-slide.from-heart {
            animation: slideFromHeart 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes slideFromHeart {
            0%   { opacity: 0; transform: scale(0.06); }
            40%  { opacity: 1; }
            100% { opacity: 1; transform: scale(1); }
        }
        /* Pillar 3 — panel collapses BACK INTO the heart. Inverse of slideFromHeart:
           same cubic-bezier inverted (ease-IN where open was ease-OUT), slightly shorter
           duration so the close never feels draggy. transform-origin is set inline in JS
           to the heart's current bounding-box center. This makes the panel visibly live
           "inside Violet" — it came from her, it returns to her. */
        .window-slide.to-heart {
            animation: slideToHeart 240ms cubic-bezier(0.7, 0, 0.84, 0) forwards;
        }
        @keyframes slideToHeart {
            0%   { opacity: 1; transform: scale(1); }
            60%  { opacity: 0.85; }
            100% { opacity: 0; transform: scale(0.06); }
        }
        @media (prefers-reduced-motion: reduce) {
            .window-slide.from-heart, .window-slide.to-heart { animation: none; opacity: 1; transform: none; }
        }

        .window-slide {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            overflow-y: auto;
            padding: 70px 20px 130px;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 24px;
            -webkit-overflow-scrolling: touch;
            /* Fast GPU-composited transitions */
            transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.3s ease,
                        filter 0.3s ease;
            transform-origin: center center;
            will-change: transform, opacity;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            -webkit-transform: translate3d(0,0,0);
        }
        /* Tablet+ */
        @media (min-width: 768px) { .window-slide { padding: 70px 40px 130px; } }
        /* TV / Vision Pro — TV-safe area margins */
        @media (min-width: 1280px) { .window-slide { padding: 80px 60px 140px; } }
        @media (min-width: 1920px) { .window-slide { padding: 100px 120px 160px; } }

        /* Car displays — high contrast, larger text, minimal animation */
        @media (display-mode: fullscreen) and (max-height: 900px) and (min-width: 1000px) {
            .window-slide { padding: 40px 30px 80px; }
            .work-card { font-size: 18px; }
        }
        .window-slide::-webkit-scrollbar { width: 6px; }
        .window-slide::-webkit-scrollbar-track { background: transparent; }
        .window-slide::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
        .window-slide.closing {
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
            transform: translateY(-120%) scale(0.85) !important;
            opacity: 0 !important;
        }
        .window-slide.minimizing {
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
            transform: translateY(120%) scale(0.3) !important;
            opacity: 0 !important;
        }

        /* Cover Flow reflection on cards */
        .work-card {
            -webkit-box-reflect: below 4px -webkit-linear-gradient(bottom, rgba(255,255,255,0.08) 0%, transparent 35%);
        }

        /* Window dots indicator */
        .window-dots {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 30;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .canvas.open ~ .window-dots { opacity: 1; pointer-events: all; }
        .window-dot {
            width: 7px; height: 7px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            cursor: pointer;
        }
        .window-dot.active {
            width: 22px;
            border-radius: 4px;
            background: var(--accent);
        }

        /* Cover Flow label (below active item) */
        .cf-label {
            position: fixed;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            z-index: 31;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        /* Minimized dock */
        .window-dock {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 30;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .window-dock:not(:empty) { opacity: 1; pointer-events: all; }
        .dock-item {
            width: 48px; height: 48px;
            border-radius: 14px;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.25s var(--ease);
            position: relative;
        }
        .dock-item:hover {
            background: rgba(255,255,255,0.14);
            transform: translateY(-4px) scale(1.08);
        }
        .dock-item-label {
            position: absolute;
            top: -22px;
            font-size: 10px;
            color: var(--label-3);
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }
        .dock-item:hover .dock-item-label { opacity: 1; }

        /* TV/Vision Pro — scale navigation controls */
        @media (min-width: 1280px) {
            .window-dot { width: 10px; height: 10px; }
            .window-dot.active { width: 32px; border-radius: 6px; }
            .window-dots { gap: 8px; bottom: 120px; }
            .dock-item { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
            .dock-item-label { font-size: 12px; top: -28px; }
            .cf-label { bottom: 150px; }
        }
        @media (min-width: 1920px) {
            .window-dot { width: 12px; height: 12px; }
            .window-dot.active { width: 40px; border-radius: 8px; }
            .window-dots { gap: 10px; bottom: 140px; }
            .dock-item { width: 80px; height: 80px; border-radius: 22px; font-size: 32px; }
            .dock-item-label { font-size: 14px; top: -32px; }
            .cf-label { bottom: 170px; }
        }

        /* Drag handle on cards */
        .window-drag-handle {
            width: 36px; height: 4px;
            border-radius: 2px;
            background: rgba(255,255,255,0.15);
            margin: 10px auto 6px;
            cursor: grab;
        }
        .window-drag-handle:active { cursor: grabbing; }

        .canvas-close {
            /* Jobs: Close lives below the mode-bar, only visible when a canvas
               is actually open. No collision, no always-on chrome. */
            position: fixed; top: 62px; right: 18px;
            height: 30px; padding: 0 14px;
            border-radius: 15px; border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            color: var(--label-2); font-size: 11px; font-weight: 500;
            letter-spacing: 0.02em;
            font-family: var(--font);
            cursor: pointer; z-index: 54;
            display: flex; align-items: center; justify-content: center; gap: 5px;
            transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.18s ease;
            opacity: 0; pointer-events: none;
            transform: translateY(-4px);
        }
        .canvas.open ~ .canvas-close { opacity: 1; pointer-events: all; transform: translateY(0); }
        .canvas-close:hover { background: rgba(255,255,255,0.14); color: var(--label); border-color: rgba(255,255,255,0.15); }
        .canvas-close:active { transform: scale(0.95); }

        /* WORK CARDS */
        .work-card {
            width: 100%; max-width: 560px;
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--separator);
            border-radius: 16px; overflow: hidden;
            opacity: 0; transform: scale(0.9) translateY(20px);
            animation: cardBloom 0.6s var(--ease-sheet) forwards;
            will-change: transform, opacity;
        }
        /* Apple TV — wider cards for 10-foot UI */
        @media (min-width: 1280px) {
            .work-card { max-width: 720px; border-radius: 20px; }
            .work-card-header { padding: 20px 28px 16px; gap: 14px; }
            .work-card-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
            .work-card-title { font-size: 18px; }
            .work-card-sub { font-size: 13px; }
            .work-card-body { padding: 20px 28px 28px; font-size: 16px; }
            .work-item { padding: 18px 0; }
            .work-item-title { font-size: 16px; }
            .work-item-sender { font-size: 13px; }
        }
        /* Apple Vision Pro — spacious cards for spatial computing */
        @media (min-width: 1920px) {
            .work-card { max-width: 900px; border-radius: 24px; }
            .work-card-header { padding: 24px 36px 20px; gap: 16px; }
            .work-card-icon { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
            .work-card-title { font-size: 22px; }
            .work-card-sub { font-size: 15px; }
            .work-card-body { padding: 24px 36px 36px; font-size: 18px; line-height: 1.8; }
            .work-item { padding: 22px 0; }
            .work-item-title { font-size: 18px; }
            .work-item-sender { font-size: 14px; }
        }
        @keyframes cardBloom { to { opacity: 1; transform: scale(1) translateY(0); } }

        .work-card-header {
            padding: 16px 20px 12px;
            border-bottom: 1px solid var(--separator);
            display: flex; align-items: center; gap: 10px;
        }
        .work-card-icon {
            width: 32px; height: 32px; border-radius: 8px;
            background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(168,85,247,0.1));
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; flex-shrink: 0;
        }
        .work-card-meta { flex: 1; min-width: 0; }
        .work-card-title {
            font-size: 14px; font-weight: 600;
            letter-spacing: -0.01em; color: var(--label);
        }
        .work-card-sub { font-size: 11px; color: var(--label-3); margin-top: 1px; }
        .work-card-status {
            font-size: 10px; font-weight: 600;
            text-transform: uppercase; letter-spacing: 0.05em;
            color: var(--accent-light);
            opacity: 0; transition: opacity 0.3s ease;
        }
        .work-card-status.active { opacity: 1; }
        .work-card-body {
            padding: 16px 20px 20px;
            font-size: 13.5px; line-height: 1.7;
            color: var(--label-2); min-height: 120px;
        }

        .typing-cursor {
            display: inline-block; width: 2px; height: 1em;
            background: var(--accent); margin-left: 2px;
            animation: blink 0.8s ease-in-out infinite;
            vertical-align: text-bottom;
        }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

        .work-item {
            padding: 14px 0;
            border-bottom: 1px solid var(--separator);
            opacity: 0; transform: translateY(8px);
            animation: itemFadeIn 0.3s var(--ease) forwards;
        }
        .work-item:last-child { border-bottom: none; }
        @keyframes itemFadeIn { to { opacity: 1; transform: translateY(0); } }

        .work-item-sender { font-size: 11px; color: var(--label-3); margin-bottom: 4px; }
        .work-item-title { font-size: 13px; font-weight: 600; color: var(--label); }
        .work-item-preview {
            font-size: 12.5px; color: var(--label-2); margin-top: 4px;
            display: -webkit-box; -webkit-line-clamp: 2;
            -webkit-box-orient: vertical; overflow: hidden;
        }

        .cal-item {
            padding: 12px 14px;
            border-left: 3px solid var(--accent);
            background: rgba(139,92,246,0.04);
            border-radius: 0 10px 10px 0;
            opacity: 0; transform: translateX(-12px);
            animation: calSlideIn 0.4s var(--ease-spring) forwards;
        }
        @keyframes calSlideIn { to { opacity: 1; transform: translateX(0); } }
        .cal-time { font-size: 11px; color: var(--label-3); margin-bottom: 3px; }
        .cal-title { font-size: 13px; font-weight: 600; color: var(--label); }
        .cal-with { font-size: 12px; color: var(--label-2); margin-top: 2px; }

        .draft-text {
            font-size: 14px; line-height: 1.8;
            color: var(--label); white-space: pre-wrap;
        }

        .work-card-done {
            display: flex; align-items: center; justify-content: center;
            gap: 6px; padding: 10px 20px;
            border-top: 1px solid var(--separator);
            font-size: 12px; color: var(--accent-light);
            opacity: 0; transition: opacity 0.4s ease;
        }
        .work-card-done.visible { opacity: 1; }

        /* VIOLET SEARCH BRANDING */
        .violet-search-bar {
            display: flex; align-items: center; gap: 10px;
            padding: 12px 16px;
            background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(168,85,247,0.04));
            border: 1px solid rgba(139,92,246,0.2);
            border-radius: 14px;
            margin-bottom: 12px;
        }
        .violet-search-bar input {
            flex: 1; background: none; border: none; outline: none;
            color: var(--label); font-size: 14px; font-family: inherit;
        }
        .violet-search-bar input::placeholder { color: var(--label-3); }
        .violet-search-btn {
            padding: 6px 16px; border-radius: 10px;
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            color: white; font-size: 12px; font-weight: 600;
            cursor: pointer; border: none; font-family: inherit;
            transition: all 0.2s ease;
        }
        .violet-search-btn:hover { filter: brightness(1.15); transform: scale(1.02); }
        .violet-search-chip {
            padding: 5px 12px; border-radius: 20px;
            font-size: 11px; cursor: pointer;
            transition: all 0.2s ease; border: none; font-family: inherit;
        }
        .violet-search-chip.active {
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            color: white;
        }
        .violet-search-chip:not(.active) {
            background: rgba(255,255,255,0.06);
            color: var(--label-3);
        }
        .violet-search-chip:hover:not(.active) { background: rgba(255,255,255,0.1); }
        .vs-result-title {
            color: #c4b5fd !important;
            cursor: pointer;
            transition: color 0.15s ease;
        }
        .vs-result-title:hover { color: #a78bfa !important; text-decoration: underline; }

        /* GOOGLE BRANDING */
        .google-search-bar {
            display: flex; align-items: center; gap: 10px;
            padding: 12px 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 24px;
            margin-bottom: 12px;
            transition: border-color 0.2s ease;
        }
        .google-search-bar:focus-within { border-color: rgba(66,133,244,0.5); }
        .google-search-bar input {
            flex: 1; background: none; border: none; outline: none;
            color: var(--label); font-size: 14px; font-family: inherit;
        }
        .google-btn {
            padding: 6px 16px; border-radius: 20px;
            background: #4285f4; color: white;
            font-size: 12px; font-weight: 500;
            cursor: pointer; border: none; font-family: inherit;
            transition: all 0.2s ease;
        }
        .google-btn:hover { background: #3367d6; }
        .google-chip {
            padding: 5px 12px; border-radius: 20px;
            font-size: 11px; cursor: pointer;
            transition: all 0.2s ease; border: none; font-family: inherit;
        }
        .google-chip.active { background: #4285f4; color: white; }
        .google-chip:not(.active) { background: rgba(255,255,255,0.06); color: var(--label-3); }
        .google-chip:hover:not(.active) { background: rgba(255,255,255,0.1); }
        .g-result { padding: 14px 0; border-bottom: 1px solid var(--separator); }
        .g-result:last-child { border-bottom: none; }
        .g-result-url { font-size: 12px; color: #bdc1c6; margin-bottom: 2px; }
        .g-result-title {
            font-size: 14px; font-weight: 500; color: #8ab4f8;
            cursor: pointer; transition: all 0.15s ease;
        }
        .g-result-title:hover { text-decoration: underline; }
        .g-result-snippet { font-size: 12.5px; color: var(--label-2); margin-top: 4px; line-height: 1.5; }

        /* INLINE PAGE VIEWER */
        .inline-viewer-wrap {
            width: 100%; border-radius: 10px; overflow: hidden;
            border: 1px solid var(--separator);
        }
        .inline-viewer-toolbar {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 12px;
            background: rgba(255,255,255,0.04);
            border-bottom: 1px solid var(--separator);
        }
        .viewer-back-btn {
            display: flex; align-items: center; gap: 4px;
            padding: 4px 10px; border-radius: 6px;
            background: rgba(255,255,255,0.08);
            color: var(--accent-light); font-size: 11px;
            cursor: pointer; border: none; font-family: inherit;
            transition: all 0.15s ease;
        }
        .viewer-back-btn:hover { background: rgba(255,255,255,0.14); }
        .viewer-url-bar {
            flex: 1; font-size: 11px; color: var(--label-3);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .inline-viewer {
            width: 100%; height: 60vh; min-height: 400px;
            border: none; background: white;
        }

        @keyframes windowClose {
            to { transform: translateY(-100%) scale(0.85); opacity: 0; }
        }

        /* MENU */
        .menu-badge {
            position: absolute; top: -4px; right: -4px;
            min-width: 16px; height: 16px; border-radius: 8px;
            background: var(--pink);
            color: white; font-size: 10px; font-weight: 600;
            font-family: var(--font);
            display: flex; align-items: center; justify-content: center;
            padding: 0 4px;
            opacity: 0; transform: scale(0);
            transition: all 0.3s var(--ease-spring); z-index: 2;
        }
        .menu-badge.visible { opacity: 1; transform: scale(1); }

        .menu-dropdown {
            position: fixed; top: 72px; left: 24px;
            width: 260px;
            background: var(--glass);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid var(--separator);
            border-radius: 12px;
            z-index: 35; overflow: hidden;
            opacity: 0; transform: translateY(-8px) scale(0.96);
            transition: all 0.2s var(--ease);
            pointer-events: none;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        }
        .menu-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
        .menu-header {
            padding: 12px 16px 8px;
            font-size: 11px; font-weight: 600;
            color: var(--label-3);
            text-transform: uppercase; letter-spacing: 0.05em;
        }
        .menu-item {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 16px;
            cursor: pointer; transition: background 0.1s ease;
            border: none; background: none;
            width: 100%; text-align: left; font-family: var(--font);
        }
        .menu-item:hover { background: rgba(255,255,255,0.06); }
        .menu-item-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
        .menu-item-text { flex: 1; min-width: 0; }
        .menu-item-title {
            font-size: 13px; font-weight: 500; color: var(--label);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .menu-item-sub { font-size: 11px; color: var(--label-3); margin-top: 1px; }
        .menu-empty { padding: 20px 16px; text-align: center; color: var(--label-3); font-size: 12px; }

        /* RESPONSIVE */
        @media (max-width: 600px) {
            .violet-icon { width: 100px; height: 100px; border-radius: 24px; }
            .violet-icon .heart { font-size: 44px; }
            .title { font-size: 18px; }
            .transcript { bottom: 80px; }
            .canvas { padding: 72px 16px 32px; gap: 16px; }
            .stage.presence .violet-icon { width: 36px; height: 36px; border-radius: 10px; }
            .stage.presence .violet-icon .heart { font-size: 18px; }
            .stage.presence .title { font-size: 13px; }
            .stage.presence .transcript { max-width: 80%; }
        }

        /* VIOLET MINI — Floating pill widget ("the other heart") */
        .violet-mini {
            position: fixed; bottom: 24px; right: 24px;
            display: none; align-items: center; gap: 10px;
            padding: 14px 20px 14px 16px;
            background: rgba(20,10,30,0.85);
            backdrop-filter: blur(24px) saturate(1.5);
            -webkit-backdrop-filter: blur(24px) saturate(1.5);
            border: 1px solid rgba(139,92,246,0.3);
            border-radius: 22px; cursor: pointer;
            z-index: 10000;
            transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
            box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 15px rgba(139,92,246,0.15);
        }
        .violet-mini.visible { display: flex; }
        .violet-mini:hover {
            background: rgba(30,15,45,0.9);
            border-color: rgba(139,92,246,0.5);
            box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 20px rgba(139,92,246,0.25);
            transform: translateY(-2px);
        }
        .violet-mini .mini-heart {
            width: 36px; height: 36px;
            background: linear-gradient(145deg, #7c3aed, #a78bfa);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; box-shadow: 0 2px 8px rgba(139,92,246,0.3);
            flex-shrink: 0;
        }
        .violet-mini .mini-info { display: flex; flex-direction: column; gap: 2px; }
        .violet-mini .mini-name { font-size: 13px; font-weight: 600; color: #e5e7eb; letter-spacing: 0.02em; }
        .violet-mini .mini-status { font-size: 11px; color: #a78bfa; letter-spacing: 0.03em; }
        .violet-mini .mini-actions { display: flex; gap: 6px; margin-left: 8px; }
        .violet-mini .mini-btn {
            width: 32px; height: 32px; border-radius: 50%;
            border: 1px solid rgba(139,92,246,0.25);
            background: rgba(139,92,246,0.1); color: #c4b5fd;
            font-size: 14px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.2s ease;
        }
        .violet-mini .mini-btn:hover { background: rgba(139,92,246,0.25); border-color: rgba(139,92,246,0.5); }
        .violet-mini.dragover {
            border-color: rgba(139,92,246,0.7);
            background: rgba(40,20,60,0.95);
            box-shadow: 0 0 30px rgba(139,92,246,0.4), 0 0 60px rgba(139,92,246,0.15);
        }
        .violet-mini.sleeping { opacity: 0.5; border-color: rgba(139,92,246,0.15); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
        .violet-mini.sleeping:hover { opacity: 0.8; }
        .violet-mini.standby .mini-heart { animation: miniPulse 3s ease-in-out infinite; }
        @keyframes miniPulse {
            0%, 100% { box-shadow: 0 2px 8px rgba(139,92,246,0.3); }
            50% { box-shadow: 0 2px 12px rgba(139,92,246,0.5), 0 0 16px rgba(139,92,246,0.2); }
        }

        /* MINIMIZE BUTTON */
        .minimize-btn {
            position: fixed; top: 20px; right: 20px;
            width: 36px; height: 36px; border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.4); font-size: 18px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 100;
            transition: all 0.2s ease; backdrop-filter: blur(10px);
        }
        .minimize-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

        /* SLEEP BUTTON */
        /* Home connect buttons — honest empty-state affordance when no real smart-home devices are linked. Jobs rule: no fake demo devices. */
        .home-connect-btn {
            padding: 7px 14px;
            border-radius: 999px;
            background: rgba(139, 92, 246, 0.10);
            border: 1px solid rgba(139, 92, 246, 0.28);
            color: rgba(226, 232, 240, 0.9);
            font-family: var(--font);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease;
        }
        .home-connect-btn:hover { background: rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.45); }

        /* Mode bar — Jobs doctrine 2026-04-18. Pills surface ONLY when their
           action is actionable. One pill in Listening ("Standby"), two in
           Standby ("Wake" + "Away"), one in Away ("Wake"). Always top-right. */
        .mode-bar {
            position: fixed;
            top: 18px;
            right: 18px;
            display: flex;
            gap: 8px;
            align-items: center;
            z-index: 55;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
        }
        .mode-bar.visible { opacity: 1; transform: translateY(0); }
        .mode-pill {
            padding: 7px 16px;
            border-radius: 999px;
            background: rgba(139, 92, 246, 0.10);
            border: 1px solid rgba(139, 92, 246, 0.28);
            color: rgba(226, 232, 240, 0.88);
            font-family: var(--font);
            font-size: 11px;
            letter-spacing: 0.06em;
            font-weight: 600;
            text-transform: uppercase;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
        }
        .mode-pill:hover { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.45); }
        .mode-pill:active { transform: scale(0.96); }
        .mode-pill--active {
            background: rgba(167, 139, 250, 0.22);
            border-color: rgba(167, 139, 250, 0.55);
            color: #E2D5FF;
        }
        .mode-pill--active:hover { background: rgba(167, 139, 250, 0.32); }
        /* Mode-scoped heart treatment */
        .stage.mode-standby .violet-icon { filter: grayscale(0.3) brightness(0.75); }
        .stage.mode-away .violet-icon { filter: grayscale(0.6) brightness(0.45); }
        .stage.mode-standby .waveform, .stage.mode-away .waveform { opacity: 0.2; }
        /* Legacy .sleep-btn rule chain kept for any residual reference */
        .sleep-btn {
            position: fixed; top: 20px; right: 68px;
            display: flex; align-items: center; gap: 6px;
            padding: 8px 14px; border-radius: 20px;
            border: 1px solid rgba(139,92,246,0.3);
            background: rgba(139,92,246,0.1);
            color: var(--accent-light); font-size: 12px; font-weight: 700;
            letter-spacing: 0.06em; cursor: pointer;
            z-index: 100; transition: all 0.25s ease;
            backdrop-filter: blur(10px);
        }
        .sleep-btn:hover { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.5); }
        .sleep-btn .sleep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); animation: dotPulse 2s ease-in-out infinite; }
        @keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
        .sleep-btn.standby { border-color: rgba(240,200,70,0.4); background: rgba(240,200,70,0.12); color: #F0C846; }
        .sleep-btn.standby:hover { background: rgba(240,200,70,0.2); border-color: rgba(240,200,70,0.6); }
        .sleep-btn.standby .sleep-dot { background: #F0C846; animation: dotPulse 3s ease-in-out infinite; }

        /* SLEEP STATE */
        .stage.sleeping .violet-icon { opacity: 0.4; filter: grayscale(0.3); animation: none !important; }
        .stage.sleeping .state-label { color: rgba(167,139,250,0.5) !important; }
        .stage.sleeping .waveform { opacity: 0.3; }
        .stage.sleeping .ambient { opacity: 0.08; }

        /* MINIMIZED STATE */
        body.minimized #stage { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
        body.minimized .status-ticker { opacity: 0; pointer-events: none; }
        body.minimized #canvas { opacity: 0; pointer-events: none; }
        body.minimized #canvasClose { opacity: 0; pointer-events: none; }
        body.minimized .minimize-btn { display: none; }
        body.minimized .sleep-btn { display: none; }
        body.minimized .hint { display: none; }

        /* ══════ CINEMATIC PRESENCE MODE ══════ */

        /* Canvas ambient particle field */
        .canvas.open::before {
            content: '';
            position: fixed; inset: 0; z-index: -1;
            background:
                radial-gradient(1.5px 1.5px at 10% 20%, rgba(139,92,246,0.4), transparent),
                radial-gradient(1px 1px at 25% 60%, rgba(168,85,247,0.25), transparent),
                radial-gradient(2px 2px at 45% 15%, rgba(124,58,237,0.3), transparent),
                radial-gradient(1px 1px at 65% 80%, rgba(139,92,246,0.2), transparent),
                radial-gradient(1.5px 1.5px at 80% 35%, rgba(168,85,247,0.35), transparent),
                radial-gradient(1px 1px at 90% 70%, rgba(124,58,237,0.2), transparent),
                radial-gradient(2px 2px at 15% 85%, rgba(167,139,250,0.25), transparent),
                radial-gradient(1px 1px at 55% 45%, rgba(196,181,253,0.15), transparent);
            animation: ambientDrift 30s ease-in-out infinite;
            pointer-events: none; opacity: 0;
            transition: opacity 0.8s ease;
        }
        .canvas.open::before { opacity: 1; }
        @keyframes ambientDrift {
            0% { transform: translate3d(0,0,0) scale(1); }
            33% { transform: translate3d(15px,-20px,0) scale(1.02); }
            66% { transform: translate3d(-10px,-5px,0) scale(0.98); }
            100% { transform: translate3d(0,0,0) scale(1); }
        }

        /* Canvas atmospheric fog */
        .canvas.open::after {
            content: ''; position: fixed; inset: 0; z-index: -1;
            background:
                radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 0% 100%, rgba(124,58,237,0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 50%, rgba(168,85,247,0.04) 0%, transparent 50%);
            pointer-events: none;
            animation: fogPulse 8s ease-in-out infinite;
        }
        @keyframes fogPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

        /* ══════ CINEMATIC CARD REVEAL ══════ */
        .work-card {
            animation: cardCinematic 0.45s cubic-bezier(0.16,1,0.3,1) forwards !important;
            transform-style: preserve-3d;
            position: relative;
        }
        @keyframes cardCinematic {
            0% { opacity: 0; transform: scale(0.88) translateY(40px) rotateX(6deg); filter: blur(6px) brightness(1.8); }
            50% { opacity: 1; transform: scale(1.01) translateY(-3px) rotateX(0); filter: blur(0) brightness(1.15); }
            100% { opacity: 1; transform: scale(1) translateY(0) rotateX(0); filter: blur(0) brightness(1); }
        }

        /* Card glow burst on entrance */
        .work-card::before {
            content: ''; position: absolute; inset: -2px;
            border-radius: 18px;
            background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(168,85,247,0.2), rgba(124,58,237,0.1));
            z-index: -1; opacity: 0;
            animation: glowBurst 1.2s ease-out forwards;
            filter: blur(12px);
        }
        @keyframes glowBurst {
            0% { opacity: 0.8; transform: scale(0.95); }
            30% { opacity: 0.5; transform: scale(1.02); }
            100% { opacity: 0; transform: scale(1.05); }
        }

        /* HUD scanning line */
        .work-card::after {
            content: ''; position: absolute; left: 0; right: 0; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), rgba(168,85,247,0.4), transparent);
            z-index: 10; pointer-events: none;
            animation: hudScan 2s ease-in-out forwards;
            box-shadow: 0 0 8px rgba(139,92,246,0.3), 0 0 24px rgba(139,92,246,0.1);
        }
        @keyframes hudScan {
            0% { top: 0; opacity: 0; }
            5% { opacity: 1; }
            95% { opacity: 0.6; }
            100% { top: 100%; opacity: 0; }
        }

        /* ══════ CARD SCENE BACKGROUNDS ══════ */
        .work-card[data-scene="inbox"] {
            background: linear-gradient(145deg, rgba(30,20,60,0.95), rgba(15,12,35,0.98)) !important;
            border-color: rgba(139,92,246,0.15) !important;
        }
        .work-card[data-scene="calendar"] {
            background: linear-gradient(165deg, rgba(30,40,80,0.95), rgba(20,15,50,0.98) 50%, rgba(45,20,60,0.95)) !important;
            border-color: rgba(99,102,241,0.15) !important;
        }
        .work-card[data-scene="code"] {
            background: linear-gradient(160deg, rgba(13,17,23,0.98), rgba(22,27,34,0.95)) !important;
            border-color: rgba(48,54,61,0.5) !important;
        }
        .work-card[data-scene="code"] .work-card-icon {
            background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(22,163,74,0.1)) !important;
        }
        .work-card[data-scene="code"]::before {
            background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(22,163,74,0.1)) !important;
        }
        .work-card[data-scene="draft"] {
            background: linear-gradient(150deg, rgba(25,20,45,0.95), rgba(18,15,35,0.98)) !important;
            border-color: rgba(167,139,250,0.12) !important;
        }
        .work-card[data-scene="research"] {
            background: linear-gradient(155deg, rgba(20,25,60,0.95), rgba(25,15,50,0.98) 50%, rgba(15,20,45,0.95)) !important;
            border-color: rgba(99,102,241,0.2) !important;
        }
        .work-card[data-scene="home"] {
            background: linear-gradient(160deg, rgba(15,20,30,0.98), rgba(20,15,35,0.95)) !important;
            border-color: rgba(245,158,11,0.15) !important;
        }
        .work-card[data-scene="home"] .work-card-icon {
            background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(234,179,8,0.1)) !important;
        }
        .work-card[data-scene="shopping"] {
            background: linear-gradient(155deg, rgba(25,15,30,0.95), rgba(30,15,25,0.98)) !important;
            border-color: rgba(236,72,153,0.15) !important;
        }
        .work-card[data-scene="music"] {
            background: linear-gradient(135deg, rgba(30,10,50,0.98), rgba(50,15,60,0.95) 50%, rgba(25,20,55,0.95)) !important;
            border-color: rgba(168,85,247,0.2) !important;
        }
        .work-card[data-scene="navigation"] {
            background: linear-gradient(160deg, rgba(10,25,30,0.98), rgba(15,30,25,0.95)) !important;
            border-color: rgba(34,197,94,0.15) !important;
        }
        .work-card[data-scene="navigation"] .work-card-icon {
            background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(22,163,74,0.1)) !important;
        }
        .work-card[data-scene="document"] {
            background: linear-gradient(150deg, rgba(20,18,40,0.98), rgba(25,20,50,0.95)) !important;
            border-color: rgba(96,165,250,0.12) !important;
        }
        .work-card[data-scene="search"] {
            background: linear-gradient(145deg, rgba(20,15,40,0.95), rgba(15,12,35,0.98)) !important;
            border-color: rgba(139,92,246,0.18) !important;
        }
        .work-card[data-scene="weather-clear"] {
            background: linear-gradient(180deg, #1a3a6b 0%, #2563eb 30%, #60a5fa 70%, #fbbf24 100%) !important;
            border-color: rgba(96,165,250,0.2) !important;
        }
        .work-card[data-scene="weather-rain"] {
            background: linear-gradient(180deg, #1e293b 0%, #334155 40%, #475569 100%) !important;
            border-color: rgba(148,163,184,0.2) !important;
        }
        .work-card[data-scene="weather-night"] {
            background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%) !important;
            border-color: rgba(129,140,248,0.15) !important;
        }
        .work-card[data-scene="weather-cloudy"] {
            background: linear-gradient(180deg, #374151 0%, #4b5563 40%, #6b7280 100%) !important;
            border-color: rgba(156,163,175,0.15) !important;
        }
        .work-card[data-scene="imagegen"] {
            background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, #7c3aed 100%) !important;
            border-color: rgba(167,139,250,0.2) !important;
        }
        .work-card[data-scene="videogen"] {
            background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%) !important;
            border-color: rgba(129,140,248,0.2) !important;
        }
        .work-card[data-scene="vision"] {
            background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #065f46 100%) !important;
            border-color: rgba(52,211,153,0.2) !important;
        }

        /* Scene ambient glow inside card */
        .scene-glow {
            position: absolute; inset: 0; border-radius: 16px;
            pointer-events: none; z-index: 0; opacity: 0.5;
        }
        .scene-glow.inbox { background: radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.15), transparent 60%); }
        .scene-glow.calendar { background: radial-gradient(ellipse at 20% 80%, rgba(96,165,250,0.12), transparent 60%); }
        .scene-glow.code { background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.1), transparent 50%); }
        .scene-glow.music { background: radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.15), transparent 60%); }
        .scene-glow.navigation { background: radial-gradient(ellipse at 30% 70%, rgba(34,197,94,0.12), transparent 50%); }
        .scene-glow.weather { background: radial-gradient(ellipse at 50% 20%, rgba(250,204,21,0.15), transparent 60%); }
        .scene-glow.research { background: radial-gradient(ellipse at 60% 30%, rgba(99,102,241,0.12), transparent 55%); }
        .scene-glow.home { background: radial-gradient(ellipse at 40% 60%, rgba(245,158,11,0.1), transparent 55%); }
        .scene-glow.shopping { background: radial-gradient(ellipse at 70% 40%, rgba(236,72,153,0.1), transparent 55%); }
        .scene-glow.imagegen { background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.15), transparent 60%); }
        .scene-glow.videogen { background: radial-gradient(ellipse at 50% 30%, rgba(99,102,241,0.12), transparent 55%); }
        .scene-glow.vision { background: radial-gradient(ellipse at 40% 50%, rgba(52,211,153,0.12), transparent 55%); }

        /* ══════ JARVIS-STYLE STATUS ══════ */
        .status-ticker.visible::before {
            content: '';
            display: inline-block; width: 8px; height: 8px;
            border-radius: 50%; background: var(--accent);
            margin-right: 8px; vertical-align: middle;
            animation: statusPulse 1.5s ease-in-out infinite;
            box-shadow: 0 0 6px rgba(139,92,246,0.5);
        }
        @keyframes statusPulse {
            0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(139,92,246,0.5); }
            50% { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 12px rgba(139,92,246,0.8); }
        }

        /* Activity ring on card icon while working — breathes like the heart */
        .icon-ring {
            position: absolute; inset: -3px;
            border-radius: 11px;
            border: 1.5px solid rgba(139,92,246,0.4);
            box-shadow: 0 0 8px rgba(139,92,246,0.2);
            animation: iconPulse 2.5s ease-in-out infinite;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .icon-ring.active { opacity: 1; }
        @keyframes iconPulse {
            0%,100% { transform: scale(1); border-color: rgba(139,92,246,0.4); box-shadow: 0 0 8px rgba(139,92,246,0.2); }
            50% { transform: scale(1.08); border-color: rgba(139,92,246,0.7); box-shadow: 0 0 16px rgba(139,92,246,0.4); }
        }

        /* ══════ ENHANCED ITEM ANIMATIONS ══════ */
        .work-item {
            animation: itemReveal 0.2s cubic-bezier(0.16,1,0.3,1) forwards !important;
            transform-origin: left center;
        }
        @keyframes itemReveal {
            0% { opacity: 0; transform: translateX(-12px) scale(0.97); filter: blur(2px); }
            100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
        }
        .cal-item {
            animation: calReveal 0.2s cubic-bezier(0.16,1,0.3,1) forwards !important;
        }
        @keyframes calReveal {
            0% { opacity: 0; transform: translateX(-16px); filter: blur(2px); }
            100% { opacity: 1; transform: translateX(0); filter: blur(0); }
        }

        /* ══════ PRESENCE HEART ENERGY AURA ══════ */
        .stage.presence .violet-icon::after {
            content: ''; position: absolute; inset: -8px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
            animation: heartAura 3s ease-in-out infinite;
            pointer-events: none;
        }
        @keyframes heartAura {
            0%,100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.15); opacity: 0.8; }
        }

        /* ══════ WEATHER EFFECTS ══════ */
        .weather-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 16px; }
        .rain-drop {
            position: absolute; width: 1.5px;
            background: linear-gradient(to bottom, transparent, rgba(148,163,184,0.6));
            animation: rainFall linear infinite; opacity: 0.5;
        }
        @keyframes rainFall {
            0% { transform: translateY(-20px); opacity: 0; }
            10% { opacity: 0.5; }
            90% { opacity: 0.5; }
            100% { transform: translateY(500px); opacity: 0; }
        }
        .sun-glow {
            position: absolute; top: -40%; right: -25%;
            width: 260px; height: 260px; border-radius: 50%;
            background: radial-gradient(circle, rgba(250,204,21,0.35), rgba(251,191,36,0.15) 35%, rgba(251,146,60,0.05) 60%, transparent 75%);
            animation: sunPulse 5s ease-in-out infinite;
            filter: blur(2px);
        }
        @keyframes sunPulse { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
        .weather-stars {
            position: absolute; inset: 0; pointer-events: none; border-radius: 16px;
            background-image:
                radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.6), transparent),
                radial-gradient(1.5px 1.5px at 40% 15%, rgba(255,255,255,0.4), transparent),
                radial-gradient(1px 1px at 65% 35%, rgba(255,255,255,0.5), transparent),
                radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,0.3), transparent),
                radial-gradient(1.5px 1.5px at 30% 45%, rgba(255,255,255,0.4), transparent),
                radial-gradient(1px 1px at 70% 55%, rgba(255,255,255,0.3), transparent);
            animation: starTwinkle 5s ease-in-out infinite;
        }
        @keyframes starTwinkle { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
        .cloud {
            position: absolute;
            background: rgba(255,255,255,0.06);
            border-radius: 50px; filter: blur(8px);
            animation: cloudDrift linear infinite;
        }
        @keyframes cloudDrift { 0% { transform: translateX(-120%); } 100% { transform: translateX(500px); } }

        /* Weather temp display — glassmorphic */
        .weather-temp {
            font-size: 72px; font-weight: 100;
            letter-spacing: -4px; color: white;
            text-shadow: 0 2px 30px rgba(0,0,0,0.25), 0 0 80px rgba(255,255,255,0.1);
            line-height: 1; margin: 4px 0;
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
        }
        .weather-emoji {
            font-size: 36px; margin-bottom: 2px;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
        }
        .weather-cond {
            font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.9);
            margin-bottom: 2px; letter-spacing: 0.3px;
        }
        .weather-loc {
            font-size: 22px; font-weight: 600; color: white;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 10px rgba(0,0,0,0.2);
        }
        .weather-hi-lo {
            font-size: 15px; color: rgba(255,255,255,0.75);
            margin-top: 2px; letter-spacing: 1px;
        }
        /* Weather detail row — glassmorphic pills */
        .weather-details {
            display: flex; gap: 8px; justify-content: center;
            margin-top: 14px; flex-wrap: wrap;
        }
        .weather-detail-pill {
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 20px; padding: 8px 14px;
            display: flex; align-items: center; gap: 6px;
            font-size: 12px; color: rgba(255,255,255,0.8);
            transition: all 0.3s ease;
        }
        .weather-detail-pill:hover {
            background: rgba(255,255,255,0.14);
            border-color: rgba(255,255,255,0.2);
        }
        .weather-detail-pill .pill-icon { font-size: 14px; }
        .weather-detail-pill .pill-val { font-weight: 600; color: white; }
        .weather-hourly {
            display: flex; gap: 0; justify-content: space-between;
            padding: 14px 4px; margin-top: 14px;
            border-top: 1px solid rgba(255,255,255,0.08);
            overflow-x: auto; scrollbar-width: none;
        }
        .weather-hourly::-webkit-scrollbar { display: none; }
        .weather-hour {
            display: flex; flex-direction: column; align-items: center; gap: 5px;
            min-width: 50px; font-size: 11px; color: rgba(255,255,255,0.6);
        }
        .weather-hour-temp { font-weight: 600; color: white; font-size: 13px; }
        .weather-hour-icon { font-size: 18px; }
        .weather-hour.now-hour .weather-hour-temp { color: #a78bfa; }
        .weather-hour.now-hour span:first-child { color: #a78bfa; font-weight: 600; }

        /* Weather mobile — keep it legible and touchable on small screens */
        @media (max-width: 540px) {
            .weather-temp { font-size: 64px; letter-spacing: -3px; }
            .weather-temp .temp-sub { font-size: 0.38em !important; }
            .weather-cond { font-size: 14px; }
            .weather-hi-lo { font-size: 12px; line-height: 1.5; }
            .weather-details { gap: 6px; }
            .weather-detail-pill { font-size: 12px; padding: 7px 10px; }
            .weather-hourly { padding: 14px 0; scroll-snap-type: x mandatory; }
            .weather-hour { min-width: 58px; scroll-snap-align: start; }
        }

        /* ══════ MUSIC VISUALIZER ══════ */
        .music-visualizer {
            display: flex; align-items: flex-end; justify-content: center;
            gap: 3px; height: 40px; margin-top: 16px;
        }
        .music-bar {
            width: 4px; border-radius: 2px;
            background: linear-gradient(to top, var(--accent), #ec4899);
            animation: musicBounce ease-in-out infinite;
            transform-origin: bottom;
        }
        @keyframes musicBounce {
            0%,100% { height: 8px; }
            50% { height: var(--bar-h, 32px); }
        }

        /* ══════ NAVIGATION ROUTE ══════ */
        .route-path {
            height: 3px;
            background: linear-gradient(90deg, var(--accent), #22c55e);
            border-radius: 2px; margin: 12px 0;
            position: relative; overflow: hidden;
        }
        .route-path::after {
            content: ''; position: absolute; top: 0; left: 0;
            width: 30%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
            animation: routeShimmer 2s ease-in-out infinite;
        }
        @keyframes routeShimmer { 0% { left: -30%; } 100% { left: 130%; } }
        .gps-pulse {
            width: 12px; height: 12px; border-radius: 50%;
            background: #22c55e; position: relative; display: inline-block;
        }
        .gps-pulse::before {
            content: ''; position: absolute; inset: -6px;
            border-radius: 50%; border: 2px solid rgba(34,197,94,0.4);
            animation: gpsPing 2s ease-out infinite;
        }
        @keyframes gpsPing { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

        /* ══════ CODE MATRIX BACKGROUND ══════ */
        .code-matrix {
            position: absolute; inset: 0; overflow: hidden;
            pointer-events: none; border-radius: 16px; opacity: 0.06;
        }
        .matrix-col {
            position: absolute; top: -20%;
            font-family: ui-monospace, monospace; font-size: 10px;
            color: #22c55e; writing-mode: vertical-lr;
            animation: matrixFall linear infinite; white-space: nowrap;
        }
        @keyframes matrixFall { 0% { transform: translateY(-100%); } 100% { transform: translateY(500px); } }

        /* ══════ SHIMMER SKELETON ══════ */
        .shimmer {
            background: linear-gradient(90deg,
                rgba(255,255,255,0.03) 25%,
                rgba(255,255,255,0.08) 50%,
                rgba(255,255,255,0.03) 75%);
            background-size: 200% 100%;
            animation: shimmerSlide 1.5s ease-in-out infinite;
            border-radius: 8px;
        }
        @keyframes shimmerSlide { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* ══════ DONE CHECKMARK REVEAL ══════ */
        .work-card-done.visible { animation: doneReveal 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
        @keyframes doneReveal { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }

        /* ══════ GPU PERFORMANCE ══════ */
        .canvas, .work-card, .window-slide { will-change: transform, opacity; -webkit-font-smoothing: antialiased; }

        /* ══════ REDUCED MOTION ══════ */
        @media (prefers-reduced-motion: reduce) {
            .work-card, .work-item, .cal-item { animation-duration: 0.01ms !important; }
            .canvas.open::before, .canvas.open::after { animation: none !important; }
            .work-card::before, .work-card::after { animation: none !important; }
            .rain-drop, .cloud, .sun-glow, .music-bar { animation: none !important; }
        }

        /* ====== VIOLET DOCS — Document Editor ====== */
        .vdocs {
            display: flex; flex-direction: column;
            height: 100%; min-height: 400px;
            font-family: var(--font);
        }
        .vdocs-toolbar {
            display: flex; align-items: center; gap: 2px;
            padding: 8px 12px;
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0; flex-wrap: wrap;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.3s forwards;
        }
        @keyframes vdocsFadeIn { to { opacity: 1; } }
        .vdocs-toolbar-group {
            display: flex; align-items: center; gap: 2px;
            padding-right: 8px; margin-right: 8px;
            border-right: 1px solid rgba(255,255,255,0.06);
        }
        .vdocs-toolbar-group:last-child { border-right: none; margin-right: 0; padding-right: 0; }
        .vdocs-btn {
            width: 32px; height: 28px;
            display: flex; align-items: center; justify-content: center;
            border: none; border-radius: 6px;
            background: transparent; color: rgba(255,255,255,0.5);
            font-size: 13px; font-weight: 600;
            cursor: pointer; transition: all 0.15s ease;
            font-family: var(--font);
        }
        .vdocs-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }
        .vdocs-btn.active { background: rgba(139,92,246,0.15); color: #a78bfa; }
        .vdocs-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
        .vdocs-pages {
            flex: 1; overflow-y: auto; overflow-x: hidden;
            padding: 24px 16px; scroll-behavior: smooth;
        }
        .vdocs-pages::-webkit-scrollbar { width: 4px; }
        .vdocs-pages::-webkit-scrollbar-track { background: transparent; }
        .vdocs-pages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
        .vdocs-page {
            position: relative;
            max-width: 680px; margin: 0 auto 32px;
            min-height: 500px; padding: 48px 48px 64px;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.02);
            opacity: 0; transform: translateY(12px);
            animation: vdocsPageIn 0.5s var(--ease-sheet) forwards;
        }
        @keyframes vdocsPageIn { to { opacity: 1; transform: translateY(0); } }
        .vdocs-page-num {
            position: absolute; bottom: 16px; right: 20px;
            font-size: 11px; color: rgba(255,255,255,0.15);
            font-variant-numeric: tabular-nums;
        }
        .vdocs-editor {
            outline: none; min-height: 200px;
            font-size: 15px; line-height: 1.8;
            color: rgba(255,255,255,0.85);
            caret-color: #a78bfa;
            word-wrap: break-word;
        }
        .vdocs-editor:empty::before {
            content: 'Start writing, or ask Violet...';
            color: rgba(255,255,255,0.15);
            pointer-events: none;
        }
        .vdocs-editor h1 { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0 0 16px; color: var(--label); }
        .vdocs-editor h2 { font-size: 22px; font-weight: 600; line-height: 1.4; margin: 24px 0 12px; color: var(--label); }
        .vdocs-editor h3 { font-size: 17px; font-weight: 600; line-height: 1.5; margin: 20px 0 8px; color: rgba(255,255,255,0.9); }
        .vdocs-editor p { margin: 0 0 12px; }
        .vdocs-editor ul, .vdocs-editor ol { margin: 0 0 12px; padding-left: 24px; }
        .vdocs-editor li { margin-bottom: 4px; }
        .vdocs-editor blockquote {
            margin: 16px 0; padding: 12px 20px;
            border-left: 3px solid rgba(139,92,246,0.4);
            background: rgba(139,92,246,0.04);
            border-radius: 0 8px 8px 0;
            color: rgba(255,255,255,0.7);
        }
        .vdocs-editor strong { color: var(--label); }
        .vdocs-cursor {
            display: inline-block; width: 2px; height: 1.1em;
            background: #a78bfa; vertical-align: text-bottom; margin-left: 1px;
            animation: vdocsBlink 0.6s ease-in-out infinite;
            box-shadow: 0 0 8px rgba(139,92,246,0.5);
        }
        @keyframes vdocsBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
        .vdocs-status {
            display: flex; align-items: center; justify-content: space-between;
            padding: 6px 16px;
            background: rgba(255,255,255,0.02);
            border-top: 1px solid rgba(255,255,255,0.04);
            font-size: 11px; color: rgba(255,255,255,0.25);
            flex-shrink: 0;
        }
        .vdocs-status-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: rgba(255,255,255,0.15);
            margin-right: 6px; display: inline-block;
        }
        .vdocs-status-dot.writing {
            background: #a78bfa;
            animation: vdocsDotPulse 1.5s ease-in-out infinite;
        }
        @keyframes vdocsDotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
        @media (max-width: 600px) {
            .vdocs-page { padding: 24px 20px 40px; min-height: 300px; }
            .vdocs-editor { font-size: 14px; }
            .vdocs-editor h1 { font-size: 22px; }
            .vdocs-editor h2 { font-size: 18px; }
            .vdocs-toolbar { padding: 6px 8px; }
        }

        /* ═══ COWORK — Video Call ═══ */
        .cowork {
            display: flex; flex-direction: column;
            height: 100%; min-height: 400px;
            font-family: var(--font);
            background: #0a0a0f;
        }
        .cowork-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 10px 16px;
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.2s forwards;
        }
        .cowork-title {
            font-size: 14px; font-weight: 600;
            color: rgba(255,255,255,0.85);
            letter-spacing: 0.01em;
        }
        .cowork-timer {
            font-size: 12px; color: rgba(255,255,255,0.35);
            font-variant-numeric: tabular-nums;
        }
        .cowork-grid {
            flex: 1; display: grid; gap: 8px; padding: 12px;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            align-content: center; overflow: hidden;
        }
        .cowork-tile {
            position: relative;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            min-height: 180px;
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
            opacity: 0; transform: scale(0.95);
            animation: coworkTileIn 0.5s var(--ease-sheet) forwards;
        }
        .cowork-tile:nth-child(1) { animation-delay: 0.2s; }
        .cowork-tile:nth-child(2) { animation-delay: 0.35s; }
        .cowork-tile:nth-child(3) { animation-delay: 0.5s; }
        @keyframes coworkTileIn { to { opacity: 1; transform: scale(1); } }
        .cowork-tile video {
            width: 100%; height: 100%;
            object-fit: cover; border-radius: 12px;
        }
        .cowork-tile-label {
            position: absolute; bottom: 10px; left: 12px;
            font-size: 12px; font-weight: 500;
            color: rgba(255,255,255,0.85);
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(8px);
            padding: 3px 10px; border-radius: 6px;
        }
        .cowork-tile-mic {
            position: absolute; bottom: 10px; right: 12px;
            width: 24px; height: 24px; border-radius: 50%;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(8px);
            display: flex; align-items: center; justify-content: center;
        }
        .cowork-tile-mic svg { width: 12px; height: 12px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 2; }
        .cowork-tile-mic.muted svg { stroke: #ef4444; }
        .cowork-violet-avatar {
            width: 72px; height: 72px;
            border-radius: 50%;
            background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 24px rgba(139,92,246,0.3);
            animation: coworkVioletPulse 3s ease-in-out infinite;
        }
        .cowork-violet-avatar.speaking {
            box-shadow: 0 0 40px rgba(139,92,246,0.6);
            animation: coworkVioletSpeak 0.8s ease-in-out infinite;
        }
        @keyframes coworkVioletPulse { 0%,100% { box-shadow: 0 0 24px rgba(139,92,246,0.3); } 50% { box-shadow: 0 0 32px rgba(139,92,246,0.5); } }
        @keyframes coworkVioletSpeak { 0%,100% { transform: scale(1); box-shadow: 0 0 40px rgba(139,92,246,0.6); } 50% { transform: scale(1.06); box-shadow: 0 0 56px rgba(139,92,246,0.8); } }
        .cowork-violet-avatar svg { width: 36px; height: 36px; fill: white; }
        .cowork-controls {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            padding: 14px 16px;
            background: rgba(255,255,255,0.03);
            border-top: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.5s forwards;
        }
        .cowork-ctrl {
            width: 44px; height: 44px;
            display: flex; align-items: center; justify-content: center;
            border: none; border-radius: 50%;
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.7);
            cursor: pointer; transition: all 0.2s ease;
        }
        .cowork-ctrl:hover { background: rgba(255,255,255,0.12); color: #fff; }
        .cowork-ctrl.active { background: rgba(139,92,246,0.2); color: #a78bfa; }
        .cowork-ctrl.danger { background: rgba(239,68,68,0.15); color: #ef4444; }
        .cowork-ctrl.danger:hover { background: rgba(239,68,68,0.3); }
        .cowork-ctrl.off { background: rgba(239,68,68,0.12); color: #ef4444; }
        .cowork-ctrl svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
        .cowork-status {
            text-align: center;
            padding: 6px 0 0;
            font-size: 11px; color: rgba(255,255,255,0.25);
        }
        .cowork-notes {
            position: absolute; top: 8px; right: 8px;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 10px 14px;
            max-width: 220px; max-height: 200px;
            overflow-y: auto; font-size: 11px;
            color: rgba(255,255,255,0.6);
            line-height: 1.5;
        }
        .cowork-notes-title {
            font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.06em;
            color: rgba(139,92,246,0.7);
            margin-bottom: 6px;
        }
        @media (max-width: 600px) {
            .cowork-grid { grid-template-columns: 1fr; padding: 8px; }
            .cowork-tile { min-height: 140px; }
            .cowork-violet-avatar { width: 56px; height: 56px; }
            .cowork-ctrl { width: 38px; height: 38px; }
        }

        /* ── RIDE-HAILING ── */
        .ride { display: flex; flex-direction: column; height: 100%; min-height: 400px; font-family: var(--font); background: #0a0a0f; }
        .ride-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 12px 16px;
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.2s forwards;
        }
        .ride-header-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
        .ride-header-sub { font-size: 11px; color: rgba(255,255,255,0.3); }
        .ride-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
        .ride-steps {
            display: flex; gap: 8px; align-items: center;
            padding: 0 0 8px;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.3s forwards;
        }
        .ride-step-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: rgba(255,255,255,0.1);
            transition: all 0.4s ease;
        }
        .ride-step-dot.active { background: #8b5cf6; box-shadow: 0 0 8px rgba(139,92,246,0.5); }
        .ride-step-dot.done { background: #22c55e; }
        .ride-step-line { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
        .ride-status-msg {
            font-size: 13px; color: rgba(255,255,255,0.6);
            min-height: 20px; transition: all 0.3s ease;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.4s forwards;
        }
        .ride-screen {
            position: relative;
            border-radius: 14px; overflow: hidden;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.02);
            min-height: 200px;
            opacity: 0; animation: vdocsFadeIn 0.5s ease 0.5s forwards;
        }
        .ride-screen img {
            width: 100%; height: auto; display: block;
            border-radius: 14px;
        }
        .ride-screen-overlay {
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            background: rgba(10,10,15,0.7);
            transition: opacity 0.4s ease;
        }
        .ride-screen-overlay.hidden { opacity: 0; pointer-events: none; }
        .ride-screen-spinner {
            width: 32px; height: 32px;
            border: 2px solid rgba(139,92,246,0.2);
            border-top-color: #8b5cf6;
            border-radius: 50%;
            animation: rideSpin 0.8s linear infinite;
        }
        @keyframes rideSpin { to { transform: rotate(360deg); } }
        .ride-options {
            display: flex; gap: 8px; overflow-x: auto;
            padding: 4px 0;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.6s forwards;
        }
        .ride-option {
            flex: 0 0 auto; min-width: 110px;
            padding: 12px 14px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            cursor: pointer; transition: all 0.2s ease;
            text-align: center;
        }
        .ride-option:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
        .ride-option.selected { border-color: #8b5cf6; background: rgba(139,92,246,0.08); }
        .ride-option-type { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
        .ride-option-price { font-size: 15px; font-weight: 700; color: #a78bfa; }
        .ride-option-eta { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }
        .ride-confirm-wrap {
            display: flex; gap: 10px; padding: 4px 0;
            opacity: 0; animation: vdocsFadeIn 0.4s ease 0.7s forwards;
        }
        .ride-confirm-btn {
            flex: 1; padding: 14px 0;
            background: #8b5cf6; color: #fff;
            border: none; border-radius: 12px;
            font-size: 15px; font-weight: 600;
            font-family: var(--font);
            cursor: pointer; transition: all 0.2s ease;
        }
        .ride-confirm-btn:hover { background: #7c3aed; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139,92,246,0.3); }
        .ride-confirm-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
        .ride-cancel-btn {
            padding: 14px 20px;
            background: rgba(239,68,68,0.1); color: #ef4444;
            border: 1px solid rgba(239,68,68,0.15); border-radius: 12px;
            font-size: 14px; font-weight: 500;
            font-family: var(--font);
            cursor: pointer; transition: all 0.2s ease;
        }
        .ride-cancel-btn:hover { background: rgba(239,68,68,0.2); }
        .ride-result {
            padding: 16px;
            background: rgba(34,197,94,0.06);
            border: 1px solid rgba(34,197,94,0.15);
            border-radius: 14px;
            text-align: center;
        }
        .ride-result-title { font-size: 16px; font-weight: 700; color: #22c55e; margin-bottom: 4px; }
        .ride-result-sub { font-size: 13px; color: rgba(255,255,255,0.5); }
        .ride-violet-msg {
            padding: 12px 16px;
            background: rgba(139,92,246,0.06);
            border: 1px solid rgba(139,92,246,0.12);
            border-radius: 12px;
            font-size: 13px; line-height: 1.5;
            color: rgba(255,255,255,0.7);
        }
        .ride-dest-input {
            width: 100%; padding: 12px 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            color: rgba(255,255,255,0.9);
            font-size: 14px; font-family: var(--font);
            outline: none; transition: border-color 0.2s ease;
        }
        .ride-dest-input:focus { border-color: rgba(139,92,246,0.4); }
        .ride-dest-input::placeholder { color: rgba(255,255,255,0.2); }
        @media (max-width: 600px) {
            .ride-options { gap: 6px; }
            .ride-option { min-width: 95px; padding: 10px 10px; }
        }

        /* ══════ VIBE CODE IDE ══════ */
        .vcode {
            display: flex; flex-direction: column;
            height: 100%; min-height: 0;
            font-family: var(--font);
        }
        .vcode-toolbar {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            background: rgba(13,17,23,0.6);
            flex-shrink: 0;
        }
        .vcode-lang {
            padding: 5px 10px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 6px;
            color: rgba(255,255,255,0.7);
            font-size: 12px; font-family: var(--font);
            outline: none; cursor: pointer;
            -webkit-appearance: none;
        }
        .vcode-lang option { background: #0d1117; color: #e6edf3; }
        .vcode-tbtn {
            padding: 5px 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 6px;
            color: rgba(255,255,255,0.6);
            font-size: 11px; font-family: var(--font);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .vcode-tbtn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
        .vcode-tbtn.run {
            background: rgba(34,197,94,0.15);
            border-color: rgba(34,197,94,0.3);
            color: rgba(34,197,94,0.9);
        }
        .vcode-tbtn.run:hover { background: rgba(34,197,94,0.25); }
        .vcode-panes {
            display: flex; flex: 1; min-height: 0;
            overflow: hidden;
        }
        .vcode-editor-wrap {
            flex: 1; display: flex; flex-direction: column;
            min-width: 0;
            border-right: 1px solid rgba(255,255,255,0.06);
        }
        .vcode-editor {
            flex: 1; width: 100%;
            padding: 14px 16px;
            background: rgba(13,17,23,0.95);
            border: none; outline: none; resize: none;
            color: rgba(167,139,250,0.9);
            font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
            font-size: 13px; line-height: 1.7;
            tab-size: 2; white-space: pre;
            overflow: auto;
        }
        .vcode-editor::placeholder { color: rgba(255,255,255,0.12); }
        .vcode-editor::selection { background: rgba(139,92,246,0.25); }
        .vcode-output-wrap {
            flex: 1; display: flex; flex-direction: column;
            min-width: 0;
            background: rgba(22,27,34,0.5);
        }
        .vcode-output-header {
            padding: 6px 12px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.3);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
        }
        .vcode-preview {
            flex: 1; border: none;
            background: rgba(255,255,255,0.02);
            border-radius: 0;
        }
        .vcode-console {
            flex: 1;
            padding: 14px 16px;
            font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
            font-size: 12.5px; line-height: 1.6;
            color: rgba(255,255,255,0.7);
            overflow: auto;
            white-space: pre-wrap;
        }
        .vcode-console .log-line { opacity: 0.85; margin-bottom: 2px; }
        .vcode-console .err-line { color: rgba(239,68,68,0.9); }
        .vcode-prompt-row {
            display: flex; gap: 8px;
            padding: 8px 12px;
            border-top: 1px solid rgba(255,255,255,0.06);
            background: rgba(13,17,23,0.6);
            flex-shrink: 0;
        }
        .vcode-prompt {
            flex: 1; padding: 9px 14px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            color: rgba(255,255,255,0.9);
            font-size: 13px; font-family: var(--font);
            outline: none;
        }
        .vcode-prompt:focus { border-color: rgba(34,197,94,0.4); }
        .vcode-prompt::placeholder { color: rgba(255,255,255,0.18); }
        .vcode-send {
            padding: 9px 20px;
            background: linear-gradient(135deg, rgba(34,197,94,0.35), rgba(22,163,74,0.25));
            border: 1px solid rgba(34,197,94,0.3);
            border-radius: 8px;
            color: rgba(34,197,94,0.95); font-size: 13px; font-weight: 600;
            font-family: var(--font);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .vcode-send:hover { background: linear-gradient(135deg, rgba(34,197,94,0.5), rgba(22,163,74,0.4)); }
        .vcode-status {
            padding: 5px 12px;
            font-size: 10px;
            color: rgba(255,255,255,0.2);
            border-top: 1px solid rgba(255,255,255,0.04);
            flex-shrink: 0;
            display: flex; justify-content: space-between;
        }
        .vcode-generating .vcode-send {
            opacity: 0.5; pointer-events: none;
        }
        .vcode-generating .vcode-prompt::placeholder {
            color: rgba(34,197,94,0.4);
        }
        @media (max-width: 600px) {
            .vcode-panes { flex-direction: column; }
            .vcode-editor-wrap { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); flex: 0 0 50%; }
            .vcode-output-wrap { flex: 0 0 50%; }
            .vcode-toolbar { flex-wrap: wrap; }
        }

        /* ══════ WEBSITE BUILDER ══════ */
        .vweb {
            display: flex; flex-direction: column;
            height: 100%; min-height: 0;
            font-family: var(--font);
            background: rgba(13,17,23,0.95);
        }
        .vweb-toolbar {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            background: rgba(13,17,23,0.8);
            flex-shrink: 0;
        }
        .vweb-title {
            font-size: 12px; font-weight: 600;
            color: rgba(255,255,255,0.5);
            letter-spacing: 0.03em;
            flex: 1; min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .vweb-tbtn {
            padding: 5px 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 6px;
            color: rgba(255,255,255,0.6);
            font-size: 11px; font-family: var(--font);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .vweb-tbtn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
        .vweb-tbtn.active {
            background: rgba(139,92,246,0.2);
            border-color: rgba(139,92,246,0.35);
            color: rgba(167,139,250,0.95);
        }
        .vweb-body {
            flex: 1; display: flex; flex-direction: column;
            min-height: 0; position: relative;
        }
        .vweb-preview {
            flex: 1; border: none;
            background: #fff;
        }
        .vweb-code-wrap {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            display: none; z-index: 2;
            background: rgba(13,17,23,0.98);
        }
        .vweb-code-wrap.open { display: flex; flex-direction: column; }
        .vweb-editor {
            flex: 1; width: 100%;
            padding: 14px 16px;
            background: transparent;
            border: none; outline: none; resize: none;
            color: rgba(167,139,250,0.9);
            font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
            font-size: 13px; line-height: 1.7;
            tab-size: 2; white-space: pre;
            overflow: auto;
        }
        .vweb-editor::selection { background: rgba(139,92,246,0.25); }
        .vweb-prompt-row {
            display: flex; gap: 8px;
            padding: 10px 14px;
            border-top: 1px solid rgba(255,255,255,0.06);
            background: rgba(13,17,23,0.8);
            flex-shrink: 0;
        }
        .vweb-prompt {
            flex: 1; padding: 10px 14px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            color: rgba(255,255,255,0.9);
            font-size: 13.5px; font-family: var(--font);
            outline: none;
        }
        .vweb-prompt:focus { border-color: rgba(99,102,241,0.4); }
        .vweb-prompt::placeholder { color: rgba(255,255,255,0.18); }
        .vweb-send {
            padding: 10px 22px;
            background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(139,92,246,0.3));
            border: 1px solid rgba(99,102,241,0.3);
            border-radius: 10px;
            color: #fff; font-size: 13px; font-weight: 600;
            font-family: var(--font);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .vweb-send:hover { background: linear-gradient(135deg, rgba(99,102,241,0.55), rgba(139,92,246,0.45)); }
        .vweb-status {
            padding: 4px 14px;
            font-size: 10px;
            color: rgba(255,255,255,0.2);
            border-top: 1px solid rgba(255,255,255,0.04);
            flex-shrink: 0;
            display: flex; justify-content: space-between;
        }
        .vweb-generating .vweb-send {
            opacity: 0.5; pointer-events: none;
        }
        .vweb-empty {
            flex: 1; display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 24px 20px;
            color: rgba(255,255,255,0.3);
        }
        .vweb-empty-header {
            text-align: center; margin-bottom: 20px; flex-shrink: 0;
        }
        .vweb-empty-icon { font-size: 42px; opacity: 0.35; margin-bottom: 8px; }
        .vweb-empty-text { font-size: 14px; color: rgba(255,255,255,0.35); }
        .vweb-cat-label {
            font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.08em;
            color: rgba(255,255,255,0.2);
            margin: 14px 0 6px 2px;
            flex-shrink: 0;
        }
        .vweb-cat-label:first-of-type { margin-top: 0; }
        .vweb-templates {
            display: flex; gap: 6px; flex-wrap: wrap;
            flex-shrink: 0;
        }
        .vweb-tmpl {
            padding: 6px 13px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 18px;
            color: rgba(255,255,255,0.45);
            font-size: 12px; font-family: var(--font);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .vweb-tmpl:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3); color: rgba(255,255,255,0.85); }
        .vweb-progress {
            position: absolute; bottom: 0; left: 0; right: 0;
            height: 2px; background: rgba(255,255,255,0.03);
            z-index: 5;
        }
        .vweb-progress-bar {
            height: 100%; width: 0;
            background: linear-gradient(90deg, rgba(99,102,241,0.7), rgba(139,92,246,0.7));
            transition: width 0.4s ease;
        }

        /* ── Apps Drawer ── */
        .vapps { display:flex; flex-direction:column; height:100%; width:100%; max-width:680px; align-self:stretch; margin:0 auto; }
        .vapps-header { padding:18px 20px 10px; }
        .vapps-title { font-size:20px; font-weight:700; color:#fff; }
        .vapps-sub { font-size:12px; color:rgba(255,255,255,0.4); margin-top:2px; }
        .vapps-search { margin:10px 20px 0; padding:10px 14px; border-radius:12px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); color:#fff; font-size:14px; outline:none; width:calc(100% - 40px); }
        .vapps-search::placeholder { color:rgba(255,255,255,0.3); }
        .vapps-grid { flex:1; overflow-y:auto; padding:12px 16px 80px; display:grid; grid-template-columns:repeat(auto-fill, minmax(90px, 1fr)); gap:8px; align-content:start; }
        .vapps-cat { grid-column:1/-1; font-size:11px; font-weight:600; color:rgba(139,92,246,0.8); text-transform:uppercase; letter-spacing:1.2px; padding:12px 4px 4px; }
        .vapps-item { display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 6px 10px; border-radius:16px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); cursor:pointer; transition:all 0.2s ease; }
        .vapps-item:hover { background:rgba(139,92,246,0.12); border-color:rgba(139,92,246,0.3); transform:scale(1.04); }
        .vapps-item:active { transform:scale(0.96); }
        .vapps-icon { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; }
        .vapps-label { font-size:11px; color:rgba(255,255,255,0.7); text-align:center; line-height:1.2; }
        .vapps-item.vapps-new::after { content:'NEW'; position:absolute; top:4px; right:4px; font-size:8px; font-weight:700; color:#a78bfa; background:rgba(139,92,246,0.15); padding:2px 5px; border-radius:4px; }
        .vapps-item { position:relative; }

        /* ── Games ── */
        .vgames { display:flex; flex-direction:column; height:100%; width:100%; max-width:680px; align-self:stretch; margin:0 auto; }
        .vgames-header { padding:18px 20px 8px; display:flex; align-items:center; gap:12px; }
        .vgames-title { font-size:20px; font-weight:700; color:#fff; flex:1; }
        .vgames-back { background:rgba(255,255,255,0.08); border:none; color:#fff; padding:8px 14px; border-radius:10px; font-size:13px; cursor:pointer; }
        .vgames-menu { flex:1; overflow-y:auto; padding:16px 20px 80px; display:flex; flex-direction:column; gap:12px; }
        .vgames-card { padding:20px; border-radius:16px; border:1px solid rgba(255,255,255,0.08); cursor:pointer; transition:all 0.2s ease; }
        .vgames-card:hover { transform:translateY(-2px); border-color:rgba(139,92,246,0.4); }
        .vgames-card:active { transform:scale(0.98); }
        .vgames-card-title { font-size:16px; font-weight:600; color:#fff; margin-bottom:4px; }
        .vgames-card-desc { font-size:12px; color:rgba(255,255,255,0.5); }
        .vgames-card:nth-child(1) { background:linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08)); }
        .vgames-card:nth-child(2) { background:linear-gradient(135deg, rgba(236,72,153,0.15), rgba(244,114,182,0.08)); }
        .vgames-card:nth-child(3) { background:linear-gradient(135deg, rgba(16,185,129,0.15), rgba(52,211,153,0.08)); }
        .vgames-card:nth-child(4) { background:linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.08)); }
        .vgames-play { flex:1; overflow-y:auto; padding:16px 20px 80px; display:flex; flex-direction:column; }
        .vgames-q { font-size:18px; font-weight:600; color:#fff; margin-bottom:16px; line-height:1.4; }
        .vgames-score { font-size:13px; color:rgba(139,92,246,0.9); font-weight:600; margin-bottom:12px; }
        .vgames-opts { display:flex; flex-direction:column; gap:8px; }
        .vgames-opt { padding:14px 16px; border-radius:12px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); color:#fff; font-size:14px; cursor:pointer; transition:all 0.15s ease; text-align:left; }
        .vgames-opt:hover { background:rgba(139,92,246,0.15); border-color:rgba(139,92,246,0.3); }
        .vgames-opt.correct { background:rgba(16,185,129,0.25); border-color:rgba(16,185,129,0.5); color:#6ee7b7; }
        .vgames-opt.wrong { background:rgba(239,68,68,0.25); border-color:rgba(239,68,68,0.5); color:#fca5a5; }
        .vgames-canvas-wrap { flex:1; display:flex; flex-direction:column; min-height:0; }
        .vgames-canvas { flex:1; border-radius:12px; background:#111; cursor:crosshair; touch-action:none; }
        .vgames-canvas-tools { display:flex; gap:8px; padding:10px 0; flex-wrap:wrap; align-items:center; }
        .vgames-color { width:28px; height:28px; border-radius:50%; border:2px solid transparent; cursor:pointer; transition:border-color 0.15s; }
        .vgames-color.active { border-color:#fff; }
        .vgames-size { width:60px; accent-color:#a78bfa; }
        .vgames-canvas-btn { padding:6px 14px; border-radius:8px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.1); color:#fff; font-size:12px; cursor:pointer; }
        .vgames-word-row { display:flex; gap:6px; justify-content:center; margin:16px 0; flex-wrap:wrap; }
        .vgames-letter { width:36px; height:44px; border-radius:8px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; color:#fff; text-transform:uppercase; }
        .vgames-letter.revealed { background:rgba(139,92,246,0.2); border-color:rgba(139,92,246,0.5); }
        .vgames-letter.wrong-guess { background:rgba(239,68,68,0.15); border-color:rgba(239,68,68,0.3); }
        .vgames-hint { font-size:13px; color:rgba(255,255,255,0.5); text-align:center; margin:8px 0; }
        .vgames-input-row { display:flex; gap:8px; margin-top:12px; }
        .vgames-input { flex:1; padding:10px 14px; border-radius:10px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); color:#fff; font-size:16px; text-align:center; text-transform:uppercase; outline:none; }
        .vgames-submit { padding:10px 20px; border-radius:10px; background:rgba(139,92,246,0.3); border:1px solid rgba(139,92,246,0.5); color:#fff; font-size:14px; font-weight:600; cursor:pointer; }
        .vgames-msg { text-align:center; font-size:14px; color:rgba(255,255,255,0.6); margin:8px 0; min-height:20px; }
        /* === V132 SALVAGE: signout pill + controls-reveal === */
        /* MINIMIZE BUTTON — removed from UI; kept hidden so voice/auto hooks still fire. */
        .minimize-btn {
            display: none !important;
            position: fixed; top: 20px; right: 20px;
            width: 36px; height: 36px; border-radius: 50%;
        }
        /* SIGN-OUT PILL — revealed alongside Sleep on heart tap. */
        .signout-btn {
            position: fixed; top: 20px; left: 50%;
            transform: translateX(calc(-50% + 110px)) translateY(-8px);
            display: flex; align-items: center; gap: 6px;
            padding: 8px 14px; border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 700;
            letter-spacing: 0.06em; cursor: pointer;
            z-index: 100;
            opacity: 0; pointer-events: none;
            transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            backdrop-filter: blur(10px);
        }
        .signout-btn:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.25);
            color: rgba(255,255,255,0.85);
        }
        /* REVEALED state — sleep + signout, triggered by heart taps. */
        body.controls-reveal .sleep-btn {
            opacity: 1; pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }
        body.controls-reveal .signout-btn {
            opacity: 1; pointer-events: auto;
            transform: translateX(calc(-50% + 110px)) translateY(0);
        }
        .minimize-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

        /* === MAGIC #3 — Misdirection prosody (heart pulse during LLM latency) ===
           Hides 250-1000ms LLM round-trip by visually telling the user "she's thinking",
           not "system is slow". Per cross-domain research: dynamic visual+audio distractor
           reduces perceived wait by ~3x. Trigger: window.violetThinkingStart() / End(). */
        .heart-container.thinking {
            animation: heart-think-pulse 1.4s ease-in-out infinite;
        }
        @keyframes heart-think-pulse {
            0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4)); }
            50% { transform: scale(1.06); filter: drop-shadow(0 0 40px rgba(216, 70, 239, 0.95)) drop-shadow(0 0 80px rgba(99, 102, 241, 0.6)); }
        }
        .heart-container.thinking::after {
            content: ''; position: absolute; inset: -20px; border-radius: 50%;
            background: radial-gradient(circle, rgba(216,70,239,0.25) 0%, transparent 60%);
            animation: heart-think-ripple 1.4s ease-out infinite;
            pointer-events: none;
        }
        @keyframes heart-think-ripple {
            0% { transform: scale(0.8); opacity: 0.9; }
            100% { transform: scale(2.2); opacity: 0; }
        }

        /* MAGIC #4 — Subtle ambient room tone marker (breathing glow on the orbs when idle) */
        .ambient-orb { animation: orb-breathe 6s ease-in-out infinite; }
        @keyframes orb-breathe {
            0%, 100% { opacity: 0.45; }
            50% { opacity: 0.75; }
        }

        /* MAGIC #1 hint — heart presence intensifies on listening (visible audio anchor) */
        .stage[data-state="listening"] .heart-container {
            filter: drop-shadow(0 0 35px rgba(216, 70, 239, 0.7));
        }
