.vsw-page .vsw-flex { flex: 1 1 auto; }
.vsw-page .vsw-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }

.vsw-page .vsw-side { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--dm-border, #e3e6f0); border-radius: 16px; background: var(--dm-surface, #fff); }
.vsw-page .vsw-side-title { padding: 4px 10px 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #00a3d3; }
.vsw-page .vsw-side-search { margin: 0 0 8px; }
.vsw-page .vsw-side-empty { margin: 4px 10px; }
.vsw-page .vsw-side-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: none; border-radius: 10px; background: none; color: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.vsw-page .vsw-side-item:hover { background: var(--dm-surface-2, #eef6fa); }
.vsw-page .vsw-side-item:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 163, 211, .35); }
.vsw-page .vsw-side-item.is-on { background: #00a3d3; color: #fff; font-weight: 700; }
.vsw-page .vsw-side-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 163, 211, .12); color: #00a3d3; }
.vsw-page .vsw-side-item.is-on .vsw-side-icon { background: rgba(255, 255, 255, .22); color: #fff; }
.vsw-page .vsw-side-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsw-page .vsw-side-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #f6c23e; }

.vsw-page .vsw-main { min-width: 0; padding: 24px 28px 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(0, 163, 211, .07) 0, rgba(0, 163, 211, 0) 260px), var(--dm-paper2, #f6f8fb); }
.vsw-page .vsw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.vsw-page .vsw-head-title { margin: 0 0 2px; font-size: 1.75rem; font-weight: 800; }
.vsw-page .vsw-head .btn { border-radius: 10px; padding: 8px 18px; font-weight: 700; }
.vsw-page .vsw-head .btn i { margin-right: 6px; }
.vsw-page .vsw-dirty { font-weight: 700; color: #e0a800; }
.vsw-page .vsw-setup-settings { margin: -4px 0 20px; padding: 16px 20px; border: 1px solid var(--dm-border, #e3e6f0); border-radius: 16px; background: var(--dm-surface, #fff); }
.vsw-page .vsw-setup-settings .form-control { max-width: 480px; }
.vsw-page .vsw-switch { margin: 0.75rem 0; }
.vsw-page .vsw-source { margin: 0; }
.vsw-page .vsw-reset { padding-left: 0; }

.vsw-page .vsw-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.vsw-page .vsw-step-card { display: flex; flex-direction: column; border: 1px solid var(--dm-border, #e3e6f0); border-radius: 18px; background: var(--dm-surface, #fff); box-shadow: 0 8px 24px rgba(16, 42, 67, .05); transition: box-shadow .15s ease, transform .15s ease; }
.vsw-page .vsw-step-card:hover { box-shadow: 0 12px 30px rgba(16, 42, 67, .1); transform: translateY(-2px); }
.vsw-page .vsw-card-top { display: flex; align-items: center; gap: 6px; padding: 12px 12px 0 14px; }
.vsw-page .vsw-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; background: #00a3d3; color: #fff; }
.vsw-page .vsw-iconbtn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dm-border, #e3e6f0); border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.vsw-page .vsw-iconbtn:hover:not(:disabled) { border-color: #00a3d3; color: #00a3d3; }
.vsw-page .vsw-iconbtn:disabled { opacity: .35; cursor: default; }
.vsw-page .vsw-card-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 18px 16px; border: none; background: none; color: inherit; text-align: center; cursor: pointer; }
.vsw-page .vsw-card-body:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(0, 163, 211, .35); border-radius: 12px; }
.vsw-page .vsw-card-icon { width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.75rem; background: rgba(0, 163, 211, .12); color: #00a3d3; }
.vsw-page .vsw-card-name { font-size: 1.15rem; font-weight: 800; }
.vsw-page .vsw-card-heading { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .8; }
.vsw-page .vsw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--dm-border, #e3e6f0); }
.vsw-page .vsw-card-foot .btn { border-radius: 8px; }
.vsw-page .vsw-card-foot .btn i { margin-right: 6px; }
.vsw-page .vsw-step-card.is-off { background: transparent; box-shadow: none; border-style: dashed; }
.vsw-page .vsw-step-card.is-off .vsw-card-body, .vsw-page .vsw-step-card.is-off .vsw-num { opacity: .45; }
.vsw-page .vsw-step-card.is-off .vsw-num { background: var(--dm-text, #858796); }
.vsw-page .vsw-add-card { border: 2px dashed rgba(0, 163, 211, .45); background: transparent; box-shadow: none; min-height: 240px; }
.vsw-page .vsw-add { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: none; background: none; color: #00a3d3; font-size: 1.1rem; font-weight: 800; cursor: pointer; border-radius: 16px; }
.vsw-page .vsw-add i { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(0, 163, 211, .12); }
.vsw-page .vsw-add:hover { background: rgba(0, 163, 211, .05); }
.vsw-modal .vsw-row-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 163, 211, .12); color: #00a3d3; font-size: 1.1rem; }

.vsw-modal .vsw-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.vsw-modal .bil-field-label { display: block; margin-top: 0.75rem; }
.vsw-modal .vsw-form > .bil-field-label:first-child { margin-top: 0; }
.vsw-modal .vsw-pic { display: flex; align-items: center; gap: 8px; }
.vsw-modal .vsw-icons { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.vsw-modal .vsw-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dm-border-2, #d1d3e2); border-radius: 0.35rem; background: none; color: inherit; font-size: 1.05rem; cursor: pointer; }
.vsw-modal .vsw-icon:hover { background: var(--dm-surface-2, #e8f1f7); }
.vsw-modal .vsw-icon.is-on { border-color: #00a3d3; background: #00a3d3; color: #fff; }
.vsw-modal .vsw-icon:focus-visible { outline: none; box-shadow: 0 0 0 0.15rem rgba(0, 163, 211, .35); }
.vsw-modal .vsw-more { margin-top: 1rem; }
.vsw-modal .vsw-more summary { cursor: pointer; font-weight: 700; }
.vsw-modal .vsw-remove { padding-left: 0; margin-top: 0.75rem; }
.vsw-modal .vsw-remove i { margin-right: 6px; }
.vsw-modal .vsw-pv-wrap { position: sticky; top: 0; }
.vsw-modal .vsw-pv-label { font-weight: 700; margin-bottom: 0.5rem; }
.vsw-modal .vsw-pv-frame { zoom: .5; pointer-events: none; display: flex; flex-direction: column; gap: 20px; padding: 24px 40px 20px; border-radius: 24px; background: linear-gradient(180deg, rgba(0, 163, 211, .07) 0, rgba(0, 163, 211, 0) 360px), var(--dm-paper2, #f6f8fb); color: var(--dm-text, #5a5c69); }
.vsw-modal .vsw-pv-frame .psw-panel { min-height: 520px; }

@media (max-width: 1199px) {
  .vsw-page .vsw-layout { grid-template-columns: 1fr; }
  .vsw-page .vsw-side { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
  .vsw-page .vsw-side-title { width: 100%; }
  .vsw-page .vsw-side-item { width: auto; }
}
@media (max-width: 991px) {
  .vsw-modal .vsw-edit-grid { grid-template-columns: 1fr; }
  .vsw-page .vsw-main { padding: 16px; }
}
.vsw-modal .modal-body { max-height: calc(100vh - 190px); overflow-y: auto; }
.vsw-page .vsw-step-card:not(.vsw-add-card) { cursor: grab; }
.vsw-page .vsw-step-card.ui-sortable-helper { cursor: grabbing; transform: rotate(1.5deg); box-shadow: 0 18px 40px rgba(16, 42, 67, .18); }
.vsw-page .vsw-drop { border: 2px dashed #00a3d3; background: rgba(0, 163, 211, .06); box-shadow: none; visibility: visible !important; }
