    :root {
        --bg-base: #f7f9fb;
        --surface-glass: rgba(255, 255, 255, 0.72);
        --surface-floor: rgba(255, 255, 255, 0.5);
        --surface-solid: #ffffff;
        --hairline: rgba(35, 35, 39, 0.06);
        --hairline-strong: rgba(35, 35, 39, 0.12);
        --accent-lavender: #ece9fb;
        --accent-ice: #e0eafc;
        --accent-blush: #fdf2f8;
        --violet: #7a6bdb;   /* needs you / gate */
        --blue: #6b8fc9;     /* auto / standing rule */
        --blush: #c76b9e;    /* credits leaving */
        --glyph: #4b4b52;
        --text-main: #232327;
        --text-secondary: #6e6e77;
        --text-mute: #a1a1aa;
        --radius-lg: 12px;
        --radius-sm: 6px;
        --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
        --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
        --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(20,20,25,0.04), 0 8px 24px -12px rgba(20,20,25,0.06);
    }

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

    body {
        background-color: var(--bg-base);
        color: var(--text-main);
        font-family: var(--font-sans);
        font-size: 13px;
        line-height: 1.5;
        height: 100vh; overflow: hidden;
        display: flex; flex-direction: column;
        -webkit-font-smoothing: antialiased;
    }
    :focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
    .data-point, kbd { font-variant-numeric: tabular-nums; }

    .mesh-background {
        position: fixed; inset: 0; z-index: -1;
        background-image:
            radial-gradient(circle at 50% 40%, rgba(255,255,255,0.92) 0%, transparent 70%),
            radial-gradient(circle at 88% 8%, rgba(236,233,251,0.30) 0%, transparent 38%),
            radial-gradient(circle at 8% 92%, rgba(224,234,252,0.26) 0%, transparent 42%),
            linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
        opacity: 0.7;
    }

    /* ================= NAV ================= */
    nav {
        display: flex; align-items: center; gap: 24px;
        padding: 12px 24px;
        background: var(--surface-glass);
        backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
        border-bottom: 1px solid var(--hairline);
        z-index: 100;
    }
    .logo { display: flex; align-items: center; gap: 8px; }
    .logo-mark { width: 16px; height: 16px; border: 1.5px solid var(--text-main); border-radius: 4px; position: relative; }
    .logo-mark::after { content:''; position:absolute; top:3px; left:3px; width:4px; height:4px; background:var(--text-main); border-radius:50%; }
    .logo span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; }
    .ws-chip {
        display:flex; align-items:center; gap:8px;
        background: var(--surface-solid); border: 1px solid var(--hairline);
        border-radius: 100px; padding: 5px 12px;
        font-size: 13px; color: var(--text-secondary);
        box-shadow: 0 1px 2px rgba(0,0,0,0.02); cursor: pointer;
    }
    .ws-chip b { color: var(--text-main); font-weight: 600; }
    .nav-links { display: flex; gap: 24px; margin-left: 4px; }
    .nav-links a { text-decoration:none; color:var(--text-secondary); font-weight:500; font-size: 13px;
        transition: color .2s; display:flex; align-items:center; gap:7px; }
    .nav-links a:hover, .nav-links a.active { color: var(--text-main); }
    .nav-soon { opacity: .45; pointer-events: none; }
    .nav-badge { background: var(--accent-lavender); color: var(--violet);
        font-size: 10px; font-weight: 600; font-family: var(--font-mono);
        border-radius: 100px; padding: 1px 7px; }
    .nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
    .lock-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--text-mute); }
    .lock-note b { color: var(--text-secondary); font-weight: 500; }

    .credit-pill { display: inline-flex; align-items: center; gap: 6px;
        background: var(--surface-solid); border: 1px solid var(--hairline); border-radius: 100px;
        padding: 6px 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
        color: var(--text-main); cursor: pointer; }
    .credit-pill:hover { border-color: var(--hairline-strong); }
    .credit-pill i { font-style: normal; color: var(--text-mute); }

    .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--text-main);
        color: #fff; border: none; cursor: pointer;
        font: 600 11px var(--font-sans); display: flex; align-items: center; justify-content: center; }
    .menu-pop {
        position: absolute; top: 50px; right: 20px; width: 232px;
        background: var(--surface-solid); border: 1px solid var(--hairline);
        border-radius: 12px; box-shadow: 0 24px 56px -16px rgba(20,20,25,0.18);
        padding: 6px; z-index: 300; display: none;
    }
    .menu-pop.open { display: block; animation: cardin .25s var(--ease-spring) both; }
    .menu-pop .mi { display: flex; align-items: center; justify-content: space-between; gap: 10px;
        width: 100%; padding: 10px 12px; border: none; background: none; border-radius: 8px;
        font: 500 13px var(--font-sans); color: var(--text-main); cursor: pointer; text-align: left; }
    .menu-pop .mi:hover { background: var(--bg-base); }
    .menu-pop .mi .sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }
    .menu-pop .mi.topup .sub { color: var(--violet); }
    .menu-pop .sep { height: 1px; background: var(--hairline); margin: 6px 8px; }
    .menu-pop .mi.quiet { color: var(--text-secondary); font-weight: 400; }

    /* ---- THE button system: one base, two variants, one height. Never restyle ad hoc. ---- */
    .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 7px;
        height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
        font: 500 12.5px/1 var(--font-sans); letter-spacing: .01em;
        white-space: nowrap; cursor: pointer; border: 1px solid transparent; text-decoration: none;
        transition: background .15s, border-color .15s, color .15s, transform .2s var(--ease-spring);
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--text-main); color: #fff; }
    .btn-primary:hover { background: #35353c; }
    .btn-ghost { background: transparent; border-color: var(--hairline); color: var(--text-secondary); }
    .btn-ghost:hover { border-color: var(--hairline-strong); color: var(--text-main); }
    .btn kbd { height: 16px; min-width: 16px; padding: 0 4px; font-size: 9px;
        border-radius: 3px; border-bottom-width: 1px; background: transparent; }
    .btn-primary kbd { border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.8); }
    .btn-ghost kbd { border-color: rgba(0,0,0,.1); color: var(--text-mute); }

    /* ================= LAYOUT ================= */
    main {
        flex: 1; display: grid;
        grid-template-columns: 260px 1fr 348px;
        gap: 16px; padding: 16px;
        height: calc(100vh - 56px); min-height: 0;
    }
    .panel {
        background: var(--surface-glass);
        backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
        border: 1px solid var(--hairline);
        border-radius: var(--radius-lg);
        display: flex; flex-direction: column; overflow: hidden;
        box-shadow: var(--glass-shadow);
    }
    .panel-header {
        padding: 14px 16px; border-bottom: 1px solid var(--hairline);
        display: flex; align-items: center; gap: 8px;
        font-family: var(--font-mono); font-size: 10px; font-weight: 500;
        letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary);
    }
    .panel-header .spacer { margin-left: auto; }
    .data-point { font-family: var(--font-mono); color: var(--text-mute); font-size: 10px; letter-spacing: .04em; }
    .scroll-content { flex: 1; overflow-y: auto; padding: 8px; min-height: 0;
        mask-image: linear-gradient(to bottom, transparent 0, black 12px, black calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 12px, black calc(100% - 20px), transparent 100%); }
    .scroll-content::-webkit-scrollbar { width: 4px; }
    .scroll-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

    kbd { display: inline-flex; align-items: center; justify-content: center;
        min-width: 17px; height: 17px; padding: 0 4px;
        border: 1px solid rgba(0,0,0,0.08); border-bottom-width: 2px; border-radius: 4px;
        font-family: var(--font-mono); font-size: 9px; color: var(--text-mute); background: var(--bg-base); }

    /* ================= LEFT · YOUR TEAM ================= */
    .agent-card {
        padding: 14px 12px; border-radius: 10px; border: 1px solid transparent;
        cursor: pointer; transition: all .2s var(--ease-spring); margin-bottom: 4px;
    }
    .agent-card:hover { background: var(--surface-solid); border-color: var(--hairline); }
    .agent-card.active { background: var(--surface-solid); border-color: var(--hairline);
        box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
    .agent-card .rowline { display: flex; align-items: baseline; gap: 8px; }
    .agent-card h4 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
    .agent-card .rowline .data-point { margin-left: auto; }
    .agent-card p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
    .agent-card .op { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); margin-top: 6px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet);
        box-shadow: 0 0 0 3px rgba(122,107,219,0.14); flex-shrink: 0; position: relative; top: -1px; }
    .status-dot.blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(107,143,201,0.14); }
    .status-dot.pink { background: var(--blush); box-shadow: 0 0 0 3px rgba(199,107,158,0.14); }
    .status-dot.idle { background: #d4d4d8; box-shadow: none; }

    .hire-row {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        width: calc(100% - 8px); margin: 6px 4px 4px; padding: 12px;
        border: 1px dashed var(--hairline-strong); border-radius: 10px;
        background: none; cursor: pointer;
        font: 500 13px var(--font-sans); color: var(--text-secondary);
        transition: color .15s, border-color .15s, background .15s;
    }
    .hire-row:hover { color: var(--text-main); border-color: rgba(122,107,219,0.4); background: rgba(255,255,255,0.6); }
    .hire-row svg { width: 13px; height: 13px; }

    .team-foot { border-top: 1px solid var(--hairline); padding: 14px 16px;
        display: flex; flex-direction: column; gap: 8px; }
    .kv { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-secondary); }
    .kv span:last-child { font-family: var(--font-mono); font-size: 10px; color: var(--text-main); letter-spacing: .04em; }

    /* ================= CENTER · CANVAS (the floor) ================= */
    .canvas-area {
        position: relative;
        background: var(--surface-floor);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--hairline);
        border-radius: var(--radius-lg);
        box-shadow: none;
        overflow: hidden;
    }
    .canvas-head {
        position: absolute; top: 0; left: 0; right: 0;
        padding: 16px 18px; display: flex; align-items: baseline; gap: 12px; z-index: 20;
        pointer-events: none;
    }
    .canvas-head .eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
        text-transform: uppercase; color: var(--text-mute); }
    .canvas-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.022em; }
    .canvas-head .mode { margin-left: auto; display: flex; gap: 14px; align-items: baseline; }

    .canvas-stage {
        position: absolute; left: 50%; top: 54%;
        width: 800px; height: 560px;
        transform: translate(-50%,-50%) scale(1);
        transform-origin: center center;
    }
    .canvas-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
    .edge { fill: none; stroke-width: 1.5; }
    .edge.active { stroke: rgba(35,35,39,0.08); }
    .edge.await { stroke: rgba(122,107,219,0.35); stroke-dasharray: 5 4; }
    .edge.rule { stroke: rgba(107,143,201,0.4); stroke-dasharray: 5 4; }
    .edge.locked { stroke: rgba(35,35,39,0.10); stroke-dasharray: 3 6; }
    .port { fill: #fff; stroke: rgba(35,35,39,0.18); stroke-width: 1.5; }
    .flow-dot { fill: var(--violet); }
    .flow-dot.b { fill: var(--blue); }
    .flow-dot.p { fill: var(--blush); }
    .edge-tag {
        position: absolute; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
        padding: 3px 8px; border-radius: 100px; white-space: nowrap; z-index: 12;
        transform: translate(-50%,-50%); pointer-events: none;
    }
    .edge-tag.rule { background: var(--accent-ice); color: var(--blue); }
    .lock-glyph { position: absolute; z-index: 12; color: var(--text-mute);
        transform: translate(-50%,-50%); pointer-events: none;
        background: var(--bg-base); border-radius: 50%; padding: 2px; display: flex; }

    .node {
        position: absolute; background: var(--surface-solid);
        border: 1px solid var(--hairline); border-radius: 10px;
        padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
        box-shadow: 0 1px 2px rgba(20,20,25,0.03), 0 8px 16px -6px rgba(20,20,25,0.05);
        z-index: 10; width: 176px;
        transition: box-shadow .3s, border-color .2s;
        cursor: grab; touch-action: none; user-select: none;
    }
    .node.dragging { cursor: grabbing; box-shadow: 0 24px 48px -12px rgba(20,20,25,0.16); z-index: 30; }
    .node:hover { border-color: var(--hairline-strong);
        box-shadow: 0 16px 32px -8px rgba(20,20,25,0.08); }
    .node:hover .peek { opacity: 1; }
    .peek { position: absolute; bottom: 10px; right: 12px; opacity: 0; transition: opacity .15s;
        color: var(--text-mute); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; }
    .node.selected { border-color: rgba(122,107,219,0.5);
        box-shadow: 0 0 0 4px rgba(236,233,251,0.6), 0 16px 32px -8px rgba(20,20,25,0.08); }
    .node-header { display: flex; align-items: center; gap: 8px; }
    .node-header svg { width: 15px; height: 15px; color: var(--glyph); flex-shrink: 0; }
    .node-title { font-family: var(--font-mono); font-weight: 500; font-size: 10px;
        text-transform: uppercase; letter-spacing: .14em; color: var(--text-main); white-space: nowrap; }
    .node-status { font-size: 13px; color: var(--text-secondary); }
    .node-status b { color: var(--text-main); font-weight: 600; }
    .node-data { font-family: var(--font-mono); color: var(--text-mute); font-size: 10px; letter-spacing: .04em; }
    .node-live { width: 6px; height: 6px; background: var(--violet); border-radius: 50%;
        margin-left: auto; box-shadow: 0 0 0 3px rgba(122,107,219,0.14); flex-shrink: 0; }
    .node-live.blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(107,143,201,0.14); }
    .node-live.pink { background: var(--blush); box-shadow: 0 0 0 3px rgba(199,107,158,0.14); }

    .node.trigger { width: 150px; background: rgba(255,255,255,0.85); }
    .node.ghost { border-style: dashed; border-color: rgba(35,35,39,0.12);
        background: rgba(255,255,255,0.55); box-shadow: none; }
    .node.ghost .node-title, .node.ghost .node-status { color: var(--text-mute); }
    .node.ghost .node-header svg { color: var(--text-mute); }

    .node.gate {
        width: 248px; background: #ffffff;
        border: 1.5px solid rgba(122,107,219,0.45);
        box-shadow: 0 1px 2px rgba(30,28,45,0.06), 0 24px 48px -16px rgba(122,107,219,0.16), 0 0 0 8px rgba(236,233,251,0.55);
        padding: 14px 16px; gap: 8px;
    }
    .node.gate .node-header svg { color: var(--violet); }
    .gate-badge {
        margin-left: auto; background: var(--accent-lavender); color: var(--violet);
        font-family: var(--font-mono); font-size: 9px; font-weight: 500;
        border-radius: 100px; padding: 2px 8px; letter-spacing: .04em;
        white-space: nowrap; flex-shrink: 0;
        animation: badgebreathe 2.6s var(--ease-spring) infinite;
    }
    @keyframes badgebreathe { 0%,100% { box-shadow: 0 0 0 0 rgba(122,107,219,0.22);} 55% { box-shadow: 0 0 0 6px rgba(122,107,219,0);} }
    .gate-rows { display: flex; flex-direction: column; gap: 7px; }
    .gate-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-secondary); }
    .gate-row::before { content: ''; width: 5px; height: 5px; border-radius: 50%;
        border: 1px solid var(--text-mute); flex-shrink: 0; position: relative; top: -1px; }
    .gate-row.credits::before { border-color: var(--blush); background: var(--accent-blush); }
    .gate-row b { color: var(--text-main); font-weight: 600; }

    .credit-chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
        background: var(--accent-blush); color: var(--blush); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }

    .canvas-toolbar {
        position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
        display: flex; gap: 4px; align-items: center;
        background: var(--surface-solid); padding: 6px; border-radius: 100px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border: 1px solid var(--hairline); z-index: 50;
    }
    .tool-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
        justify-content: center; border: none; background: transparent; cursor: pointer;
        color: var(--text-secondary); transition: background .15s, color .15s; }
    .tool-btn:hover { background: var(--bg-base); color: var(--text-main); }
    .tool-sep { width: 1px; height: 16px; background: var(--hairline); }
    .tool-zoom { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); padding: 0 8px; }

    /* ================= RIGHT · GATE QUEUE + THOUGHTS ================= */
    .right-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
    .calls-panel { flex-shrink: 0; }
    .call-badge { background: var(--accent-lavender); color: var(--violet);
        font-family: var(--font-mono); font-size: 10px; font-weight: 600;
        border-radius: 100px; padding: 1px 8px; }

    .call-card {
        background: var(--surface-solid); border: 1px solid var(--hairline);
        border-radius: 10px; padding: 16px; margin-bottom: 8px;
        box-shadow: 0 8px 16px -6px rgba(20,20,25,0.04);
        transition: transform .25s var(--ease-spring), box-shadow .25s;
        animation: cardin .5s var(--ease-spring) both;
    }
    .call-card:nth-child(2) { animation-delay: .08s; }
    .call-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(20,20,25,0.09); }
    @keyframes cardin { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }
    .call-card h4 { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
    .call-card .when { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
        margin-top: 5px; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .thumbs { display: flex; gap: 6px; margin-top: 12px; }
    .thumb { width: 52px; height: 65px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.05);
        padding: 6px 7px; overflow: hidden; }
    .thumb i { display: block; font-style: normal; font-family: var(--font-mono);
        font-size: 8px; letter-spacing: .04em; color: var(--text-mute); margin-bottom: 5px; }
    .thumb .bar { display: block; height: 3px; border-radius: 2px;
        background: rgba(35,35,39,0.10); margin-top: 4px; }
    .thumb .bar.w80 { width: 80%; } .thumb .bar.w60 { width: 60%; }
    .thumb.t1 { background: var(--accent-lavender); }
    .thumb.t2 { background: var(--accent-ice); }
    .thumb.t3 { background: var(--accent-blush); }
    .call-body { font-size: 13px; color: var(--text-secondary); margin: 10px 0 0; line-height: 1.55; }
    .call-body b { color: var(--text-main); font-weight: 600; }
    .diff { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
    s { color: var(--text-mute); background: rgba(35,35,39,0.05); border-radius: 3px; padding: 0 4px;
        text-decoration-color: rgba(35,35,39,0.35); }
    .call-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .approved-chip { background: var(--accent-lavender); color: var(--violet);
        font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
        border-radius: var(--radius-sm); padding: 10px 14px; animation: cardin .3s var(--ease-spring) both; }
    .call-effect { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
        color: var(--text-secondary); margin-top: 12px; line-height: 1.7; }

    .thoughts-panel { flex: 1; min-height: 0; }
    .thought-step { position: relative; padding-left: 20px; padding-bottom: 20px;
        border-left: 1px solid var(--hairline); cursor: pointer; }
    .thought-step::before {
        content: ''; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px;
        background: white; border: 1px solid var(--text-mute); border-radius: 50%;
    }
    .thought-step.hl::before { border-color: var(--violet); background: var(--accent-lavender); }
    .thought-step:last-child { padding-bottom: 4px; border-left-color: transparent; }
    .thought-step.fresh { animation: thoughtin .45s var(--ease-spring) both; }
    @keyframes thoughtin { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none;} }
    .thought-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
        margin-bottom: 4px; letter-spacing: .04em; }
    .thought-label { font-weight: 600; margin-bottom: 4px; font-size: 13px; letter-spacing: -.01em; }
    .thought-data { background: rgba(0,0,0,0.02); padding: 9px 10px; border-radius: var(--radius-sm);
        font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
    .thought-data b { color: var(--text-main); font-weight: 600; }
    .live-flag { display: inline-flex; align-items: center; gap: 6px; }
    .live-flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

    /* ================= WORK DRAWER ================= */
    .drawer-overlay { position: fixed; inset: 0; background: rgba(25,25,30,0.10);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 190; }
    .drawer-overlay.open { opacity: 1; pointer-events: auto; }
    .work-drawer {
        position: fixed; top: 14px; right: 14px; bottom: 14px; width: 430px;
        background: var(--surface-solid);
        border: 1px solid var(--hairline); border-radius: 14px;
        box-shadow: 0 32px 80px -16px rgba(20,20,25,0.18);
        transform: translateX(calc(100% + 30px));
        transition: transform .38s var(--ease-spring);
        z-index: 200; display: flex; flex-direction: column; overflow: hidden;
    }
    .work-drawer.open { transform: none; }
    .wd-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--hairline); }
    .wd-head .eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
        text-transform: uppercase; color: var(--text-mute); display: flex; align-items: center; gap: 10px; }
    .wd-head .eyebrow .status-dot { top: 0; }
    .wd-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -.022em; margin-top: 8px; line-height: 1.25; }
    .wd-head .wd-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
        margin-top: 8px; letter-spacing: .04em; }
    .wd-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px;
        border: none; background: transparent; border-radius: 50%; cursor: pointer;
        color: var(--text-mute); display: flex; align-items: center; justify-content: center; }
    .wd-close:hover { background: var(--bg-base); color: var(--text-main); }
    .wd-body { flex: 1; overflow-y: auto; padding: 20px 24px;
        mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 24px), transparent 100%); }
    .wd-body::-webkit-scrollbar { width: 4px; }
    .wd-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }
    .wd-section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
        text-transform: uppercase; color: var(--text-mute); margin: 0 0 12px; }
    .wd-preview { margin-bottom: 24px; }
    .wd-thumbs { display: flex; gap: 8px; margin-bottom: 10px; }
    .wd-thumb { width: 84px; height: 105px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05);
        padding: 8px; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.5;
        color: var(--text-secondary); overflow: hidden; }
    .wd-thumb i { display: block; font-style: normal; font-size: 9px; color: var(--text-mute); margin-bottom: 4px; }
    .wd-thumb.t1 { background: var(--accent-lavender); }
    .wd-thumb.t2 { background: var(--accent-ice); }
    .wd-thumb.t3 { background: var(--accent-blush); }
    .wd-prose { background: var(--bg-base); border: 1px solid var(--hairline);
        border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.6;
        color: var(--text-secondary); }
    .wd-prose b { color: var(--text-main); }
    .wd-step { display: flex; gap: 12px; padding: 0 0 18px; position: relative;
        animation: stepin .35s var(--ease-spring) both; animation-delay: calc(var(--i) * 40ms); }
    @keyframes stepin { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }
    .wd-step::before { content: ''; position: absolute; left: 3px; top: 16px; bottom: 0;
        width: 1px; background: var(--hairline); }
    .wd-step:last-child::before { display: none; }
    .wd-step .pt { width: 7px; height: 7px; border-radius: 50%; background: #fff;
        border: 1px solid var(--text-mute); flex-shrink: 0; margin-top: 5px; }
    .wd-step.done .pt { background: var(--text-main); border-color: var(--text-main); }
    .wd-step.now .pt { background: var(--accent-lavender); border-color: var(--violet); }
    .wd-step .st-name { font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
    .wd-step .st-detail { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.55; }
    .wd-step .st-detail b { color: var(--text-main); font-weight: 600; }
    .wd-step .st-data { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
        margin-top: 4px; letter-spacing: .04em; }
    .wd-locked { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
    .wd-locked .lk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
    .wd-locked .lk svg { width: 12px; height: 12px; color: var(--text-mute); flex-shrink: 0; }
    .wd-foot { border-top: 1px solid var(--hairline); padding: 14px 24px;
        display: flex; align-items: center; gap: 12px; }
    .wd-foot .data-point { margin-left: auto; text-align: right; }

    @media (prefers-reduced-motion: reduce) {
        * { animation: none !important; transition: none !important; }
    }

    /* Marketing motion stage — conceptual media, never product-screen chrome. */
    .marketing-motion-stage { position: relative; overflow: hidden; border: 1px solid var(--hairline);
        border-radius: 12px; background: var(--surface-solid); box-shadow: var(--glass-shadow); isolation: isolate; }
    .marketing-motion-stage::after { content: ''; position: absolute; inset: 0; z-index: 1;
        border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.54); pointer-events: none; }
