/* VirtualOrg — luxury floor plan (SVG + CSS, no WebGL) */

.vo-shell {
    --vo-bg: #070b14;
    --vo-panel: rgba(15, 23, 42, 0.78);
    --vo-border: rgba(148, 163, 184, 0.28);
    --vo-text: #e2e8f0;
    --vo-muted: #94a3b8;
    --vo-accent: #818cf8;
    --vo-wood: #c4a574;
    --vo-glass: rgba(255, 255, 255, 0.08);
    --vo-neon: #22d3ee;
    --vo-ready: #22c55e;
    --vo-working: #38bdf8;
    --vo-handoff: #a78bfa;
    --vo-dept-accent: #6366f1;
}

/* —— KPI / chrome —— */
.vo-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.vo-kpi {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 1.05rem 1.15rem;
    background: linear-gradient(165deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease;
}
.vo-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}
.vo-kpi__glow {
    position: absolute;
    inset-inline-end: -18%;
    top: -40%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    opacity: 0.22;
    pointer-events: none;
    background: radial-gradient(circle, currentColor, transparent 70%);
}
.vo-kpi__label { font-size: 0.78rem; color: #64748b; margin-bottom: 0.35rem; font-weight: 600; letter-spacing: 0.01em; }
.vo-kpi__value { font-size: 1.65rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.vo-kpi__hint { margin-top: 0.35rem; font-size: 0.72rem; color: #94a3b8; font-weight: 500; }

.vo-kpi--indigo { color: #4f46e5; border-color: rgba(79, 70, 229, 0.22); background: linear-gradient(155deg, #fff, #eef2ff); }
.vo-kpi--indigo .vo-kpi__value { color: #3730a3; }
.vo-kpi--cyan { color: #0891b2; border-color: rgba(8, 145, 178, 0.22); background: linear-gradient(155deg, #fff, #ecfeff); }
.vo-kpi--cyan .vo-kpi__value { color: #155e75; }
.vo-kpi--amber { color: #d97706; border-color: rgba(217, 119, 6, 0.25); background: linear-gradient(155deg, #fff, #fffbeb); }
.vo-kpi--amber .vo-kpi__value { color: #92400e; }
.vo-kpi--emerald { color: #059669; border-color: rgba(5, 150, 105, 0.22); background: linear-gradient(155deg, #fff, #ecfdf5); }
.vo-kpi--emerald .vo-kpi__value { color: #065f46; }
.vo-kpi--rose { color: #e11d48; border-color: rgba(225, 29, 72, 0.22); background: linear-gradient(155deg, #fff, #fff1f2); }
.vo-kpi--rose .vo-kpi__value { color: #9f1239; }
.vo-kpi--slate { color: #475569; border-color: rgba(71, 85, 105, 0.2); background: linear-gradient(155deg, #fff, #f8fafc); }
.vo-kpi--slate .vo-kpi__value { color: #1e293b; }

.virtual-org-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.virtual-org-company-card {
    position: relative;
    border: 1px solid rgba(199, 210, 254, 0.55);
    border-radius: 18px;
    padding: 1.15rem;
    cursor: pointer;
    background: linear-gradient(160deg, #fff, #f8fafc);
    transition: box-shadow .2s ease, transform .2s ease;
}

.virtual-org-company-card:hover {
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.12);
    transform: translateY(-3px);
}

.virtual-org-company-card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.virtual-org-company-card code { font-size: 0.78rem; color: #64748b; }
.virtual-org-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.vo-card-menu { position: absolute; top: 0.65rem; inset-inline-end: 0.65rem; }

.vo-empty {
    text-align: center;
    padding: 2.75rem 1rem;
    border: 1px dashed #c7d2fe;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.vo-glass-bar {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 0.65rem 0.85rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.vo-company-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vo-company-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.vo-zoom-label { font-size: 0.85rem; color: #64748b; min-width: 3rem; text-align: center; }

.vo-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.vo-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.vo-btn--primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}
.vo-btn--primary:hover:not(:disabled) { transform: translateY(-1px); }
.vo-btn--danger {
    background: linear-gradient(135deg, #b91c1c, #f97316);
    color: #fff;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.28);
}
.vo-btn--danger:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.vo-btn--hire {
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
    border: none;
}
.vo-btn--hire:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.vo-btn--ghost {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(148, 163, 184, 0.35);
    color: #334155;
}
.vo-btn--ghost:hover { background: rgba(99, 102, 241, 0.08); }
.vo-btn--icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.vo-mode-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.vo-mode-toggle button {
    border: 0;
    background: transparent;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
}

.vo-mode-toggle button.active {
    background: linear-gradient(135deg, #4f46e5, #0891b2);
    color: #fff;
}

.vo-input, .vo-label {
    display: block;
    width: 100%;
}

.vo-label { font-size: 0.8rem; color: #475569; font-weight: 700; margin-bottom: 0.35rem; }

.vo-input {
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    background: #fff;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vo-input:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}
.vo-input::placeholder { color: #94a3b8; }

.vo-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(15, 23, 42, 0.28);
    display: grid;
    place-items: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
}

.vo-modal {
    width: min(440px, 100%);
    border-radius: 20px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(8, 145, 178, 0.08), transparent 50%),
        linear-gradient(165deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    overflow: hidden;
}

.vo-modal__head, .vo-modal__foot {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.85);
}
.vo-modal__foot {
    border-bottom: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.vo-modal__body { padding: 1.1rem 1.15rem; color: #334155; line-height: 1.65; }
.vo-modal__head h5 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.vo-modal__body p { margin: 0; }
.vo-modal__body strong { color: #0f172a; }

.vo-ai-wf-modal { width: min(720px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; }
.vo-ai-wf-modal .vo-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.vo-ai-wf-modal__body { overflow: auto; flex: 1; }
.vo-ai-wf-prompt { min-height: 140px; resize: vertical; font-family: inherit; line-height: 1.55; }
.vo-ai-wf-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: linear-gradient(165deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
}
.vo-ai-wf-card--warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(165deg, #fffbeb, #fff7ed);
}
.vo-ai-wf-path { padding-inline-start: 1.2rem; margin: 0; }
.vo-ai-wf-path li { margin: 0.2rem 0; }
.vo-ai-wf-path code { font-size: 0.78rem; color: #0f766e; }

/* —— Floor canvas —— */
.vo-floor {
    --vo-scale: 1;
    --vo-pan-x: 0px;
    --vo-pan-y: 0px;
    position: relative;
    min-height: 620px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #1e293b;
    background: var(--vo-bg);
    color: var(--vo-text);
    user-select: none;
    touch-action: none;
    box-shadow: inset 0 0 80px rgba(34, 211, 238, 0.04);
}

.vo-floor__viewport {
    width: 100%;
    height: 100%;
    min-height: 620px;
    overflow: hidden;
    cursor: grab;
}

.vo-floor__viewport.is-panning { cursor: grabbing; }

.vo-floor__stage {
    width: 1600px;
    height: 1100px;
    transform: translate(var(--vo-pan-x), var(--vo-pan-y)) scale(var(--vo-scale));
    transform-origin: 0 0;
    position: relative;
}

.vo-floor[data-mode="blueprint"] .vo-floor__grid {
    position: absolute;
    inset: 0;
    background-color: #020617;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.14) 1px, transparent 1px),
        linear-gradient(rgba(165, 243, 252, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 243, 252, 0.06) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
    pointer-events: none;
}

.vo-floor[data-mode="isometric"] .vo-floor__grid {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
        radial-gradient(ellipse at 70% 70%, rgba(34, 211, 238, 0.1), transparent 40%),
        linear-gradient(160deg, #0b1220, #070b14 60%);
    pointer-events: none;
}

.vo-floor[data-mode="isometric"] .vo-floor__stage--iso .vo-zone-scene {
    transform: perspective(1200px) rotateX(48deg) rotateZ(-32deg);
    transform-style: preserve-3d;
}

.vo-floor__hint {
    position: absolute;
    bottom: 0.75rem;
    inset-inline-start: 0.9rem;
    font-size: 0.72rem;
    color: #94a3b8;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.vo-floor__empty-campus {
    position: absolute;
    inset: 20% 15%;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.35);
}

/* —— Zone / dept —— */
.vo-zone-scene {
    position: absolute;
    border: 1px solid var(--vo-border);
    border-radius: 20px;
    background: var(--vo-panel);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    padding: 0.85rem;
    min-width: 420px;
}

.vo-zone-scene__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.vo-zone-scene__title span { font-size: 0.75rem; color: var(--vo-muted); font-weight: 500; }
.vo-zone-scene__empty, .vo-dept-wing__empty { font-size: 0.8rem; color: var(--vo-muted); padding: 0.5rem 0; }

.vo-dept-wing {
    border: 1px solid color-mix(in srgb, var(--vo-dept-accent) 55%, transparent);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
    padding: 0.65rem;
    margin-bottom: 0.65rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 24px color-mix(in srgb, var(--vo-dept-accent) 18%, transparent);
}

.vo-dept-wing__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.vo-dept-wing__name { font-weight: 700; font-size: 0.92rem; }
.vo-dept-wing__kind { font-size: 0.72rem; color: var(--vo-muted); }
.vo-dept-wing__rooms { display: grid; gap: 0.65rem; }

/* —— Room scene —— */
.vo-room-scene {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    overflow: hidden;
    background: rgba(2, 6, 23, 0.45);
}

.vo-room-scene[data-status="Executing"] {
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
    border-color: rgba(34, 211, 238, 0.55);
}

.vo-room-scene[data-status="Active"] {
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.18);
    border-color: color-mix(in srgb, var(--vo-dept-accent) 50%, #22c55e);
}

.vo-room-scene__chrome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    background: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.vo-room-scene__title { font-size: 0.82rem; font-weight: 700; }
.vo-room-scene__meta { font-size: 0.7rem; color: var(--vo-muted); }

.vo-room-scene__stage {
    position: relative;
    min-height: 210px;
    padding: 0.5rem;
}

.vo-room-scene__floor {
    position: absolute;
    inset: 8px 10px 20px;
    opacity: 0.95;
    pointer-events: auto;
}

.vo-room-scene__floor .vo-svg { width: 100%; height: 100%; }

.vo-room-scene__glass {
    position: absolute;
    top: 4px;
    left: 12%;
    width: 76%;
    height: 42px;
    opacity: 0.85;
    pointer-events: none;
}

.vo-room-scene__glass .vo-svg { width: 100%; height: 100%; }

.vo-room-scene__props { position: absolute; inset: 0; pointer-events: none; }
.vo-prop { position: absolute; width: 36px; height: 40px; opacity: 0.92; }
.vo-prop .vo-svg { width: 100%; height: 100%; }
.vo-prop--plant { inset-inline-start: 6px; bottom: 8px; }
.vo-prop--board { inset-inline-end: 8px; top: 36px; width: 52px; }
.vo-prop--server { inset-inline-end: 6px; bottom: 10px; width: 40px; height: 52px; }
.vo-prop--cooler { inset-inline-end: 10px; bottom: 8px; }

.vo-room-scene__desks {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.45rem;
    padding: 2.2rem 0.35rem 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vo-room-scene__desks.capacity-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vo-room-scene__desks.capacity-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vo-room-scene__desks.capacity-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* —— Workstation —— */
.vo-workstation {
    position: relative;
    border-radius: 12px;
    padding: 0.35rem;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    min-height: 88px;
}

.vo-workstation:hover,
.vo-workstation.is-elevated {
    transform: translateY(-4px) scale(1.03);
    z-index: 4;
}

.vo-workstation.is-vacant {
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.35);
}

.vo-workstation.is-occupied {
    border: 1px solid color-mix(in srgb, var(--vo-dept-accent) 40%, transparent);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.vo-workstation[data-pulse="Working"] {
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}

.vo-workstation[data-pulse="Handoff"] {
    box-shadow: 0 0 22px rgba(167, 139, 250, 0.4);
}

.vo-workstation__iso { position: relative; height: 92px; }
.vo-workstation__stack { position: relative; width: 100%; height: 100%; }
.vo-workstation__monitors { position: absolute; left: 18%; top: 0; width: 64%; z-index: 3; }
.vo-workstation__desk { position: absolute; left: 10%; top: 28%; width: 80%; z-index: 2; }
.vo-workstation__chair { position: absolute; left: 32%; top: 48%; width: 42%; z-index: 1; }
.vo-workstation__agent { position: absolute; left: 34%; top: 22%; width: 38%; z-index: 4; }
.vo-workstation__badges {
    position: absolute;
    left: 4%;
    top: 2%;
    right: 4%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    z-index: 5;
    justify-content: center;
}

.vo-workstation__bp {
    display: grid;
    place-items: center;
    min-height: 72px;
    position: relative;
}

.vo-workstation__bp-agent { position: absolute; bottom: 4px; }

.vo-svg { display: block; width: 100%; height: auto; overflow: visible; }

.vo-monitors.is-active .vo-monitors__screen {
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.75));
    animation: vo-screen-scan 2.2s linear infinite;
}

.vo-monitors__code { animation: vo-code-flicker 1.4s ease-in-out infinite; }

.vo-agent-iso.is-idle { animation: vo-breathe 2.8s ease-in-out infinite; }
.vo-agent-iso.is-typing .vo-agent-iso__arm { animation: vo-type 0.45s ease-in-out infinite alternate; transform-origin: top center; }
.vo-agent-iso.is-walking { animation: vo-walk-x 2.4s ease-in-out infinite; }

.vo-hire-badge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: max-content;
    height: max-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.55);
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 6;
}

.vo-role-badge {
    display: inline-flex;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--vo-dept-accent) 35%, #0f172a);
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--vo-dept-accent) 70%, white);
}

.vo-status-live {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    font-size: 0.62rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

.vo-status-live__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vo-ready);
    box-shadow: 0 0 6px var(--vo-ready);
}

.vo-status-live[data-pulse="Working"] .vo-status-live__dot {
    background: var(--vo-working);
    box-shadow: 0 0 8px var(--vo-working);
    animation: vo-pulse-dot 1.2s ease-in-out infinite;
}

.vo-status-live[data-pulse="Handoff"] .vo-status-live__dot {
    background: var(--vo-handoff);
    box-shadow: 0 0 8px var(--vo-handoff);
    animation: vo-pulse-dot 0.9s ease-in-out infinite;
}

.vo-microcard {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    max-width: 180px;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    z-index: 10;
    font-size: 0.72rem;
    pointer-events: none;
}

.vo-microcard strong { display: block; margin-bottom: 0.15rem; }
.vo-microcard__task { margin-top: 0.3rem; color: #67e8f9; }

/* —— Activity overlay —— */
.vo-activity { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }

.vo-activity__rim {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.22);
    animation: vo-meet-pulse 2s ease-in-out infinite;
}

.vo-activity__think {
    position: absolute;
    display: flex;
    gap: 3px;
}

.vo-activity__think span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e0f2fe;
    animation: vo-think-dots 1s ease-in-out infinite;
}

.vo-activity__think span:nth-child(2) { animation-delay: .15s; }
.vo-activity__think span:nth-child(3) { animation-delay: .3s; }

.vo-activity__walker {
    position: absolute;
    left: var(--walk-from-x, 30%);
    top: var(--walk-from-y, 60%);
    animation: vo-walk-path 2.8s ease-in-out infinite;
}

.vo-activity__walker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--vo-handoff);
    box-shadow: 0 0 10px var(--vo-handoff);
}

.vo-activity__meet {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.55);
    color: #ddd6fe;
    font-size: 0.68rem;
    font-weight: 700;
    animation: vo-meet-pulse 1.8s ease-in-out infinite;
}

.vo-activity__meet--question {
    background: rgba(251, 146, 60, 0.18);
    border-color: rgba(251, 146, 60, 0.55);
    color: #ffedd5;
}

.vo-activity__handraise {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    animation: vo-hand-bob 0.9s ease-in-out infinite;
}

.vo-activity__handraise-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.8));
}

.vo-activity__handraise-bubble {
    margin-top: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.5);
    animation: vo-hand-pulse 1.1s ease-out infinite;
}

@keyframes vo-hand-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes vo-hand-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(251, 146, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
}

/* —— Drawer —— */
.vo-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

.vo-drawer {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: min(440px, 100vw);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #0f172a;
    z-index: 1050;
    box-shadow: -16px 0 48px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    border-inline-start: 1px solid rgba(148, 163, 184, 0.28);
}

.vo-drawer__header, .vo-drawer__footer {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.92);
}
.vo-drawer__footer { border-bottom: 0; border-top: 1px solid rgba(226, 232, 240, 0.95); margin-top: auto; }
.vo-drawer__body { padding: 1rem 1.15rem; overflow: auto; flex: 1; color: #334155; }
.vo-drawer__header h4 { color: #0f172a; font-weight: 800; }

.vo-agent-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.vo-handoff-panel {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 14px;
    background: linear-gradient(160deg, #eef2ff, #ecfeff);
}

.vo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #4338ca, #6366f1);
    flex-shrink: 0;
}

.vo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e0e7ff;
    color: #3730a3;
}

.vo-server-led { animation: vo-pulse-dot 1.6s ease-in-out infinite; }

.vo-glass-wall__pane {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--vo-dept-accent, #818cf8) 45%, transparent));
}

/* legacy map leftovers — light admin chrome */
.virtual-org-map-wrap {
    overflow: auto;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(165deg, #fff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.virtual-org-map-toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.virtual-org-room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.virtual-org-room-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 0.85rem;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.virtual-org-room-card:hover { border-color: rgba(79, 70, 229, 0.4); }
.virtual-org-chat { max-height: 420px; overflow: auto; }

@keyframes vo-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes vo-type {
    from { transform: rotate(-4deg); }
    to { transform: rotate(5deg); }
}

@keyframes vo-walk-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes vo-walk-path {
    0% { transform: translate(0, 0); opacity: 0.4; }
    40% { opacity: 1; }
    100% { transform: translate(48px, -18px); opacity: 0.2; }
}

@keyframes vo-think-dots {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes vo-screen-scan {
    0% { filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4)); }
    50% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.9)); }
    100% { filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4)); }
}

@keyframes vo-code-flicker {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes vo-pulse-dot {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes vo-meet-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .vo-agent-iso.is-idle,
    .vo-agent-iso.is-typing .vo-agent-iso__arm,
    .vo-agent-iso.is-walking,
    .vo-monitors.is-active .vo-monitors__screen,
    .vo-monitors__code,
    .vo-activity__think span,
    .vo-activity__walker,
    .vo-activity__meet,
    .vo-activity__handraise,
    .vo-activity__handraise-bubble,
    .vo-activity__rim,
    .vo-status-live__dot,
    .vo-server-led {
        animation: none !important;
    }
}

/* —— Phaser living office —— */
.vo-shell--office {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 0.85rem;
    min-height: 560px;
}

.vo-office-canvas-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: radial-gradient(120% 80% at 20% 0%, #243044 0%, #1a2233 45%, #0f172a 100%);
    min-height: 560px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.vo-office-canvas {
    width: 100%;
    height: 560px;
}

.vo-office-canvas__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    pointer-events: none;
}

.vo-live-feed {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.88));
    padding: 0.85rem;
    max-height: 560px;
    overflow: auto;
}

.vo-live-feed__head h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #0f172a;
}

.vo-live-feed__meeting {
    font-size: 0.78rem;
    color: #b45309;
    margin-bottom: 0.6rem;
}

.vo-live-feed__list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.vo-live-feed__card {
    text-align: start;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    background: #fff;
    cursor: pointer;
}

.vo-live-feed__card:hover {
    border-color: #818cf8;
}

.vo-live-feed__card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.vo-live-feed__meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.vo-live-feed__task {
    font-size: 0.72rem;
    color: #475569;
    margin-top: 0.25rem;
}

.vo-energy {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: #475569;
}

.vo-energy__bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.vo-energy__bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--vo-energy, 50%);
    background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.vo-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

.vo-pill--work { background: #e0f2fe; color: #0369a1; }
.vo-pill--meet { background: #fef3c7; color: #b45309; }
.vo-pill--walk { background: #ede9fe; color: #6d28d9; }
.vo-pill--alert { background: #ffe4e6; color: #be123c; }
.vo-pill--bored { background: #f1f5f9; color: #64748b; }
.vo-pill--ready { background: #dcfce7; color: #15803d; }

@media (max-width: 960px) {
    .vo-shell--office {
        grid-template-columns: 1fr;
    }
    .vo-live-feed { max-height: none; }
}

/* ── Ops core (light admin surface) ── */
.vo-ops {
    --vo-ops-ink: #0f172a;
    --vo-ops-muted: #64748b;
    --vo-ops-line: rgba(148, 163, 184, 0.28);
    --vo-ops-accent: #4f46e5;
    --vo-ops-cyan: #0891b2;
    --vo-ops-emerald: #059669;
    --vo-ops-amber: #d97706;
    --vo-ops-rose: #e11d48;
    position: relative;
}

.vo-ops__hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(8, 145, 178, 0.12), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(79, 70, 229, 0.14), transparent 50%),
        linear-gradient(145deg, #ffffff, #f8fafc 60%, #eef2ff);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.vo-ops__hero h1 {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--vo-ops-ink);
    letter-spacing: -0.02em;
}

.vo-ops__hero p {
    margin: 0;
    color: var(--vo-ops-muted);
    font-size: 0.9rem;
    max-width: 42rem;
}

.vo-ops__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.45rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--vo-ops-line);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.vo-ops__tabs .vo-btn {
    border-radius: 999px;
}

.vo-ops__tabs .vo-btn.is-active {
    background: linear-gradient(135deg, #312e81, #4f46e5 55%, #0891b2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.3);
}

.vo-panel {
    border: 1px solid var(--vo-ops-line);
    border-radius: 20px;
    background: linear-gradient(165deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.vo-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.vo-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--vo-ops-ink);
}

.vo-panel__sub {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--vo-ops-muted);
}

.vo-panel--form {
    background:
        linear-gradient(180deg, rgba(79, 70, 229, 0.04), transparent 42%),
        linear-gradient(165deg, #ffffff, #f8fafc);
    border-color: rgba(79, 70, 229, 0.16);
}

.vo-form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.vo-field { grid-column: span 12; }
.vo-field--3 { grid-column: span 3; }
.vo-field--4 { grid-column: span 4; }
.vo-field--6 { grid-column: span 6; }
.vo-field--8 { grid-column: span 8; }
.vo-field--actions {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vo-ops .vo-label {
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.vo-ops .vo-input {
    background: #fff;
    color: var(--vo-ops-ink);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    padding: 0.62rem 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.vo-ops .vo-input:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.vo-ops textarea.vo-input { min-height: 2.8rem; resize: vertical; }

.vo-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0 0.2rem;
    font-size: 0.86rem;
    color: #334155;
    font-weight: 600;
}

.vo-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--vo-ops-accent);
}

.vo-btn--sm {
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 999px;
}

.vo-btn--soft {
    background: linear-gradient(135deg, #ecfeff, #e0f2fe);
    border: 1px solid rgba(8, 145, 178, 0.25);
    color: #155e75;
}

.vo-btn--soft:hover:not(:disabled) {
    background: linear-gradient(135deg, #cffafe, #bae6fd);
}

.vo-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.vo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    user-select: none;
}

.vo-chip:hover { border-color: rgba(79, 70, 229, 0.4); transform: translateY(-1px); }
.vo-chip input { accent-color: var(--vo-ops-accent); margin: 0; }
.vo-chip.is-on {
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    border-color: rgba(79, 70, 229, 0.45);
    color: #3730a3;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

.vo-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.vo-chart-card {
    border: 1px solid var(--vo-ops-line);
    border-radius: 20px;
    background: linear-gradient(160deg, #fff, #f8fafc);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    padding: 1rem 1.1rem 0.85rem;
    min-height: 280px;
}

.vo-chart-card__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--vo-ops-ink);
}

.vo-chart-card__canvas-wrap {
    position: relative;
    height: 220px;
}

.vo-table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--vo-ops-line);
    background: #fff;
}

.vo-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
}

.vo-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: start;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--vo-ops-line);
    white-space: nowrap;
}

.vo-table tbody td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    color: #1e293b;
    vertical-align: middle;
}

.vo-table tbody tr:last-child td { border-bottom: 0; }
.vo-table tbody tr:hover td { background: rgba(79, 70, 229, 0.035); }

.vo-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}
.vo-status--ok { background: #dcfce7; color: #166534; }
.vo-status--warn { background: #fef3c7; color: #92400e; }
.vo-status--run { background: #e0f2fe; color: #075985; }
.vo-status--bad { background: #ffe4e6; color: #9f1239; }
.vo-status--idle { background: #f1f5f9; color: #64748b; }

.vo-meet-card {
    border: 1px solid var(--vo-ops-line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(145deg, #fff, #f8fafc);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.vo-meet-card__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.vo-meet-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.vo-alert {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}
.vo-alert--danger {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: #9f1239;
}
.vo-alert--ok {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: #065f46;
}

.vo-empty-soft {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    color: var(--vo-ops-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .vo-dash-grid { grid-template-columns: 1fr; }
    .vo-field--3, .vo-field--4, .vo-field--6, .vo-field--8 { grid-column: span 12; }
    .vo-ops__tabs { border-radius: 18px; }
}

/* ── Workflow builder (n8n-style) ── */
.vo-wf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}
.vo-wf-layout--studio {
    grid-template-columns: 280px minmax(0, 1fr) 300px;
}
.vo-wf-sidebar { max-height: 720px; display: flex; flex-direction: column; }
.vo-wf-sidebar__scroll { overflow: auto; flex: 1; padding-inline-end: 0.25rem; }
.vo-wf-acc { border: 1px solid rgba(226,232,240,.95); border-radius: 12px; margin-bottom: 0.45rem; overflow: hidden; background: #fff; }
.vo-wf-acc__head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: #f8fafc;
    padding: 0.55rem 0.7rem;
    font-weight: 700;
    font-size: 0.86rem;
    color: #0f172a;
    cursor: pointer;
}
.vo-wf-acc__body { padding: 0.35rem; display: flex; flex-direction: column; gap: 0.3rem; }
.vo-wf-palette-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(226,232,240,.9);
    background: linear-gradient(180deg, #fff, #f8fafc);
    cursor: grab;
    user-select: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.vo-wf-palette-item:hover {
    border-color: var(--vo-node-color, #f97316);
    background: linear-gradient(180deg, #fff7ed, #faf5ff);
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.12);
    transform: translateY(-1px);
}
.vo-wf-palette-item strong { display: block; font-size: 0.82rem; color: #0f172a; }
.vo-wf-palette-item small { display: block; font-size: 0.68rem; color: #64748b; direction: ltr; text-align: right; }
.vo-wf-palette-swatch { width: 10px; height: 10px; border-radius: 999px; margin-top: 0.3rem; flex: 0 0 auto; }
.vo-wf-node-title--on-color { fill: #fff !important; font-size: 11px !important; font-weight: 700; }
.vo-wf-node-status { fill: #94a3b8; font-size: 10px; font-family: Vazirmatn, Tahoma, sans-serif; }
.vo-wf-node-action { fill: #64748b; font-size: 13px; font-weight: 700; }
.vo-wf-node-shadow { fill: rgba(15, 23, 42, 0.08); }
.vo-wf-node-icon { fill: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.vo-wf-node-cat {
    fill: #64748b;
    font-size: 10px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
}
.vo-wf-insp-group {
    margin-top: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(249, 115, 22, 0.22);
    font-size: 0.78rem;
    font-weight: 800;
    color: #9a3412;
}
.vo-wf-insp-group--options {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-color: rgba(124, 58, 237, 0.22);
    color: #5b21b6;
}
.vo-wf-insp-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}
.vo-wf-insp-label-row__actions { display: inline-flex; align-items: center; gap: 0.25rem; }

/* Parameters column — fills center studio column */
.vo-wf-params {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.15rem 0.1rem 0.75rem;
    flex: 1 1 auto;
    min-height: 100%;
}
.vo-n8n-col__body > .vo-wf-params.vo-wf-insp-body {
    max-height: none;
    height: 100%;
    min-height: min(62vh, 640px);
    overflow: auto;
}
.vo-wf-params__hint {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}
.vo-wf-param {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.vo-wf-param--switch {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.vo-wf-param-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.vo-wf-param--half { min-width: 0; }
.vo-wf-params--compact { gap: 0.5rem; }
.vo-wf-params--compact .vo-wf-param,
.vo-wf-params--compact .vo-wf-option-card { padding: 0.55rem 0.65rem; }
.vo-wf-inspector .vo-wf-params { max-height: min(70vh, 720px); overflow: auto; }
.vo-wf-param__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
    line-height: 1.35;
}
.vo-wf-param .vo-input,
.vo-wf-option-card .vo-input {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.7rem;
    font-size: 0.86rem;
}

/* Options collection — Add first, values grow into free space below */
.vo-wf-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.7rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    flex: 1 1 auto;
    min-height: 280px;
}
.vo-wf-options__list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-height: 200px;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px dashed rgba(167, 139, 250, 0.45);
    background: rgba(255, 255, 255, 0.72);
}
.vo-wf-option-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(249, 115, 22, 0.28);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.06);
}
.vo-wf-option-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.vo-wf-option-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}
.vo-wf-option-card__remove {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #fff1f2, #fecdd3);
    color: #be123c;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vo-wf-option-card__remove:hover {
    background: linear-gradient(135deg, #ffe4e6, #fda4af);
}

.vo-wf-add-option { position: relative; }
.vo-wf-add-option__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #c026d3 100%);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.vo-wf-add-option__btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(192, 38, 211, 0.3);
    transform: translateY(-1px);
}
.vo-wf-add-option__btn:active { transform: translateY(0); }
.vo-wf-add-option__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}
.vo-wf-add-option__menu {
    position: absolute;
    z-index: 50;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    max-height: 280px;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(192, 38, 211, 0.25);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(88, 28, 135, 0.16);
    padding: 0.4rem;
}
.vo-wf-add-option__item {
    display: block;
    width: 100%;
    text-align: start;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-add-option__item:hover {
    background: linear-gradient(135deg, #fff7ed, #faf5ff);
    color: #9a3412;
}
.vo-wf-add-option__empty {
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Toggle switch */
.vo-wf-toggle {
    position: relative;
    width: 2.6rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background .15s ease;
}
.vo-wf-toggle.is-on {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.vo-wf-toggle__knob {
    position: absolute;
    top: 0.18rem;
    inset-inline-start: 0.18rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: inset-inline-start .15s ease, transform .15s ease;
}
.vo-wf-toggle.is-on .vo-wf-toggle__knob {
    inset-inline-start: calc(100% - 1.28rem);
}

.vo-wf-var-menu { position: relative; }
.vo-wf-var-btn {
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    color: #6d28d9;
    cursor: pointer;
}
.vo-wf-var-btn:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.vo-wf-var-dropdown {
    position: absolute;
    inset-inline-end: 0;
    top: 120%;
    z-index: 20;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
}
.vo-wf-var-opt {
    border: 0;
    background: transparent;
    text-align: right;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    direction: ltr;
}
.vo-wf-var-opt:hover { background: #f1f5f9; }
.vo-wf-password { display: flex; gap: 0.35rem; align-items: center; }
.vo-wf-password .vo-input { flex: 1; }
.vo-wf-slider { display: flex; align-items: center; gap: 0.55rem; }
.vo-wf-slider input[type=range] { flex: 1; }
.vo-wf-slider__val { font-size: 0.8rem; font-weight: 700; color: #0f172a; min-width: 2.5rem; direction: ltr; }
.vo-input--mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; direction: ltr; text-align: left; }
.vo-wf-inspector .vo-panel__head { align-items: flex-start; }
.vo-wf-insp-tabs {
    display: flex;
    gap: 0.3rem;
    margin: 0.35rem 0 0.65rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, #faf5ff);
    border: 1px solid rgba(249, 115, 22, 0.18);
}
.vo-wf-insp-tab {
    border: 0;
    background: transparent;
    padding: 0.4rem 0.75rem;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-insp-tab.is-active {
    background: linear-gradient(135deg, #f97316, #c026d3);
    color: #fff;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}
.vo-wf-insp-action {
    border: 0;
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: Vazirmatn, Tahoma, sans-serif;
    cursor: pointer;
    color: #fff;
    transition: filter .12s ease, transform .12s ease;
}
.vo-wf-insp-action:disabled { opacity: 0.45; cursor: not-allowed; }
.vo-wf-insp-action--studio {
    background: linear-gradient(135deg, #8b5cf6, #c026d3);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.28);
}
.vo-wf-insp-action--run {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.28);
}
.vo-wf-insp-action:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.vo-wf-insp-body { max-height: 560px; overflow: auto; }
.vo-wf-json {
    margin: 0;
    padding: 0.75rem;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.72rem;
    line-height: 1.45;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, Consolas, monospace;
}
.vo-wf-canvas-shell {
    margin-top: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(148,163,184,.25) 1px, transparent 0) 0 0 / 22px 22px,
        linear-gradient(180deg, #f8fafc, #fff);
    min-height: 520px;
}
.vo-wf-host { display: flex; flex-direction: column; height: 100%; min-height: 520px; }
.vo-wf-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    align-items: center;
}
.vo-wf-palette-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}
.vo-wf-palette-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-inline-end: 0.15rem;
}
.vo-wf-stage { position: relative; flex: 1; min-height: 460px; overflow: hidden; background-image: radial-gradient(#cbd5e1 1px, transparent 1px); background-size: 18px 18px; }
.vo-wf-svg { display: block; width: 100%; height: 100%; min-height: 460px; overflow: visible; }
.vo-wf-edge {
    fill: none;
    stroke: #94a3b8;
    stroke-width: 2.2;
}
.vo-wf-edge.is-selected { stroke: #4f46e5; stroke-width: 2.8; }
.vo-wf-edge--preview {
    stroke: #818cf8;
    stroke-dasharray: 6 4;
    pointer-events: none;
}
.vo-wf-edge--preview-aux {
    stroke: #f97316;
}
.vo-wf-connect-halo {
    fill: rgba(249, 115, 22, 0.08);
    stroke: #f97316;
    stroke-width: 2;
    stroke-dasharray: 5 4;
    pointer-events: none;
}
.vo-wf-edge-label {
    fill: #64748b;
    font-size: 11px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    text-anchor: middle;
}
.vo-wf-port {
    fill: #fff;
    stroke: #64748b;
    stroke-width: 2;
}
.vo-wf-port--out { fill: #eef2ff; stroke: #6366f1; }
.vo-wf-port--in { fill: #ecfdf5; stroke: #10b981; }
.vo-wf-port--aux {
  fill: #fff7ed;
  stroke: #f97316;
  stroke-width: 1.6;
}
.vo-wf-port--aux.is-required {
  fill: #ffedd5;
  stroke: #ea580c;
}
.vo-wf-port-aux-label {
  font-size: 9px;
  fill: #64748b;
  pointer-events: none;
  user-select: none;
}
.vo-wf-port-aux-plus {
  font-size: 14px;
  font-weight: 700;
  fill: #64748b;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}
.vo-wf-port-aux-plus:hover { fill: #ea580c; }
.vo-wf-aux-picker {
  position: absolute;
  z-index: 80;
  min-width: 260px;
  max-width: 320px;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 0.4rem;
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-aux-picker__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding: 0.35rem 0.55rem 0.2rem;
}
.vo-wf-aux-picker__item {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
  color: #0f172a;
  cursor: pointer;
}
.vo-wf-aux-picker__item:hover { background: #fff7ed; }
.vo-wf-aux-picker__item small {
  display: block;
  color: #94a3b8;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}
.vo-wf-aux-picker__empty {
  padding: 0.6rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.vo-wf-edge--aux {
  stroke: #fb923c;
  stroke-dasharray: 5 4;
  stroke-width: 1.6;
}
.vo-wf-edge-group .vo-wf-edge-btn { opacity: 1; }
.vo-wf-edge-btn__bg {
  fill: #fff;
  stroke: #cbd5e1;
  stroke-width: 1.4;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.14));
}
.vo-wf-edge-btn--add .vo-wf-edge-btn__bg {
  fill: #0f172a;
  stroke: #0f172a;
}
.vo-wf-edge-btn--del .vo-wf-edge-btn__bg {
  fill: #fff;
  stroke: #fda4af;
}
.vo-wf-edge-btn:hover .vo-wf-edge-btn__bg {
  stroke: #f97316;
  filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.25));
}
.vo-wf-out-stub {
  stroke: #cbd5e1;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  pointer-events: none;
}
.vo-wf-node-toolbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.vo-wf-node:hover .vo-wf-node-toolbar,
.vo-wf-node.is-selected .vo-wf-node-toolbar,
.vo-wf-node-toolbar.is-forced {
  opacity: 1;
  pointer-events: auto;
}
.vo-wf-node-toolbar__bg {
  fill: #1e293b;
  stroke: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.3));
}
.vo-wf-node-toolbar__btn {
  fill: transparent;
}
.vo-wf-node-action:hover .vo-wf-node-toolbar__btn {
  fill: rgba(249, 115, 22, 0.4);
}
.vo-wf-zoom {
  position: absolute;
  z-index: 30;
  inset-inline-start: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-zoom__btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff7ed, #faf5ff);
  color: #9a3412;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.vo-wf-zoom__btn:hover {
  background: linear-gradient(135deg, #f97316, #c026d3);
  color: #fff;
}
.vo-wf-zoom__label {
  min-width: 3rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  direction: ltr;
}
.vo-wf-zoom__fit { font-size: 0.9rem; }
.vo-wf-node.is-disabled {
  opacity: 0.55;
}
.vo-wf-node.is-disabled rect:first-of-type {
  stroke-dasharray: 5 4;
}
.vo-wf-node-menu,
.vo-wf-catalog-picker {
  position: absolute;
  z-index: 90;
  min-width: 260px;
  max-width: 320px;
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  padding: 0.35rem;
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-node-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  font-family: inherit;
}
.vo-wf-node-menu__item:hover:not(:disabled) {
  background: linear-gradient(135deg, #fff7ed, #faf5ff);
}
.vo-wf-node-menu__item.is-disabled,
.vo-wf-node-menu__item:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}
.vo-wf-node-menu__item kbd {
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
}
.vo-wf-node-menu__sep {
  height: 1px;
  margin: 0.3rem 0.4rem;
  background: #e2e8f0;
}
.vo-wf-catalog-picker__search {
  width: 100%;
  box-sizing: border-box;
  margin: 0.25rem 0 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.82rem;
}
.vo-wf-port-label {
    fill: #64748b;
    font-size: 10px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-node rect {
    fill: #fff;
    stroke: #cbd5e1;
    stroke-width: 1.5;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
}
.vo-wf-node.is-selected rect {
    stroke: #ea580c;
    stroke-width: 2.4;
    filter: drop-shadow(0 10px 18px rgba(234, 88, 12, 0.18));
}
.vo-wf-node.kind-start rect { fill: #ecfdf5; stroke: #22c55e; }
.vo-wf-node.kind-end rect { fill: #fff1f2; stroke: #f43f5e; }
.vo-wf-node.kind-agent rect { fill: #f5f3ff; stroke: #a855f7; }
.vo-wf-node.kind-condition rect { fill: #fff7ed; stroke: #f97316; }
.vo-wf-node.kind-humanApproval rect { fill: #fff7ed; stroke: #fb923c; }
.vo-wf-node.kind-department rect { fill: #ecfeff; stroke: #06b6d4; }
.vo-wf-node.kind-tool rect,
.vo-wf-node.kind-memory rect { fill: #faf5ff; stroke: #8b5cf6; }
.vo-wf-node.kind-http rect { fill: #eff6ff; stroke: #3b82f6; }
.vo-wf-node.kind-whatsapp rect { fill: #ecfdf5; stroke: #16a34a; }
.vo-wf-node.kind-callCenter rect { fill: #fff7ed; stroke: #ea580c; }
.vo-wf-node.kind-handoff rect { fill: #fdf4ff; stroke: #d946ef; }
.vo-wf-node-title {
    fill: #0f172a;
    font-size: 13px;
    font-weight: 800;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.vo-wf-node-sub {
    fill: #64748b;
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.vo-wf-node.is-selected .vo-wf-node-title { fill: #0f172a; }
.vo-wf-node-html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0 4px 0 0;
    box-sizing: border-box;
    font-family: Vazirmatn, Tahoma, sans-serif;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.vo-wf-node-html__title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.vo-wf-node-html__cat {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vo-wf-node-html__type {
    font-size: 9.5px;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
}
.vo-wf-marquee {
    fill: rgba(99, 102, 241, 0.12);
    stroke: #6366f1;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    pointer-events: none;
}
.vo-wf-node.is-selected rect:first-of-type + rect {
    filter: drop-shadow(0 0 0 rgba(79, 70, 229, 0.15));
}
.vo-wf-path-steps { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.vo-wf-path-steps li {
    display: flex; gap: 0.5rem; align-items: flex-start;
    padding: 0.4rem 0.5rem; border-radius: 10px;
    border: 1px solid rgba(148,163,184,.25); margin-bottom: 0.35rem;
    background: #f8fafc; font-size: 0.82rem;
}
.vo-wf-path-steps li.is-ok { border-color: rgba(34,197,94,.35); background: #f0fdf4; }
.vo-wf-path-steps li.is-bad { border-color: rgba(239,68,68,.35); background: #fef2f2; }
.vo-wf-path-steps code { font-size: 0.72rem; color: #0f766e; }
@media (max-width: 1200px) {
    .vo-wf-layout,
    .vo-wf-layout--studio { grid-template-columns: 1fr; }
}

/* ── n8n-style node studio (INPUT | Parameters | OUTPUT) ── */
.vo-n8n-backdrop {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: flex; align-items: stretch; justify-content: center;
    padding: 1.25rem 1.5rem;
    animation: vo-n8n-fade .18s ease-out;
}
@keyframes vo-n8n-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.vo-n8n-studio {
    width: min(1480px, 100%);
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    display: flex; flex-direction: column;
    background: #f4f4f5;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    animation: vo-n8n-rise .22s ease-out;
}
@keyframes vo-n8n-rise {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.vo-n8n-studio__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}
.vo-n8n-studio__identity { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.vo-n8n-studio__identity h3 {
    margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vo-n8n-studio__identity p {
    margin: 0.1rem 0 0; font-size: 0.75rem; color: #64748b;
}
.vo-n8n-studio__identity code { font-size: 0.72rem; color: #0f766e; }
.vo-n8n-studio__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    color: #fff; font-size: 1.05rem; font-weight: 800;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.vo-n8n-studio__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.vo-n8n-studio__alert { margin: 0.65rem 1.1rem 0; }
.vo-n8n-studio__cols {
    flex: 1; min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr) minmax(260px, 1fr);
    gap: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.vo-n8n-col {
    min-width: 0; min-height: 0;
    display: flex; flex-direction: column;
    background: #fff;
    border-inline-end: 1px solid rgba(226, 232, 240, 0.95);
}
.vo-n8n-col:last-child { border-inline-end: 0; }
.vo-n8n-col--center { background: #fafafa; }
.vo-n8n-col__head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
}
.vo-n8n-col__head strong {
    font-size: 0.72rem; letter-spacing: 0.06em;
    color: #64748b; font-weight: 800;
}
.vo-n8n-col__body {
    flex: 1; min-height: 0; overflow: auto;
    padding: 0.75rem 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
}
.vo-n8n-seg {
    display: inline-flex; align-items: center;
    padding: 2px; gap: 2px;
    background: #eef2f6;
    border-radius: 9px;
}
.vo-n8n-seg--soft { background: #e8edf3; }
.vo-n8n-seg__btn {
    border: 0; background: transparent;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem; font-weight: 700;
    color: #64748b; border-radius: 7px;
    cursor: pointer;
}
.vo-n8n-seg__btn.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.vo-n8n-hint {
    font-size: 0.75rem; color: #64748b;
    margin: 0 0 0.55rem;
}
.vo-n8n-empty {
    padding: 1.25rem 0.75rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: #f8fafc;
}
.vo-n8n-ok { color: #16a34a; margin-inline-start: 0.35rem; }
.vo-n8n-bad { color: #dc2626; margin-inline-start: 0.35rem; }
.vo-n8n-picked {
    margin-top: 0.85rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.35);
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
    font-size: 0.78rem;
}
.vo-n8n-picked code {
    direction: ltr; text-align: left;
    background: #fff; padding: 0.15rem 0.35rem; border-radius: 6px;
    font-size: 0.72rem;
}
.vo-n8n-tree { list-style: none; margin: 0; padding: 0; }
.vo-n8n-tree .vo-n8n-tree { margin-inline-start: 0.15rem; }
.vo-n8n-tree__item { margin: 0; }
.vo-n8n-tree__row {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.28rem 0.35rem;
    padding-inline-start: calc(0.35rem + var(--d, 0) * 0.85rem);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #0f172a;
}
.vo-n8n-tree__row:hover { background: #f1f5f9; }
.vo-n8n-tree__row.is-leaf:hover { background: #eef2ff; }
.vo-n8n-tree__caret,
.vo-n8n-tree__caret-spacer {
    width: 1rem; flex: 0 0 auto;
    border: 0; background: transparent;
    color: #94a3b8; font-size: 0.7rem; padding: 0; cursor: pointer;
}
.vo-n8n-tree__key { font-weight: 700; }
.vo-n8n-tree__count {
    margin-inline-start: auto;
    font-size: 0.68rem; color: #94a3b8; white-space: nowrap;
}
.vo-n8n-tree__preview {
    margin-inline-start: 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    max-width: 55%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    direction: ltr; text-align: left;
}
.vo-n8n-type {
    display: inline-grid; place-items: center;
    min-width: 1.35rem; height: 1.15rem;
    padding: 0 0.2rem;
    border-radius: 4px;
    font-size: 0.58rem; font-weight: 800;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
}
.vo-n8n-type--obj { background: #dbeafe; color: #1d4ed8; }
.vo-n8n-type--arr { background: #fce7f3; color: #be185d; }
.vo-n8n-type--str { background: #dcfce7; color: #15803d; }
.vo-n8n-type--num { background: #ffedd5; color: #c2410c; }
.vo-n8n-type--bool { background: #e0e7ff; color: #4338ca; }
.vo-n8n-type--bin { background: #fef3c7; color: #b45309; }
.vo-n8n-table-wrap {
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    background: #fff;
}
.vo-n8n-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.75rem;
}
.vo-n8n-table th,
.vo-n8n-table td {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: start;
    max-width: 220px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vo-n8n-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
    position: sticky; top: 0;
}
.vo-n8n-binary {
    display: flex; flex-direction: column; gap: 0.65rem; align-items: flex-start;
}
.vo-n8n-binary img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    object-fit: contain;
    background: #f8fafc;
}
.vo-n8n-path { margin-top: 0.9rem; }
.vo-n8n-path__title {
    font-size: 0.72rem; font-weight: 800; color: #64748b;
    margin-bottom: 0.4rem;
}
.vo-n8n-path__item {
    display: flex; flex-direction: column; gap: 0.1rem;
    padding: 0.4rem 0.5rem;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fafc;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
}
.vo-n8n-path__item.is-ok { border-color: rgba(34, 197, 94, 0.35); background: #f0fdf4; }
.vo-n8n-path__item.is-bad { border-color: rgba(239, 68, 68, 0.35); background: #fef2f2; }
.vo-n8n-path__item code { font-size: 0.7rem; color: #0f766e; }
.vo-wf-var-btn.is-active {
    background: #ffedd5; color: #c2410c; border-color: #fdba74;
}
@media (max-width: 1100px) {
    .vo-n8n-studio__cols { grid-template-columns: 1fr; overflow: auto; }
    .vo-n8n-col { min-height: 280px; border-inline-end: 0; border-bottom: 1px solid rgba(226, 232, 240, 0.95); }
}
