/* Nano Banana Creative Canvas - isolated from all existing pages. */
.canvas-page {
    --vc-bg: #0d0f13;
    --vc-panel: #17191e;
    --vc-panel-2: #202329;
    --vc-panel-3: #262a31;
    --vc-border: #32363f;
    --vc-border-strong: #484e59;
    --vc-text: #f2f3f5;
    --vc-text-2: #bbc1ca;
    --vc-text-3: #9098a5;
    --vc-gold: #f0b438;
    --vc-gold-2: #ffd36c;
    --vc-blue: #69bfff;
    --vc-coral: #f39b67;
    --vc-green: #5bd69c;
    --vc-red: #f47777;
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--vc-bg);
    color: var(--vc-text);
    font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-rendering: optimizeLegibility;
}

.canvas-page *,
.canvas-page *::before,
.canvas-page *::after { box-sizing: border-box; }
.canvas-page [hidden] { display: none !important; }
.canvas-page button,
.canvas-page input,
.canvas-page textarea,
.canvas-page select { font: inherit; }
.canvas-page button { color: inherit; }
.canvas-page svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* A project editor URL is resolved asynchronously. Hide the hub at parse
   time so its empty state never flashes before openProject() paints the
   workspace. The class is removed as soon as the route resolves. */
html.vc-project-route-loading .canvas-page > .app-header,
html.vc-project-route-loading .canvas-page > .vc-project-hub { display: none !important; }
html.vc-project-route-loading .canvas-page::before {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(240,180,56,.09), transparent 24%),
        #101216;
    color: #aeb4bd;
    content: '正在打开画布...';
    font-size: 13px;
    letter-spacing: .06em;
}

/* Shared */
.vc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vc-text);
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.vc-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #211a0d;
    background: linear-gradient(135deg, #ffd66f, #e89d18);
    box-shadow: 0 8px 24px rgba(232, 157, 24, 0.2);
    font-family: Georgia, serif;
    font-weight: 900;
}
.vc-brand.compact .vc-brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.vc-mode-switch {
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--vc-border);
    border-radius: 11px;
    background: rgba(26, 29, 35, 0.88);
}
.vc-mode-switch a {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--vc-text-2);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.vc-mode-switch a.active {
    color: var(--vc-gold-2);
    background: rgba(240, 180, 56, 0.13);
    font-weight: 700;
}
.vc-mode-switch.compact a { padding: 6px 11px; font-size: 12px; }
.vc-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 19px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7c44f, #e99e19);
    color: #211a0d;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(232, 157, 24, 0.2);
}
.vc-primary-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.canvas-page .vc-primary-btn,
.canvas-page .vc-primary-btn span {
    color: #211a0d;
    font-weight: 800;
}
.vc-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--vc-border);
    border-radius: 9px;
    background: var(--vc-panel-2);
    color: var(--vc-text-2);
    cursor: pointer;
}
.vc-icon-btn:hover { color: var(--vc-text); border-color: var(--vc-border-strong); }

/* Project hub */
.vc-project-hub {
    height: calc(100vh - 60px);
    min-height: 0;
    overflow-y: auto;
    background:
        radial-gradient(circle at 78% -10%, rgba(240, 180, 56, 0.12), transparent 30%),
        radial-gradient(circle at 5% 40%, rgba(75, 128, 180, 0.09), transparent 34%),
        #101216;
}
.vc-hub-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 68px;
    padding: 0 36px;
    border-bottom: 1px solid rgba(62, 65, 72, 0.68);
    background: rgba(16, 18, 22, 0.88);
    backdrop-filter: blur(18px);
}
.vc-hub-main { width: min(1480px, calc(100% - 72px)); margin: 0 auto; padding: 74px 0 90px; }
.vc-hub-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 54px;
}
.vc-hub-intro > div { max-width: 1080px; }
.vc-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--vc-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
}
.vc-hub-intro h1 {
    max-width: 1040px;
    margin: 0;
    color: #f8f8f9;
    font-family: "STKaiti", "KaiTi", "PingFang SC", sans-serif;
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.13;
}
.vc-hub-intro p { margin: 17px 0 0; color: var(--vc-text-2); font-size: 15px; }
.vc-hub-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vc-border);
}
.vc-hub-tabs button {
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--vc-text-2);
    cursor: pointer;
}
.vc-hub-tabs button.active { background: var(--vc-panel-2); color: var(--vc-text); font-weight: 700; }
.vc-hub-notice {
    margin: 0 0 18px;
    padding: 12px 15px;
    border: 1px solid #6d5120;
    border-radius: 10px;
    background: #2c2415;
    color: #f0cf7d;
    font-size: 13px;
}
.vc-project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.vc-project-card,
.vc-template-card {
    position: relative;
    overflow: hidden;
    min-height: 225px;
    padding: 0;
    border: 1px solid var(--vc-border);
    border-radius: 16px;
    background: var(--vc-panel);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.vc-project-card:hover,
.vc-template-card:hover {
    transform: translateY(-3px);
    border-color: #5b606a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.vc-card-cover {
    position: relative;
    height: 145px;
    overflow: hidden;
    border-bottom: 1px solid var(--vc-border);
    background:
        radial-gradient(circle at 22% 30%, rgba(240, 180, 56, 0.35), transparent 18%),
        linear-gradient(145deg, #29364b, #151b26 46%, #402a1c);
}
.vc-card-cover > img[data-project-thumbnail] {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.vc-card-cover.has-thumbnail {
    background: #12161e;
}
.vc-card-cover.has-thumbnail::before,
.vc-card-cover.has-thumbnail::after,
.vc-card-cover.has-thumbnail > i {
    display: none;
}
.vc-card-cover::before,
.vc-card-cover::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(219, 226, 237, 0.35);
    border-radius: 9px;
    background: rgba(17, 20, 26, 0.7);
}
.vc-card-cover::before { left: 13%; top: 25%; width: 29%; height: 52%; }
.vc-card-cover::after { right: 12%; top: 18%; width: 34%; height: 45%; }
.vc-card-cover i {
    position: absolute;
    left: 42%;
    top: 50%;
    width: 25%;
    height: 1px;
    background: linear-gradient(90deg, var(--vc-gold), var(--vc-blue));
    transform: rotate(-8deg);
}
.vc-project-meta { padding: 15px 16px 17px; }
.vc-project-meta strong { display: block; overflow: hidden; margin-bottom: 6px; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.vc-project-meta span { color: var(--vc-text-3); font-size: 11px; }
.vc-project-menu {
    position: absolute;
    z-index: 3;
    right: 9px;
    top: 9px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: rgba(10, 12, 16, 0.72);
    color: #d8dce3;
    line-height: 1;
    cursor: pointer;
}
.vc-template-card .vc-card-cover { background: linear-gradient(145deg, #312716, #1a1d25 46%, #23384b); }
.vc-template-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 12px;
    color: #f3d27b;
    background: rgba(50, 40, 20, .9);
    font-size: 10px;
}
.vc-loading-card,
.vc-hub-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 250px;
    border: 1px dashed var(--vc-border);
    border-radius: 16px;
    color: var(--vc-text-3);
}

/* Workspace */
.vc-workspace { position: relative; width: 100vw; height: calc(100vh - 60px); overflow: hidden; background: var(--vc-bg); }
.vc-topbar {
    position: absolute;
    z-index: 100;
    inset: 0 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid var(--vc-border);
    background: rgba(20, 22, 27, .94);
    backdrop-filter: blur(16px);
}
.vc-topbar-left,
.vc-topbar-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.vc-hub-back-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px 0 8px;
    border: 1px solid #454a54;
    border-radius: 9px;
    background: #202329;
    color: #e1e4e8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.vc-hub-back-btn svg { width: 14px; height: 14px; stroke-width: 2.2; }
.vc-hub-back-btn:hover { border-color: #806626; background: #312a1b; color: var(--vc-gold-2); }
.vc-project-title {
    width: 180px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--vc-text);
    font-size: 14px;
    font-weight: 700;
}
.vc-project-title:hover,
.vc-project-title:focus { outline: none; border-color: var(--vc-border); background: var(--vc-panel-2); }
.vc-save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--vc-text-3); font-size: 12px; white-space: nowrap; }
.vc-save-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-green); }
.vc-save-state.saving i { background: var(--vc-gold); animation: vc-pulse 1s infinite; }
.vc-save-state.error { color: #f49a9a; }
.vc-save-state.error i { background: var(--vc-red); }
@keyframes vc-pulse { 50% { opacity: .35; } }
.vc-canvas-name { padding: 6px 10px; border: 1px solid var(--vc-border); border-radius: 8px; color: var(--vc-text-2); font-size: 12px; }
.vc-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--vc-border);
    border-radius: 9px;
    background: var(--vc-panel-2);
    color: #d8dbe0;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.vc-top-btn svg { width: 15px; height: 15px; }
