body.vbd-open { overflow: hidden; }
.tbd-body { overflow: auto; padding: 22px; display: grid; gap: 24px; }
.tbd-step { border: 1px solid #8899bb38; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.tbd-step h4 { margin-top: 0; }
.tbd-copy { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.tbd-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tbd-buttons span { background: #809cff16; padding: 8px; border-radius: 7px; overflow-wrap: anywhere; }
.tbd-table { overflow: auto; }
.tbd-table table { width: 100%; border-collapse: collapse; }
.tbd-table th, .tbd-table td { text-align: left; padding: 9px; border-bottom: 1px solid #8899bb38; }
.vbd-overlay { position: fixed; inset: 0; z-index: 10020; background: rgba(5,8,18,.76); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
.vbd-modal { width: min(1400px,100%); height: min(940px,calc(100dvh - 40px)); background: var(--bg-card,#131824); color: var(--text-primary,#e8edf7); border: 1px solid var(--border,rgba(255,255,255,.12)); border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 24px 90px #0008; overflow: hidden; font-size: 14px; }
.vbd-modal header, .vbd-modal footer { padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(128,150,200,.04); }
.vbd-modal header { border-bottom: 1px solid #8899bb22; }
.vbd-modal h2 { margin: 0 0 7px; font-size: 20px; }
.vbd-modal h3 { margin: 4px 0 14px; font-size: 17px; }
.vbd-modal h4 { margin: 22px 0 10px; }
.vbd-badge { font-size: 12px; color: var(--text-secondary,#9ba9c1); }
.vbd-badge.enabled { color: #64d9a2; }
.vbd-connection { padding: 8px 22px; font-size: 12px; color: var(--text-secondary,#9ba9c1); }
.vbd-modal nav { overflow-x: auto; flex-shrink: 0; display: flex; gap: 5px; padding: 0 22px 12px; border-bottom: 1px solid #8899bb22; }
.vbd-modal button { cursor: pointer; background: transparent; color: inherit; border: 1px solid #8899bb38; border-radius: 8px; padding: 9px 12px; font: inherit; line-height: 1.3; }
.vbd-modal button:hover { background: #809cff16; border-color: #7d9aff88; }
.vbd-modal button:focus-visible, .vbd-modal input:focus-visible, .vbd-modal textarea:focus-visible, .vbd-modal select:focus-visible { outline: 2px solid #739aff; outline-offset: 2px; }
.vbd-modal button.active, .vbd-modal button.primary { background: #3768d8; border-color: #487bea; color: white; }
.vbd-modal button:disabled { opacity: .45; cursor: default; }
.vbd-modal .danger { color: #ff9b9b; }
.vbd-body { display: grid; grid-template-columns: minmax(0,1fr) 330px; flex: 1; min-height: 0; }
#vbdPane { overflow: auto; min-width: 0; padding: 22px; }
.vbd-dialog-layout { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 22px; }
.vbd-steps { display: flex; flex-direction: column; gap: 8px; align-self: start; }
.vbd-step { text-align: left; overflow-wrap: anywhere; }
.vbd-step small { display: block; margin-top: 5px; font-size: 11px; opacity: .65; }
.vbd-step.selected { background: #739aff18; border-color: #739aff77; }
.vbd-muted-button { font-size: 12px !important; opacity: .75; }
.vbd-fields { min-width: 0; }
.vbd-modal label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.vbd-modal label>span { color: var(--text-secondary,#aab5c9); font-size: 12px; }
.vbd-modal input:not([type=checkbox]), .vbd-modal textarea, .vbd-modal select { width: 100%; box-sizing: border-box; background: var(--bg-input,#0d1320); color: inherit; border: 1px solid #8899bb38; border-radius: 8px; padding: 10px 11px; font: inherit; min-width: 0; }
.vbd-modal textarea { resize: vertical; line-height: 1.6; }
.vbd-modal input[type=checkbox] { width: 17px; height: 17px; accent-color: #5d87ed; }
.vbd-modal .vbd-check { flex-direction: row; align-items: center; gap: 10px; margin: 18px 0; }
.vbd-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vbd-row>label { flex: 1; min-width: 130px; }
.vbd-row>input { flex: 1; }
.vbd-divider { height: 1px; background: #8899bb22; margin: 20px 0; }
.vbd-section-title { font-size: 12px; font-weight: 600; margin: 12px 0; color: var(--text-secondary,#aab5c9); }
.vbd-hint { color: var(--text-secondary,#9ba9c1); font-size: 12px; line-height: 1.6; margin: 10px 0 16px; }
.vbd-button-editor { padding: 13px; border: 1px solid #8899bb30; border-radius: 10px; margin: 10px 0; background: #8899bb06; }
.vbd-inline-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.vbd-inline-actions button { padding: 6px 8px; font-size: 12px; }
.vbd-step-tools { margin-top: 20px; }
.vbd-preview { border-left: 1px solid #8899bb22; background: #07102030; padding: 18px; min-width: 0; display: flex; flex-direction: column; }
.vbd-preview h3 { margin: 0; font-size: 15px; }
.vbd-preview>.vbd-row button { padding: 7px; font-size: 12px; }
.vbd-chat { flex: 1; min-height: 180px; overflow: auto; }
.vbd-chat-message, .vbd-chat-user { white-space: pre-wrap; overflow-wrap: anywhere; background: #7d99cc19; border-radius: 12px 12px 12px 3px; padding: 12px; line-height: 1.55; font-size: 13px; margin-top: 12px; }
.vbd-chat-user { background: #3f6dd035; margin-left: 25px; border-radius: 12px 12px 3px 12px; }
.vbd-chat-buttons { display: flex; gap: 5px; margin-top: 5px; }
.vbd-chat-buttons button { flex: 1; font-size: 12px; padding: 9px 5px; overflow-wrap: anywhere; }
.vbd-chat-buttons .positive { color: #75dfa2; }
.vbd-chat-buttons .negative { color: #ff9b9b; }
.vbd-chat-url { overflow-wrap: anywhere; font-size: 12px; color: #9cbbff; padding: 10px 0; }
.vbd-chat-input { display: flex; gap: 6px; margin-top: 14px; }
.vbd-notice { padding: 10px 22px; font-size: 12px; line-height: 1.5; color: #a7bfef; background: #3869c010; border-top: 1px solid #8899bb22; overflow-wrap: anywhere; max-height: 80px; overflow-y: auto; }
.vbd-notice.error { color: #ffaaaa; background: #9c37371a; }
.vbd-modal footer { border-top: 1px solid #8899bb22; }
#vbdSaveState { display: block; color: var(--text-secondary,#aab5c9); font-size: 12px; margin-bottom: 8px; }
.vbd-footer-save { display: flex; gap: 8px; flex-wrap: wrap; }
.vbd-sequence-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; border: 1px solid #8899bb30; padding: 16px; border-radius: 12px; margin: 14px 0; }
.vbd-number { border-radius: 50%; background: #739aff22; width: 28px; height: 28px; display: grid; place-items: center; }
.vbd-callout { padding: 14px; border: 1px solid #739aff40; border-radius: 10px; font-size: 12px; line-height: 1.7; margin: 20px 0; }
.vbd-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 10px; margin: 16px 0; }
.vbd-kpis>div { border: 1px solid #8899bb22; padding: 12px; border-radius: 10px; }
.vbd-kpis strong { display: block; font-size: 24px; margin-bottom: 4px; }
.vbd-kpis span { font-size: 11px; color: var(--text-secondary,#aab5c9); }
.vbd-table-wrap { overflow-x: auto; width: 100%; }
.vbd-modal table { width: 100%; border-collapse: collapse; font-size: 12px; }
.vbd-modal th,.vbd-modal td { text-align: left; padding: 10px 9px; border-bottom: 1px solid #8899bb22; white-space: nowrap; }
.vbd-modal th { color: var(--text-secondary,#aab5c9); }
.vbd-link-result { margin: 12px 0; }
.vbd-link-result textarea { margin-bottom: 6px; min-height: 70px; }
.vbd-modal.busy { cursor: progress; }
@media(max-width:1100px) { .vbd-body { grid-template-columns: minmax(0,1fr) 290px; } .vbd-dialog-layout { grid-template-columns: 1fr; } .vbd-steps { flex-direction: row; flex-wrap: wrap; } .vbd-steps .vbd-section-title { width: 100%; margin: 0; } .vbd-steps button { max-width: 180px; } }
@media(max-width:760px) { .vbd-overlay { padding: 0; } .vbd-modal { height: 100dvh; border-radius: 0; } .vbd-modal header,.vbd-modal footer { padding: 12px; } .vbd-modal h2 { font-size: 17px; } .vbd-body { display: block; overflow-y: auto; } #vbdPane { overflow: visible; padding: 14px; } .vbd-preview { border-left: none; border-top: 1px solid #8899bb22; min-height: 280px; padding: 14px; } .vbd-chat { max-height: 350px; } .vbd-modal nav { overflow-x: auto; padding: 0 12px 10px; flex-shrink: 0; } .vbd-modal footer { flex-direction: column; align-items: stretch; gap: 10px; } .vbd-footer-save>button { flex: 1; font-size: 12px; } .vbd-notice { padding: 8px 12px; } .vbd-connection { padding: 6px 12px; } .vbd-modal footer .vbd-inline-actions { gap: 4px; } }

.vbd-fields>button { margin-right: 6px; margin-bottom: 6px; }

.vbd-photos {display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:8px 0;}
.vbd-photo {border:1px solid var(--line,#ddd);border-radius:12px;padding:8px;min-width:0;}
.vbd-photo img {width:100%;height:160px;object-fit:contain;background:var(--bg,#f6f6f6);border-radius:8px;}
.vbd-photo .vbd-inline-actions {display:flex;gap:4px;flex-wrap:wrap;margin-top:8px;}
.vbd-preview-photos {display:grid;gap:8px;margin:8px 0;}
.vbd-preview-photos img {width:100%;max-height:420px;object-fit:contain;border-radius:10px;}