.canvas-page .vc-topbar button.vc-top-btn { font-size: 12px; line-height: 1; }
.vc-top-btn:hover { border-color: var(--vc-border-strong); background: var(--vc-panel-3); }
.vc-top-btn.accent { border-color: #59471f; background: #302919; color: #f2c85f; }

/* Expandable sidebar */
.vc-sidebar {
    position: absolute;
    z-index: 80;
    left: 16px;
    top: 80px;
    bottom: 88px;
    display: flex;
    flex-direction: column;
    width: 282px;
    border: 1px solid var(--vc-border);
    border-radius: 17px;
    background: rgba(21, 23, 28, .97);
    box-shadow: 0 20px 60px rgba(0,0,0,.38);
    transition: transform .24s ease, opacity .2s;
}
.vc-sidebar:not(.open) { transform: translateX(-315px); opacity: 0; pointer-events: none; }
.vc-sidebar-head { display: flex; justify-content: space-between; align-items: center; min-height: 66px; padding: 13px 14px 11px 18px; border-bottom: 1px solid var(--vc-border); }
.vc-sidebar-head strong { display: block; margin-bottom: 3px; font-size: 14px; }
.vc-sidebar-head span { display: block; color: var(--vc-text-3); font-size: 11px; }
.vc-sidebar-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 12px 14px 0; padding: 3px; border-radius: 10px; background: var(--vc-panel-2); }
.vc-sidebar-tabs button { padding: 7px 5px; border: 0; border-radius: 8px; background: transparent; color: var(--vc-text-3); font-size: 11px; cursor: pointer; }
.vc-sidebar-tabs button.active { color: var(--vc-gold-2); background: #3a311c; font-weight: 700; }
.vc-sidebar-scroll { flex: 1; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 12px 14px; scrollbar-width: thin; scrollbar-color: #3d4149 transparent; }
.vc-sidebar-panel { display: none; }
.vc-sidebar-panel.active { display: block; }
.vc-side-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--vc-border); border-radius: 9px; background: #101216; }
.vc-side-search svg { width: 14px; color: var(--vc-text-3); }
.vc-side-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--vc-text); font-size: 12px; }
.vc-side-section-title { margin: 20px 2px 9px; color: #a4abb6; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.vc-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; min-width: 0; }
.vc-add-grid button {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 6px;
    min-width: 0;
    min-height: 68px;
    padding: 9px 8px;
    border: 1px solid var(--vc-border);
    border-radius: 11px;
    background: var(--vc-panel-2);
    text-align: left;
    cursor: pointer;
}
.vc-add-grid button:hover { transform: translateY(-1px); border-color: #555b65; }
.vc-add-grid button.featured { border-color: #5e4b24; background: #292419; }
.vc-add-grid strong,
.vc-add-grid span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-add-grid strong { align-self: end; font-size: 12.5px; }
.vc-add-grid span { align-self: start; color: var(--vc-text-3); font-size: 10px; }
.vc-add-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-style: normal; font-size: 10px; font-weight: 800; }
.vc-add-icon.text { background: #3a301b; color: #f0c45e; }
.vc-add-icon.image { background: #36271f; color: var(--vc-coral); }
.vc-add-icon.video { background: #3b311b; color: var(--vc-gold-2); }
.vc-add-icon.upload { background: #203541; color: #8dd3f4; font-size: 16px; }
.vc-side-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; width: 100%; margin-bottom: 7px; padding: 10px; border: 0; border-radius: 10px; background: #1e2025; text-align: left; cursor: pointer; }
.vc-side-row > i { color: var(--vc-text-2); font-style: normal; }
.vc-side-row strong,
.vc-side-row small { display: block; }
.vc-side-row strong { font-size: 12px; }
.vc-side-row small { margin-top: 2px; color: var(--vc-text-3); font-size: 10.5px; }
.vc-side-row b { color: var(--vc-text-3); font-size: 10.5px; font-weight: 500; }
.vc-sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 14px; border-top: 1px solid var(--vc-border); color: #a18f67; font-size: 10px; }
.vc-sidebar-foot button { border: 0; background: transparent; color: var(--vc-gold); font-size: 10.5px; cursor: pointer; }
.vc-sidebar-open-btn { position: absolute; z-index: 75; left: 17px; top: 86px; width: 36px; height: 50px; border: 1px solid var(--vc-border); border-radius: 10px; background: var(--vc-panel); color: var(--vc-text-2); cursor: pointer; }
.vc-asset-toolbar { display: flex; gap: 7px; margin-bottom: 10px; }
.canvas-page .vc-sidebar button.vc-small-btn { flex: 1; height: 31px; min-height: 0; padding: 0 8px; border: 1px solid var(--vc-border); border-radius: 8px; background: var(--vc-panel-2); color: var(--vc-text-2); font-size: 12px; line-height: 1; cursor: pointer; }
.canvas-page .vc-sidebar button.vc-small-btn.primary { border-color: #5d4922; color: #f2c65c; background: #2e2819; }
.vc-asset-filter { display: flex; gap: 4px; margin-bottom: 12px; }
.vc-asset-filter button { padding: 5px 9px; border: 0; border-radius: 10px; background: transparent; color: var(--vc-text-3); font-size: 10.5px; cursor: pointer; }
.vc-asset-filter button.active { background: var(--vc-panel-3); color: var(--vc-text); }
.vc-assets-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-asset-item { overflow: hidden; padding: 0; border: 1px solid var(--vc-border); border-radius: 9px; background: var(--vc-panel-2); cursor: pointer; text-align: left; }
.vc-asset-item img,
.vc-asset-item video { display: block; width: 100%; height: 82px; object-fit: cover; background: #0a0b0e; }
.vc-asset-item span { display: block; overflow: hidden; padding: 7px; color: var(--vc-text-2); text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.vc-asset-item[draggable="true"] { cursor: grab; }
.vc-asset-item[draggable="true"]:active { cursor: grabbing; }
.vc-asset-item > .vc-audio-preview { display: flex; height: 82px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border-radius: 0; background: linear-gradient(145deg,#173529,#17242e); color: #83deb4; }
.vc-asset-item > .vc-audio-preview span { padding: 0; color: inherit; }
.vc-side-empty { grid-column: 1 / -1; padding: 28px 8px; color: var(--vc-text-3); text-align: center; font-size: 11px; line-height: 1.7; }
.vc-template-list { display: grid; gap: 7px; }
.vc-template-list button { display: grid; grid-template-columns: 42px 1fr; gap: 9px; align-items: center; width: 100%; padding: 8px; border: 1px solid var(--vc-border); border-radius: 10px; background: var(--vc-panel-2); text-align: left; cursor: pointer; }
.vc-template-list i { display: grid; place-items: center; width: 42px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #3b311b, #20384a); color: #f0c35c; font-style: normal; font-size: 10.5px; }
.vc-template-list strong,
.vc-template-list span { display: block; }
.vc-template-list strong { color: var(--vc-text); font-size: 12px; }
.vc-template-list span { margin-top: 3px; color: var(--vc-text-3); font-size: 10.5px; }

/* Infinite canvas */
.vc-viewport {
    position: absolute;
    z-index: 1;
    inset: 64px 0 0;
    overflow: hidden;
    cursor: grab;
    background-color: var(--vc-bg);
    background-image: radial-gradient(circle, #353941 1px, transparent 1.1px);
    background-size: 24px 24px;
    touch-action: none;
}
.vc-viewport.panning { cursor: grabbing; }
.vc-viewport.connecting,
.vc-viewport.connecting .vc-node { cursor: crosshair; }
.vc-world { position: absolute; left: 0; top: 0; width: 10000px; height: 10000px; transform-origin: 0 0; }
.canvas-page .vc-edges {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 10000px;
    height: 10000px;
    overflow: visible;
    pointer-events: none;
    shape-rendering: geometricPrecision;
}
.vc-edge-path {
    fill: none;
    stroke: #8499ab;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px rgba(132, 153, 171, .34));
    transition: stroke-width .16s ease, filter .16s ease, opacity .16s ease;
}
.vc-edge-path.image { stroke: var(--vc-coral); }
.vc-edge-path.video { stroke: var(--vc-blue); }
.vc-edge-path.audio { stroke: var(--vc-green); }
.vc-edge-path.text { stroke: var(--vc-gold); }
.vc-edge-path.invalid { stroke-dasharray: 8 6; opacity: .68; }
.vc-edge-path.pending { stroke-dasharray: 7 6; opacity: .9; animation: vc-edge-flow .8s linear infinite; }
.vc-edge-group:hover .vc-edge-path,
.vc-edge-group.selected .vc-edge-path { stroke-width: 5; filter: drop-shadow(0 0 6px currentColor); }
.vc-edge-flowline {
    fill: none;
    stroke: rgba(255,255,255,.88);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-dasharray: 8 18;
    opacity: 1;
    filter: drop-shadow(0 0 2.5px rgba(255,255,255,.78));
    pointer-events: none;
    vector-effect: non-scaling-stroke;
    animation: vc-edge-travel .9s linear infinite;
}
.vc-edge-flowline.image { stroke: #ffd8c0; }
.vc-edge-flowline.video { stroke: #d8f1ff; }
.vc-edge-flowline.audio { stroke: #d7ffeb; }
.vc-edge-flowline.text { stroke: #fff1bd; }
.vc-edge-flowline.invalid { opacity: .55; }
.vc-viewport.node-dragging .vc-edge-path,
.vc-viewport.node-dragging .vc-edge-flowline { filter: none; transition: none; }
.vc-viewport.node-dragging .vc-edge-flowline { animation-play-state: running; }
.vc-edge-path,
.vc-edge-arrow,
.vc-edge-label { pointer-events: none; }
.vc-edge-hit { fill: none; stroke: rgba(0,0,0,.001); stroke-width: 30; pointer-events: stroke; cursor: pointer; vector-effect: non-scaling-stroke; }
.vc-edge-group.selected .vc-edge-label { opacity: .18; }
.vc-edge-delete-btn[hidden] { display: none !important; }
.vc-edge-delete-btn {
    position: absolute;
    z-index: 24;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(240,180,56,.72);
    border-radius: 50%;
    background: #292219;
    color: #f6c85c;
    box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 3px rgba(240,180,56,.12);
    transform: translate(-50%, -50%);
    cursor: pointer;
}
.vc-edge-delete-btn:hover,
.vc-edge-delete-btn:focus-visible { outline: none; border-color: #ffe19a; background: #49381b; color: #ffe19a; transform: translate(-50%, -50%) scale(1.08); }
.vc-edge-delete-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) {
    .vc-edge-hit { stroke-width: 40; }
    .vc-edge-delete-btn { width: 40px; height: 40px; }
    .vc-edge-delete-btn svg { width: 19px; height: 19px; }
}
.vc-edge-draft { fill: none; stroke: var(--vc-gold-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 7px rgba(240,180,56,.72)); animation: vc-edge-draft-flow .55s linear infinite; }
.vc-edge-arrow { fill: #8499ab; stroke: var(--vc-bg); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vc-edge-arrow.image { fill: var(--vc-coral); }
.vc-edge-arrow.video { fill: var(--vc-blue); }
.vc-edge-arrow.audio { fill: var(--vc-green); }
.vc-edge-arrow.text { fill: var(--vc-gold); }
.vc-edge-arrow.invalid { opacity: .68; }
.vc-edge-arrow.pending { opacity: .9; }
.vc-edge-label rect { fill: #11151a; stroke: #697482; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.vc-edge-label text { fill: #f0f2f5; stroke: none; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
@keyframes vc-edge-flow { to { stroke-dashoffset: -13; } }
@keyframes vc-edge-travel { to { stroke-dashoffset: -26; } }
@keyframes vc-edge-draft-flow { to { stroke-dashoffset: -14; } }
.vc-nodes { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.vc-canvas-empty { position: absolute; z-index: 3; left: 50%; top: 47%; width: 540px; padding: 36px; transform: translate(-50%, -50%); border: 1px dashed #3b3f47; border-radius: 18px; background: rgba(19, 21, 26, .72); text-align: center; pointer-events: auto; }
.vc-canvas-empty span,
.vc-canvas-empty strong { display: block; }
.vc-canvas-empty span { margin-bottom: 8px; color: var(--vc-gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.vc-canvas-empty strong { margin-bottom: 22px; font-size: 20px; }
.vc-canvas-empty div { display: flex; justify-content: center; gap: 8px; }
.vc-canvas-empty button { padding: 9px 13px; border: 1px solid var(--vc-border); border-radius: 9px; background: var(--vc-panel-2); color: var(--vc-text-2); cursor: pointer; }
.vc-canvas-empty button:nth-child(2) { border-color: #5b4822; color: #f0c45d; background: #302919; }

.vc-viewport.file-drag-active { cursor: copy; }
.vc-file-drop-overlay {
    position: absolute; z-index: 90; inset: 14px; display: grid; place-items: center;
    border: 2px dashed rgba(240,180,56,.82); border-radius: 18px;
    background: rgba(20,18,13,.78); box-shadow: inset 0 0 70px rgba(240,180,56,.08);
    backdrop-filter: blur(5px); pointer-events: none;
}
.vc-file-drop-overlay > div { display: grid; justify-items: center; max-width: 520px; padding: 30px 38px; border: 1px solid rgba(240,180,56,.28); border-radius: 18px; background: rgba(24,25,29,.94); box-shadow: 0 24px 70px rgba(0,0,0,.46); text-align: center; }
.vc-file-drop-overlay i { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(135deg,#f5c34e,#e99e19); color: #241b0b; font-size: 32px; font-style: normal; line-height: 1; }
.vc-file-drop-overlay strong { color: #f4f1e8; font-size: 18px; }
.vc-file-drop-overlay span { margin-top: 8px; color: #aaa69b; font-size: 12px; line-height: 1.6; }

/* Canvas cards */
.vc-node {
    position: absolute;
    z-index: 4;
    border: 1px solid #3c414b;
    border-radius: 15px;
    background: #17191e;
    box-shadow: 0 16px 45px rgba(0,0,0,.32);
    color: var(--vc-text);
    user-select: none;
    cursor: grab;
    transition: border-color .15s, box-shadow .15s, opacity .12s;
    pointer-events: auto;
}
.vc-node.is-dragging {
    cursor: grabbing;
    opacity: .96;
    box-shadow: 0 12px 34px rgba(0,0,0,.38);
    backface-visibility: hidden;
    transform-origin: 0 0;
    transition: none;
    will-change: transform;
}
.vc-node-floating-actions {
    position: absolute;
    z-index: 18;
    top: -56px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: max-content;
    max-width: calc(100vw - 16px);
    min-height: 50px;
    padding: 6px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #454b55;
    border-radius: 14px;
    background: rgba(25, 28, 34, .96);
    box-shadow: 0 10px 26px rgba(0,0,0,.38), 0 0 0 1px rgba(240,180,56,.08);
    pointer-events: auto;
    user-select: none;
    box-sizing: border-box;
    transform: translateX(-50%);
}
.vc-node-floating-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    width: auto;
    min-width: 38px;
    height: 36px;
    padding: 0 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #b9c1cc;
    cursor: pointer;
}
.vc-node-floating-actions::-webkit-scrollbar { display: none; }
.vc-node-floating-actions { scrollbar-width: none; }
.vc-node-floating-actions button > span { color: inherit; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; }
.vc-node-floating-actions button { position: relative; }
.vc-node-floating-actions .vc-toolbar-badge { position: absolute; top: 2px; right: -1px; padding: 2px 4px; border-radius: 6px; background: #2e9caf; color: #08171a; font-size: 8px; font-style: normal; font-weight: 850; line-height: 1; letter-spacing: .02em; }
.vc-node-floating-actions button[data-node-toolbar-action="nine_grid"]::after,
.vc-node-floating-actions button[data-node-toolbar-action="image_tools"]::after { content: '⌄'; margin-left: 1px; color: #929aa5; font-size: 12px; line-height: 1; }
.vc-node-floating-actions .vc-toolbar-divider { flex: 0 0 1px; align-self: stretch; width: 1px; margin: 5px 3px; background: #3c4149; }
.vc-node-floating-actions button:hover,
.vc-node-floating-actions button:focus-visible {
    outline: none;
    background: #343a43;
    color: #f3cb69;
}
.vc-node-floating-actions button.danger:hover,
.vc-node-floating-actions button.danger:focus-visible {
    background: rgba(244,119,119,.14);
    color: #ffaaaa;
}
.vc-node-floating-actions button:disabled,
.vc-node-floating-actions button[aria-disabled="true"],
.vc-node-floating-actions button:disabled:hover,
.vc-node-floating-actions button[aria-disabled="true"]:hover {
    background: transparent;
    color: #68707b;
    opacity: .48;
    cursor: not-allowed;
}
.vc-node-floating-actions .vc-inline-icon { width: 18px; height: 18px; }
.vc-node-floating-actions[hidden] { display: none !important; }
.vc-node-floating-actions button[data-node-toolbar-action="portrait"],
.vc-node-floating-actions button[data-node-toolbar-action="panorama"],
.vc-node-floating-actions button[data-node-toolbar-action="multi_angle"],
.vc-node-floating-actions button[data-node-toolbar-action="lighting"],
.vc-node-floating-actions button[data-node-toolbar-action="nine_grid"],
.vc-node-floating-actions button[data-node-toolbar-action="image_tools"] { min-width: 64px; }
/* The active toolbar is a screen-space singleton, so canvas zoom never changes its size. */
.vc-node-floating-actions-portal {
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    transform: none;
    contain: layout paint style;
    will-change: left, top;
}

.vc-video-tool-panel {
    position: fixed;
    z-index: 125;
    width: min(790px, calc(100vw - 24px));
    max-height: min(570px, calc(100vh - 90px));
    overflow: hidden;
    border: 1px solid #444a54;
    border-radius: 17px;
    background: rgba(28, 31, 36, .985);
    box-shadow: 0 24px 75px rgba(0,0,0,.62), 0 0 0 1px rgba(240,180,56,.07);
    color: #eef0f3;
}
.vc-video-tool-panel[hidden] { display: none !important; }
.vc-video-tool-panel > header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 14px;
    border-bottom: 1px solid #3a3f47;
    background: #24272c;
}
.vc-video-tool-panel > header > span { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: #343941; color: #f0c45f; }
.vc-video-tool-panel > header svg { width: 18px; height: 18px; }
.vc-video-tool-panel > header > div { display: grid; min-width: 0; gap: 2px; }
.vc-video-tool-panel > header strong { font-size: 14px; }
.vc-video-tool-panel > header small { overflow: hidden; color: #8e96a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vc-video-tool-panel > header button,
.vc-modal-head button { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #aab1bb; font-size: 23px; font-family: Arial, sans-serif; line-height: 1; text-align: center; cursor: pointer; }
.vc-video-tool-panel > header button:hover { background: #343941; color: #fff; }
.vc-video-tool-body { max-height: 390px; overflow-y: auto; padding: 18px; }
.vc-video-tool-panel > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 56px; padding: 9px 14px; border-top: 1px solid #3a3f47; background: #22252a; }
.vc-video-tool-panel > footer > span { margin-right: auto; color: #8d949e; font-size: 10.5px; }
.vc-video-tool-panel > footer button { min-width: 74px; height: 34px; padding: 0 13px; border: 1px solid #484e58; border-radius: 9px; background: #2b2f36; color: #d5d9df; font-size: 11px; cursor: pointer; }
.vc-video-tool-panel > footer button.primary { border-color: #d0a23c; background: #e8b94f; color: #211a0c; font-weight: 800; }
.vc-video-tool-panel > footer button:disabled { opacity: .4; cursor: not-allowed; }
.vc-video-tool-form { display: grid; gap: 14px; }
.vc-video-tool-form > label { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 12px; }
.vc-video-tool-form > label > span { color: #cfd3da; font-size: 12px; }
.vc-video-tool-form > p { margin: 0; padding: 10px 12px; border: 1px solid #3d434c; border-radius: 10px; background: #23272d; color: #969eaa; font-size: 11px; line-height: 1.65; }
.vc-video-tool-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.vc-video-tool-choice { min-width: 88px; height: 35px; padding: 0 12px; border: 1px solid #4a5059; border-radius: 9px; background: #262a30; color: #bdc3cc; font-size: 11px; cursor: pointer; }
.vc-video-tool-choice:hover { border-color: #7b6737; color: #f0ca6e; }
.vc-video-tool-choice.active { border-color: #d0a442; background: #3a311f; color: #f7d77e; box-shadow: inset 0 0 0 1px rgba(240,180,56,.12); }

.vc-subtitle-editor-layer {
    position: fixed;
    /* Sit above the global sticky header and its user dropdown. */
    z-index: 1250;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(6,8,11,.72);
    backdrop-filter: blur(8px);
}
.vc-subtitle-editor-layer[hidden] { display: none !important; }
.vc-subtitle-editor {
    display: grid;
    grid-template-rows: 62px minmax(0, 1fr) 62px;
    width: min(1240px, calc(100vw - 40px));
    height: min(800px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid #454b55;
    border-radius: 19px;
    background: #1d2025;
    color: #edf0f4;
    box-shadow: 0 30px 100px rgba(0,0,0,.68), 0 0 0 1px rgba(240,180,56,.06);
}
.vc-subtitle-editor > header,
.vc-subtitle-editor > footer { display: flex; align-items: center; border-color: #383d45; background: #24272c; }
.vc-subtitle-editor > header { justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #383d45; }
.vc-subtitle-editor > header > div { display: flex; align-items: center; min-width: 0; gap: 11px; }
.vc-subtitle-editor > header > div > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #39311f; color: #f0c45f; }
.vc-subtitle-editor > header svg { width: 19px; height: 19px; }
.vc-subtitle-editor > header p { display: grid; min-width: 0; margin: 0; gap: 2px; }
.vc-subtitle-editor > header strong { font-size: 14px; }
.vc-subtitle-editor > header small { overflow: hidden; max-width: 600px; color: #8f97a2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vc-subtitle-editor > header > button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #aab1bb; font: 23px/1 Arial,sans-serif; cursor: pointer; }
.vc-subtitle-editor > header > button:hover { background: #343941; color: #fff; }
.vc-subtitle-editor > main { display: grid; grid-template-columns: minmax(390px, .84fr) minmax(500px, 1.16fr); grid-template-rows: minmax(0, 1fr); min-height: 0; overflow: hidden; }
.vc-subtitle-transcript { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; border-right: 1px solid #383d45; background: #202329; }
.vc-subtitle-recognition { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; align-items: end; gap: 8px; padding: 12px 13px 9px; }
.vc-subtitle-recognition > label:not(.vc-subtitle-speaker) { display: grid; gap: 5px; color: #9199a4; font-size: 9px; }
.vc-subtitle-recognition select { width: 100%; height: 33px; padding: 0 9px; border: 1px solid #464c55; border-radius: 8px; outline: none; background: #2a2e35; color: #e1e5ea; font-size: 11px; }
.vc-subtitle-speaker { display: flex; align-items: center; height: 33px; gap: 5px; color: #bbc1ca; font-size: 10px; white-space: nowrap; }
.vc-subtitle-speaker input { accent-color: #e8b94f; }
.vc-subtitle-recognition > button,
.vc-subtitle-add-line { height: 33px; padding: 0 11px; border: 1px solid #4a505a; border-radius: 8px; background: #2b3037; color: #d7dce2; font-size: 10px; cursor: pointer; }
.vc-subtitle-recognition > button.primary { border-color: #d0a23c; background: #e8b94f; color: #211a0c; font-weight: 800; }
.vc-subtitle-recognition button:disabled,
.vc-subtitle-add-line:disabled { opacity: .45; cursor: not-allowed; }
.vc-subtitle-status { position: relative; min-height: 28px; margin: 0 13px 8px; overflow: hidden; border: 1px solid #3a414b; border-radius: 8px; background: #262a30; }
.vc-subtitle-status > i { position: absolute; inset: auto auto 0 0; width: var(--subtitle-progress, 0%); height: 2px; background: #e8b94f; transition: width .25s ease; }
.vc-subtitle-status > span { display: block; overflow: hidden; padding: 7px 9px; color: #8f98a4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vc-subtitle-status.error { border-color: rgba(240,103,112,.45); background: rgba(112,37,45,.12); }
.vc-subtitle-status.error > span { color: #f2a4aa; }
.vc-subtitle-list { min-height: 0; overflow: auto; padding: 0 10px 7px 13px; scrollbar-color: #4a5059 transparent; scrollbar-width: thin; }
.vc-subtitle-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) 25px; align-items: start; gap: 7px; margin-bottom: 7px; padding: 8px 7px; border: 1px solid #393f48; border-radius: 10px; background: #262a30; transition: border-color .15s, background .15s; cursor: pointer; }
.vc-subtitle-row:hover { border-color: #4b525d; }
.vc-subtitle-row.active { border-color: rgba(232,185,79,.72); background: #302b20; box-shadow: inset 0 0 0 1px rgba(232,185,79,.08); }
.vc-subtitle-row.locked textarea,
.vc-subtitle-row.locked input,
.vc-subtitle-row.locked .vc-subtitle-row-delete { opacity: .5; cursor: not-allowed; }
.vc-subtitle-row-index { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid #464c55; border-radius: 7px; background: #30353d; color: #aeb6c1; font-size: 9px; font-variant-numeric: tabular-nums; cursor: pointer; }
.vc-subtitle-row.active .vc-subtitle-row-index { border-color: #a98330; color: #f0ca6e; }
.vc-subtitle-row-main { display: grid; min-width: 0; gap: 6px; }
.vc-subtitle-times { display: flex; align-items: center; min-width: 0; gap: 5px; color: #78818d; font-size: 8px; }
.vc-subtitle-times label { display: inline-flex; align-items: center; gap: 3px; }
.vc-subtitle-times input { width: 62px; height: 23px; padding: 0 5px; border: 1px solid #414750; border-radius: 6px; outline: none; background: #1f2227; color: #bfc6d0; font-size: 9px; font-variant-numeric: tabular-nums; }
.vc-subtitle-times input:focus { border-color: #b68c30; }
.vc-subtitle-times small { margin-left: auto; color: #68717d; font-size: 8px; font-variant-numeric: tabular-nums; }
.vc-subtitle-times em { padding: 2px 4px; border-radius: 4px; background: #343944; color: #9ba6b4; font-size: 7px; font-style: normal; white-space: nowrap; }
.vc-subtitle-row textarea { width: 100%; min-height: 46px; padding: 7px 8px; resize: vertical; border: 1px solid #40464f; border-radius: 7px; outline: none; background: #202329; color: #edf0f4; font-family: inherit; font-size: 11px; line-height: 1.55; }
.vc-subtitle-row textarea:focus { border-color: #b58b30; background: #1e2126; }
.vc-subtitle-row-delete { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #7e8793; font: 17px/1 Arial,sans-serif; cursor: pointer; }
.vc-subtitle-row-delete:hover { background: rgba(242,101,111,.12); color: #f4969d; }
.vc-subtitle-empty { display: grid; min-height: 230px; padding: 24px; place-content: center; justify-items: center; color: #7e8792; text-align: center; }
.vc-subtitle-empty > span { display: grid; width: 48px; height: 48px; margin-bottom: 12px; place-items: center; border-radius: 14px; background: #2d3239; color: #c99e3c; }
.vc-subtitle-empty svg { width: 23px; height: 23px; }
.vc-subtitle-empty strong { color: #c8ced6; font-size: 12px; }
.vc-subtitle-empty small { max-width: 250px; margin-top: 5px; font-size: 9px; line-height: 1.6; }
.vc-subtitle-add-line { margin: 7px 13px 12px; border-style: dashed; color: #aeb6c0; }
.vc-subtitle-add-line:hover { border-color: #8e7336; color: #e5c167; }
.vc-subtitle-preview-pane { display: grid; grid-template-rows: minmax(150px, 1fr) auto auto; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 15px; gap: 12px; background: #191c20; scrollbar-color: #4a5059 transparent; scrollbar-width: thin; }
.vc-subtitle-video-stage { position: relative; display: grid; min-height: 150px; max-height: 100%; overflow: hidden; place-items: center; border: 1px solid #3d434c; border-radius: 13px; background: #07090c; }
.vc-subtitle-video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vc-subtitle-preview-text { position: absolute; z-index: 2; right: 7%; left: 7%; transform: translateY(0); color: #fff; font-weight: 700; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; }
.vc-subtitle-preview-text[hidden] { display: none; }
.vc-subtitle-player-controls { display: grid; grid-template-columns: 30px auto minmax(70px, 1fr) auto; align-items: center; min-width: 0; min-height: 38px; gap: 8px; padding: 5px 9px; border: 1px solid #383f48; border-radius: 10px; background: #20242a; color: #aeb6c1; }
.vc-subtitle-player-controls button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid #4a515b; border-radius: 8px; background: #2b3037; color: #e9c45f; font-size: 13px; line-height: 1; cursor: pointer; }
.vc-subtitle-player-controls button:hover { border-color: #b28a32; background: #353022; color: #ffda77; }
.vc-subtitle-player-controls button:focus-visible,
.vc-subtitle-player-controls input:focus-visible { outline: 2px solid rgba(232,185,79,.72); outline-offset: 2px; }
.vc-subtitle-player-controls > span { color: #aeb6c1; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-subtitle-player-controls input[type="range"] { width: 100%; min-width: 0; height: 3px; margin: 0; accent-color: #e4b54b; cursor: pointer; }
.vc-subtitle-player-controls [data-subtitle-player-duration] { color: #7f8995; }
.vc-subtitle-style { padding: 11px 12px 12px; border: 1px solid #3a4048; border-radius: 12px; background: #23272d; }
.vc-subtitle-style-head { display: flex; align-items: center; min-height: 24px; gap: 7px; }
.vc-subtitle-style-head strong { font-size: 12px; }
.vc-subtitle-style-head span { padding: 3px 6px; border-radius: 5px; background: #39311f; color: #e8bf5d; font-size: 8px; }
.vc-subtitle-style-head button { margin-left: auto; padding: 3px 0; border: 0; background: transparent; color: #858e9a; font-size: 9px; cursor: pointer; }
.vc-subtitle-style-head button:hover { color: #f0c45f; }
.vc-subtitle-position-presets { display: flex; align-items: center; margin: 7px 0 9px; gap: 5px; }
.vc-subtitle-position-presets > span { width: 44px; color: #8d96a2; font-size: 9.5px; }
.vc-subtitle-position-presets button { height: 26px; padding: 0 10px; border: 1px solid #444b54; border-radius: 7px; background: #292d33; color: #abb2bc; font-size: 9px; cursor: pointer; }
.vc-subtitle-position-presets button.active,
.vc-subtitle-position-presets button:hover { border-color: #a77e29; color: #f0ca6e; }
.vc-subtitle-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 13px; }
.vc-subtitle-style-grid label { display: grid; min-width: 0; gap: 6px; }
.vc-subtitle-style-grid label > span { display: flex; justify-content: space-between; color: #929ba7; font-size: 9px; }
.vc-subtitle-style-grid label b { color: #c8ced6; font-size: 8.5px; font-weight: 500; }
.vc-subtitle-style-grid input[type="range"] { width: 100%; height: 3px; margin: 5px 0; accent-color: #e4b54b; cursor: pointer; }
.vc-subtitle-style-grid label.compact { grid-template-columns: 1fr auto; align-items: center; }
.vc-subtitle-style-grid input[type="color"] { width: 35px; height: 25px; padding: 2px; border: 1px solid #454c55; border-radius: 7px; background: #2b3036; cursor: pointer; }
.vc-subtitle-editor > footer { justify-content: space-between; gap: 14px; padding: 0 16px; border-top: 1px solid #383d45; }
.vc-subtitle-editor > footer > span { display: flex; align-items: center; min-width: 0; overflow: hidden; gap: 7px; color: #8c95a1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vc-subtitle-editor > footer > span strong { color: #d9b554; font-size: 10px; }
.vc-subtitle-editor > footer > span em { color: #efa0a6; font-size: 9px; font-style: normal; }
.vc-subtitle-editor > footer > div { display: flex; gap: 8px; }
.vc-subtitle-editor > footer button { min-width: 78px; height: 34px; padding: 0 13px; border: 1px solid #484e58; border-radius: 9px; background: #2b2f36; color: #d5d9df; font-size: 10px; cursor: pointer; }
.vc-subtitle-editor > footer button.primary { border-color: #d0a23c; background: #e8b94f; color: #211a0c; font-weight: 800; }
.vc-subtitle-editor > footer button:disabled { opacity: .4; cursor: not-allowed; }
.vc-trim-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); align-items: center; gap: 18px; }
.vc-trim-preview { position: relative; overflow: hidden; height: 138px; border: 1px solid #424851; border-radius: 12px; background: #090b0e; }
.vc-trim-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.vc-trim-preview button { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(14,16,20,.82); color: #e8ebef; font-size: 10px; cursor: pointer; }
.vc-trim-preview button svg { width: 13px; height: 13px; }
.vc-trim-editor { display: grid; gap: 14px; }
.vc-trim-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.vc-trim-summary strong { padding: 7px 9px; border-radius: 8px; background: #30343b; color: #f2ce73; font-size: 12px; font-variant-numeric: tabular-nums; }
.vc-trim-summary span { color: #9ca3ad; text-align: center; font-size: 11px; }
.vc-trim-editor > small { color: #858d98; font-size: 10px; line-height: 1.55; }
.vc-dual-range { position: relative; height: 28px; }
.vc-dual-range::before { content: ""; position: absolute; top: 13px; right: 0; left: 0; height: 4px; border-radius: 999px; background: #454b54; }
.vc-dual-range > i { position: absolute; z-index: 1; top: 13px; left: var(--trim-start); right: calc(100% - var(--trim-end)); height: 4px; border-radius: 999px; background: #e6b84e; }
.vc-dual-range input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 28px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
.vc-dual-range input::-webkit-slider-thumb { width: 17px; height: 25px; border: 2px solid #202329; border-radius: 6px; appearance: none; background: #f0c760; box-shadow: 0 2px 7px rgba(0,0,0,.45); pointer-events: auto; cursor: ew-resize; }
.vc-dual-range input::-moz-range-thumb { width: 15px; height: 23px; border: 2px solid #202329; border-radius: 6px; background: #f0c760; pointer-events: auto; cursor: ew-resize; }
.vc-trim-timeline { height: 84px; overflow: hidden; border: 1px solid #454b55; border-radius: 10px; background: #111419; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.vc-trim-timeline::before { top: auto; bottom: 0; height: 3px; border-radius: 0; background: rgba(255,255,255,.16); }
.vc-trim-timeline > i { top: auto; right: calc(100% - var(--trim-end)); bottom: 0; left: var(--trim-start); height: 3px; border-radius: 0; background: #f0c760; }
.vc-trim-thumbnails { position: absolute; z-index: 0; inset: 0; display: flex; overflow: hidden; background: linear-gradient(135deg, #1b2028, #101319); }
.vc-trim-frame { position: relative; display: block; min-width: 0; flex: 1 1 0; overflow: hidden; border-right: 1px solid rgba(7,9,12,.48); background: linear-gradient(135deg, #252b34, #15191f); }
.vc-trim-frame:last-child { border-right: 0; }
.vc-trim-frame img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .9; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.vc-trim-frame.empty::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.vc-trim-frame b { position: absolute; right: 4px; bottom: 3px; left: 4px; overflow: hidden; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 500; line-height: 1; text-align: center; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.vc-trim-timeline-placeholder { display: grid; width: 100%; place-items: center; color: #7f8792; font-size: 10px; }
.vc-trim-timeline-shade { position: absolute; z-index: 1; top: 0; bottom: 0; background: rgba(5,7,10,.62); pointer-events: none; }
.vc-trim-timeline-shade.left { right: calc(100% - var(--trim-start)); left: 0; }
.vc-trim-timeline-shade.right { right: 0; left: var(--trim-end); }
.vc-trim-selection { position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--trim-start); right: calc(100% - var(--trim-end)); border: 2px solid rgba(247,205,98,.95); border-bottom-width: 3px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(12,14,18,.5), 0 0 16px rgba(238,183,67,.18); pointer-events: none; }
.vc-trim-selection > span { position: absolute; top: 50%; left: 50%; min-width: 58px; padding: 7px 10px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(31,34,40,.9); color: #f5f6f7; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; }
.vc-trim-timeline input { z-index: 3; height: 84px; }
.vc-trim-timeline input::-webkit-slider-runnable-track { height: 84px; background: transparent; }
.vc-trim-timeline input::-moz-range-track { height: 84px; background: transparent; }
.vc-trim-timeline input::-webkit-slider-thumb { width: 16px; height: 76px; border: 2px solid #d9dce1; border-radius: 9px; background: linear-gradient(90deg, #fff 0 38%, #5b6068 38% 62%, #fff 62% 100%); box-shadow: 0 1px 8px rgba(0,0,0,.62); }
.vc-trim-timeline input::-moz-range-thumb { width: 16px; height: 72px; border: 2px solid #d9dce1; border-radius: 9px; background: linear-gradient(90deg, #fff 0 38%, #5b6068 38% 62%, #fff 62% 100%); box-shadow: 0 1px 8px rgba(0,0,0,.62); }
.vc-derived-placeholder.processing { border-color: rgba(82,164,238,.45); background: rgba(41,105,164,.08); }
.vc-derived-placeholder.failed { border-color: rgba(244,119,119,.5); background: rgba(121,43,49,.08); }
.vc-derived-progress { position: relative; display: block; width: min(190px, 82%); height: 4px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #353b44; }
.vc-derived-progress > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #3f96df, #6fc8ff); transition: width .25s ease; }
.vc-derived-actions { padding-top: 0; }

@media (max-width: 1080px) {
    .vc-subtitle-editor > main { grid-template-columns: minmax(330px, .8fr) minmax(430px, 1.2fr); }
    .vc-subtitle-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vc-subtitle-recognition { grid-template-columns: minmax(110px, 1fr) auto; }
    .vc-subtitle-recognition > button { grid-column: 1 / -1; }
}
/* Short laptop viewports need every control to remain reachable. Keep the
   editor inside the viewport, let the right column scroll, and give the
   preview only the space that remains after the compact style sheet. */
@media (max-height: 760px) and (min-width: 801px) {
    .vc-subtitle-editor-layer { padding: 8px; }
    .vc-subtitle-editor {
        width: min(1240px, calc(100vw - 16px));
        height: calc(100vh - 16px);
        grid-template-rows: 52px minmax(0, 1fr) 56px;
        border-radius: 14px;
    }
    .vc-subtitle-editor > header { padding-inline: 12px; }
    .vc-subtitle-editor > header > div > span { width: 31px; height: 31px; flex-basis: 31px; }
    .vc-subtitle-editor > header > button { width: 34px; height: 34px; }
    .vc-subtitle-preview-pane { padding: 10px; gap: 8px; grid-template-rows: minmax(140px, 1fr) auto auto; }
    .vc-subtitle-video-stage { min-height: 140px; border-radius: 10px; }
    .vc-subtitle-style { padding: 8px 10px 9px; }
    .vc-subtitle-style-head { min-height: 20px; }
    .vc-subtitle-position-presets { margin-block: 5px 6px; }
    .vc-subtitle-position-presets button { height: 23px; }
    .vc-subtitle-style-grid { gap: 6px 10px; }
    .vc-subtitle-style-grid label { gap: 3px; }
    .vc-subtitle-style-grid input[type="range"] { margin-block: 2px; }
}
@media (max-width: 800px) {
    .vc-subtitle-editor-layer { padding: 0; }
    .vc-subtitle-editor { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .vc-subtitle-editor > main { grid-template-columns: 1fr; overflow: auto; }
    .vc-subtitle-transcript { min-height: 430px; border-right: 0; border-bottom: 1px solid #383d45; }
    .vc-subtitle-preview-pane { min-height: 560px; }
    .vc-subtitle-editor > footer > span { display: none; }
    .vc-subtitle-editor > footer { justify-content: flex-end; }
}
/* On a normal laptop/desktop, keep the video unobstructed in the center and
   turn the style sheet into a narrow inspector on the far right. `display:
   contents` lets the existing markup participate in the three-column grid
   without duplicating the editor DOM or its event delegation. */
@media (min-width: 900px) {
    .vc-subtitle-editor > main {
        grid-template-columns: minmax(280px, .72fr) minmax(380px, 1.22fr) minmax(170px, .36fr);
        grid-template-rows: minmax(0, 1fr) auto;
        align-items: stretch;
        align-content: stretch;
    }
    .vc-subtitle-preview-pane { display: contents; }
    .vc-subtitle-video-stage {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        box-sizing: border-box;
        width: auto;
        height: auto;
        max-width: calc(100% - 23px);
        min-height: 0;
        max-height: calc(100% - 30px);
        aspect-ratio: 16 / 9;
        margin: 15px 8px 15px 15px;
        background: #07090c;
    }
    .vc-subtitle-video-stage video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .vc-subtitle-player-controls {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        margin: 0 8px 15px 15px;
    }
    .vc-subtitle-style {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: stretch;
        height: calc(100% - 30px);
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: 15px 15px 15px 0;
        padding: 10px 10px 12px;
        border-left: 1px solid #3a4048;
        border-radius: 12px;
        scrollbar-color: #4a5059 transparent;
        scrollbar-width: thin;
    }
    .vc-subtitle-style-grid { grid-template-columns: 1fr; gap: 8px; }
    .vc-subtitle-style-grid label { gap: 4px; }
    .vc-subtitle-position-presets { flex-wrap: wrap; }
    .vc-subtitle-position-presets > span { width: 100%; }
    .vc-subtitle-style-head { position: sticky; top: -10px; z-index: 1; padding-bottom: 6px; background: #23272d; }
}

@media (max-width: 700px) {
    .vc-node-floating-actions button > span { display: none; }
    .vc-node-floating-actions button { width: 38px; padding: 0; }
    .vc-video-tool-form > label { grid-template-columns: 1fr; }
    .vc-trim-layout { grid-template-columns: 1fr; }
    .vc-trim-preview { height: 160px; }
    .vc-video-tool-panel > footer > span { display: none; }
}
.vc-node button,
.vc-node input,
.vc-node textarea,
.vc-node select,
.vc-node a,
.vc-node video,
.vc-node audio { cursor: auto; }
/* 卡片默认不按素材类型或连线状态染色；只有真正选中的卡片发光。 */
.vc-node.connection-compatible,
.vc-node.connection-incompatible,
.vc-node.connection-source,
.vc-node.invalid { border-color: #3c414b; box-shadow: 0 16px 45px rgba(0,0,0,.32); }
.vc-node:hover { border-color: #3c414b; }
.vc-node.selected { border-color: #69717c; box-shadow: 0 0 0 2px rgba(240,180,56,.62), 0 0 30px rgba(240,180,56,.28), 0 20px 60px rgba(0,0,0,.45); }
.vc-node-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 12px; overflow: visible; cursor: grab; }
.vc-node-head:active { cursor: grabbing; }
.vc-node-title { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; gap: 8px; overflow: visible; }
.vc-node-title i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #31291a; color: var(--vc-gold-2); font-size: 10px; font-style: normal; font-weight: 800; }
.vc-node-title > i { flex: 0 0 25px; }
.vc-node-title i.image { background: #362820; color: var(--vc-coral); }
.vc-node-title i.video { background: #1c3442; color: #86d5f7; }
.vc-node-title i.audio { background: #1e382e; color: #78dfae; }
.vc-node-title i.text { background: #3a301b; color: #efc35a; }
.vc-node-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.vc-node-title > .vc-node-title-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-material-expired-badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    border: 1px solid rgba(246,112,112,.55);
    border-radius: 7px;
    background: rgba(102,30,36,.72);
    color: #ffb0b0;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.vc-node-title > .vc-material-expired-badge {
    overflow: visible;
    text-overflow: clip;
    font-size: 9px;
    font-weight: 800;
}
.vc-node-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-width: max-content; color: var(--vc-text-3); font-size: 11px; white-space: nowrap; }
.vc-node-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-text-3); }
.vc-node-status.completed i { background: var(--vc-green); }
.vc-node-status.submitting i,
.vc-node-status.generating i,
.vc-node-status.processing i,
.vc-node-status.uploading i { background: var(--vc-gold); animation: vc-pulse 1s infinite; }
.vc-node-status.derived-processing i { animation: none; opacity: .9; }
.vc-node-status.uploading { color: #e5c46c; }
.vc-node-status.failed { color: #f59494; }
.vc-node-status.failed i { background: var(--vc-red); }
.vc-node-preview { position: relative; overflow: hidden; margin: 0 9px 9px; border-radius: 11px; background: #0b0d11; }
.vc-node-preview img,
.vc-node-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-node-preview.image { height: 270px; }
.vc-node-preview.video { height: 210px; }
.vc-node-preview.generator { display: grid; place-items: center; height: 205px; border: 1px dashed #3b4049; background: linear-gradient(145deg, #141922, #0e1015); }
.vc-node-preview.generator span { color: #9ca4b0; font-size: 12.5px; }
.vc-node-preview .vc-play { position: absolute; z-index: 4; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(7,9,12,.72); box-shadow: 0 8px 24px rgba(0,0,0,.4); transform: translate(-50%,-50%); cursor: pointer; }
.vc-node-preview .vc-play::after { content: ""; margin-left: 3px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #fff; }
.vc-node-preview .vc-play:hover { background: rgba(240,180,56,.88); transform: translate(-50%,-50%) scale(1.08); }
.vc-preview-download { position: absolute; z-index: 4; right: 10px; bottom: 42px; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; background: rgba(8,10,14,.78); color: #f2f3f5; font-size: 11px; font-weight: 700; cursor: pointer; }
.vc-preview-download:hover { border-color: rgba(240,180,56,.65); background: rgba(37,31,18,.92); color: var(--vc-gold-2); }
.vc-preview-download svg { width: 13px; height: 13px; stroke-width: 2; }
.vc-video-result-strip {
    position: absolute;
    z-index: 5;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 5px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(9,11,15,.86);
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
.vc-video-result-strip > span:first-child { margin-right: 2px; color: #aeb6c2; font-size: 10px; white-space: nowrap; }
.vc-video-result-item { display: inline-flex; align-items: center; gap: 2px; }
.vc-video-result-item button {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid #424952;
    border-radius: 6px;
    background: #242a31;
    color: #cbd2da;
    font-size: 10px;
    cursor: pointer;
}
.vc-video-result-item button:hover { border-color: #7e6a37; color: #f4cf74; }
.vc-video-result-item.active > button:first-child { border-color: #d8a83e; background: #4a391d; color: #ffe29a; }
.vc-video-result-item button.download { min-width: 21px; padding: 0 3px; color: #9fa9b5; }
.vc-video-result-item button.download svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vc-image-result-strip {
    position: absolute;
    z-index: 5;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    min-height: 56px;
    padding: 5px 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(9,11,15,.9);
    box-shadow: 0 7px 22px rgba(0,0,0,.34);
    backdrop-filter: blur(7px);
}
.vc-image-result-label { flex: 0 0 auto; color: #aeb6c2; font-size: 10px; white-space: nowrap; }
.vc-image-result-scroller { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 1px 1px 3px; scrollbar-width: thin; }
.vc-image-result-item { position: relative; display: block; flex: 0 0 46px; width: 46px; height: 46px; }
.vc-image-result-thumb {
    display: block;
    width: 46px;
    height: 46px;
    overflow: hidden;
    padding: 0;
    border: 2px solid #4a5059;
    border-radius: 8px;
    background: #171a1f;
    color: #fff;
    cursor: pointer;
}
.vc-image-result-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.vc-image-result-thumb em { position: absolute; top: 3px; left: 3px; min-width: 15px; padding: 2px 4px; border-radius: 5px; background: rgba(7,9,12,.78); color: #f0f2f5; font-size: 8px; font-style: normal; line-height: 1; }
.vc-image-result-thumb:hover { border-color: #8d7134; }
.vc-image-result-thumb:hover img { transform: scale(1.06); }
.vc-image-result-item.active .vc-image-result-thumb { border-color: #e4b447; box-shadow: 0 0 0 1px rgba(228,180,71,.28), 0 0 10px rgba(228,180,71,.2); }
.vc-image-result-download {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 5px;
    background: rgba(7,9,12,.88);
    color: #e5e9ee;
    cursor: pointer;
}
.vc-image-result-download:hover { border-color: #e0b24a; background: #4a391d; color: #ffe29a; }
.vc-image-result-download svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vc-video-task-list {
    width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(112,124,139,.34);
    border-radius: 9px;
    background: rgba(16,19,24,.72);
}
.vc-node-preview .vc-video-task-list { position: absolute; z-index: 6; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: calc(100% - 16px); overflow-y: auto; margin-top: 0; background: rgba(12,15,20,.9); }
.vc-node-preview.generator .vc-video-task-list { bottom: 8px; }
.vc-video-task-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: #dbe0e6; font-size: 10px; }
.vc-video-task-summary strong { color: #f1cd72; font-size: 10.5px; white-space: nowrap; }
.vc-video-task-summary span { overflow: hidden; color: #9da6b2; text-overflow: ellipsis; white-space: nowrap; }
.vc-video-task-row + .vc-video-task-row { margin-top: 5px; }
.vc-video-task-copy { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: #bfc7d1; font-size: 10px; }
.vc-video-task-copy strong { color: #e3e7ed; font-size: 10.5px; white-space: nowrap; }
.vc-video-task-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-video-task-copy em { margin-left: auto; color: #8f99a6; font-size: 9.5px; font-style: normal; white-space: nowrap; }
.vc-video-task-track { height: 6px; margin-top: 3px; overflow: hidden; border-radius: 5px; background: #0c0f13; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.vc-video-task-list.compact .vc-video-task-track { height: 5px; }
.vc-video-task-track i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #e6ad35, #7ac4ee); transition: width .28s ease; }
.vc-video-task-row.status-completed .vc-video-task-track i { background: linear-gradient(90deg, #5bc48a, #94e6b6); }
.vc-video-task-row.status-failed .vc-video-task-track i { background: #dc7070; }
.vc-video-task-row.status-failed .vc-video-task-copy { color: #f19a9a; }
.vc-node-preview.generator > .vc-generator-message { align-self: start; margin-top: 28px; }
.vc-version-badge,
.vc-expiry-badge { position: absolute; top: 9px; padding: 5px 8px; border-radius: 11px; background: rgba(12,15,20,.88); color: #eef0f3; font-size: 10.5px; }
.vc-version-badge { left: 9px; border: 0; cursor: pointer; }
.vc-expiry-badge { right: 9px; color: #f2c45d; border: 1px solid rgba(240,180,56,.25); background: rgba(50,39,18,.88); }
.vc-expiry-badge.expired { color: #ffb0b0; border-color: rgba(246,112,112,.55); background: rgba(82,28,34,.9); }
.vc-node-body { padding: 0 12px 12px; }
.vc-audio-node-body { padding: 0 9px 9px; }
.vc-audio-player {
    overflow: hidden;
    padding: 9px 10px 5px;
    border: 1px solid #4b5058;
    border-radius: 12px;
    background: #202226;
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.vc-audio-waveform {
    --audio-progress: 0%;
    position: relative;
    display: flex;
    width: 100%;
    height: 100px;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    overflow: hidden;
    padding: 12px 13px;
    border: 0;
    border-radius: 9px;
    background: #34363a;
    appearance: none;
    cursor: pointer;
}
.vc-audio-waveform i {
    flex: 1 1 0;
    min-width: 2px;
    max-width: 5px;
    border-radius: 2px;
    background: #66696e;
    opacity: .72;
    pointer-events: none;
    transition: background-color .15s, opacity .15s;
}
.vc-audio-waveform:hover i { background: #74787e; opacity: .88; }
.vc-audio-playhead {
    position: absolute;
    z-index: 2;
    top: 8px;
    bottom: 8px;
    left: clamp(8px, var(--audio-progress), calc(100% - 8px));
    width: 3px;
    border-radius: 2px;
    background: #f25555;
    box-shadow: 0 0 8px rgba(242,85,85,.28);
    pointer-events: none;
    transform: translateX(-50%);
}
.vc-audio-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 45px;
    padding-top: 4px;
}
.vc-audio-time { color: #cbd0d6; font-size: 14px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.vc-audio-time i { margin: 0 3px; color: #898f98; font-style: normal; font-weight: 500; }
.vc-audio-play {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #5a606a;
    border-radius: 50%;
    background: #24272c;
    color: #f2f3f5;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, transform .15s;
}
.vc-audio-play:hover { border-color: #8a9099; background: #2d3137; transform: scale(1.05); }
.vc-audio-play span {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}
.vc-audio-play.playing span {
    width: 12px;
    height: 13px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}
.vc-audio-replace {
    justify-self: end;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #464b54;
    border-radius: 8px;
    background: #292c31;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.vc-audio-replace:hover { border-color: #74602f; background: #342d1e; color: var(--vc-gold-2); }
.vc-node .vc-audio-waveform,
.vc-node .vc-audio-play,
.vc-node .vc-audio-replace { cursor: pointer; }
.vc-audio-element { display: none; }
.vc-node[data-node-type="audio_asset"] > .vc-asset-placeholder { min-height: 105px; }
.vc-text-node textarea,
.vc-note-node textarea { width: 100%; min-height: 105px; padding: 10px; resize: none; outline: 0; border: 0; border-radius: 9px; background: #101216; color: #f0f2f5; font-size: 13px; line-height: 1.6; user-select: text; }
.vc-text-vision-loading {
    min-height: 125px;
    overflow: hidden;
    padding: 8px 12px 12px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(115deg, rgba(255,255,255,.014), rgba(255,255,255,.035) 48%, rgba(255,255,255,.012));
}
.vc-vision-skeleton { display: grid; gap: 8px; }
.vc-vision-skeleton i {
    position: relative;
    display: block;
    width: var(--line-width, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 5px;
    background: #303238;
}
.vc-vision-skeleton i::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(100deg, transparent 0, rgba(255,255,255,.1) 46%, rgba(255,255,255,.2) 52%, transparent 100%);
    transform: translateX(-110%);
    animation: vc-vision-shimmer 1.65s ease-in-out infinite;
}
.vc-vision-skeleton i:nth-child(2n)::after { animation-delay: .1s; }
.vc-vision-loading-label {
    display: flex;
    width: max-content;
    max-width: calc(100% - 12px);
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    margin: 14px auto 0;
    padding: 0 13px;
    border: 1px solid rgba(214,218,224,.58);
    border-radius: 10px;
    background: rgba(18,20,24,.9);
    box-shadow: 0 5px 18px rgba(0,0,0,.22);
    color: #f0f2f5;
}
.vc-vision-loading-label > span {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--vc-gold);
    box-shadow: 0 0 8px rgba(240,180,56,.45);
    animation: vc-pulse 1s ease-in-out infinite;
}
.vc-vision-loading-label strong { overflow: hidden; font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.vc-node-preview.generator.vc-image-generation-loading { display: flex; align-items: stretch; justify-content: center; flex-direction: column; box-sizing: border-box; padding: 18px 22px; }
.vc-image-generation-skeleton { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); grid-template-rows: repeat(2, 42px); width: 100%; gap: 8px; }
.vc-image-generation-skeleton i { width: 100%; height: 100%; border-radius: 9px; }
.vc-image-generation-skeleton i:first-child { grid-row: 1 / 3; }
.vc-image-generation-loading .vc-vision-loading-label { flex: 0 0 auto; margin-top: 14px; }
@keyframes vc-vision-shimmer { to { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) {
    .vc-vision-skeleton i::after,
    .vc-vision-loading-label > span { animation: none; }
}
.vc-note-node { background: #272216; border-color: #5b4925; }
.vc-note-node textarea { background: transparent; color: #f0dfaa; }
.vc-asset-placeholder > span { display: grid; justify-items: center; max-width: 90%; }
.vc-asset-placeholder strong { color: #d7d9dd; font-size: 12px; }
.vc-asset-placeholder small { overflow: hidden; max-width: 100%; margin-top: 3px; color: #858b95; text-overflow: ellipsis; white-space: nowrap; }
.vc-asset-placeholder.uploading { border-color: rgba(240,180,56,.5); background: rgba(240,180,56,.035); }
.vc-asset-placeholder.failed { border-color: rgba(244,119,119,.48); color: #ef9a9a; }
.vc-upload-spinner { width: 22px; height: 22px; margin-bottom: 8px; border: 2px solid rgba(240,180,56,.18); border-top-color: var(--vc-gold); border-radius: 50%; animation: vc-upload-spin .75s linear infinite; }
@keyframes vc-upload-spin { to { transform: rotate(360deg); } }
.vc-asset-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--vc-text-3); font-size: 11px; }
.vc-asset-placeholder { display: grid; place-items: center; min-height: 170px; margin: 0 9px 9px; border: 1px dashed #4d535e; border-radius: 11px; color: var(--vc-text-3); font-size: 12px; text-align: center; line-height: 1.7; }
.vc-expired-material-placeholder {
    display: grid;
    place-items: center;
    place-content: center;
    grid-auto-rows: max-content;
    row-gap: 4px;
    min-height: 170px;
    margin: 0 9px 9px;
    border: 1px dashed rgba(238,104,104,.72);
    border-radius: 11px;
    background: rgba(82,28,34,.2);
    color: #ffb0b0;
    font-size: 12px;
    text-align: center;
    line-height: 1.7;
    box-shadow: inset 0 0 26px rgba(238,104,104,.08);
}
.vc-node[data-node-type="image_asset"] .vc-expired-material-placeholder { min-height: 270px; }
.vc-node[data-node-type="video_asset"] .vc-expired-material-placeholder { min-height: 210px; }
.vc-node[data-node-type="audio_asset"] .vc-expired-material-placeholder { min-height: 104px; }
.vc-expired-material-placeholder strong,
.vc-expired-material-placeholder small { display: block; }
.vc-expired-material-placeholder strong { color: #ffb0b0; font-size: 12px; }
.vc-expired-material-placeholder small { margin-top: 0; color: #d88d8d; font-size: 10.5px; }
.vc-node-preview.vc-expired-material-preview { border: 1px dashed rgba(238,104,104,.72); background: rgba(82,28,34,.2); color: #ffb0b0; }
.vc-node-preview.vc-expired-material-preview strong,
.vc-node-preview.vc-expired-material-preview span { display: block; }
.vc-node-preview.vc-expired-material-preview strong { color: #ffb0b0; font-size: 12px; }
.vc-node-preview.vc-expired-material-preview span { margin-top: 4px; color: #d88d8d; font-size: 10.5px; }
.vc-node-actions { display: flex; gap: 6px; margin-top: 9px; }
.vc-node-actions button:disabled { opacity: .42; cursor: not-allowed; }
.vc-node-actions button { flex: 1; padding: 7px; border: 1px solid var(--vc-border); border-radius: 8px; background: var(--vc-panel-2); color: var(--vc-text-2); font-size: 11px; cursor: pointer; }
.vc-node-actions button.primary { border-color: #5b4822; background: #302919; color: #f1c65f; }
.vc-port {
    position: absolute;
    z-index: 15;
    top: 108px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0;
    border: 2px solid var(--vc-gold);
    border-radius: 50%;
    background: #14171c;
    color: var(--vc-gold);
    appearance: none;
    font-size: 0;
    cursor: crosshair;
    line-height: 0;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(13, 15, 19, .78), 0 0 10px rgba(240, 180, 56, .24);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.vc-port svg { width: 14px; height: 14px; stroke-width: 2.8; pointer-events: none; }
.vc-port-left { left: -14px; }
.vc-port-right { right: -14px; }
.vc-port:hover,
.vc-port:focus-visible { outline: none; transform: translateY(-50%) scale(1.14); background: #252014; box-shadow: 0 0 0 4px rgba(13, 15, 19, .82), 0 0 14px currentColor; }

/* Inline creation composer */
.vc-composer { margin: 9px; overflow: visible; border: 1px solid #363a43; border-radius: 12px; background: #1c1f24; user-select: text; }
.vc-composer-section { padding: 11px; border-bottom: 1px solid #30343b; }
.vc-composer-section:last-child { border-bottom: 0; }
.vc-composer-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: #e4e7eb; font-size: 12px; font-weight: 700; }
.vc-capability-hint { color: var(--vc-text-3); font-size: 10.5px; font-weight: 500; }
.vc-add-reference-btn { padding: 5px 8px; border: 1px solid #59471f; border-radius: 8px; background: #2c2618; color: #f0c45c; font-size: 11px; cursor: pointer; }
.vc-reference-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.vc-reference-chip { display: grid; grid-template-columns: 31px minmax(0,1fr) 18px; align-items: center; gap: 4px; min-width: 106px; max-width: 164px; padding: 3px; border: 1px solid #414650; border-radius: 8px; background: #26292f; }
.vc-reference-chip img,
.vc-reference-chip video { width: 31px; height: 31px; border-radius: 6px; object-fit: cover; background: #0b0d11; }
.vc-reference-chip span { min-width: 0; }
.vc-reference-chip strong,
.vc-reference-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-reference-chip strong { font-size: 11.5px; }
.vc-reference-chip small { margin-top: 2px; color: var(--vc-gold); font-size: 10.5px; }
.vc-reference-chip.has-mention-alias strong { color: #f1cc6c; font-weight: 750; }
.vc-reference-chip.has-mention-alias small { color: #a7aeb8; }
.vc-reference-chip button { display: grid; place-items: center; width: 18px; min-width: 0; height: 25px; margin: 0 -1px 0 -2px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--vc-text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.vc-reference-chip button:hover { background: rgba(255,255,255,.06); color: #e6e9ed; }
.vc-ref-fallback,
.vc-audio-preview { display: grid; place-items: center; min-height: 31px; border-radius: 6px; background: #203540; color: #86d4f3; font-size: 11px; }
.vc-ref-expired { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; background: rgba(82,28,34,.78); color: #ffb0b0; font-size: 8px; font-weight: 800; line-height: 1; letter-spacing: -.4px; white-space: nowrap; }
.vc-reference-empty { display: flex; align-items: center; min-height: 32px; color: var(--vc-text-3); font-size: 11px; }
.vc-prompt-wrap { position: relative; }
.vc-prompt-editor { width: 100%; min-height: 92px; padding: 10px; resize: vertical; outline: none; border: 1px solid #3b4049; border-radius: 9px; background: #111318; color: #f0f2f5; font-size: 13px; line-height: 1.6; }
.vc-prompt-editor:focus { border-color: #6a5424; box-shadow: 0 0 0 2px rgba(240,180,56,.08); }
.vc-rich-prompt-editor {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    resize: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    caret-color: #f4c75f;
    contain: paint;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: #4b515c transparent;
}
.vc-rich-prompt-editor[data-empty="true"]::before {
    content: attr(data-placeholder);
    color: #727984;
    pointer-events: none;
}
.vc-prompt-mention {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    margin: 0 2px;
    padding: 2px 7px 2px 3px;
    border: 1px solid rgba(238,190,80,.48);
    border-radius: 8px;
    background: rgba(126,96,35,.24);
    color: #f3d47e;
    font-size: .94em;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    cursor: default;
    user-select: all;
}
.vc-prompt-mention > span:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    line-height: 1;
}
.vc-prompt-mention[data-mention-draggable] { cursor: grab; user-select: none; touch-action: none; }
.vc-prompt-mention[data-mention-draggable].is-dragging { opacity: .38; cursor: grabbing; pointer-events: none; }
.vc-prompt-mention.is-drop-target { outline: 2px solid rgba(240,180,56,.7); outline-offset: 2px; }
.vc-mention-drag-ghost {
    position: fixed;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 2px 7px 2px 3px;
    border: 1px solid rgba(240,180,56,.75);
    border-radius: 8px;
    background: rgba(48,39,20,.94);
    color: #f3d47e;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.vc-mention-drop-caret {
    position: fixed;
    z-index: 999;
    width: 2px;
    height: 25px;
    border-radius: 2px;
    background: #f5c34e;
    box-shadow: 0 0 8px rgba(245,195,78,.8);
    pointer-events: none;
}
.vc-prompt-mention.type-video { border-color: rgba(137,128,244,.46); background: rgba(83,75,167,.23); color: #c6c0ff; }
.vc-prompt-mention.type-audio { border-color: rgba(87,184,218,.46); background: rgba(37,119,149,.22); color: #9ddcf2; }
.vc-prompt-mention-thumb {
    display: grid;
    flex: 0 0 22px;
    place-items: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 6px;
    background: #101318;
}
.vc-prompt-mention-thumb img,
.vc-prompt-mention-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-prompt-mention-thumb.expired { background: rgba(82,28,34,.78); color: #ffb0b0; font-size: 7px; font-weight: 800; line-height: 1; letter-spacing: -.5px; text-align: center; white-space: nowrap; }
.vc-prompt-mention-thumb svg { width: 14px; height: 14px; }
.vc-prompt-compliance-shield,
.vc-prompt-mention-compliance {
    display: inline-grid;
    flex: 0 0 14px;
    place-items: center;
    width: 14px;
    height: 16px;
    margin-left: 1px;
    clip-path: polygon(50% 0, 94% 18%, 88% 66%, 50% 100%, 12% 66%, 6% 18%);
    background: #2785ee;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(39,133,238,.38));
    pointer-events: none;
}
.vc-prompt-compliance-shield svg,
.vc-prompt-mention-compliance svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vc-prompt-help { display: flex; justify-content: space-between; margin-top: 6px; color: var(--vc-text-3); font-size: 10.5px; }
.vc-prompt-help b { color: var(--vc-gold); font-weight: 600; }
.vc-settings-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 7px; }
.vc-field { min-width: 0; }
.vc-field.full { grid-column: 1 / -1; }
.vc-field label { display: block; margin-bottom: 4px; color: var(--vc-text-3); font-size: 10.5px; }
.vc-field select,
.vc-field input { width: 100%; height: 33px; padding: 0 8px; outline: none; border: 1px solid var(--vc-border); border-radius: 8px; background: #25282e; color: #eef0f3; font-size: 12px; }
.vc-param-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 7px; }
.vc-advanced-settings { margin-top: 9px; border-top: 1px solid #30343b; padding-top: 8px; }
.vc-advanced-settings summary { color: var(--vc-text-3); font-size: 11px; cursor: pointer; }
.vc-advanced-settings > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.vc-advanced-settings label { color: var(--vc-text-3); font-size: 10.5px; }
.vc-advanced-settings input { width: 100%; height: 32px; margin-top: 4px; padding: 0 8px; outline: 0; border: 1px solid var(--vc-border); border-radius: 8px; background: #25282e; color: var(--vc-text); font-size: 12px; }
.vc-run-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 10px; }
.vc-cost { color: #aeb5bf; font-size: 12px; font-weight: 550; }
.vc-cost strong { color: #f0c55e; font-size: 14px; }
.vc-run-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 10px; background: linear-gradient(135deg,#f6c44f,#e99e19); color: #211a0d; font-size: 12px; font-weight: 800; cursor: pointer; }
.vc-run-btn:disabled { opacity: .45; cursor: not-allowed; }
.vc-progress { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: #111318; }
.vc-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--vc-gold),var(--vc-blue)); transition: width .3s; }
.vc-node-error { margin-top: 7px; padding: 8px; border-radius: 7px; background: rgba(244,119,119,.1); color: #ffaaaa; font-size: 11px; line-height: 1.55; }
.vc-compat-warning { margin-top: 7px; padding: 8px; border: 1px solid rgba(244,119,119,.3); border-radius: 7px; background: rgba(244,119,119,.08); color: #ffb0b0; font-size: 11px; line-height: 1.55; }

/* Floating controls */
.vc-bottom-left,
.vc-tool-dock,
.vc-expiry-banner {
    position: absolute;
    z-index: 70;
    bottom: 18px;
    display: flex;
    align-items: center;
    border: 1px solid var(--vc-border);
    border-radius: 13px;
    background: rgba(24,26,31,.95);
    box-shadow: 0 14px 38px rgba(0,0,0,.35);
    transition: opacity .16s ease, visibility .16s ease;
}
.vc-workspace:has(> .vc-node-inspector.expanded:not([hidden])) .vc-bottom-left,
.vc-workspace:has(> .vc-node-inspector.expanded:not([hidden])) .vc-tool-dock,
.vc-workspace:has(> .vc-node-inspector.expanded:not([hidden])) .vc-expiry-banner { visibility: hidden; opacity: 0; pointer-events: none; }
.vc-bottom-left { left: 18px; height: 46px; padding: 5px; }
.vc-bottom-left button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: #c8cdd5; font-size: 12px; font-weight: 600; cursor: pointer; }
.vc-bottom-left button:hover { background: var(--vc-panel-3); color: var(--vc-text); }
.vc-bottom-left button svg { width: 15px; height: 15px; }
.vc-bottom-left span { min-width: 42px; color: #c8cdd5; text-align: center; font-size: 12px; font-weight: 600; }
.vc-tool-dock { left: 50%; height: 54px; padding: 6px; transform: translateX(-50%); }
.vc-tool-dock button { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--vc-text-2); font-size: 11px; cursor: pointer; }
.vc-tool-dock button:hover { background: var(--vc-panel-3); color: var(--vc-text); }
.vc-tool-dock button.primary { gap: 7px; background: linear-gradient(135deg,#f5c34e,#e99e19); color: #211a0d; font-weight: 800; }
.vc-tool-dock button.primary span { font-size: 21px; font-weight: 400; }
.vc-tool-dock button#vcShortcutsBtn { width: 40px; padding: 0; }
.vc-tool-dock button#vcShortcutsBtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vc-tool-dock i { width: 1px; height: 26px; margin: 0 3px; background: var(--vc-border); }
.vc-expiry-banner { right: 18px; min-width: 310px; min-height: 44px; padding: 5px 6px 5px 10px; border-color: #5b4822; background: rgba(39,32,20,.97); }
.vc-expiry-banner > span { display: grid; grid-template-columns: 22px auto; }
.vc-expiry-banner i { grid-row: 1 / span 2; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #443517; color: var(--vc-gold); font-size: 9px; font-style: normal; }
.vc-expiry-banner b { color: #edcf7d; font-size: 11px; }
.vc-expiry-banner small { color: #b5a271; font-size: 11px; }
.vc-expiry-banner button { margin-left: auto; padding: 7px 10px; border: 0; border-radius: 9px; background: var(--vc-gold); color: #251c0c; font-size: 11px; font-weight: 800; cursor: pointer; }

/* Popovers and modals */
.vc-popover {
    position: fixed;
    z-index: 300;
    min-width: 220px;
    max-width: 340px;
    padding: 7px;
    border: 1px solid #3b4049;
    border-radius: 11px;
    background: #1b1e23;
    box-shadow: 0 18px 50px rgba(0,0,0,.52);
}
.vc-popover-title { padding: 6px 8px 8px; color: #858b95; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.vc-popover-divider { height: 1px; margin: 5px 3px; background: #333840; }
.vc-context-menu { min-width: 230px; }
.vc-context-menu:not(.vc-image-operation-menu) { display: grid; grid-template-columns: minmax(0, 1fr); }
.vc-context-menu button.danger { color: #f09b9b; }
.vc-context-menu button.danger:hover { background: rgba(244,119,119,.1); }
.vc-menu-icon { display: inline-grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #292d34; color: #bfc4cc; }
.vc-context-menu button.danger .vc-menu-icon { background: rgba(244,119,119,.1); color: #f09b9b; }
.vc-inline-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vc-output-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.vc-output-copy strong { font-size: 12px; font-weight: 650; }
.vc-output-copy small { width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-popover button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #dfe2e7; text-align: left; font-size: 12px; cursor: pointer; }
.vc-popover button:hover { background: #292d34; }
.vc-popover button[disabled] { opacity: .38; cursor: not-allowed; }
.vc-popover small { display: block; margin-left: auto; color: var(--vc-text-3); font-size: 11px; }
.vc-image-operation-menu {
    width: min(330px, calc(100vw - 16px));
    max-width: min(330px, calc(100vw - 16px));
    padding: 8px;
}
.vc-image-operation-menu .vc-popover-title { padding: 5px 8px 8px; color: #a8adb5; font-size: 11px; letter-spacing: .04em; }
.vc-image-operation-scroll {
    max-height: min(510px, calc(100vh - 128px));
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #606771 transparent;
}
.vc-image-operation-menu button { min-height: 48px; padding: 7px 8px; }
.vc-image-operation-menu button:hover { background: #3a3f47; }
.vc-image-operation-menu .vc-menu-icon { width: 30px; height: 30px; flex-basis: 30px; color: #d8bd70; background: #302d26; }
.vc-image-operation-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
.vc-image-operation-copy strong { color: #f0f2f5; font-size: 13px; font-weight: 650; line-height: 1.2; }
.vc-image-operation-copy small { width: 100%; margin: 0; overflow: hidden; color: #999fa8; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.vc-popover.vc-shortcut-popover { width: min(350px, calc(100vw - 16px)); max-width: min(350px, calc(100vw - 16px)); max-height: calc(100vh - 88px); overflow-y: auto; }
.vc-shortcut-list { display: grid; gap: 3px; padding: 2px 3px 4px; }
.vc-shortcut-group { margin: 5px 5px 2px; color: #858d99; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.vc-shortcut-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 29px; padding: 3px 6px; border-radius: 7px; color: #dfe2e7; font-size: 11.5px; }
.vc-shortcut-row:hover { background: #292d34; }
.vc-shortcut-keys { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.vc-shortcut-keys kbd { min-width: 22px; padding: 2px 5px; border: 1px solid #4a515c; border-bottom-color: #303640; border-radius: 5px; background: #252a31; color: #d7dce3; font-family: inherit; font-size: 10px; line-height: 1.2; text-align: center; box-shadow: inset 0 -1px 0 rgba(0,0,0,.24); }
.vc-shortcut-note { margin: 5px 6px 2px; color: #818996; font-size: 10px; line-height: 1.5; }
.vc-mention-popover { width: min(310px, calc(100vw - 16px)); max-height: 280px; overflow-y: auto; }
.vc-popover .vc-mention-item { gap: 10px; min-height: 52px; padding: 7px 8px; }
.vc-mention-item > span:last-child { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; }
.vc-mention-item strong { max-width: 100%; overflow: hidden; color: #f1f3f6; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vc-popover .vc-mention-item small { width: 100%; margin: 3px 0 0; overflow: hidden; color: #8f96a1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vc-mention-preview {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 1px solid #424852;
    border-radius: 8px;
    background: #101318;
    color: #aeb6c2;
}
.vc-mention-preview img,
.vc-mention-preview video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0a0c10; }
.vc-mention-preview svg { width: 18px; height: 18px; }
.vc-mention-preview.type-image { border-color: rgba(238,190,80,.42); }
.vc-mention-preview.type-video { border-color: rgba(137,128,244,.42); }
.vc-mention-preview.type-audio { border-color: rgba(87,184,218,.42); background: rgba(37,119,149,.18); color: #9ddcf2; }
.vc-modal-layer { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5,7,10,.72); backdrop-filter: blur(7px); }
.vc-modal-layer.dragging-asset { pointer-events: none; opacity: .2; }
.vc-modal { width: min(520px, 100%); max-height: 82vh; overflow-y: auto; padding: 20px; border: 1px solid var(--vc-border); border-radius: 16px; background: #191b20; box-shadow: 0 26px 80px rgba(0,0,0,.55); }
.vc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vc-modal-head strong { font-size: 15px; }
.vc-modal-head button { color: var(--vc-text-2); font-size: 22px; font-family: Arial, sans-serif; }
.vc-modal-head button:hover { background: #343941; color: #fff; }
.vc-modal p { color: var(--vc-text-2); font-size: 12px; line-height: 1.7; }
.vc-modal input,
.vc-modal textarea { width: 100%; padding: 10px; outline: 0; border: 1px solid var(--vc-border); border-radius: 9px; background: #101216; color: var(--vc-text); font-size: 12px; }
.vc-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.vc-modal-actions button { padding: 9px 14px; border: 1px solid var(--vc-border); border-radius: 9px; background: var(--vc-panel-2); color: var(--vc-text-2); font-size: 12px; cursor: pointer; }
.vc-modal-actions button.primary { border: 0; background: var(--vc-gold); color: #241b0b; font-weight: 800; }
.vc-video-modal { width: min(960px, 96vw); overflow: hidden; }
.vc-image-modal { width: min(900px, 96vw); overflow: hidden; }
.vc-media-preview-modal { display: grid; place-items: center; min-height: 320px; overflow: hidden; border-radius: 12px; background: #080a0d; }
.vc-media-preview-modal video { display: block; width: 100%; max-height: 68vh; background: #000; }
.vc-media-preview-modal img { display: block; width: auto; max-width: 100%; max-height: 68vh; object-fit: contain; }
.vc-modal-video-results { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: #9ca5b2; font-size: 11px; }
.vc-modal-video-results button { min-height: 27px; padding: 0 9px; border: 1px solid #414852; border-radius: 7px; background: #252a31; color: #cbd2da; font-size: 11px; cursor: pointer; }
.vc-modal-video-results button:hover { border-color: #806426; color: #f2ca69; }
.vc-modal-video-results button.active { border-color: #d8a83e; background: #4a391d; color: #ffe29a; }
.vc-modal-image-results { min-width: 0; margin-top: 10px; color: #9ca5b2; font-size: 11px; }
.vc-modal-image-results > span { display: block; margin-bottom: 6px; }
.vc-modal-image-results > div { display: flex; min-width: 0; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 1px 1px 4px; scrollbar-width: thin; }
.vc-modal-image-results button { position: relative; flex: 0 0 78px; overflow: hidden; padding: 0; border: 2px solid #414852; border-radius: 9px; background: #12151a; color: #d5dae1; cursor: pointer; }
.vc-modal-image-results button:hover { border-color: #806426; }
.vc-modal-image-results button.active { border-color: #d8a83e; box-shadow: 0 0 0 1px rgba(216,168,62,.24); }
.vc-modal-image-results button img { display: block; width: 100%; height: 54px; object-fit: cover; }
.vc-modal-image-results button em { display: block; overflow: hidden; padding: 4px 5px; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.vc-modal-image-results button.active em { background: #4a391d; color: #ffe29a; }
.vc-library-modal { width: min(980px, 96vw); }
.vc-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vc-library-toolbar label { display: flex; flex: 1; align-items: center; gap: 8px; max-width: 420px; padding: 0 10px; border: 1px solid var(--vc-border); border-radius: 9px; background: #101216; color: var(--vc-text-3); }
.vc-library-toolbar label input { min-width: 0; border: 0; background: transparent; }
.vc-library-toolbar > div { display: flex; gap: 5px; }
.vc-library-toolbar > div button { padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--vc-text-3); cursor: pointer; }
.vc-library-toolbar > div button.active { background: #343941; color: var(--vc-text); }
.vc-library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 220px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.vc-library-grid .vc-asset-item img,
.vc-library-grid .vc-asset-item video { height: 130px; }
.vc-reference-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vc-reference-option { overflow: hidden; padding: 0; border: 1px solid var(--vc-border); border-radius: 9px; background: var(--vc-panel-2); text-align: left; cursor: pointer; }
.vc-reference-option img,
.vc-reference-option video { display: block; width: 100%; height: 90px; object-fit: cover; background: #090b0e; }
.vc-reference-option span { display: block; overflow: hidden; padding: 7px; color: var(--vc-text-2); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }

.vc-mobile-note { display: none; }

/* Shared toast adaptation */
.canvas-page .toast-container { z-index: 1000; }
.canvas-page .toast { background: #24272d; color: #eef0f3; border: 1px solid #3a3e46; }

@media (max-width: 1260px) {
    .vc-top-btn { padding: 0 8px; }
    .vc-top-btn svg { display: none; }
    .vc-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vc-project-title { width: 140px; }
}

@media (max-width: 900px) {
    .canvas-page { min-width: 0; }
    .vc-hub-header { grid-template-columns: 1fr auto; padding: 0 16px; }
    .vc-hub-header .vc-mode-switch { display: none; }
    .vc-hub-main { width: calc(100% - 28px); padding: 42px 0 70px; }
    .vc-hub-intro { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
    .vc-hub-intro h1 { font-size: 34px; }
    .vc-project-grid { grid-template-columns: 1fr 1fr; }
    .vc-topbar { height: 58px; padding: 0 9px; }
    .vc-topbar-left .vc-mode-switch,
    .vc-canvas-name,
    .vc-top-btn,
    .vc-save-state { display: none; }
    .vc-project-title { width: 126px; }
    .vc-viewport { top: 58px; }
    .vc-sidebar { left: 8px; right: 8px; top: auto; bottom: 74px; width: auto; height: min(72vh, 650px); }
    .vc-sidebar:not(.open) { transform: translateY(calc(100% + 100px)); }
    .vc-sidebar-open-btn { left: 10px; top: auto; bottom: 78px; }
    .vc-tool-dock { bottom: 12px; }
    .vc-tool-dock button:not(.primary) { display: none; }
    .vc-bottom-left { left: 8px; bottom: 12px; }
    .vc-bottom-left > button:first-child span { display: none; }
    .vc-expiry-banner { right: 8px; bottom: 70px; min-width: 270px; }
    .vc-mobile-note {
        position: fixed;
        z-index: 900;
        inset: auto 12px 12px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 10px;
        padding: 13px;
        border: 1px solid #5b4822;
        border-radius: 12px;
        background: #262014;
        box-shadow: 0 15px 50px rgba(0,0,0,.5);
    }
    .vc-mobile-note strong { color: #f1d081; font-size: 11px; }
    .vc-mobile-note span { color: #a18e63; font-size: 9px; }
    .vc-mobile-note button { grid-row: 1 / span 2; grid-column: 2; padding: 0 10px; border: 0; border-radius: 8px; background: var(--vc-gold); color: #241b0b; font-size: 9px; font-weight: 700; }
}

@media (max-width: 560px) {
    .vc-project-grid { grid-template-columns: 1fr; }
    .vc-hub-intro h1 { font-size: 30px; }
    .vc-reference-picker { grid-template-columns: 1fr 1fr; }
}

/* Global platform navigation. Kept independent from the canvas controls. */
.canvas-page > .vc-global-nav {
    position: fixed;
    z-index: 700;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 48px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(78, 51, 0, .18);
    background: linear-gradient(135deg, #e8a000, #f5c030);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    color: #2d1f00;
}

.vc-global-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: #2d1f00;
    text-decoration: none;
}

.vc-global-brand-mark {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #2d1f00;
    color: #ffd55c;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.vc-global-brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.vc-global-location {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.vc-global-location span {
    color: var(--vc-text-3);
    font-size: 10px;
}

.vc-global-location strong {
    color: var(--vc-text);
    font-size: 13px;
}

.vc-global-links {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.vc-global-links a {
    padding: 7px 11px;
    border-radius: 8px;
    color: #493100;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.vc-global-links a:hover,
.vc-global-links a:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, .34);
    color: #211700;
}

.vc-global-links a.active {
    background: rgba(255, 255, 255, .52);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    color: #211700;
    font-weight: 800;
}

.vc-global-context {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid rgba(45, 31, 0, .2);
    border-radius: 9px;
    background: rgba(45, 31, 0, .1);
    line-height: 1;
    white-space: nowrap;
}

.vc-global-context span {
    color: #674700;
    font-size: 10px;
}

.vc-global-context strong {
    color: #2d1f00;
    font-size: 11px;
}

.vc-global-mobile-back { display: none; }

.canvas-page > .vc-project-hub { padding-top: 48px; }
.canvas-page > .vc-project-hub > .vc-hub-header { top: 48px; }
.canvas-page > .vc-workspace > .vc-topbar { top: 48px; }
.canvas-page > .vc-workspace > .vc-viewport { top: 112px; }
.canvas-page > .vc-workspace > .vc-sidebar { top: 128px; }
.canvas-page > .vc-workspace > .vc-sidebar-open-btn { top: 134px; }

@media (max-width: 1080px) {
    .canvas-page > .vc-global-nav { gap: 12px; padding: 0 14px; }
    .vc-global-brand-name { font-size: 14px; }
    .vc-global-links a { padding-inline: 8px; font-size: 12px; }
    .vc-global-context span { display: none; }
}

@media (max-width: 900px) {
    .canvas-page > .vc-global-nav { height: 46px; }
    .vc-global-links,
    .vc-global-context { display: none; }
    .vc-global-mobile-back {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        margin-left: auto;
        padding: 0 11px;
        border: 1px solid rgba(45, 31, 0, .22);
        border-radius: 8px;
        background: rgba(255, 255, 255, .3);
        color: #2d1f00;
        font-size: 11px;
        font-weight: 750;
        text-decoration: none;
    }
    .canvas-page > .vc-project-hub { padding-top: 46px; }
    .canvas-page > .vc-project-hub > .vc-hub-header { top: 46px; }
    .canvas-page > .vc-workspace > .vc-topbar { top: 46px; }
    .canvas-page > .vc-workspace > .vc-viewport { top: 104px; }
    .canvas-page > .vc-workspace > .vc-sidebar { top: auto; }
    .canvas-page > .vc-workspace > .vc-sidebar-open-btn { top: auto; }
}

@media (max-width: 560px) {
    .canvas-page > .vc-global-nav { padding-inline: 10px; }
    .vc-global-brand-name { font-size: 13px; }
    .vc-global-brand-mark { width: 27px; height: 27px; border-radius: 8px; }
}

/* Use the same platform header as every other commercial page. */
.canvas-page > .app-header {
    position: relative;
    top: auto;
    flex: 0 0 60px;
    width: 100%;
    font-family: var(--font);
}
.canvas-page > .app-header .header-avatar svg { width: 20px; height: 20px; stroke-width: 2; }
.canvas-page > .vc-project-hub {
    height: calc(100vh - 60px);
    min-height: 0;
    padding-top: 0;
}
.canvas-page > .vc-project-hub > .vc-hub-header { top: 0; }
.canvas-page > .vc-workspace {
    height: calc(100vh - 60px);
}
.canvas-page > .vc-workspace > .vc-topbar { top: 0; }
.canvas-page > .vc-workspace > .vc-viewport { top: 64px; }
.canvas-page > .vc-workspace > .vc-sidebar { top: 80px; }
.canvas-page > .vc-workspace > .vc-sidebar-open-btn { top: 86px; }

/* Screen-space inspector stays crisp while the canvas beneath it zooms. */
.vc-node-inspector {
    position: fixed;
    z-index: 90;
    width: min(760px, calc(100vw - 32px));
    height: min(390px, calc(100vh - 148px));
    max-height: min(390px, calc(100vh - 148px));
    overflow: visible;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0,0,0,.58), 0 0 0 1px rgba(240,180,56,.12);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #505662 transparent;
    container-type: inline-size;
}
.vc-inspector-shell { display: flex; height: 100%; min-height: 0; flex-direction: column; overflow: visible; }
.vc-inspector-head { display: flex; flex: 0 0 38px; align-items: center; gap: 8px; padding: 0 8px 0 13px; border: 1px solid #505762; border-bottom: 0; border-radius: 14px 14px 0 0; background: #24282e; }
.vc-inspector-head strong { overflow: hidden; max-width: 45%; color: #f0f2f5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vc-inspector-head > span { color: #858d98; font-size: 10px; }
.vc-inspector-head button { display: grid; place-items: center; width: 29px; height: 29px; margin-left: auto; padding: 0; border: 1px solid #454b55; border-radius: 8px; background: #1c1f24; color: #c9cfd8; cursor: pointer; }
.vc-inspector-head button:hover { border-color: #806426; color: var(--vc-gold-2); }
.vc-node-inspector.expanded { z-index: 160; }
.vc-node-inspector .vc-composer {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: visible;
    border-color: #505762;
    border-radius: 0 0 14px 14px;
    background: #1b1e24;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.vc-node-inspector.expanded .vc-composer-main .vc-prompt-editor { font-size: 15px; line-height: 1.75; }
.vc-node-inspector.expanded .vc-composer-top .vc-reference-list { align-content: flex-start; max-height: 122px; flex-wrap: wrap; overflow-y: auto; padding-right: 2px; }
.vc-composer-top {
    flex: 0 0 auto;
    min-height: 70px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #30343b;
    background: #1d2025;
}
.vc-composer-tools { display: flex; align-items: center; gap: 7px; min-height: 27px; }
.vc-composer-tools .vc-capability-hint { margin-left: auto; white-space: nowrap; }
.vc-image-operation-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 190px;
    height: 28px;
    padding: 0 9px 0 7px;
    border: 1px solid #6944a3;
    border-radius: 14px;
    background: rgba(166, 75, 235, .15);
    color: #e2b5ff;
    font-size: 11px;
    line-height: 1;
}
.vc-image-operation-badge .vc-inline-icon { width: 16px; height: 16px; color: #ce70ff; }
.vc-image-operation-badge b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vc-composer-top .vc-composer-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 66px;
    padding: 0 10px;
    border: 1px solid #4b515b;
    border-radius: 14px;
    background: #272a30;
    color: #c8ced6;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
}
.vc-composer-top .vc-composer-tool-btn:hover,
.vc-composer-top .vc-composer-tool-btn:focus-visible { outline: none; border-color: #796025; background: #332b1b; color: var(--vc-gold-2); }
.vc-composer-top .vc-add-reference-btn { border-color: #59471f; background: #2c2618; color: #f0c45c; }
.vc-composer-top .vc-reference-list { flex-wrap: nowrap; min-height: 31px; margin-top: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 1px; }
.vc-composer-top .vc-reference-chip { flex: 0 0 auto; min-width: 112px; max-width: 164px; }
.vc-composer-top .vc-reference-empty { min-height: 28px; }
.vc-composer-top .vc-compat-warning { margin-top: 5px; padding: 5px 7px; }
.vc-composer-main { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; flex-direction: column; padding: 11px 14px 7px; background: #191c21; }
.vc-node-inspector .vc-composer-main .vc-prompt-editor { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 2px 0; resize: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.vc-node-inspector .vc-prompt-editor { font-size: 14px; }
.vc-node-inspector .vc-capability-hint,
.vc-node-inspector .vc-prompt-help,
.vc-node-inspector .vc-field label,
.vc-node-inspector .vc-advanced-settings label { font-size: 11px; }
.vc-composer-main .vc-prompt-help { flex: 0 0 auto; }
.vc-image-operation-hint { overflow: hidden; max-width: 58%; color: #a99ab5; text-overflow: ellipsis; white-space: nowrap; }
.vc-composer-main .vc-progress { flex: 0 0 auto; height: 6px; margin-top: 5px; }
.vc-composer-main .vc-video-task-list { flex: 0 0 auto; min-height: 42px; max-height: 132px; overflow-y: auto; }
.vc-composer-main .vc-node-error { flex: 0 0 auto; margin-top: 5px; padding: 5px 7px; }
.vc-composer-toolbar {
    position: relative;
    z-index: 4;
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px 10px;
    border-top: 1px solid #30343b;
    background: #202329;
}
.vc-toolbar-control { display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 34px; padding: 0 7px; border: 1px solid #363b44; border-radius: 9px; background: #262a30; }
.vc-toolbar-control > span { color: #8f98a5; font-size: 9px; white-space: nowrap; }
.vc-toolbar-control select { width: auto; min-width: 70px; max-width: 130px; height: 30px; padding: 0 17px 0 0; border: 0; background: transparent; color: #e9ebee; font-size: 11px; font-weight: 650; box-shadow: none; }
.vc-toolbar-model { flex: 1 1 160px; max-width: 205px; }
.vc-toolbar-model select { width: 100%; max-width: none; }
.vc-node-inspector select {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23aeb5bf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    background-size: 10px 7px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.vc-node-inspector .vc-toolbar-control select { padding-right: 24px; background-position: right 3px center; }
.vc-node-inspector select:hover { border-color: #59616d; background-color: #2c3037; }
.vc-node-inspector select:focus,
.vc-node-inspector select:focus-visible { outline: none; border-color: #806426; box-shadow: 0 0 0 2px rgba(240,180,56,.14); }
.vc-node-inspector select option { background: #202329; color: #eef0f3; }
.vc-node-inspector .vc-toolbar-control:hover { border-color: #505762; background-color: #2c3037; }
.vc-node-inspector .vc-toolbar-control:focus-within { border-color: #806426; box-shadow: 0 0 0 2px rgba(240,180,56,.12); }
.vc-parameter-drawer { position: relative; flex: 0 0 auto; }
.vc-parameter-drawer > summary { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px; border: 1px solid #3a4049; border-radius: 9px; background: #272b31; color: #d6dae0; font-size: 11px; cursor: pointer; list-style: none; white-space: nowrap; }
.vc-parameter-drawer > summary::-webkit-details-marker { display: none; }
.vc-parameter-drawer > summary svg { width: 15px; height: 15px; color: #aeb5bf; }
.vc-parameter-drawer[open] > summary { border-color: #6a5424; background: #332b1b; color: var(--vc-gold-2); }
.vc-parameter-popover { position: absolute; z-index: 25; right: 0; bottom: calc(100% + 10px); width: min(520px, calc(100vw - 40px)); max-height: 200px; overflow-y: auto; padding: 12px; border: 1px solid #4a505a; border-radius: 12px; background: #202329; box-shadow: 0 20px 55px rgba(0,0,0,.6); }
.vc-parameter-popover .vc-param-row { margin-top: 0; }
.vc-advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.vc-advanced-grid.single { grid-template-columns: 1fr; }
.vc-advanced-grid label { color: var(--vc-text-3); font-size: 10.5px; }
.vc-advanced-grid input { width: 100%; height: 33px; margin-top: 4px; padding: 0 8px; border: 1px solid var(--vc-border); border-radius: 8px; background: #181b20; color: var(--vc-text); font-size: 12px; }
.vc-audio-option { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--vc-text-2); font-size: 11px; }
.vc-audio-option input { width: auto; }
.vc-composer-toolbar > .vc-cost { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.vc-composer-toolbar .vc-run-btn { flex: 0 0 auto; min-width: 66px; min-height: 34px; height: 34px; gap: 5px; padding: 0 5px 0 9px; justify-content: center; border-radius: 17px; font-size: 12px; }
.vc-composer-toolbar .vc-run-btn span { font-weight: 900; letter-spacing: .01em; }
.vc-composer-toolbar .vc-run-btn b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.72); font-size: 0; line-height: 1; }
.vc-composer-toolbar .vc-run-btn b::before {
    content: "";
    display: block;
    width: 10px;
    height: 11px;
    background: #211a0d;
    clip-path: polygon(50% 0, 100% 40%, 68% 40%, 68% 100%, 32% 100%, 32% 40%, 0 40%);
    transform: translateY(2px);
}
.canvas-page .vc-composer-toolbar .vc-run-btn,
.canvas-page .vc-composer-toolbar .vc-run-btn span,
.canvas-page .vc-composer-toolbar .vc-run-btn b { color: #211a0d; }

/* Custom model, input-mode and parameter controls. */
.vc-control-dropdown { position: relative; flex: 0 0 auto; min-width: 0; }
.vc-toolbar-model { flex: 1 1 180px; max-width: 225px; }
.vc-toolbar-input { width: 142px; }
.vc-control-trigger { display: flex; align-items: center; gap: 7px; width: 100%; height: 36px; min-width: 0; padding: 3px 7px; border: 1px solid #3a3e45; border-radius: 9px; background: #292c31; color: #f3f3f3; font: inherit; text-align: left; cursor: pointer; }
.vc-control-trigger:hover { border-color: #555b64; background: #30343a; }
.vc-control-dropdown.is-open > .vc-control-trigger { border-color: #817044; background: #343026; box-shadow: 0 0 0 2px rgba(235,184,66,.1); }
.vc-control-copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 1px; }
.vc-control-copy small { color: #9aa0a8; font-size: 9px; line-height: 1; }
.vc-control-copy strong { overflow: hidden; color: #f3f4f6; font-size: 12px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.vc-control-chevron { flex: 0 0 auto; width: 13px; height: 13px; fill: none; stroke: #a6abb3; stroke-width: 1.7; transition: transform .18s ease; }
.vc-control-dropdown.is-open .vc-control-chevron { transform: rotate(180deg); }
.vc-control-popover { position: absolute; z-index: 120; bottom: calc(100% + 10px); left: 0; max-height: var(--vc-control-max-height, min(510px, calc(100vh - 160px))); overflow: hidden; border: 1px solid #4b4f56; border-radius: 15px; background: #252525; box-shadow: 0 24px 68px rgba(0,0,0,.7), inset 0 1px rgba(255,255,255,.025); }
.vc-control-dropdown.opens-down > .vc-control-popover { top: calc(100% + 10px); bottom: auto; }
.vc-control-popover[hidden] { display: none !important; }
.vc-model-icon, .vc-mode-icon { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #393b3f; color: #f0f1f3; }
.vc-model-icon svg, .vc-mode-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.vc-model-icon.category-seedance { color: #f3c757; }
.vc-model-icon.category-kling { color: #a9d2ff; }
.vc-toolbar-model > .vc-control-popover { width: min(390px, calc(100vw - 40px)); }
.vc-model-menu { max-height: min(410px, var(--vc-control-max-height, calc(100vh - 160px))); overflow-y: auto; padding: 7px; scrollbar-width: thin; scrollbar-color: #777c84 transparent; }
.vc-model-option { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 51px; padding: 6px 8px; border: 0; border-radius: 11px; background: transparent; color: #f1f1f1; font: inherit; text-align: left; cursor: pointer; }
.vc-model-option:hover, .vc-model-option.active { background: #464646; }
.vc-model-option-copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 2px; }
.vc-model-option-copy strong { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vc-model-option-copy small { overflow: hidden; color: #adb1b8; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.vc-model-option-meta { display: flex; flex: 0 0 auto; max-width: 88px; align-items: flex-end; flex-direction: column; gap: 3px; }
.vc-model-option-meta em { max-width: 88px; overflow: hidden; padding: 2px 6px; border-radius: 10px; background: #3b3c3f; color: #c4c8ce; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.vc-control-empty { display: block; padding: 24px; color: #91969e; font-size: 12px; text-align: center; }
.vc-toolbar-input > .vc-control-popover { width: 220px; }
.vc-mode-menu { padding: 8px; }
.vc-mode-menu > p { margin: 2px 4px 7px; color: #92979f; font-size: 12px; }
.vc-mode-option { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 38px; padding: 3px 6px; border: 0; border-radius: 8px; background: transparent; color: #eef0f3; font-size: 13px; font-weight: 550; line-height: 1.25; text-align: left; cursor: pointer; }
.canvas-page .vc-node-inspector button.vc-mode-option { font-size: 13px; line-height: 1.25; }
.vc-mode-option .vc-mode-icon { width: 21px; height: 21px; border-radius: 6px; background: transparent; color: #cbd0d7; }
.vc-mode-option .vc-mode-icon svg { width: 14px; height: 14px; }
.vc-mode-option:hover, .vc-mode-option.active { background: #4a4a4a; color: #fff; }
.vc-parameter-drawer { position: relative; flex: 0 0 auto; }
.vc-parameter-drawer > .vc-control-trigger { width: auto; gap: 6px; padding: 0 9px; color: #e2e5e9; font-size: 12px; font-weight: 600; white-space: nowrap; }
.vc-parameter-drawer.is-open > .vc-control-trigger { color: #f0c45c; }
.vc-parameter-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
.vc-parameter-drawer > .vc-control-popover { right: 0; left: auto; width: min(350px, calc(100vw - 40px)); overflow: visible; }
.vc-parameter-popover { position: static; width: 100%; max-height: min(510px, var(--vc-control-max-height, calc(100vh - 160px))); overflow-y: auto; padding: 10px; border: 0; border-radius: 15px; background: #252525; box-shadow: none; scrollbar-width: thin; scrollbar-color: #686d75 transparent; }
.vc-param-section { padding: 0 0 10px; }
.vc-param-section h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; color: #b4b8be; font-size: 12px; font-weight: 600; }
.vc-param-section h4 small { color: #858a92; font-size: 11px; font-weight: 400; }
.vc-ratio-grid { display: grid; grid-template-columns: repeat(5, minmax(48px, 1fr)); gap: 7px; }
.vc-ratio-option { display: flex; min-width: 0; height: 55px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; border: 1px solid #4a4e54; border-radius: 8px; background: #292929; color: #adb2ba; font-size: 12px; font-weight: 550; line-height: 1; cursor: pointer; }
.canvas-page .vc-node-inspector button.vc-ratio-option { font-size: 12px; line-height: 1; }
.vc-ratio-option i { display: block; width: 13px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.vc-ratio-option i.square { width: 11px; height: 11px; }
.vc-ratio-option i.portrait { width: 8px; height: 13px; }
.vc-ratio-option i.tall { width: 7px; height: 15px; }
.vc-ratio-option i.landscape { width: 15px; height: 9px; }
.vc-ratio-option i.ultrawide { width: 17px; height: 7px; }
.vc-ratio-option i.auto { border-style: dashed; }
.vc-ratio-option:hover { border-color: #777c85; color: #d8dbe0; }
.vc-ratio-option.active { border-color: #f4f4f4; background: #474747; color: #fff; }
.vc-segmented-grid { display: grid; grid-auto-columns: minmax(72px, 1fr); grid-auto-flow: column; gap: 8px; }
.vc-segment-option { height: 30px; min-width: 0; padding: 0 7px; border: 1px solid #50545a; border-radius: 8px; background: #292929; color: #a7abb1; font-size: 12px; line-height: 1; cursor: pointer; }
.canvas-page .vc-node-inspector button.vc-segment-option { font-size: 12px; line-height: 1; }
.vc-segment-option:hover:not(:disabled) { border-color: #777c84; color: #e5e7ea; }
.vc-segment-option.active { border-color: #f0f0f0; background: #484848; color: #fff; font-weight: 650; }
.vc-segment-option:disabled { cursor: not-allowed; opacity: .35; }
.vc-duration-control { display: grid; grid-template-columns: 1fr 46px 12px; align-items: center; gap: 7px; }
.vc-duration-control input[type="range"] { width: 100%; height: 16px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.vc-duration-control input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #35a8ff var(--range-progress), #43474d var(--range-progress)); }
.vc-duration-control input[type="range"]::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; border: 2px solid #fff; border-radius: 50%; appearance: none; background: #fff; }
.vc-duration-control input[type="range"]::-moz-range-track { height: 4px; border: 0; border-radius: 2px; background: #43474d; }
.vc-duration-control input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: #35a8ff; }
.vc-duration-control input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #fff; }
.vc-duration-control output { height: 22px; border-radius: 7px; background: #303236; color: #f1f1f1; font-size: 11px; font-weight: 650; line-height: 22px; text-align: center; }
.vc-duration-control > span { color: #8d9299; font-size: 11px; }
.vc-duration-marks { display: flex; justify-content: space-between; margin: 2px 60px 0 0; color: #858a92; font-size: 9px; }
.vc-advanced-section { padding-bottom: 0; border-top: 1px solid #36393e; }
.vc-advanced-grid { margin-top: 8px; }
.vc-advanced-grid label { color: #aeb3bb; font-size: 12px; }
.vc-advanced-grid input { border-color: #43474e; background: #1d1f22; font-size: 11px; }
.vc-advanced-grid input:focus { outline: none; border-color: #807044; box-shadow: 0 0 0 2px rgba(235,184,66,.1); }

@container (max-width: 619px) {
    .vc-composer-toolbar { flex-wrap: wrap; gap: 5px; min-height: 54px; height: auto; overflow: visible; }
    .vc-toolbar-control { flex: 0 0 auto; }
    .vc-toolbar-model { width: 160px; }
    .vc-composer-toolbar > .vc-cost { margin-left: 0; }
    .vc-composer-tools .vc-capability-hint { display: none; }
}

@media (max-width: 900px) {
    .canvas-page > .vc-workspace > .vc-topbar { top: 0; }
    .canvas-page > .vc-workspace > .vc-viewport { top: 58px; }
    .canvas-page > .vc-workspace > .vc-sidebar,
    .canvas-page > .vc-workspace > .vc-sidebar-open-btn { top: auto; }
    .vc-node-inspector { max-height: min(55vh, 500px); }
    .vc-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vc-library-toolbar { align-items: stretch; flex-direction: column; }
}

/* Selection and material expiry are the two persistent card states that decorate a canvas card. */
.vc-node:not(.selected):hover { border-color: #3c414b !important; }
.vc-node:not(.selected).connection-compatible,
.vc-node:not(.selected).connection-incompatible,
.vc-node:not(.selected).connection-source,
.vc-node:not(.selected).invalid {
    border-color: #3c414b !important;
    box-shadow: 0 16px 45px rgba(0,0,0,.32) !important;
}
.vc-node.selected,
.vc-node.selected.connection-compatible,
.vc-node.selected.connection-incompatible,
.vc-node.selected.connection-source,
.vc-node.selected.invalid {
    z-index: 10;
    border-color: #3c414b !important;
    box-shadow: 0 0 0 2px rgba(240,180,56,.62), 0 0 30px rgba(240,180,56,.28), 0 20px 60px rgba(0,0,0,.45) !important;
}
.vc-node.expired-material,
.vc-node:not(.selected).expired-material {
    border-color: #e87575 !important;
    box-shadow: 0 0 0 2px rgba(238,104,104,.48), 0 0 28px rgba(238,104,104,.26), 0 16px 45px rgba(0,0,0,.32) !important;
}
.vc-node.selected.expired-material {
    border-color: #f08b76 !important;
    box-shadow: 0 0 0 2px rgba(240,180,56,.62), 0 0 30px rgba(238,104,104,.34), 0 20px 60px rgba(0,0,0,.45) !important;
}
.vc-node-floating-actions button.portrait.active { background: rgba(73,190,132,.15); color: #83deb4; }
.vc-reference-chip[draggable="true"] { cursor: grab; }
.vc-reference-chip[draggable="true"]:active { cursor: grabbing; }
.vc-reference-chip.is-reference-dragging { opacity: .42; }
.vc-rich-prompt-editor.is-reference-drop-target { outline: 2px solid rgba(240,180,56,.6); outline-offset: -2px; }
.vc-reference-drop-caret { background: #f2c45d; box-shadow: 0 0 10px rgba(240,180,56,.65); }
.vc-node.located { animation: vc-node-located .85s ease; }
@keyframes vc-node-located {
    0%, 100% { filter: none; }
    35% { filter: brightness(1.25); box-shadow: 0 0 0 3px rgba(240,180,56,.82), 0 0 48px rgba(240,180,56,.48); }
}

.vc-avatar-review-modal { width: min(720px, 96vw); }
.vc-avatar-review { display: grid; gap: 13px; }
.vc-avatar-review h4 { margin: 2px 0 -4px; color: #d9dde4; font-size: 12px; }
.vc-avatar-review-intro { margin: 0; padding: 11px 12px; border: 1px solid #3b4653; border-radius: 10px; background: #151a20; }
.vc-avatar-review-intro code { color: #f0c45d; }
.vc-avatar-source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 220px; overflow-y: auto; }
.vc-avatar-source-list.single { grid-template-columns: 1fr; }
.vc-avatar-source-option { display: grid; grid-template-columns: auto 54px 1fr; align-items: center; gap: 9px; padding: 7px; border: 1px solid #3d434c; border-radius: 10px; background: #20242a; cursor: pointer; }
.vc-avatar-source-option:has(input:checked) { border-color: #b78c32; background: #2b271d; }
.vc-avatar-source-option img { width: 54px; height: 48px; border-radius: 7px; object-fit: cover; background: #0c0f13; }
.vc-avatar-source-option span { min-width: 0; }
.vc-avatar-source-option strong,
.vc-avatar-source-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-avatar-source-option strong { color: #edf0f4; font-size: 12px; }
.vc-avatar-source-option small { margin-top: 4px; color: #9098a3; font-size: 10.5px; }
.vc-avatar-kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vc-avatar-kind-grid label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; padding: 11px; border: 1px solid #3e444d; border-radius: 11px; background: #202329; cursor: pointer; }
.vc-avatar-kind-grid label:has(input:checked) { border-color: #bc9036; background: #2e281b; box-shadow: inset 0 0 0 1px rgba(240,180,56,.14); }
.vc-avatar-kind-grid strong,
.vc-avatar-kind-grid small { display: block; }
.vc-avatar-kind-grid strong { color: #edf0f4; font-size: 12.5px; }
.vc-avatar-kind-grid small { margin-top: 4px; color: #989faa; font-size: 10.5px; line-height: 1.45; }
.vc-avatar-review input[type="radio"],
.vc-avatar-review input[type="checkbox"] { width: auto; height: auto; margin: 2px 0 0; padding: 0; accent-color: #e8b43f; }
.vc-avatar-rights { display: flex; align-items: flex-start; gap: 8px; color: #b9bec6; font-size: 11px; line-height: 1.55; }
.vc-avatar-review-status { min-height: 40px; padding: 10px 11px; border: 1px solid #3c424b; border-radius: 9px; background: #14171c; color: #aeb5bf; font-size: 11px; line-height: 1.6; }
.vc-avatar-review-status.processing { border-color: #5c4b28; color: #e7c46d; }
.vc-avatar-review-status.success { border-color: #285840; color: #82d9ae; }
.vc-avatar-review-status a { color: #f0c45d; text-decoration: underline; }

@media (max-width: 640px) {
    .vc-avatar-source-list,
    .vc-avatar-kind-grid { grid-template-columns: 1fr; }
}
.vc-node-floating-actions button.compliance { display: none; }
.vc-node-floating-actions button.compliance span { font-size: 10px; font-weight: 700; white-space: nowrap; }
.vc-compliance-shield { display: inline-grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px; margin-left: 3px; overflow: visible; background: transparent; color: #4b9fff; filter: drop-shadow(0 1px 3px rgba(52,142,255,.38)); }
.vc-compliance-shield svg { width: 18px; height: 18px; fill: rgba(54,142,255,.17); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-compliance-checking-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    height: 22px;
    margin-left: 2px;
    padding: 0 6px 0 5px;
    overflow: visible !important;
    border: 1px solid rgba(72,158,255,.34);
    border-radius: 11px;
    background: rgba(38,113,202,.13);
    color: #8bc6ff;
    box-shadow: 0 0 0 1px rgba(58,145,246,.05), 0 2px 10px rgba(25,104,198,.12);
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1;
    text-overflow: clip !important;
    white-space: nowrap;
}
.vc-compliance-checking-badge::before {
    content: '';
    flex: 0 0 12px;
    width: 12px;
    height: 14px;
    clip-path: polygon(50% 0, 94% 18%, 88% 66%, 50% 100%, 12% 66%, 6% 18%);
    background: linear-gradient(180deg, #66b5ff, #2c7fdf);
    box-shadow: 0 0 8px rgba(64,157,255,.42);
}
.vc-compliance-checking-dot {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #62adff;
    box-shadow: 0 0 7px rgba(82,169,255,.7);
    animation: vc-compliance-checking-glow 1.25s ease-in-out infinite;
}
.vc-compliance-checking-label { overflow: visible !important; color: inherit; font: inherit; text-overflow: clip !important; }
.vc-compliance-checking-dots {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    overflow: visible !important;
}
.vc-compliance-checking-dots > i {
    display: block;
    flex: 0 0 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #78bdff;
    box-shadow: 0 0 5px rgba(86,173,255,.56);
    animation: vc-compliance-checking-glow 1.25s ease-in-out infinite;
}
.vc-compliance-checking-dots > i:nth-child(2) { animation-delay: .16s; }
.vc-compliance-checking-dots > i:nth-child(3) { animation-delay: .32s; }
@keyframes vc-compliance-checking-glow {
    0%, 100% { opacity: .38; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .vc-compliance-checking-dot,
    .vc-compliance-checking-dots > i { animation: none; opacity: .85; transform: none; }
}
.vc-reference-chip { position: relative; grid-template-columns: 31px minmax(0,1fr) 18px; }
.vc-reference-compliance { position: absolute; z-index: 3; left: 25px; top: 25px; display: grid; place-items: center; width: 14px; height: 14px; border: 2px solid #24282e; border-radius: 50%; background: #df5555; color: #fff; font-size: 9px; font-style: normal; font-weight: 900; line-height: 1; box-sizing: border-box; }
.vc-reference-chip.compliance-checking .vc-reference-compliance { border: 2px solid rgba(255,255,255,.24); border-top-color: #64aaff; background: #243a58; animation: vc-upload-spin .75s linear infinite; }
.vc-reference-chip.compliance-active .vc-reference-compliance { border-color: #24282e; background: #2785ee; color: #fff; }
.vc-reference-chip.compliance-required > img,
.vc-reference-chip.compliance-required > video { opacity: .52; filter: blur(1.1px) saturate(.65); }
.vc-reference-compliance { pointer-events: none; }
.vc-reference-chip.compliance-active .vc-reference-compliance {
    left: 23px;
    top: 22px;
    width: 17px;
    height: 19px;
    border: 0;
    border-radius: 0;
    clip-path: polygon(50% 0, 94% 18%, 88% 66%, 50% 100%, 12% 66%, 6% 18%);
    background: #2785ee;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(39,133,238,.44));
}
.vc-reference-chip.compliance-active .vc-reference-compliance.vc-compliance-shield {
    position: absolute;
    z-index: 3;
    left: 22px;
    top: 21px;
    display: inline-grid;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    clip-path: none;
    background: transparent;
    color: #4b9fff;
    font-size: 0;
    filter: drop-shadow(0 1px 3px rgba(52,142,255,.38));
}
.vc-reference-chip.compliance-active .vc-reference-compliance.vc-compliance-shield svg { width: 18px; height: 18px; fill: rgba(54,142,255,.17); stroke: currentColor; stroke-width: 2; }
.vc-reference-chip.compliance-required > img,
.vc-reference-chip.compliance-required > video,
.vc-reference-chip.compliance-failed > img,
.vc-reference-chip.compliance-failed > video { opacity: .48; filter: blur(1.1px) saturate(.62); }
.vc-avatar-source-option video { width: 54px; height: 48px; border-radius: 7px; object-fit: cover; background: #0c0f13; }
.vc-compliance-banner { position: fixed; z-index: 1400; top: 68px; left: 50%; display: grid; grid-template-columns: 22px minmax(0,1fr) 24px; align-items: center; gap: 8px; width: min(760px, calc(100vw - 24px)); min-height: 48px; padding: 8px 10px; border: 1px solid #f0a657; border-radius: 12px; background: #d95b4e; box-shadow: 0 14px 42px rgba(0,0,0,.38); color: #fff; transform: translateX(-50%); }
.vc-compliance-banner > span { display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; font-size: 11px; font-weight: 900; }
.vc-compliance-banner strong { font-size: 12px; font-weight: 650; line-height: 1.55; }
.vc-compliance-banner.has-action { grid-template-columns: 22px minmax(0,1fr) auto 24px; }
.vc-compliance-banner > a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.58); border-radius: 8px; color: #fff; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.vc-compliance-banner > a:hover { background: rgba(255,255,255,.14); }
.vc-compliance-banner > a[hidden] { display: none !important; }
.vc-compliance-banner button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.85); font-size: 22px; cursor: pointer; }

/* Use a cheap compositor-only state while the user pans; animations resume afterwards. */
.vc-viewport.panning .vc-edge-path,
.vc-viewport.panning .vc-edge-flowline {
    filter: none !important;
    transition: none !important;
}
.vc-viewport.panning .vc-edge-path.pending,
.vc-viewport.panning .vc-edge-flowline {
    animation-play-state: paused !important;
}


/* Connection hover feedback is visible only during an active wire gesture. */
.vc-viewport.connecting .vc-node { transition: border-color .14s ease, box-shadow .14s ease; }
.vc-viewport.connecting .vc-node.connection-compatible:not(.connection-source) {
    z-index: 9;
    border-color: #5bd69c !important;
    box-shadow: 0 0 0 2px rgba(91,214,156,.62), 0 0 30px rgba(91,214,156,.32), 0 20px 55px rgba(0,0,0,.42) !important;
}
.vc-viewport.connecting .vc-node.connection-incompatible:not(.connection-source) {
    border-color: rgba(239,111,111,.82) !important;
    box-shadow: 0 0 0 1px rgba(239,111,111,.42), 0 0 18px rgba(239,111,111,.16), 0 16px 45px rgba(0,0,0,.34) !important;
}
.vc-viewport.connecting .vc-node.connection-source {
    border-color: #69bfff !important;
    box-shadow: 0 0 0 2px rgba(105,191,255,.48), 0 0 24px rgba(105,191,255,.24), 0 18px 50px rgba(0,0,0,.4) !important;
}

/* Keep interaction responsive on dense graphs.  The visual language stays
   the same, but expensive SVG filters/transitions and travelling dashes are
   disabled once the graph becomes large. */
.vc-workspace.vc-large-graph .vc-edge-path,
.vc-workspace.vc-large-graph .vc-edge-flowline {
    filter: none !important;
    transition: none !important;
}
.vc-workspace.vc-large-graph .vc-edge-flowline,
.vc-workspace.vc-large-graph .vc-edge-path.pending {
    animation: none !important;
}
.vc-workspace.vc-large-graph .vc-node {
    transition: none !important;
}
.vc-workspace.vc-large-graph .vc-edge-group:hover .vc-edge-path,
.vc-workspace.vc-large-graph .vc-edge-group.selected .vc-edge-path {
    filter: none !important;
}
.vc-node-title .vc-compliance-checking-badge > .vc-compliance-checking-label {
    overflow: visible !important;
    color: inherit;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-overflow: clip !important;
}

.vc-node-title .vc-compliance-checking-badge > .vc-compliance-checking-dot {
    display: block;
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #62adff;
    color: transparent;
    font-size: 0;
    box-shadow: 0 0 7px rgba(82,169,255,.7);
    animation: vc-compliance-checking-glow 1.25s ease-in-out infinite;
}

/* Inspector compliance indicators share the card shield language and stay
   fully contained by the reference thumbnail. */
.vc-prompt-compliance-shield.vc-compliance-shield {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-left: 3px;
    overflow: visible;
    clip-path: none;
    background: transparent;
    color: #4b9fff;
    filter: drop-shadow(0 1px 3px rgba(52,142,255,.38));
}
.vc-prompt-compliance-shield.vc-compliance-shield svg {
    width: 18px;
    height: 18px;
    fill: rgba(54,142,255,.17);
    stroke: currentColor;
    stroke-width: 2;
}
.vc-reference-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 31px;
    min-width: 31px !important;
    height: 31px;
    overflow: hidden;
    border-radius: 6px;
    background: #0b0d11;
}
.vc-reference-thumb > img,
.vc-reference-thumb > video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    background: #0b0d11;
}
.vc-reference-thumb > .vc-ref-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: inherit;
    background: transparent;
}
.vc-reference-thumb .vc-reference-compliance {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 2px solid #24282e;
    border-radius: 50%;
    box-sizing: border-box;
    background: #df5555;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}
.vc-reference-chip.compliance-checking .vc-reference-thumb .vc-reference-compliance {
    border-color: rgba(255,255,255,.24);
    border-top-color: #64aaff;
    background: #243a58;
    animation: vc-upload-spin .75s linear infinite;
}
.vc-reference-chip.compliance-active .vc-reference-thumb .vc-reference-compliance.vc-compliance-shield {
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
    width: 18px;
    height: 18px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    clip-path: none;
    background: transparent;
    color: #4b9fff;
    font-size: 0;
    filter: drop-shadow(0 1px 3px rgba(52,142,255,.38));
}
.vc-reference-chip.compliance-active .vc-reference-thumb .vc-reference-compliance.vc-compliance-shield svg {
    width: 16px;
    height: 16px;
    fill: rgba(54,142,255,.17);
    stroke: currentColor;
    stroke-width: 2;
}
.vc-reference-chip.compliance-required .vc-reference-thumb > img,
.vc-reference-chip.compliance-required .vc-reference-thumb > video,
.vc-reference-chip.compliance-failed .vc-reference-thumb > img,
.vc-reference-chip.compliance-failed .vc-reference-thumb > video {
    opacity: .48;
    filter: blur(1.1px) saturate(.62);
}

/* Canvas element navigator -------------------------------------------------
   The navigator shares the existing sidebar so switching to Assets/Templates
   remains backwards compatible.  Its rows intentionally stay compact while
   allowing the title column to grow with the resizable sidebar. */
.vc-sidebar {
    width: var(--vc-sidebar-width, 320px);
}
.vc-sidebar:not(.open) { transform: translateX(calc(-1 * var(--vc-sidebar-width, 320px) - 20px)); }
.vc-sidebar-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vc-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.vc-canvas-elements-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 10px;
}
.vc-canvas-element-filter-select {
    position: relative;
    display: block;
    /* Keep the category trigger compact so the search field gets the
       majority of the toolbar, including at the sidebar's minimum width. */
    flex: 0 0 clamp(72px, 24%, 80px);
    min-width: 0;
}
.vc-canvas-element-filter-select::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    border-right: 1px solid #aab1bb;
    border-bottom: 1px solid #aab1bb;
    content: '';
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}
.vc-canvas-element-filter-select:hover::after,
.vc-canvas-element-filter-select:focus-within::after { border-color: #e7c66d; }
.vc-canvas-element-filter-select > button {
    display: block;
    width: 100%;
    height: 32px;
    padding: 0 25px 0 10px;
    border: 1px solid #3b4049;
    border-radius: 11px;
    outline: 0;
    appearance: none;
    background: #1b1e23;
    color: #dfe2e7;
    font-size: 11px;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}
.vc-canvas-element-filter-select > button:hover,
.vc-canvas-element-filter-select > button[aria-expanded="true"] { border-color: #545b66; background: #25292f; color: var(--vc-text); }
.vc-canvas-element-filter-select > button:focus-visible {
    border-color: #806426;
    box-shadow: 0 0 0 2px rgba(240,180,56,.12), 0 10px 24px rgba(0, 0, 0, .24);
}
.vc-popover.vc-canvas-element-filter-menu {
    width: min(230px, calc(100vw - 16px));
    min-width: min(230px, calc(100vw - 16px));
    max-width: min(230px, calc(100vw - 16px));
    max-height: min(360px, calc(100vh - 120px));
    overflow-y: auto;
    padding: 7px;
}
.vc-canvas-element-filter-menu[hidden] { display: none !important; }
.vc-canvas-element-filter-menu .vc-popover-title { padding: 5px 9px 7px; font-size: 9.5px; }
.vc-canvas-element-filter-menu button[role="option"] {
    gap: 9px;
    min-height: 36px;
    padding: 6px 9px;
    color: #d8dce2;
    font-size: 11.5px;
    line-height: 1.2;
}
.vc-canvas-element-filter-menu button[role="option"]:hover,
.vc-canvas-element-filter-menu button[role="option"]:focus-visible { outline: none; background: #292d34; color: #f3f4f6; }
.vc-canvas-element-filter-menu button[role="option"][aria-selected="true"] { background: #302d25; color: #efd078; font-weight: 650; }
.vc-canvas-element-filter-menu button[role="option"][aria-selected="true"]:hover,
.vc-canvas-element-filter-menu button[role="option"][aria-selected="true"]:focus-visible { background: #3a3529; }
.vc-canvas-element-filter-option-mark {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border: 1px solid #5b626c;
    border-radius: 50%;
    background: transparent;
}
.vc-canvas-element-filter-menu button[aria-selected="true"] .vc-canvas-element-filter-option-mark {
    border-color: #e4b94d;
    background: #e4b94d;
    box-shadow: 0 0 0 2px rgba(228,185,77,.14);
}
.vc-canvas-element-search {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #3b4049;
    border-radius: 8px;
    background: #101216;
    box-shadow: none;
}
.vc-canvas-element-search:focus-within { border-color: #68717d; box-shadow: none; }
.vc-canvas-element-search svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: var(--vc-text-3); stroke-width: 1.8; stroke-linecap: round; }
.vc-canvas-element-search input {
    min-width: 0;
    flex: 1;
    height: 28px;
    padding: 0;
    border: 0 !important;
    outline: 0;
    background: transparent;
    box-shadow: none !important;
    color: var(--vc-text);
    font-size: 11.5px;
    caret-color: #dfe2e7;
    appearance: none;
    -webkit-appearance: none;
}
.vc-canvas-element-search input::-webkit-search-cancel-button,
.vc-canvas-element-search input::-webkit-search-decoration { display: none; width: 0; height: 0; appearance: none; -webkit-appearance: none; }
.vc-canvas-element-search input:-webkit-autofill,
.vc-canvas-element-search input:-webkit-autofill:hover,
.vc-canvas-element-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--vc-text);
    -webkit-box-shadow: 0 0 0 100px #101216 inset;
}
.vc-canvas-element-search input::placeholder { color: #707680; }
.vc-canvas-elements-list { display: grid; gap: 3px; min-width: 0; }
.vc-canvas-element-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px 28px;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    transition: background .14s ease, border-color .14s ease;
}
.vc-canvas-element-item:hover,
.vc-canvas-element-item.selected { border-color: rgba(255,255,255,.08); background: #292c32; }
.vc-canvas-element-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 46px;
    padding: 5px 5px 5px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.vc-canvas-element-main:hover { color: var(--vc-text); }
.vc-canvas-element-thumb {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 7px;
    background: #34373e;
    color: #c6cbd2;
}
.vc-canvas-element-thumb.image { color: #efb65d; background: #3a2f20; }
.vc-canvas-element-thumb.video { color: #f0c560; background: #3b311f; }
.vc-canvas-element-thumb.audio { color: #8bd8b1; background: #213b32; }
.vc-canvas-element-thumb.text { color: #8dc9f4; background: #203443; }
.vc-canvas-element-thumb.other { color: #b4a2df; background: #302a43; }
.vc-canvas-element-thumb-media { display: block; width: 100%; height: 100%; object-fit: cover; background: #0a0b0e; }
.vc-canvas-element-thumb-icon { display: grid; place-items: center; width: 19px; height: 19px; }
.vc-canvas-element-thumb-icon .vc-inline-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vc-canvas-element-thumb-letter { font-size: 14px; font-weight: 800; }
.vc-canvas-element-copy { display: block; min-width: 0; flex: 1; }
.vc-canvas-element-copy strong,
.vc-canvas-element-copy small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-canvas-element-copy strong { color: #e0e3e8; font-size: 11.5px; font-weight: 650; line-height: 1.35; }
.vc-canvas-element-copy small { margin-top: 2px; color: #848b96; font-size: 9.5px; line-height: 1.25; }
.vc-canvas-element-locate,
.vc-canvas-element-menu {
    display: grid;
    place-items: center;
    width: 27px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #858c97;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, background .14s ease, color .14s ease;
}
.vc-canvas-element-item:hover .vc-canvas-element-locate,
.vc-canvas-element-item:hover .vc-canvas-element-menu,
.vc-canvas-element-item:focus-within .vc-canvas-element-locate,
.vc-canvas-element-item:focus-within .vc-canvas-element-menu {
    opacity: 1;
    pointer-events: auto;
}
.vc-canvas-element-locate:hover,
.vc-canvas-element-menu:hover,
.vc-canvas-element-locate:focus-visible,
.vc-canvas-element-menu:focus-visible { outline: none; background: #3a3e46; color: #f0c55d; }
.vc-canvas-element-locate svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vc-canvas-element-menu { display: flex; align-items: center; justify-content: center; gap: 3px; }
.vc-canvas-element-menu span { display: block; flex: 0 0 3px; width: 3px; height: 3px; margin: 0; border-radius: 50%; background: currentColor; }
.vc-canvas-element-item.selected .vc-canvas-element-locate { color: var(--vc-gold-2); }
.vc-canvas-element-item.selected .vc-canvas-element-locate,
.vc-canvas-element-item.selected .vc-canvas-element-menu { opacity: 0; }
.vc-canvas-element-item.selected:hover .vc-canvas-element-locate,
.vc-canvas-element-item.selected:hover .vc-canvas-element-menu,
.vc-canvas-element-item.selected:focus-within .vc-canvas-element-locate,
.vc-canvas-element-item.selected:focus-within .vc-canvas-element-menu { opacity: 1; }
@media (pointer: coarse) {
    .vc-canvas-element-item .vc-canvas-element-locate,
    .vc-canvas-element-item .vc-canvas-element-menu { opacity: 1; pointer-events: auto; }
}
.vc-canvas-element-menu-popover { min-width: 180px; }
.vc-canvas-element-menu-popover button { min-height: 36px; }
.vc-sidebar-resize-handle {
    position: absolute;
    z-index: 4;
    top: 0;
    right: -5px;
    bottom: 0;
    width: 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: col-resize;
    touch-action: none;
}
.vc-sidebar-resize-handle::after {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 2px;
    height: 38px;
    border-radius: 2px;
    background: transparent;
    content: '';
    transform: translateY(-50%);
    transition: background .15s ease;
}
.vc-sidebar:hover .vc-sidebar-resize-handle::after,
.vc-sidebar-resize-handle:focus-visible::after,
.vc-sidebar.is-resizing .vc-sidebar-resize-handle::after { background: #806626; }
.vc-sidebar-resize-handle:focus-visible { outline: 2px solid rgba(240,180,56,.65); outline-offset: -1px; }
body.vc-sidebar-resizing { cursor: col-resize !important; user-select: none !important; }
.vc-sidebar.is-resizing { transition: none; }
@media (max-width: 900px) {
    .vc-sidebar { width: auto !important; }
    .vc-sidebar:not(.open) { transform: translateY(calc(100% + 100px)); }
    .vc-sidebar-resize-handle { display: none; }
}

/* Full-bleed editor layout -------------------------------------------------
   Once a project is open the platform header gives way to the canvas.  The
   element navigator becomes a true edge-to-edge rail and the remaining
   controls live in screen-space, leaving the graph unobstructed. */
.canvas-page.vc-editor-active {
    --vc-sidebar-width: 320px;
    --vc-canvas-left: 320px;
    --vc-bottom-rail-width: 320px;
}
.canvas-page.vc-editor-active > .app-header { display: none !important; }
.canvas-page.vc-editor-active .vc-global-mobile-nav { display: none !important; }
.canvas-page.vc-editor-active > .vc-workspace {
    width: 100vw;
    height: 100vh;
    min-height: 0;
}
.canvas-page.vc-editor-active > .vc-workspace > .vc-topbar {
    top: 0 !important;
    right: 0;
    left: var(--vc-canvas-left, 320px);
    height: 58px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
}
.canvas-page.vc-editor-active > .vc-workspace > .vc-topbar > * { pointer-events: auto; }
.canvas-page.vc-editor-active .vc-topbar-left { gap: 8px; }
.canvas-page.vc-editor-active .vc-topbar-actions { gap: 7px; }
.canvas-page.vc-editor-active .vc-top-btn,
.canvas-page.vc-editor-active .vc-hub-back-btn,
.canvas-page.vc-editor-active .vc-project-title,
.canvas-page.vc-editor-active .vc-canvas-name,
.canvas-page.vc-editor-active .vc-mode-switch {
    background: rgba(19, 22, 27, .78);
    border-color: rgba(82, 88, 98, .72);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.canvas-page.vc-editor-active .vc-project-title { background: rgba(19,22,27,.54); }
.canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar {
    top: 0 !important;
    bottom: 0 !important;
    left: 0;
    width: var(--vc-sidebar-width, 320px) !important;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: #17191d;
    box-shadow: 12px 0 35px rgba(0,0,0,.18);
}
.canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar:not(.open) {
    transform: translateX(calc(-1 * var(--vc-sidebar-width, 320px) - 12px));
}
.canvas-page.vc-editor-active .vc-sidebar-head {
    min-height: 72px;
    padding-top: 16px;
    border-bottom-color: #30343b;
}
.canvas-page.vc-editor-active .vc-sidebar-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    padding: 0;
    border-bottom: 1px solid #30343b;
    border-radius: 0;
    background: transparent;
}
.canvas-page.vc-editor-active .vc-sidebar-tabs button {
    min-height: 42px;
    border-radius: 0;
    font-size: 11px;
}
.canvas-page.vc-editor-active .vc-sidebar-tabs button.active {
    position: relative;
    background: transparent;
    color: var(--vc-gold-2);
}
.canvas-page.vc-editor-active .vc-sidebar-tabs button.active::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--vc-gold);
    content: '';
}
.canvas-page.vc-editor-active .vc-sidebar-scroll { padding: 15px 12px 64px; }
.canvas-page.vc-editor-active .vc-sidebar-foot {
    min-height: 42px;
    padding-inline: 12px;
    background: #17191d;
}
.canvas-page.vc-editor-active > .vc-workspace > .vc-viewport {
    top: 0 !important;
    right: 0;
    bottom: 0;
    left: var(--vc-canvas-left, 320px);
    background-color: #101216;
    background-image: radial-gradient(circle, rgba(116,124,137,.24) 1px, transparent 1.1px);
    background-size: 24px 24px;
}
.canvas-page.vc-editor-active .vc-sidebar-open-btn {
    top: 16px;
    left: 14px;
    width: 35px;
    height: 35px;
    border-radius: 9px;
}
.canvas-page.vc-editor-active .vc-bottom-left {
    z-index: 95;
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--vc-bottom-rail-width, var(--vc-sidebar-width, 320px));
    height: 54px;
    padding: 8px 10px;
    border-right: 1px solid var(--vc-border);
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: #17191d;
    box-shadow: 10px -8px 28px rgba(0,0,0,.16);
}
.canvas-page.vc-editor-active .vc-bottom-left button:first-child { margin-right: auto; }
.canvas-page.vc-editor-active .vc-bottom-left button:first-child span { font-size: 11px; }
.canvas-page.vc-editor-active .vc-bottom-left button:hover { background: #292d33; }
.canvas-page.vc-editor-active .vc-tool-dock {
    right: 18px;
    bottom: 16px;
    left: auto;
    height: 52px;
    padding: 6px;
    transform: none;
    border-radius: 14px;
    background: rgba(26, 29, 34, .94);
}
.canvas-page.vc-editor-active .vc-tool-dock button { min-width: 38px; }
.canvas-page.vc-editor-active .vc-tool-dock button.active,
.canvas-page.vc-editor-active .vc-tool-dock button[aria-pressed="true"] {
    background: #49391c;
    color: var(--vc-gold-2);
}
.canvas-page.vc-editor-active .vc-expiry-banner {
    /* Keep the notice on the same baseline as the quick-action dock. */
    right: 18px;
    bottom: 16px;
    min-height: 52px;
}

/* Screen-space minimap */
.vc-minimap {
    position: absolute;
    z-index: 68;
    right: 20px;
    bottom: 82px;
    width: 188px;
    padding: 7px;
    border: 1px solid rgba(77,83,93,.9);
    border-radius: 12px;
    background: rgba(23,26,31,.94);
    box-shadow: 0 15px 35px rgba(0,0,0,.32);
    color: var(--vc-text-2);
}
.vc-minimap-head { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 3px 4px; color: #aab1bb; font-size: 10px; }
.vc-minimap-head button { width: 22px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #aeb5bf; cursor: pointer; }
.vc-minimap-head button:hover { background: #343941; color: var(--vc-text); }
.vc-minimap-stage { height: 106px; overflow: hidden; border: 1px solid #343942; border-radius: 7px; background: #101216; cursor: crosshair; outline: none; }
.vc-minimap-stage:focus-visible { box-shadow: 0 0 0 2px rgba(240,180,56,.5); }
.vc-minimap-stage svg { display: block; width: 100%; height: 100%; }
.vc-minimap-edge { stroke: #64707f; stroke-width: .65; stroke-linecap: round; opacity: .72; vector-effect: non-scaling-stroke; }
.vc-minimap-node { opacity: .8; }
.vc-minimap-node.selected { stroke: #ffe39a; stroke-width: 1.4; opacity: 1; vector-effect: non-scaling-stroke; }
.vc-minimap-stage #vcMinimapViewport { fill: rgba(255,255,255,.05); stroke: #f0c55d; stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }

@media (max-width: 900px) {
    .canvas-page.vc-editor-active { --vc-canvas-left: 0px; }
    .canvas-page.vc-editor-active > .vc-workspace > .vc-topbar { left: 0; height: 58px; padding-inline: 9px; }
    .canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar {
        top: auto !important;
        right: 8px;
        bottom: 74px !important;
        left: 8px;
        width: auto !important;
        height: min(72vh, 650px);
        border: 1px solid var(--vc-border);
        border-radius: 17px;
        box-shadow: 0 20px 60px rgba(0,0,0,.38);
    }
    .canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar:not(.open) { transform: translateY(calc(100% + 100px)); }
    .canvas-page.vc-editor-active > .vc-workspace > .vc-viewport { top: 58px !important; left: 0; }
    .canvas-page.vc-editor-active .vc-bottom-left { right: auto; bottom: 12px; left: 8px; width: auto; height: 46px; border: 1px solid var(--vc-border); border-radius: 13px; }
    .canvas-page.vc-editor-active .vc-tool-dock { right: 12px; bottom: 12px; }
    .canvas-page.vc-editor-active .vc-minimap { display: none; }
}

/* Final canvas rail alignment ------------------------------------------------
   The navigator owns the left footer when it is open.  The screen-space rail
   therefore starts at the actual canvas edge; when the navigator is closed it
   shrinks back to its contents so no empty rectangle is left in the lower-left
   corner. */
.canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar {
    /* The editor sidebar is a true full-height rail. */
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    border-radius: 0;
}
.canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar:not(.open) {
    visibility: hidden;
    opacity: 0;
    box-shadow: none;
    pointer-events: none;
}
.canvas-page.vc-editor-active .vc-sidebar-scroll { padding-bottom: 12px; }
.canvas-page.vc-editor-active .vc-sidebar-foot {
    flex: 0 0 54px;
    min-height: 54px;
    padding: 8px 14px;
    border-top-color: #30343b;
}
.canvas-page.vc-editor-active .vc-sidebar-foot-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c8a54f;
    cursor: pointer;
}
.canvas-page.vc-editor-active .vc-sidebar-foot-toggle:hover,
.canvas-page.vc-editor-active .vc-sidebar-foot-toggle:focus-visible { background: #292d33; color: #f3ca69; outline: none; }
.canvas-page.vc-editor-active .vc-sidebar-foot-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.canvas-page.vc-editor-active .vc-sidebar-node-count { margin-left: auto; color: #9b8a62; font-size: 10.5px; white-space: nowrap; }

.canvas-page.vc-editor-active .vc-bottom-left {
    right: auto;
    bottom: 0;
    left: var(--vc-canvas-left, 0px);
    width: max-content;
    min-width: 0;
    height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--vc-border);
    border-bottom: 0;
    border-radius: 0 13px 0 0;
    background: rgba(23,25,29,.97);
    box-shadow: 10px -8px 28px rgba(0,0,0,.16);
}
.canvas-page.vc-editor-active .vc-bottom-left button:first-child { margin-right: 0; }
.canvas-page.vc-editor-active .vc-workspace.vc-sidebar-is-open .vc-bottom-left { border-left: 0; }
.canvas-page.vc-editor-active .vc-sidebar.open ~ .vc-bottom-left > #vcSidebarBottomToggle { display: none; }
.canvas-page.vc-editor-active .vc-workspace.vc-sidebar-is-open .vc-bottom-left > #vcSidebarBottomToggle { display: none; }
.canvas-page.vc-editor-active .vc-workspace.vc-sidebar-is-collapsed .vc-bottom-left > #vcSidebarBottomToggle { display: inline-flex; }
.canvas-page.vc-editor-active .vc-sidebar:not(.open) ~ .vc-bottom-left {
    left: 0;
    border-left: 0;
    border-radius: 0 13px 0 0;
}
.canvas-page.vc-editor-active .vc-bottom-left button.active,
.canvas-page.vc-editor-active .vc-bottom-left button[aria-pressed="true"] {
    background: #49391c;
    color: var(--vc-gold-2);
}

/* Keep the quick actions centered in the available canvas, not at the window
   edge (which made them appear to jump to the right of the workspace). */
.canvas-page.vc-editor-active .vc-tool-dock {
    right: auto;
    bottom: 16px;
    left: calc(var(--vc-canvas-left, 0px) + (100vw - var(--vc-canvas-left, 0px)) / 2);
    transform: translateX(-50%);
}

/* The map is a button-triggered popover rather than a permanent overlay. */
.vc-minimap[hidden] { display: none !important; }
.canvas-page.vc-editor-active .vc-minimap {
    z-index: 130;
    width: 180px;
    padding: 6px;
    border-radius: 12px;
    pointer-events: auto;
}
.canvas-page.vc-editor-active .vc-minimap-head {
    /* The reference design is a clean map tile; keep the title available to
       assistive technology through the section aria-label without consuming
       vertical space above the overview. */
    display: none;
}
.canvas-page.vc-editor-active .vc-minimap-stage {
    height: 108px;
    touch-action: none;
    cursor: grab;
}
.canvas-page.vc-editor-active .vc-minimap-stage:active { cursor: grabbing; }
.canvas-page.vc-editor-active .vc-minimap-toggle-btn,
#vcMinimapToggleBtn.active { color: var(--vc-gold-2); }

@media (max-width: 900px) {
    .canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar {
        top: auto !important;
        right: 8px;
        bottom: 74px !important;
        left: 8px !important;
        width: auto !important;
        height: min(72vh, 650px);
        border: 1px solid var(--vc-border);
        border-radius: 17px;
        box-shadow: 0 20px 60px rgba(0,0,0,.38);
    }
    .canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar.open {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .canvas-page.vc-editor-active > .vc-workspace > .vc-sidebar:not(.open) {
        visibility: hidden;
        opacity: 0;
        transform: translateY(calc(100% + 100px));
    }
    .canvas-page.vc-editor-active .vc-bottom-left {
        right: auto;
        left: 8px;
        bottom: 12px;
        width: max-content;
        height: 46px;
        border: 1px solid var(--vc-border);
        border-radius: 13px;
    }
    .canvas-page.vc-editor-active .vc-workspace.vc-sidebar-is-collapsed .vc-bottom-left > #vcSidebarBottomToggle span { display: inline; }
    .canvas-page.vc-editor-active .vc-sidebar.open ~ .vc-bottom-left { left: 8px; }
    .canvas-page.vc-editor-active .vc-sidebar.open ~ .vc-bottom-left > #vcSidebarBottomToggle { display: none; }
    .canvas-page.vc-editor-active .vc-minimap {
        display: block;
        width: min(180px, calc(100vw - 24px));
    }
    /* The compact mobile dock occupies the lower-right corner; stack the
       notice just above it instead of letting the two controls overlap. */
    .canvas-page.vc-editor-active .vc-expiry-banner {
        right: 8px;
        bottom: 70px;
        min-width: min(270px, calc(100vw - 16px));
        min-height: 44px;
    }
}
