
#vidu-project-builder,
#vidu-project-builder * {
  box-sizing: border-box;
}

#vidu-project-builder {
  --vidu-bg: var(--vidu-bg-page, #121212);
  --vidu-builder-shell-bg: var(--vidu-modal-bg, var(--vidu-bg-page, #121212));
  --vidu-builder-card-bg: var(--vidu-modal-surface, var(--vidu-card-bg, var(--vidu-surface, #1b1b1d)));
  --vidu-builder-card-bg-hover: var(--vidu-card-bg-hover, var(--vidu-surface-4, var(--vidu-surface-elevated, #222226)));
  --vidu-builder-elevated-bg: var(--vidu-modal-surface-elevated, var(--vidu-surface-elevated, #202024));
  --vidu-builder-muted-bg: var(--vidu-surface-muted, rgba(255,255,255,.035));
  --vidu-builder-field-bg: var(--vidu-input-bg, #101011);
  --vidu-builder-cell-bg: color-mix(in srgb, var(--vidu-builder-card-bg) 74%, var(--vidu-builder-field-bg));
  --vidu-builder-cell-hover-bg: color-mix(in srgb, var(--vidu-builder-card-bg-hover) 86%, var(--vidu-builder-field-bg));
  --vidu-panel: var(--vidu-builder-card-bg);
  --vidu-panel-2: var(--vidu-builder-elevated-bg);
  --vidu-input: var(--vidu-builder-field-bg);
  --vidu-border: var(--vidu-border-soft, rgba(255, 255, 255, 0.06));
  --vidu-border-strong: var(--vidu-border-medium, rgba(255, 255, 255, 0.1));
  --vidu-text: var(--vidu-text-primary, #f2f2f2);
  --vidu-muted: var(--vidu-text-secondary, #a0a0a5);
  --vidu-meta: var(--vidu-text-muted, #7c7c80);
  --vidu-red: #ff3b30;
  --vidu-red-hover: #ff4c42;
  --vidu-green: #2ecc71;
  --vidu-yellow: #f39c12;
  --vidu-danger: #e74c3c;

  color: var(--vidu-text);
  font-family: var(--vidu-font-sans, "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  width: 100%;
}

[data-vidu-theme="dark"] #vidu-project-builder {
  --vidu-builder-card-bg: var(--vidu-modal-surface);
  --vidu-builder-card-bg-hover: var(--vidu-card-bg-hover);
  --vidu-builder-elevated-bg: var(--vidu-modal-surface-elevated);
  --vidu-builder-muted-bg: color-mix(in srgb, var(--vidu-surface-muted) 82%, var(--vidu-surface-1));
  --vidu-builder-field-bg: var(--vidu-input-bg);
  --vidu-builder-cell-bg: color-mix(in srgb, var(--vidu-builder-card-bg) 78%, var(--vidu-builder-field-bg));
  --vidu-builder-cell-hover-bg: color-mix(in srgb, var(--vidu-builder-card-bg-hover) 76%, var(--vidu-builder-field-bg));
}

[data-vidu-theme="light"] #vidu-project-builder {
  --vidu-builder-card-bg: var(--vidu-modal-surface);
  --vidu-builder-card-bg-hover: var(--vidu-card-bg-hover);
  --vidu-builder-elevated-bg: var(--vidu-modal-surface-elevated);
  --vidu-builder-muted-bg: rgba(248,250,252,.78);
  --vidu-builder-field-bg: rgba(255,255,255,.86);
  --vidu-builder-cell-bg: rgba(248,250,252,.72);
  --vidu-builder-cell-hover-bg: rgba(255,255,255,.94);
}

.vidu-offer-modal-shell {
  --vidu-modal-bg: linear-gradient(180deg, rgba(21, 21, 23, .985), rgba(11, 11, 13, .992));
  --vidu-modal-surface: rgba(27, 27, 30, 0.92);
  --vidu-modal-surface-elevated: rgba(34, 34, 38, 0.96);
  --vidu-card-bg-hover: rgba(38, 38, 42, 0.96);
  --vidu-input-bg: rgba(255,255,255,0.046);
  --vidu-border-soft: rgba(255,255,255,0.082);
  --vidu-border-medium: rgba(255,255,255,0.14);
  --vidu-text-primary: #f8fafc;
  --vidu-text-secondary: rgba(235, 235, 238, 0.74);
  --vidu-text-muted: rgba(180, 180, 187, 0.70);
  --vidu-shadow-card: 0 18px 48px rgba(0, 0, 0, 0.30);
}

.vidu-offer-modal-shell .vidu-app-modal-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.045), transparent 34%),
    var(--vidu-modal-bg) !important;
  border: 1px solid rgba(255,255,255,0.082) !important;
  box-shadow:
    0 34px 112px rgba(0, 0, 0, 0.56),
    0 16px 58px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255,255,255,0.03) !important;
}

.vidu-offer-modal-shell .vidu-app-modal-body,
.vidu-offer-modal-shell .vidu-app-modal-content,
.vidu-offer-modal-shell .vidu-modal-content {
  background: transparent !important;
  color: #f8fafc !important;
}

.vidu-offer-modal-shell .vidu-modal-inner-frame,
.vidu-offer-modal-shell .vidu-modal-inner-content,
.vidu-offer-modal-shell #vidu-project-builder,
.vidu-offer-modal-shell #vidu-project-builder .vidu-grid,
.vidu-offer-modal-shell #vidu-project-builder .vidu-main,
.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.vidu-offer-modal-shell #vidu-project-builder {
  --vidu-bg: #151517;
  --vidu-builder-shell-bg: #151517;
  --vidu-builder-card-bg: rgba(27, 27, 30, 0.92);
  --vidu-builder-card-bg-hover: rgba(38, 38, 42, 0.96);
  --vidu-builder-elevated-bg: rgba(34, 34, 38, 0.96);
  --vidu-builder-muted-bg: rgba(255,255,255,0.036);
  --vidu-builder-field-bg: rgba(255,255,255,0.046);
  --vidu-builder-cell-bg: color-mix(in srgb, rgba(29, 29, 32, 0.95) 78%, rgba(15, 15, 17, 0.90));
  --vidu-builder-cell-hover-bg: rgba(39, 39, 43, 0.96);
  --vidu-panel: var(--vidu-builder-card-bg);
  --vidu-panel-2: var(--vidu-builder-elevated-bg);
  --vidu-input: var(--vidu-builder-field-bg);
  --vidu-border: rgba(255,255,255,0.082);
  --vidu-border-strong: rgba(255,255,255,0.14);
  --vidu-text: #f8fafc;
  --vidu-muted: rgba(235, 235, 238, 0.74);
  --vidu-meta: rgba(180, 180, 187, 0.70);
  color: var(--vidu-text) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell {
  --vidu-modal-bg: linear-gradient(180deg, rgba(249, 250, 252, 0.98), rgba(238, 242, 247, 0.96));
  --vidu-modal-surface: rgba(255, 255, 255, 0.90);
  --vidu-modal-surface-elevated: rgba(255, 255, 255, 0.96);
  --vidu-card-bg-hover: rgba(255, 255, 255, 0.98);
  --vidu-input-bg: rgba(241, 245, 249, 0.78);
  --vidu-border-soft: rgba(15, 23, 42, 0.10);
  --vidu-border-medium: rgba(15, 23, 42, 0.16);
  --vidu-control-bg: rgba(248, 250, 252, 0.84);
  --vidu-control-bg-hover: rgba(255, 255, 255, 0.98);
  --vidu-control-border: rgba(15, 23, 42, 0.12);
  --vidu-control-border-active: rgba(15, 23, 42, 0.20);
  --vidu-control-text: rgba(15, 23, 42, 0.72);
  --vidu-text-primary: rgba(15, 23, 42, 0.94);
  --vidu-text-secondary: rgba(15, 23, 42, 0.66);
  --vidu-text-muted: rgba(15, 23, 42, 0.46);
  --vidu-shadow-card: 0 12px 34px rgba(15, 23, 42, 0.08);
}

[data-vidu-theme="light"] .vidu-offer-modal-shell .vidu-app-modal-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.86), transparent 34%),
    var(--vidu-modal-bg) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow:
    0 32px 96px rgba(15, 23, 42, 0.16),
    0 12px 34px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.76) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell .vidu-app-modal-body,
[data-vidu-theme="light"] .vidu-offer-modal-shell .vidu-app-modal-content,
[data-vidu-theme="light"] .vidu-offer-modal-shell .vidu-modal-content {
  background: transparent !important;
  color: rgba(15, 23, 42, 0.94) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder {
  --vidu-bg: #f3f6fa;
  --vidu-builder-shell-bg: transparent;
  --vidu-builder-card-bg: rgba(255, 255, 255, 0.88);
  --vidu-builder-card-bg-hover: rgba(255, 255, 255, 0.98);
  --vidu-builder-elevated-bg: rgba(248, 250, 252, 0.94);
  --vidu-builder-muted-bg: rgba(241, 245, 249, 0.72);
  --vidu-builder-field-bg: rgba(241, 245, 249, 0.86);
  --vidu-builder-cell-bg: rgba(248, 250, 252, 0.84);
  --vidu-builder-cell-hover-bg: rgba(255, 255, 255, 0.96);
  --vidu-panel: var(--vidu-builder-card-bg);
  --vidu-panel-2: var(--vidu-builder-elevated-bg);
  --vidu-input: var(--vidu-builder-field-bg);
  --vidu-border: rgba(15, 23, 42, 0.10);
  --vidu-border-strong: rgba(15, 23, 42, 0.16);
  --vidu-text: rgba(15, 23, 42, 0.94);
  --vidu-muted: rgba(15, 23, 42, 0.64);
  --vidu-meta: rgba(15, 23, 42, 0.44);
  color: var(--vidu-text) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-card,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-stat,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-profit-list,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-table-wrap,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder details,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder summary {
  background: var(--vidu-builder-card-bg) !important;
  border-color: var(--vidu-border) !important;
  color: var(--vidu-text) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder input,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder textarea,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder select {
  background: var(--vidu-input) !important;
  border-color: var(--vidu-border) !important;
  color: var(--vidu-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder input:focus,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder textarea:focus,
[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder select:focus {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(220, 38, 38, 0.34) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-table td {
  background: var(--vidu-builder-cell-bg) !important;
  color: var(--vidu-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-table tbody tr:hover td {
  background: var(--vidu-builder-cell-hover-bg) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-btn-primary-soft {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
  color: rgba(153, 27, 27, 0.92) !important;
}

[data-vidu-theme="light"] .vidu-offer-modal-shell #vidu-project-builder .vidu-btn-primary-soft:hover {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
}

#vidu-project-builder .vidu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}
		   
/* =========================
   BUILDER INSIDE MODAL
   ========================= */

#vidu-app-modal #vidu-project-builder .vidu-grid {
  grid-template-columns: minmax(0, 2.25fr) minmax(320px, 0.75fr) !important;
  gap: 16px !important;
}

#vidu-app-modal #vidu-project-builder .vidu-card {
  margin-bottom: 16px !important;
}

#vidu-app-modal #vidu-project-builder .vidu-main,
#vidu-app-modal #vidu-project-builder .vidu-sidebar {
  min-width: 0;
}		   

#vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-dialog {
  max-height: calc(100svh - 32px) !important;
  overflow: hidden !important;
}

#vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-body,
#vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-content,
#vidu-app-modal.vidu-offer-modal-shell .vidu-modal-content,
#vidu-app-modal.vidu-offer-modal-shell .vidu-modal-inner-frame,
#vidu-app-modal.vidu-offer-modal-shell .vidu-modal-inner-content {
  min-height: 0 !important;
  max-height: calc(100svh - 32px) !important;
  overflow: hidden !important;
  background: transparent !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder {
  min-height: 0 !important;
  max-height: calc(100svh - 32px) !important;
  overflow: hidden !important;
  background: transparent !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-grid {
  min-height: 0 !important;
  height: calc(100svh - 72px) !important;
  max-height: calc(100svh - 72px) !important;
  align-items: stretch !important;
  background: transparent !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-main,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-main::-webkit-scrollbar,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar::-webkit-scrollbar {
  display: none;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar-sticky-group {
  position: static !important;
}

#vidu-project-builder .vidu-main,
#vidu-project-builder .vidu-sidebar {
  min-width: 0;
}
		   
/* =========================
   MODAL TABLE TUNING
   ========================= */

#vidu-app-modal #vidu-project-builder .vidu-table-wrap {
  overflow-x: auto;
}

#vidu-app-modal #vidu-project-builder .vidu-table {
  min-width: 980px !important;
  table-layout: fixed !important;
  border-spacing: 0 4px !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table th {
  font-size: 10px !important;
  padding: 0 4px 4px !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table td {
  padding: 4px !important;
  vertical-align: top !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table input,
#vidu-app-modal #vidu-project-builder .vidu-table select {
  min-width: 0 !important;
  width: 100% !important;
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

#vidu-app-modal #vidu-project-builder .vidu-readonly {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  white-space: normal !important;
  word-break: break-word !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  padding: 0 10px 0 8px !important;
}

#vidu-app-modal #vidu-project-builder .vidu-block-topline {
  font-size: 11px !important;
  gap: 8px !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table th:nth-child(1),
#vidu-app-modal #vidu-project-builder .vidu-table td:nth-child(1) {
  width: 22% !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table th:nth-child(2),
#vidu-app-modal #vidu-project-builder .vidu-table td:nth-child(2) {
  width: 6% !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table th:nth-child(3),
#vidu-app-modal #vidu-project-builder .vidu-table td:nth-child(3) {
  width: 7% !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table th:nth-child(10),
#vidu-app-modal #vidu-project-builder .vidu-table td:nth-child(10) {
  width: 12% !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table th:last-child,
#vidu-app-modal #vidu-project-builder .vidu-table td:last-child {
  width: 120px !important;
  min-width: 120px !important;
}

#vidu-project-builder .vidu-card {
  background: var(--vidu-builder-card-bg);
  border: 1px solid var(--vidu-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--vidu-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.35)), var(--vidu-glow-soft, 0 0 0 rgba(0,0,0,0));
  margin-bottom: 24px;
}

#vidu-project-builder .vidu-meta-card,
#vidu-project-builder .vidu-discount-card {
  position: relative;
}

#vidu-project-builder .vidu-discount-card {
  border-color: rgba(255, 59, 48, 0.2);
  box-shadow:
    var(--vidu-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.35)),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 4px 0 0 rgba(255, 59, 48, 0.85);
}

#vidu-project-builder .vidu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

#vidu-project-builder .vidu-card-header h2,
#vidu-project-builder .vidu-card-header h3 {
  margin: 0;
  color: var(--vidu-text);
  line-height: var(--vidu-line-tight, 1.2);
}

#vidu-project-builder .vidu-card-header h2 {
  font-size: var(--vidu-text-xl, 24px);
  font-weight: 700;
}

#vidu-project-builder .vidu-card-header h3 {
  font-size: var(--vidu-text-lg, 20px);
  font-weight: 700;
}

#vidu-project-builder .vidu-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#vidu-project-builder .vidu-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

#vidu-project-builder .vidu-field label,
#vidu-project-builder .vidu-field > span {
  font-size: var(--vidu-text-sm, 12px);
  letter-spacing: var(--vidu-letter-label, 0.05em);
  text-transform: uppercase;
  color: var(--vidu-meta);
  font-weight: 600;
}

#vidu-project-builder input[type="text"],
#vidu-project-builder input[type="email"],
#vidu-project-builder input[type="number"],
#vidu-project-builder input[type="date"],
#vidu-project-builder textarea,
#vidu-project-builder select {
  width: 100%;
  background: var(--vidu-input);
  border: 1px solid var(--vidu-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--vidu-text);
  outline: none;
  transition:
    border-color var(--vidu-duration-fast, 150ms) var(--vidu-ease-standard, ease),
    box-shadow var(--vidu-duration-fast, 150ms) var(--vidu-ease-standard, ease),
    color var(--vidu-duration-fast, 150ms) var(--vidu-ease-standard, ease);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#vidu-project-builder textarea {
  resize: vertical;
  min-height: 90px;
}

#vidu-project-builder input:focus,
#vidu-project-builder textarea:focus,
#vidu-project-builder select:focus {
  border-color: rgba(255, 59, 48, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

#vidu-project-builder .vidu-inline-actions,
#vidu-project-builder .vidu-actions,
#vidu-project-builder .vidu-block-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#vidu-project-builder .vidu-btn,
#vidu-project-builder .vidu-mini-btn {
  background: var(--vidu-control-bg, var(--vidu-surface-muted, #2a2a2c));
  color: var(--vidu-control-text, var(--vidu-text));
  border: 1px solid var(--vidu-control-border, var(--vidu-border));
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    background-color var(--vidu-duration-fast, 150ms) var(--vidu-ease-standard, ease),
    border-color var(--vidu-duration-fast, 150ms) var(--vidu-ease-standard, ease),
    color var(--vidu-duration-fast, 150ms) var(--vidu-ease-standard, ease),
    transform var(--vidu-duration-fast, 150ms) var(--vidu-ease-out, ease);
  font-weight: 500;
}
		   
#vidu-project-builder .vidu-btn-primary-soft {
  background: rgba(255, 59, 48, 0.1);
  color: #ffb1ab;
  border: 1px solid rgba(255, 59, 48, 0.22);
}

#vidu-project-builder .vidu-btn-primary-soft:hover {
  background: rgba(255, 59, 48, 0.16);
  border-color: rgba(255, 59, 48, 0.34);
}

#vidu-project-builder .vidu-mini-btn {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: var(--vidu-text-sm, 13px);
}

#vidu-project-builder .vidu-btn:hover,
#vidu-project-builder .vidu-mini-btn:hover {
  transform: translateY(-1px);
  background: var(--vidu-control-bg-hover, var(--vidu-card-bg-hover, #303033));
  border-color: var(--vidu-control-border-active, var(--vidu-border));
  color: var(--vidu-text-primary, var(--vidu-text));
}

#vidu-project-builder .vidu-btn-primary {
  background: var(--vidu-red);
  border-color: transparent;
  color: #fff;
}

#vidu-project-builder .vidu-btn-primary:hover {
  background: var(--vidu-red-hover);
}

#vidu-project-builder .vidu-stats,
#vidu-project-builder .vidu-substats {
  display: grid;
  gap: 12px;
}

#vidu-project-builder .vidu-stat {
  background: var(--vidu-panel-2);
  border: 1px solid var(--vidu-border);
  border-radius: 16px;
  padding: 14px;
}

#vidu-project-builder .vidu-stat-label {
  font-size: var(--vidu-text-sm, 12px);
  color: var(--vidu-meta);
  text-transform: uppercase;
  letter-spacing: var(--vidu-letter-label, 0.05em);
  font-weight: 600;
}

#vidu-project-builder .vidu-stat-value {
  font-size: var(--vidu-text-xl, 24px);
  font-weight: 700;
  margin-top: 6px;
  line-height: var(--vidu-line-tight, 1.2);
}

#vidu-project-builder .vidu-stat-small {
  font-size: var(--vidu-text-sm, 13px);
  color: var(--vidu-muted);
  margin-top: 4px;
}

#vidu-project-builder .vidu-success {
  color: var(--vidu-green);
}

#vidu-project-builder .vidu-warning {
  color: var(--vidu-yellow);
}

#vidu-project-builder .vidu-danger {
  color: var(--vidu-danger);
}

#vidu-project-builder .vidu-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

#vidu-project-builder .vidu-block-header > div:first-child {
  flex: 1 1 560px;
  min-width: 260px;
}

#vidu-project-builder .vidu-block-topline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: var(--vidu-text-sm, 13px);
  color: var(--vidu-muted);
}

#vidu-project-builder .vidu-section-title-input {
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--vidu-text);
  font-size: clamp(var(--vidu-text-xl, 22px), 1.8vw, 28px);
  line-height: var(--vidu-line-tight, 1.18);
  font-weight: 600;
  letter-spacing: 0;
  outline: none;
  transition:
    border-color var(--vidu-duration-fast, 160ms) var(--vidu-ease-standard, ease),
    color var(--vidu-duration-fast, 160ms) var(--vidu-ease-standard, ease);
}

#vidu-project-builder .vidu-section-description-input {
  width: 100%;
  max-width: 760px;
  margin: 0 0 12px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--vidu-border);
  border-radius: 0;
  background: transparent;
  color: var(--vidu-muted);
  font-size: var(--vidu-text-sm, 13px);
  line-height: var(--vidu-line-relaxed, 1.55);
  resize: vertical;
  outline: none;
}

#vidu-project-builder .vidu-section-description-input:focus {
  border-bottom-color: rgba(96,165,250,.42);
  color: var(--vidu-text);
}

#vidu-project-builder .vidu-section-description-add {
  margin: -2px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vidu-meta);
  font-size: var(--vidu-text-sm, 12px);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--vidu-duration-fast, 160ms) var(--vidu-ease-standard, ease);
}

#vidu-project-builder .vidu-section-description-add:hover {
  color: var(--vidu-text);
}

#vidu-project-builder .vidu-section-delete-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

#vidu-project-builder .vidu-email-primary-field {
  position: relative;
}

#vidu-project-builder .vidu-email-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

#vidu-project-builder .vidu-email-input-wrap input {
  width: 100%;
}

#vidu-project-builder .vidu-email-add-cc,
#vidu-project-builder .vidu-email-remove-cc {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .16s ease, background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

#vidu-project-builder .vidu-email-add-cc {
  position: absolute;
  right: 8px;
  opacity: 0;
  pointer-events: none;
}

#vidu-project-builder .vidu-email-primary-field:hover .vidu-email-add-cc,
#vidu-project-builder .vidu-email-add-cc:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

#vidu-project-builder .vidu-email-add-cc:hover,
#vidu-project-builder .vidu-email-remove-cc:hover {
  background: rgba(96,165,250,.10);
  border-color: rgba(96,165,250,.25);
  color: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

#vidu-project-builder .vidu-email-cc-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

#vidu-project-builder .vidu-email-cc-row {
  display: grid;
  gap: 5px;
}

#vidu-project-builder .vidu-email-cc-row label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

#vidu-project-builder .vidu-section-title-input:hover {
  border-bottom-color: rgba(255,255,255,.12);
}

#vidu-project-builder .vidu-section-title-input:focus {
  border-bottom-color: rgba(96,165,250,.48);
  color: var(--vidu-text);
}

#vidu-project-builder .vidu-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--vidu-builder-elevated-bg);
  color: var(--vidu-muted);
  border: 1px solid var(--vidu-border);
}

#vidu-project-builder .vidu-block-disabled {
  opacity: 0.55;
}

#vidu-project-builder .vidu-table-wrap {
  overflow-x: auto;
  margin-top: 6px;
}

#vidu-project-builder .vidu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 1100px;
}

#vidu-project-builder .vidu-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vidu-meta);
  font-weight: 600;
  text-align: left;
  padding: 0 10px 8px;
  white-space: normal;
  line-height: 1.15;
}

#vidu-project-builder .vidu-table td {
  background: var(--vidu-builder-cell-bg);
  padding: 8px;
  border-top: none;
  border-bottom: none;
  vertical-align: middle;
}

#vidu-project-builder .vidu-table td:first-child {
  border-left: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

#vidu-project-builder .vidu-table td:last-child {
  border-right: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

#vidu-project-builder .vidu-table input,
#vidu-project-builder .vidu-table select {
  width: 100%;
  min-width: 72px;
  background: var(--vidu-input);
  border: 1px solid var(--vidu-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--vidu-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.015);
}
		   
/* modernebb, puhább táblázat */
#vidu-project-builder .vidu-table td {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

#vidu-project-builder .vidu-table tbody tr:hover td {
  background: var(--vidu-builder-cell-hover-bg);
}

#vidu-project-builder .vidu-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px 0 8px;
  color: var(--vidu-text);
  font-weight: 600;
  white-space: nowrap;
}

#vidu-project-builder .vidu-help {
  font-size: 13px;
  color: var(--vidu-meta);
  padding: 10px 2px;
}

#vidu-project-builder .vidu-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

#vidu-project-builder .vidu-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

#vidu-project-builder .vidu-slider {
  position: absolute;
  inset: 0;
  background: #2f2f33;
  border-radius: 999px;
  transition: 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#vidu-project-builder .vidu-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s ease;
}

#vidu-project-builder .vidu-switch input:checked + .vidu-slider {
  background: var(--vidu-red);
}

#vidu-project-builder .vidu-switch input:checked + .vidu-slider::before {
  transform: translateX(22px);
}

#vidu-project-builder .vidu-discount-card .vidu-meta-grid {
  align-items: end;
}

#vidu-project-builder ::placeholder {
  color: #6f6f75;
}

#vidu-project-builder input[type="number"]::-webkit-outer-spin-button,
#vidu-project-builder input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#vidu-project-builder input[type="number"] {
  -moz-appearance: textfield;
}

#vidu-project-builder select {
  background-image:
    linear-gradient(45deg, transparent 50%, #8c8c92 50%),
    linear-gradient(135deg, #8c8c92 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

#vidu-project-builder .vidu-card,
#vidu-project-builder .vidu-btn,
#vidu-project-builder .vidu-mini-btn,
#vidu-project-builder input,
#vidu-project-builder textarea,
#vidu-project-builder select,
#vidu-project-builder .vidu-stat {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#vidu-project-builder .vidu-card:hover {
  border-color: var(--vidu-border-strong);
}

#vidu-project-builder .vidu-table-wrap::-webkit-scrollbar {
  height: 8px;
}

#vidu-project-builder .vidu-table-wrap::-webkit-scrollbar-track {
  background: var(--vidu-builder-muted-bg);
  border-radius: 10px;
}

#vidu-project-builder .vidu-table-wrap::-webkit-scrollbar-thumb {
  background: var(--vidu-border-strong);
  border-radius: 10px;
}

@media (max-width: 1200px) {
  #vidu-project-builder .vidu-grid {
    grid-template-columns: 1fr;
  }

  #vidu-project-builder .vidu-sticky {
    position: static;
  }
}

/* Theme tokens: offer builder typography. */
#vidu-project-builder .vidu-stat-label,
#vidu-project-builder .vidu-table th,
#vidu-project-builder .vidu-block-topline,
#vidu-project-builder .vidu-field label,
#vidu-project-builder .vidu-field > span {
  font-family: var(--vidu-font-mono, "Geist Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace);
}

@media (max-width: 768px) {
  #vidu-project-builder .vidu-card {
    padding: 18px;
    border-radius: 18px;
  }

  #vidu-project-builder .vidu-meta-grid {
    grid-template-columns: 1fr;
  }

  #vidu-project-builder .vidu-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  #vidu-project-builder .vidu-block-header {
    flex-direction: column;
    align-items: stretch;
  }

  #vidu-project-builder .vidu-inline-actions,
  #vidu-project-builder .vidu-block-actions {
    width: 100%;
  }

  #vidu-project-builder .vidu-btn {
    width: 100%;
    justify-content: center;
  }

  #vidu-project-builder .vidu-stat-value {
  font-size: 20px;
}
}

@media (max-width: 640px) {
  #vidu-project-builder .vidu-sidebar-actions-grid {
    grid-template-columns: 1fr;
  }

}
#vidu-project-builder .vidu-sidebar {
  position: relative;
  align-self: start;
}

#vidu-project-builder {
  overflow: visible !important;
}

#vidu-project-builder .vidu-grid,
#vidu-project-builder .vidu-main,
#vidu-project-builder .vidu-sidebar,
#vidu-project-builder .vidu-card {
  overflow: visible !important;
}
					
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget,
.elementor-widget-wrap,
.elementor-widget-container,
.elementor-shortcode,
.elementor-element {
  overflow: visible !important;
}
					
					#vidu-project-builder .vidu-sidebar {
  position: relative;
}

					
					#vidu-sticky-summary,
#vidu-project-builder .vidu-sidebar .vidu-card {
  padding: 16px !important;
  border-radius: 18px !important;
}

#vidu-project-builder .vidu-sidebar .vidu-card-header {
  margin-bottom: 12px !important;
}

#vidu-project-builder .vidu-sidebar .vidu-card-header h3 {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

#vidu-project-builder .vidu-stat {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  margin-bottom: 8px !important;
}

#vidu-project-builder .vidu-stat-label {
  font-size: 10px !important;
  letter-spacing: 0.06em !important;
}

#vidu-project-builder .vidu-stat-value {
  font-size: 16px !important;
  line-height: 1.15 !important;
  margin-top: 4px !important;
}

#vidu-project-builder .vidu-stat-small {
  font-size: 11px !important;
  margin-top: 2px !important;
}

#vidu-project-builder .vidu-substats .vidu-stat-value {
  font-size: 14px !important;
}

#vidu-project-builder .vidu-substats .vidu-stat {
  padding: 9px 12px !important;
}
					
					#vidu-project-builder .vidu-profit-list {
  background: var(--vidu-builder-elevated-bg);
  border: 1px solid var(--vidu-border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
}

#vidu-project-builder .vidu-profit-list-title {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vidu-meta);
  margin-bottom: 10px;
  font-weight: 600;
}

#vidu-project-builder .vidu-profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#vidu-project-builder .vidu-profit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#vidu-project-builder .vidu-profit-row:first-child {
  padding-top: 0;
}

#vidu-project-builder .vidu-profit-row span {
  font-size: 13px;
  color: #a0a0a5;
}

#vidu-project-builder .vidu-profit-row strong {
  font-size: 14px;
  font-weight: 700;
}
					
#vidu-project-builder .vidu-sidebar-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#vidu-project-builder .vidu-sidebar-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#vidu-project-builder .vidu-sidebar-actions-grid .vidu-btn,
#vidu-project-builder .vidu-sidebar-actions-grid a.vidu-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 10px 12px !important;
  border-radius: 14px;
  font-size: 15px;
}

#vidu-project-builder .vidu-open-offer-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: 14px;
}
					
					/* kompaktabb táblázat */
#vidu-project-builder .vidu-table {
  border-spacing: 0 6px !important;
}

#vidu-project-builder .vidu-table th {
  padding: 0 6px 4px !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
}

#vidu-project-builder .vidu-table td {
  padding: 6px !important;
}

#vidu-project-builder .vidu-table input,
#vidu-project-builder .vidu-table select {
  padding: 8px 10px !important;
  border-radius: 9px !important;
  min-height: 40px;
}

#vidu-project-builder .vidu-readonly {
  padding: 8px 4px !important;
  font-size: 13px !important;
}

#vidu-project-builder .vidu-table td:first-child,
#vidu-project-builder .vidu-table td:last-child {
  border-radius: 10px !important;
}

/* műveleti gombok egymás mellett */
#vidu-project-builder .vidu-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 88px;
}

/* általános ikon gomb */
#vidu-project-builder .vidu-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #d5d5da;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

#vidu-project-builder .vidu-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* duplikálás - visszafogott kék */
#vidu-project-builder .vidu-icon-btn-duplicate {
  color: #7fb2ff;
  background: rgba(70, 120, 255, 0.08);
  border-color: rgba(127, 178, 255, 0.18);
}

#vidu-project-builder .vidu-icon-btn-duplicate:hover {
  background: rgba(70, 120, 255, 0.14);
  border-color: rgba(127, 178, 255, 0.3);
  transform: translateY(-1px);
}
					
/* megjegyzés ikon */
#vidu-project-builder .vidu-icon-btn-note {
  color: #b9a7ff;
  background: rgba(120, 90, 255, 0.08);
  border-color: rgba(185, 167, 255, 0.18);
}

#vidu-project-builder .vidu-icon-btn-note:hover {
  background: rgba(120, 90, 255, 0.14);
  border-color: rgba(185, 167, 255, 0.3);
  transform: translateY(-1px);
}

/* törlés - visszafogott piros */
#vidu-project-builder .vidu-icon-btn-delete {
  color: #ff8f8f;
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 143, 143, 0.18);
}

#vidu-project-builder .vidu-icon-btn-delete:hover {
  background: rgba(255, 80, 80, 0.14);
  border-color: rgba(255, 143, 143, 0.3);
  transform: translateY(-1px);
}

/* kicsit kisebb sor-magasság összhatás */
#vidu-project-builder .vidu-table tbody tr td {
  line-height: 1.2;
}

/* művelet oszlop legyen kompaktabb */
#vidu-project-builder .vidu-table th:last-child,
#vidu-project-builder .vidu-table td:last-child {
  width: 96px;
  min-width: 96px;
}
					
#vidu-project-builder .vidu-table input[type="text"],
#vidu-project-builder .vidu-table input[type="number"] {
  font-size: 13px !important;
}

#vidu-project-builder .vidu-block-topline {
  font-size: 12px !important;
  gap: 10px !important;
}
					
#vidu-project-builder .vidu-table input[type="text"],
#vidu-project-builder .vidu-table input[type="number"] {
  font-size: 13px !important;
}

#vidu-project-builder .vidu-block-topline {
  font-size: 12px !important;
  gap: 10px !important;
}
					
#vidu-project-builder .vidu-table{
  table-layout: fixed;
  width: 100%;
}
					
/* TÉTEL - széles */
#vidu-project-builder .vidu-table th:nth-child(1),
#vidu-project-builder .vidu-table td:nth-child(1){
  width: 28%;
}

/* QTY - nagyon keskeny */
#vidu-project-builder .vidu-table th:nth-child(2),
#vidu-project-builder .vidu-table td:nth-child(2){
  width: 6%;
}

/* EGYSÉG - keskeny */
#vidu-project-builder .vidu-table th:nth-child(3),
#vidu-project-builder .vidu-table td:nth-child(3){
  width: 8%;
}
					
#vidu-project-builder .vidu-table td:nth-child(1) input{
  width:100%;
}
					
#vidu-project-builder .vidu-table td:nth-child(2) input{
  text-align:center;
  padding:6px;
}
					
/* Felső projekt adatok blokk kompaktabb */
#vidu-project-builder .vidu-meta-card {
  padding: 18px 20px !important;
}

#vidu-project-builder .vidu-meta-card .vidu-card-header {
  margin-bottom: 12px !important;
}

#vidu-project-builder .vidu-meta-grid {
  gap: 10px !important;
}

#vidu-project-builder .vidu-field {
  gap: 5px !important;
  margin-bottom: 8px !important;
}

#vidu-project-builder .vidu-field label {
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
}

/* Inputok kompaktabbak */
#vidu-project-builder .vidu-meta-card input[type="text"],
#vidu-project-builder .vidu-meta-card input[type="email"],
#vidu-project-builder .vidu-meta-card input[type="number"],
#vidu-project-builder .vidu-meta-card input[type="date"],
#vidu-project-builder .vidu-meta-card select {
  padding: 9px 12px !important;
  min-height: 42px !important;
  border-radius: 11px !important;
}

/* Textareák kisebbek */
#vidu-project-builder .vidu-meta-card textarea {
  padding: 10px 12px !important;
  border-radius: 11px !important;
  min-height: unset !important;
}

/* Projekt rövid leírás */
#meta-description {
  min-height: 90px !important;
  height: 90px !important;
}

/* Belső megjegyzés */
#meta-internal-notes {
  min-height: 72px !important;
  height: 72px !important;
}

/* Felső jobb oldali template rész is kompaktabb */
#vidu-project-builder .vidu-meta-card .vidu-inline-actions {
  gap: 8px !important;
}

#vidu-project-builder .vidu-meta-card .vidu-btn {
  padding: 8px 12px !important;
  min-height: 40px !important;
  border-radius: 11px !important;
}

#vidu-template-select {
  min-height: 44px !important;
  padding: 10px 14px !important;
}

/* Headline is kicsit feszesebb */
#vidu-project-builder .vidu-meta-card .vidu-card-header h2 {
  font-size: 22px !important;
  line-height: 1.1 !important;
}
					
/* =========================
   PROJECT SUMMARY COMPACT
   ========================= */

#vidu-project-builder .vidu-stats {
  display: grid;
  gap: 12px;
}

#vidu-project-builder .vidu-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#vidu-project-builder .vidu-stat {
  background: var(--vidu-builder-elevated-bg);
  border: 1px solid var(--vidu-border);
  border-radius: 18px;
  padding: 16px 18px;
}

#vidu-project-builder .vidu-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vidu-meta);
  margin-bottom: 8px;
}

#vidu-project-builder .vidu-stat-value {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--vidu-text);
}

#vidu-project-builder .vidu-stat-small {
  margin-top: 6px;
  font-size: 12px;
}

#vidu-project-builder .vidu-stat-profit .vidu-stat-value {
  font-size: 20px;
}

/* költség blokk - citromsárgás hangsúly */
#vidu-project-builder .vidu-stat-cost .vidu-stat-value {
  color: #e7f26a;
}

#vidu-project-builder .vidu-stat-cost {
  border-color: rgba(231, 242, 106, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

/* mobil / keskeny nézet */
@media (max-width: 1200px) {
  #vidu-project-builder .vidu-stat-row {
    grid-template-columns: 1fr;
  }
}
					
					/* =========================
   COMPACT RIGHT META PANEL
   ========================= */

#vidu-project-builder .vidu-grid {
  align-items: start;
}

#vidu-project-builder .vidu-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}

#vidu-project-builder .vidu-sidebar-meta {
  padding: 16px 16px 14px;
}

#vidu-project-builder .vidu-meta-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
}

#vidu-project-builder .vidu-field-full {
  grid-column: 1 / -1;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-field {
  gap: 4px !important;
  margin-bottom: 0 !important;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-field label {
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--vidu-meta);
}

#vidu-project-builder .vidu-sidebar-meta input,
#vidu-project-builder .vidu-sidebar-meta select,
#vidu-project-builder .vidu-sidebar-meta textarea {
  min-height: 40px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

#vidu-project-builder .vidu-sidebar-meta textarea {
  min-height: 78px !important;
  resize: vertical;
}

#vidu-project-builder .vidu-meta-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

#vidu-project-builder .vidu-meta-actions .vidu-btn {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

#vidu-project-builder .vidu-builder-search {
  margin-bottom: 12px !important;
}

#vidu-project-builder .vidu-builder-search input {
  min-height: 40px !important;
}

#vidu-project-builder #vidu-builder-search-results {
  margin-top: 8px;
}

#vidu-project-builder .vidu-meta-advanced {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

#vidu-project-builder .vidu-meta-advanced summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#vidu-project-builder .vidu-meta-advanced summary::-webkit-details-marker {
  display: none;
}

#vidu-project-builder .vidu-meta-advanced summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.55);
}

#vidu-project-builder .vidu-meta-advanced[open] summary::after {
  content: "−";
}
#vidu-project-builder .vidu-sidebar {
  position: sticky !important;
  top: 24px !important;
  align-self: start;
  height: fit-content;
  z-index: 5;
}

#vidu-project-builder .vidu-meta-advanced-inner {
  padding: 0 12px 12px;
  display: grid;
  gap: 10px;
}

@media (max-width: 1200px) {
  #vidu-project-builder .vidu-meta-grid-compact,
  #vidu-project-builder .vidu-meta-actions {
    grid-template-columns: 1fr;
  }
}
					
/* =========================
   STICKY SIDEBAR GROUP
   ========================= */

#vidu-project-builder .vidu-sidebar-sticky-group {
  display: grid;
  gap: 14px;
}
					
#vidu-project-builder .vidu-sidebar {
  position: sticky !important;
  top: 24px !important;
  align-self: start;
  height: fit-content;
  z-index: 5;
}

#vidu-project-builder .vidu-main {
  min-height: 1px;
}

#vidu-project-builder .vidu-sidebar {
  align-self: start;
}
					
/* =========================
   MINI PROFIT BLOCKS
   ========================= */

#vidu-project-builder .vidu-profit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

#vidu-project-builder .vidu-profit-layout .vidu-stat-profit {
  margin-bottom: 0 !important;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 18px 16px !important;
}
					
#vidu-project-builder .vidu-profit-layout .vidu-stat-profit .vidu-stat-label {
  margin-bottom: 10px;
}

#vidu-project-builder .vidu-profit-layout .vidu-stat-profit .vidu-stat-value {
  font-size: 18px !important;
  line-height: 1.08 !important;
  margin-top: 0 !important;
}

#vidu-project-builder .vidu-profit-layout .vidu-stat-profit .vidu-stat-small {
  margin-top: 6px !important;
  font-size: 11px !important;
}

#vidu-project-builder .vidu-profit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  align-content: stretch;
}

#vidu-project-builder .vidu-profit-mini {
  background: var(--vidu-builder-elevated-bg);
  border: 1px solid var(--vidu-border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
}

#vidu-project-builder .vidu-profit-mini-label {
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vidu-meta);
  font-weight: 600;
}

#vidu-project-builder .vidu-profit-mini-value {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
  word-break: break-word;
}

@media (max-width: 1200px) {
  #vidu-project-builder .vidu-profit-layout {
    grid-template-columns: 1fr;
  }

  #vidu-project-builder .vidu-profit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #vidu-project-builder .vidu-profit-layout .vidu-stat-profit {
    min-height: auto;
  }
}
					
					/* =========================
   COMPACT DISCOUNT CARD
   ========================= */

#vidu-project-builder .vidu-discount-card {
  padding: 12px 14px !important;
}

#vidu-project-builder .vidu-discount-header {
  margin-bottom: 0 !important;
  align-items: center !important;
}

#vidu-project-builder .vidu-discount-header h3 {
  margin: 0;
}

#vidu-project-builder .vidu-discount-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

#vidu-project-builder .vidu-discount-inline-value {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  min-width: 68px;
  text-align: center;
}

#vidu-project-builder .vidu-discount-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.16s ease, margin-top 0.16s ease;
  margin-top: 0;
}

#vidu-project-builder .vidu-discount-card.is-open .vidu-discount-expand {
  max-height: 260px;
  opacity: 1;
  margin-top: 12px;
}

#vidu-project-builder .vidu-discount-card .vidu-meta-grid-compact {
  gap: 8px 8px !important;
}

#vidu-project-builder .vidu-discount-card .vidu-field {
  gap: 4px !important;
  margin-bottom: 0 !important;
}

#vidu-project-builder .vidu-discount-card .vidu-field label {
  font-size: 10px !important;
  letter-spacing: 0.07em !important;
}

#vidu-project-builder .vidu-discount-card input,
#vidu-project-builder .vidu-discount-card select {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
					
/* =========================
   CLEAN PROJECT META LAYOUT
   ========================= */

#vidu-project-builder .vidu-meta-layout-clean {
  display: grid;
  gap: 12px;
}

#vidu-project-builder .vidu-meta-row {
  display: grid;
  gap: 12px;
}

#vidu-project-builder .vidu-meta-row-top,
#vidu-project-builder .vidu-meta-row-two,
#vidu-project-builder .vidu-meta-row-template,
#vidu-project-builder .vidu-meta-row-template-save {
  grid-template-columns: 1fr 1fr;
}

#vidu-project-builder .vidu-meta-row-template .vidu-field:first-child,
#vidu-project-builder .vidu-meta-row-template-save .vidu-field:first-child {
  min-width: 0;
}

#vidu-project-builder .vidu-field-button .vidu-btn {
  width: 100%;
  min-height: 42px;
}

#vidu-project-builder .vidu-field-button label {
  opacity: 0;
  pointer-events: none;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-field {
  margin-bottom: 0 !important;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-inline-actions {
  margin-top: 4px;
}

@media (max-width: 900px) {
  #vidu-project-builder .vidu-meta-row-top,
  #vidu-project-builder .vidu-meta-row-two,
  #vidu-project-builder .vidu-meta-row-template,
  #vidu-project-builder .vidu-meta-row-template-save {
    grid-template-columns: 1fr;
  }
}
		
/* =========================
   CÉGADATOK ELVÁLASZTÁS
   ========================= */

#vidu-project-builder .vidu-client-extra {
  margin-top: 10px;
  margin-bottom: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
}

/* =========================
   TEMPLATE GOMB SZÍNEK
   ========================= */

#vidu-load-template-unified,
#vidu-load-template {
  background: #22c55e !important;
  color: #fff !important;
  border-color: transparent !important;
}

#vidu-load-template-unified:hover,
#vidu-load-template:hover {
  background: #16a34a !important;
}

#vidu-save-template {
  background: #facc15 !important;
  color: #111 !important;
  border-color: transparent !important;
}

#vidu-save-template:hover {
  background: #eab308 !important;
}

/* =========================
   ÜRES PROJEKT GOMB
   ========================= */

#vidu-project-builder .vidu-meta-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

#vidu-project-builder .vidu-btn-danger {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: transparent !important;
}

#vidu-project-builder .vidu-btn-danger:hover {
  background: #dc2626 !important;
}

/* =========================
   META PANEL COMPACT TUNING
   ========================= */

#vidu-project-builder .vidu-sidebar-meta {
  padding: 14px 14px 12px !important;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-card-header {
  margin-bottom: 10px !important;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-card-header h3 {
  font-size: 15px !important;
  line-height: 1.1 !important;
}

#vidu-project-builder .vidu-meta-layout-clean {
  gap: 8px !important;
}

#vidu-project-builder .vidu-meta-row {
  gap: 8px !important;
}

#vidu-project-builder .vidu-meta-grid,
#vidu-project-builder .vidu-meta-grid-compact {
  gap: 8px 8px !important;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-field {
  gap: 4px !important;
  margin-bottom: 0 !important;
}

#vidu-project-builder .vidu-sidebar-meta .vidu-field label {
  font-size: 10px !important;
  letter-spacing: 0.07em !important;
  line-height: 1.1 !important;
}

#vidu-project-builder .vidu-sidebar-meta input,
#vidu-project-builder .vidu-sidebar-meta select,
#vidu-project-builder .vidu-sidebar-meta textarea {
  min-height: 38px !important;
  height: 38px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

#vidu-project-builder .vidu-sidebar-meta textarea {
  min-height: 74px !important;
  height: auto !important;
}

/* gombok ugyanakkorák legyenek, mint a mezők */
#vidu-project-builder .vidu-field-button .vidu-btn,
#vidu-project-builder #vidu-load-template,
#vidu-project-builder #vidu-load-template-unified,
#vidu-project-builder #vidu-save-template {
  min-height: 38px !important;
  height: 38px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* template sor feszesebb */
#vidu-project-builder .vidu-meta-row-template,
#vidu-project-builder .vidu-meta-row-template-save {
  gap: 8px !important;
}

/* ügyfél blokk és lenyílók feszesebbek */
#vidu-project-builder .vidu-client-extra {
  margin-top: 6px !important;
  margin-bottom: 2px !important;
  padding-top: 6px !important;
}

#vidu-project-builder .vidu-meta-advanced {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
}

#vidu-project-builder .vidu-meta-advanced summary {
  padding: 9px 12px !important;
  min-height: 38px !important;
  font-size: 12px !important;
}

#vidu-project-builder .vidu-meta-advanced-inner {
  padding: 0 12px 10px !important;
  gap: 8px !important;
}

/* projekt név és további részletek közti rés kisebb */
#vidu-project-builder #meta-project-name {
  margin-bottom: 0 !important;
}

#vidu-project-builder .vidu-field:has(#meta-project-name) {
  margin-bottom: 2px !important;
}

#vidu-project-builder .vidu-meta-footer-actions {
  margin-top: 10px !important;
}

/* üres projekt gomb is kicsit kompaktabb */
#vidu-project-builder .vidu-btn-danger {
  min-height: 38px !important;
  height: 38px !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
					
/* =========================
   COMPACT SIDEBAR SPACING
   ========================= */

/* minden card közti távolság csökkentése */
#vidu-project-builder .vidu-card {
  margin-bottom: 14px !important;
}

/* sidebarban még feszesebb */
#vidu-project-builder .vidu-sidebar .vidu-card {
  margin-bottom: 12px !important;
}

/* discount card körül kisebb spacing */
#vidu-project-builder .vidu-discount-card {
  margin-top: 0px !important;
  margin-bottom: 5px !important;
}

/* projekt meta card alja (ahonnan most nagy rés jön) */
#vidu-project-builder .vidu-meta-card {
  margin-bottom: 5px !important;
}

/* stats blokk ne tolja szét */
#vidu-project-builder .vidu-stats {
  margin-top: 6px !important;
}
					
/* extra tightening */
#vidu-project-builder .vidu-sidebar {
  gap: 10px !important;
}

#vidu-project-builder .vidu-sidebar-sticky-group {
  gap: 10px !important;
}
					
/* =========================
   ACTION BAR – FULL WIDTH
   ========================= */

#vidu-project-builder .vidu-sidebar-actions {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#vidu-project-builder .vidu-sidebar-actions-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  align-items: stretch;
  width: 100% !important;
}

#vidu-project-builder .vidu-sidebar-actions-grid .vidu-btn,
#vidu-project-builder .vidu-sidebar-actions-grid a.vidu-btn {
  min-height: 42px !important;
  height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  white-space: nowrap;
  text-align: center !important;
}

/* mind a 4 gomb egyforma szélességű */
#vidu-project-builder .vidu-btn-generate,
#vidu-project-builder .vidu-btn-send,
#vidu-project-builder .vidu-btn-copy,
#vidu-project-builder .vidu-btn-save {
  flex: 1 1 0 !important;
}

/* Hover finomítás */
#vidu-project-builder .vidu-sidebar-actions-grid .vidu-btn:hover,
#vidu-project-builder .vidu-sidebar-actions-grid a.vidu-btn:hover {
  transform: translateY(-1px);
}

/* mobilon visszatörhet */
@media (max-width: 900px) {
  #vidu-project-builder .vidu-sidebar-actions-grid {
    flex-wrap: wrap !important;
  }

  #vidu-project-builder .vidu-sidebar-actions-grid .vidu-btn,
  #vidu-project-builder .vidu-sidebar-actions-grid a.vidu-btn {
    flex: 1 1 calc(50% - 5px) !important;
    width: auto !important;
  }
}

@media (max-width: 560px) {
  #vidu-project-builder .vidu-sidebar-actions-grid .vidu-btn,
  #vidu-project-builder .vidu-sidebar-actions-grid a.vidu-btn {
    flex: 1 1 100% !important;
  }
}	
					
/* =========================
   ROW NOTE PREVIEW
   ========================= */

#vidu-project-builder .vidu-row-note-preview {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.46);
  white-space: normal;
  word-break: break-word;
}

#vidu-app-modal #vidu-project-builder .vidu-row-note-preview {
  font-size: 10px;
  margin-top: 5px;
  color: rgba(255,255,255,0.42);
}
					
/* ajánlat megnyitása gomb */
#vidu-open-offer-link {
  background: #3b82f6 !important;
  color: #fff !important;
  border-color: transparent !important;
}

#vidu-open-offer-link:hover {
  background: #2563eb !important;
}
					
/* mentés gomb */
#vidu-save-offer {
  background: #facc15 !important;
  color: #111 !important;
  border-color: transparent !important;
}

#vidu-save-offer:hover {
  background: #eab308 !important;
}
					
/* másolás gomb */
#vidu-copy-offer {
  background: #f97316 !important;
  color: #fff !important;
  border-color: transparent !important;
}

#vidu-copy-offer:hover {
  background: #ea580c !important;
}
					
/* generálás gomb */
#vidu-generate-offer {
  background: #22c55e !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* küldés gomb */
#vidu-send-offer {
  background: #8b5cf6 !important;
  color: #fff !important;
  border-color: transparent !important;
}

#vidu-send-offer:hover {
  background: #7c3aed !important;
}
					
#vidu-generate-offer:hover {
  background: #16a34a !important;
}
					
/* =========================
   COLLAPSED INACTIVE BLOCKS
   ========================= */

#vidu-project-builder .vidu-card[data-block] {
  overflow: hidden;
}

#vidu-project-builder .vidu-card[data-block] .vidu-table-wrap {
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.28s ease,
    opacity 0.18s ease,
    margin-top 0.18s ease;
}

#vidu-project-builder .vidu-card[data-block].vidu-block-disabled .vidu-table-wrap {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  pointer-events: none;
}

#vidu-project-builder .vidu-card[data-block].vidu-block-disabled {
  padding-bottom: 14px !important;
  min-height: auto !important;
}

#vidu-project-builder .vidu-card[data-block].vidu-block-disabled .vidu-block-header {
  margin-bottom: 0 !important;
}

#vidu-project-builder .vidu-card[data-block].vidu-block-disabled .vidu-block-topline,
#vidu-project-builder .vidu-card[data-block].vidu-block-disabled .vidu-add-row-inline-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  transition:
    max-height 0.18s ease,
    opacity 0.14s ease,
    margin 0.14s ease,
    padding 0.14s ease;
}

/* aktív állapotban visszajönnek */
#vidu-project-builder .vidu-card[data-block] .vidu-block-topline,
#vidu-project-builder .vidu-card[data-block] .vidu-add-row-inline-wrap {
  transition:
    max-height 0.18s ease,
    opacity 0.14s ease,
    margin 0.14s ease,
    padding 0.14s ease;
}
					
/* =========================
   PROJECT BUILDER TABLE – BORDERLESS TABLE LAYOUT
   ========================= */

#vidu-project-builder .vidu-table,
#vidu-project-builder .vidu-table thead,
#vidu-project-builder .vidu-table tbody,
#vidu-project-builder .vidu-table tr,
#vidu-project-builder .vidu-table th,
#vidu-project-builder .vidu-table td {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* header legyen tiszta, lebegősebb */
#vidu-project-builder .vidu-table th {
  background: transparent !important;
  color: var(--vidu-meta) !important;
  padding-top: 0 !important;
  padding-bottom: 8px !important;
}

/* body cellák border nélkül, nagyon finom háttérrel */
#vidu-project-builder .vidu-table td {
  background: var(--vidu-builder-cell-bg) !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* inputokból is vegyük ki a markáns keretet */
#vidu-project-builder .vidu-table input,
#vidu-project-builder .vidu-table select {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: var(--vidu-builder-field-bg) !important;
  color: var(--vidu-text) !important;
}

/* readonly mezők is borderless maradjanak */
#vidu-project-builder .vidu-readonly {
  border: none !important;
  box-shadow: none !important;
}

/* műveleti ikon gombok is legyenek puhábban */
#vidu-project-builder .vidu-icon-btn {
  background: transparent !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: none !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-row-actions,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-block-actions,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-inline-actions,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-actions {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-icon-btn {
  background: transparent !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: none !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-icon-btn:hover {
  background: rgba(255,255,255,0.034) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* oszlopcímek és értékek kapjanak egy kis bal paddinget
   EGYSÉG-től MARGIN-ig: 3 → 9 oszlop */
#vidu-project-builder .vidu-table th:nth-child(n+3):nth-child(-n+9),
#vidu-project-builder .vidu-table td:nth-child(n+3):nth-child(-n+9) {
  padding-left: 10px !important;
}

/* readonly értékeknél is finom bal behúzás */
#vidu-project-builder .vidu-table td:nth-child(n+6):nth-child(-n+9) .vidu-readonly {
  padding-left: 4px !important;
}

/* modalban is ugyanez stabilan */
#vidu-app-modal #vidu-project-builder .vidu-table,
#vidu-app-modal #vidu-project-builder .vidu-table thead,
#vidu-app-modal #vidu-project-builder .vidu-table tbody,
#vidu-app-modal #vidu-project-builder .vidu-table tr,
#vidu-app-modal #vidu-project-builder .vidu-table th,
#vidu-app-modal #vidu-project-builder .vidu-table td {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#vidu-app-modal #vidu-project-builder .vidu-table input,
#vidu-app-modal #vidu-project-builder .vidu-table select {
  border: none !important;
  box-shadow: none !important;
  background: var(--vidu-builder-field-bg) !important;
  color: var(--vidu-text) !important;
}

/* =========================
   INLINE ADD ROW BUTTON
   ========================= */

#vidu-project-builder .vidu-add-row-inline-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 0 2px;
}

#vidu-project-builder .vidu-add-row-inline {
  width: 34px;
  height: 34px;
  border: none;
  outline: none;
  background: var(--vidu-builder-muted-bg);
  color: var(--vidu-meta);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  box-shadow: none;
}

#vidu-project-builder .vidu-add-row-inline:hover {
  background: var(--vidu-builder-card-bg-hover);
  color: var(--vidu-text);
  transform: translateY(-1px);
}

#vidu-project-builder .vidu-add-section-inline {
  height: 34px;
  border: 1px solid var(--vidu-border);
  outline: none;
  background: var(--vidu-builder-muted-bg);
  color: var(--vidu-muted);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

#vidu-project-builder .vidu-add-section-inline:hover {
  background: rgba(96,165,250,.10);
  border-color: rgba(96,165,250,.28);
  color: var(--vidu-text);
  transform: translateY(-1px);
}

#vidu-project-builder .vidu-add-row-inline:active {
  transform: translateY(0);
}

/* modalban még finomabb */
#vidu-app-modal #vidu-project-builder .vidu-add-row-inline-wrap {
  padding: 8px 0 0;
}

#vidu-app-modal #vidu-project-builder .vidu-add-row-inline {
  width: 30px;
  height: 30px;
  font-size: 20px;
  background: var(--vidu-builder-muted-bg);
  color: var(--vidu-meta);
}

#vidu-app-modal #vidu-project-builder .vidu-add-row-inline:hover {
  background: var(--vidu-builder-card-bg-hover);
  color: var(--vidu-text);
}
					
/* =========================
   DRAG HANDLE – CSS DOTS FINAL POSITION
   ========================= */

#vidu-project-builder .vidu-td-title {
  padding-left: 4px !important;
}

#vidu-project-builder .vidu-td-title-inner {
  position: relative;
  padding-left: 10px;
  overflow: visible;
}

#vidu-project-builder .vidu-td-title-inner input {
  position: relative;
  z-index: 2;
  padding-left: 10px !important;
}

#vidu-project-builder .vidu-drag-handle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 18px;
  opacity: 0;
  user-select: none;
  pointer-events: auto;
  z-index: 3;
  transition: opacity 0.16s ease, transform 0.16s ease;
  cursor: grab !important;
}

#vidu-project-builder .vidu-drag-handle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  box-shadow:
    0 5px 0 rgba(255,255,255,0.42),
    0 10px 0 rgba(255,255,255,0.42),
    4px 0 0 rgba(255,255,255,0.42),
    4px 5px 0 rgba(255,255,255,0.42),
    4px 10px 0 rgba(255,255,255,0.42);
}

#vidu-project-builder .vidu-table tbody tr:hover .vidu-drag-handle,
#vidu-project-builder .vidu-td-title-inner:hover .vidu-drag-handle {
  opacity: 1;
}

#vidu-project-builder .vidu-drag-handle:active {
  cursor: grabbing !important;
}

#vidu-project-builder .vidu-table tbody tr:hover .vidu-drag-handle,
#vidu-project-builder .vidu-td-title-inner:hover .vidu-drag-handle {
  opacity: 1;
}

#vidu-project-builder .vidu-drag-handle:active {
  cursor: grabbing;
}
					
/* =========================
   SORTABLE DRAG STATES
   ========================= */

#vidu-project-builder .vidu-sort-ghost td {
  opacity: 0.28 !important;
}

#vidu-project-builder .vidu-sort-chosen td {
  background: rgba(255,255,255,0.035) !important;
}

#vidu-project-builder .vidu-sort-drag td {
  background: rgba(255,255,255,0.045) !important;
}

#vidu-project-builder .vidu-sort-drag {
  transform: scale(1.01);
}

#vidu-project-builder .vidu-drag-handle {
  cursor: grab !important;
}

#vidu-project-builder .vidu-sort-chosen .vidu-drag-handle,
#vidu-project-builder .vidu-sort-drag .vidu-drag-handle {
  opacity: 1 !important;
}

#vidu-project-builder .vidu-sort-drag .vidu-drag-handle::before {
  background: rgba(255,255,255,0.72);
  box-shadow:
    0 5px 0 rgba(255,255,255,0.72),
    0 10px 0 rgba(255,255,255,0.72),
    4px 0 0 rgba(255,255,255,0.72),
    4px 5px 0 rgba(255,255,255,0.72),
    4px 10px 0 rgba(255,255,255,0.72);
}
					
/* =========================
   SORTABLE VISUAL GLITCH FIX
   ========================= */

/* a builder fő részei külön festési réteget kapjanak */
#vidu-project-builder .vidu-main,
#vidu-project-builder .vidu-sidebar,
#vidu-project-builder .vidu-card,
#vidu-project-builder .vidu-table-wrap,
#vidu-project-builder .vidu-table,
#vidu-project-builder .vidu-table tbody,
#vidu-project-builder .vidu-table tr,
#vidu-project-builder .vidu-table td {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* a húzott sor biztosan saját rétegen legyen */
#vidu-project-builder .vidu-sort-chosen,
#vidu-project-builder .vidu-sort-drag,
#vidu-project-builder .vidu-sort-ghost {
  isolation: isolate;
  transform: translateZ(0) !important;
  backface-visibility: hidden;
}

/* a cellák ne húzzanak magukkal furcsa árnyékot / réteget */
#vidu-project-builder .vidu-sort-drag td,
#vidu-project-builder .vidu-sort-chosen td,
#vidu-project-builder .vidu-sort-ghost td {
  background-clip: padding-box;
}

/* a sticky summary maradjon külön festési kontextusban */
#vidu-sticky-summary,
#vidu-project-builder .vidu-sidebar {
  isolation: isolate;
  z-index: 2;
}

/* a táblázatos rész legyen a drag fő kontextusa */
#vidu-project-builder .vidu-main {
  position: relative;
  z-index: 1;
}
					
/* =========================
   FORCE FALLBACK DRAG LAYER
   ========================= */

.sortable-fallback {
  opacity: 0.96 !important;
  transform: rotate(0.0001deg);
  pointer-events: none !important;
  z-index: 999999 !important;
}

#vidu-project-builder .vidu-sort-ghost td {
  opacity: 0.22 !important;
}

#vidu-project-builder .vidu-sort-chosen td,
#vidu-project-builder .vidu-sort-drag td {
  background: rgba(255,255,255,0.04) !important;
}
		
/* =========================
   SORTABLE FALLBACK CLEAN LOOK
   ========================= */

.sortable-fallback {
  background: rgba(22, 22, 24, 0.96) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
  overflow: hidden !important;
}

.sortable-fallback td {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.sortable-fallback input,
.sortable-fallback select,
.sortable-fallback textarea {
  background: rgba(255,255,255,0.03) !important;
  color: #f2f2f2 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  pointer-events: none !important;
}

.sortable-fallback .vidu-readonly {
  color: #f2f2f2 !important;
  border: none !important;
  box-shadow: none !important;
}

.sortable-fallback .vidu-row-actions {
  opacity: 0.7;
}

.sortable-fallback .vidu-icon-btn {
  background: rgba(255,255,255,0.04) !important;
  border: none !important;
  box-shadow: none !important;
}
					
/* =========================
   SORTABLE FALLBACK – CLEAN COMPACT PREVIEW
   ========================= */

.sortable-fallback {
  background: rgba(22, 22, 24, 0.96) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
  overflow: hidden !important;
}

.sortable-fallback table {
  table-layout: fixed !important;
  width: 100% !important;
}

.sortable-fallback td {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  vertical-align: middle !important;
  overflow: hidden !important;
}

.sortable-fallback input,
.sortable-fallback select,
.sortable-fallback textarea {
  background: rgba(255,255,255,0.04) !important;
  color: #f2f2f2 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  pointer-events: none !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sortable-fallback .vidu-readonly {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border: none !important;
  box-shadow: none !important;
}

.sortable-fallback .vidu-row-actions {
  opacity: 0.55;
  transform: scale(0.95);
  transform-origin: center;
}

.sortable-fallback .vidu-icon-btn {
  background: rgba(255,255,255,0.04) !important;
  border: none !important;
  box-shadow: none !important;
}

/* a title mező ne nyúljon szét */
.sortable-fallback .vidu-td-title,
.sortable-fallback .vidu-td-title-inner {
  overflow: hidden !important;
}

.sortable-fallback .vidu-td-title input {
  padding-left: 18px !important;
}

/* note preview ne kavarjon be drag közben */
.sortable-fallback .vidu-row-note-preview {
  display: none !important;
}
		
.vidu-btn-confirm-primary {
  background: #3b82f6 !important;
  border: 1px solid transparent !important;
  color: #fff !important;
}

.vidu-btn-confirm-primary:hover {
  background: #2563eb !important;
}					
					
#vidu-send-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

#vidu-send-confirm-overlay .vidu-send-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#vidu-send-confirm-overlay .vidu-send-confirm-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 420px);
  transform: translate(-50%, -50%);
  background: var(--vidu-modal-surface-elevated);
  border: 1px solid var(--vidu-modal-border);
  border-radius: 22px;
  box-shadow:
    var(--vidu-shadow-floating, 0 22px 60px rgba(0,0,0,0.45)),
    var(--vidu-modal-glow, 0 0 0 rgba(0,0,0,0)),
    inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 24px 22px 20px;
  text-align: center;
}

#vidu-send-confirm-overlay .vidu-send-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--vidu-control-border);
  background: var(--vidu-control-bg);
  color: var(--vidu-control-text);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#vidu-send-confirm-overlay .vidu-send-confirm-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

#vidu-send-confirm-overlay .vidu-send-confirm-icon {
  width: 52px;
  height: 52px;
  margin: 4px auto 14px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

#vidu-send-confirm-overlay .vidu-send-confirm-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

#vidu-send-confirm-overlay .vidu-send-confirm-kicker {
  font-size: var(--vidu-text-xs, 11px);
  letter-spacing: var(--vidu-letter-label, 0.12em);
  text-transform: uppercase;
  color: var(--vidu-text-muted);
  margin-bottom: 8px;
}

#vidu-send-confirm-overlay .vidu-send-confirm-title {
  margin: 0 0 10px;
  font-size: var(--vidu-text-xl, 24px);
  line-height: var(--vidu-line-tight, 1.08);
  font-weight: 700;
  color: var(--vidu-text-primary);
}

#vidu-send-confirm-overlay .vidu-send-confirm-text {
  margin: 0 auto 18px;
  max-width: 300px;
  font-size: var(--vidu-text-md, 14px);
  line-height: var(--vidu-line-relaxed, 1.5);
  color: var(--vidu-text-secondary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

#vidu-send-confirm-overlay .vidu-send-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#vidu-send-confirm-overlay .vidu-send-btn-cancel {
  background: var(--vidu-control-bg) !important;
  border: 1px solid var(--vidu-control-border) !important;
  color: var(--vidu-control-text) !important;
}

#vidu-send-confirm-overlay .vidu-send-btn-cancel:hover {
  background: var(--vidu-control-bg-hover) !important;
}

#vidu-send-confirm-overlay .vidu-send-btn-primary {
  background: #3b82f6 !important;
  border: 1px solid transparent !important;
  color: #fff !important;
}

#vidu-send-confirm-overlay .vidu-send-btn-primary:hover {
  background: #2563eb !important;
}					

/* Mobile offer modal pass: compact, contained, right-side controls first */
@media (max-width: 768px) {
  #vidu-app-modal.vidu-offer-modal-shell.is-open {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 12px 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-dialog {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    max-height: calc(100svh - 24px) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-header.vidu-hide-default-modal-head,
  #vidu-app-modal.vidu-offer-modal-shell .vidu-modal-header.vidu-hide-default-modal-head,
  #vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-head.vidu-hide-default-modal-head,
  #vidu-app-modal.vidu-offer-modal-shell .vidu-modal-head.vidu-hide-default-modal-head {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    background: rgba(18, 18, 21, 0.97) !important;
    backdrop-filter: blur(16px) saturate(1.04) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.04) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-body,
  #vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-content,
  #vidu-app-modal.vidu-offer-modal-shell .vidu-modal-content {
    height: auto !important;
    max-height: calc(100svh - 24px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell .vidu-modal-inner-frame,
  #vidu-app-modal.vidu-offer-modal-shell .vidu-modal-inner-content,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-grid,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-main,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar-sticky-group,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table-wrap,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-grid,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-grid-compact,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-layout-clean,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-row,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-row-top,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-row-two,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-actions,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar-actions,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar-actions-grid {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder {
    width: 100% !important;
    padding: 12px !important;
    overflow: visible !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar {
    order: 1 !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-main {
    order: 2 !important;
    width: 100% !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 16px !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar .vidu-card {
    background: rgba(255,255,255,0.025) !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-block-header {
    gap: 8px !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header h2,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header h3 {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-grid,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-grid-compact,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-actions,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar-actions-grid,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-layout,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder select,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder textarea,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder button,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-btn,
  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-mini-btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Theme tokens: offer builder surfaces and controls. */
[data-vidu-theme="light"] #vidu-project-builder,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder {
  background: transparent !important;
  color: var(--vidu-text) !important;
}

[data-vidu-theme="light"] #vidu-project-builder .vidu-card,
[data-vidu-theme="light"] #vidu-project-builder .vidu-sidebar .vidu-card,
[data-vidu-theme="light"] #vidu-project-builder .vidu-meta-card,
[data-vidu-theme="light"] #vidu-project-builder .vidu-discount-card,
[data-vidu-theme="light"] #vidu-project-builder .vidu-stat,
[data-vidu-theme="light"] #vidu-project-builder .vidu-profit-list,
[data-vidu-theme="light"] #vidu-project-builder .vidu-profit-row,
[data-vidu-theme="light"] #vidu-project-builder details,
[data-vidu-theme="light"] #vidu-project-builder summary {
  background: var(--vidu-builder-card-bg) !important;
  border-color: var(--vidu-border) !important;
  color: var(--vidu-text-primary, rgba(13,18,28,.94)) !important;
  box-shadow: var(--vidu-shadow-card, 0 12px 30px rgba(15,23,42,.075)) !important;
}

[data-vidu-theme="light"] #vidu-project-builder input[type="text"],
[data-vidu-theme="light"] #vidu-project-builder input[type="email"],
[data-vidu-theme="light"] #vidu-project-builder input[type="number"],
[data-vidu-theme="light"] #vidu-project-builder input[type="date"],
[data-vidu-theme="light"] #vidu-project-builder textarea,
[data-vidu-theme="light"] #vidu-project-builder select,
[data-vidu-theme="light"] #vidu-project-builder .vidu-readonly,
[data-vidu-theme="light"] #vidu-project-builder .vidu-section-title-input,
[data-vidu-theme="light"] #vidu-project-builder .vidu-section-description-input {
  background: var(--vidu-builder-field-bg) !important;
  border-color: var(--vidu-border) !important;
  color: var(--vidu-text-primary, rgba(13,18,28,.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}

[data-vidu-theme="light"] #vidu-project-builder h2,
[data-vidu-theme="light"] #vidu-project-builder h3,
[data-vidu-theme="light"] #vidu-project-builder .vidu-card-header h2,
[data-vidu-theme="light"] #vidu-project-builder .vidu-card-header h3,
[data-vidu-theme="light"] #vidu-project-builder .vidu-section-title-input,
[data-vidu-theme="light"] #vidu-project-builder .vidu-stat-value,
[data-vidu-theme="light"] #vidu-project-builder .vidu-profit-row strong,
[data-vidu-theme="light"] #vidu-project-builder .vidu-table td,
[data-vidu-theme="light"] #vidu-project-builder .vidu-readonly {
  color: var(--vidu-text-primary, rgba(13,18,28,.94)) !important;
}

[data-vidu-theme="light"] #vidu-project-builder .vidu-field label,
[data-vidu-theme="light"] #vidu-project-builder .vidu-field > span,
[data-vidu-theme="light"] #vidu-project-builder .vidu-table th,
[data-vidu-theme="light"] #vidu-project-builder .vidu-stat-label,
[data-vidu-theme="light"] #vidu-project-builder .vidu-block-topline,
[data-vidu-theme="light"] #vidu-project-builder .vidu-profit-row span,
[data-vidu-theme="light"] #vidu-project-builder .vidu-help,
[data-vidu-theme="light"] #vidu-project-builder .vidu-stat-small {
  color: var(--vidu-text-muted, rgba(13,18,28,.48)) !important;
}

[data-vidu-theme="light"] #vidu-project-builder .vidu-table-wrap,
[data-vidu-theme="light"] #vidu-project-builder .vidu-table {
  background: var(--vidu-builder-muted-bg) !important;
  border-color: var(--vidu-border) !important;
}

[data-vidu-theme="light"] #vidu-project-builder .vidu-btn,
[data-vidu-theme="light"] #vidu-project-builder .vidu-mini-btn,
[data-vidu-theme="light"] #vidu-project-builder .vidu-icon-btn,
[data-vidu-theme="light"] #vidu-project-builder .vidu-section-description-add {
  border-color: var(--vidu-border) !important;
}

/* Offer builder modal intentionally stays cinematic dark, even when the app shell is in light mode. */
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder {
  --vidu-builder-card-bg: rgba(27, 27, 30, 0.92);
  --vidu-builder-card-bg-hover: rgba(38, 38, 42, 0.96);
  --vidu-builder-elevated-bg: rgba(34, 34, 38, 0.96);
  --vidu-builder-muted-bg: rgba(255,255,255,0.036);
  --vidu-builder-field-bg: rgba(255,255,255,0.046);
  --vidu-builder-cell-bg: color-mix(in srgb, rgba(29, 29, 32, 0.95) 78%, rgba(15, 15, 17, 0.90));
  --vidu-builder-cell-hover-bg: rgba(39, 39, 43, 0.96);
  --vidu-panel: var(--vidu-builder-card-bg);
  --vidu-panel-2: var(--vidu-builder-elevated-bg);
  --vidu-input: var(--vidu-builder-field-bg);
  --vidu-border: rgba(255,255,255,0.082);
  --vidu-border-strong: rgba(255,255,255,0.14);
  --vidu-text: #f8fafc;
  --vidu-text-primary: #f8fafc;
  --vidu-text-secondary: rgba(235, 235, 238, 0.74);
  --vidu-text-muted: rgba(180, 180, 187, 0.70);
  --vidu-muted: rgba(235, 235, 238, 0.74);
  --vidu-meta: rgba(180, 180, 187, 0.70);
  background: transparent !important;
  color: #f8fafc !important;
}

[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar .vidu-card,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-card,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-discount-card,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-list,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder details,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder summary {
  background: var(--vidu-builder-card-bg) !important;
  border-color: var(--vidu-border) !important;
  color: #f8fafc !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="text"],
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="email"],
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="number"],
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="date"],
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder textarea,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder select,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-readonly,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-title-input,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-description-input {
  background: var(--vidu-builder-field-bg) !important;
  border-color: var(--vidu-border) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder h2,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder h3,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header h2,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header h3,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-title-input,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat-value,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row strong,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table td,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-readonly {
  color: #f8fafc !important;
}

[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-field label,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-field > span,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table th,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat-label,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-block-topline,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row span,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-help,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat-small {
  color: rgba(148, 163, 184, 0.82) !important;
}

[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table-wrap,
[data-vidu-theme="light"] #vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table {
  background: var(--vidu-builder-muted-bg) !important;
  border-color: var(--vidu-border) !important;
}

/* Premium operational refinement pass for the offer builder modal. */
#vidu-app-modal.vidu-offer-modal-shell,
.vidu-offer-modal-shell {
  --vidu-modal-bg: linear-gradient(180deg, rgba(18, 18, 20, .985), rgba(10, 10, 12, .992));
  --vidu-modal-surface: rgba(23, 23, 26, .89);
  --vidu-modal-surface-elevated: rgba(28, 28, 31, .92);
  --vidu-card-bg-hover: rgba(32, 32, 36, .92);
  --vidu-border-soft: rgba(255, 255, 255, .052);
  --vidu-modal-border: rgba(255, 255, 255, .052);
  --vidu-shadow-card: 0 7px 20px rgba(0, 0, 0, .16);
  --vidu-shadow-floating: 0 14px 42px rgba(0, 0, 0, .24);
  --vidu-shadow-strong: 0 20px 58px rgba(0, 0, 0, .32);
  --vidu-modal-shadow: 0 26px 80px rgba(0, 0, 0, .46), 0 10px 30px rgba(0, 0, 0, .22);
  --vidu-modal-glow: 0 0 0 1px rgba(255, 255, 255, .016);
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder {
  --vidu-builder-card-bg: rgba(23, 23, 26, .89);
  --vidu-builder-card-bg-hover: rgba(32, 32, 36, .92);
  --vidu-builder-elevated-bg: rgba(28, 28, 31, .92);
  --vidu-builder-muted-bg: rgba(255, 255, 255, .026);
  --vidu-builder-field-bg: rgba(255, 255, 255, .04);
  --vidu-builder-cell-bg: color-mix(in srgb, rgba(24, 24, 27, .94) 80%, rgba(14, 14, 16, .90));
  --vidu-builder-cell-hover-bg: rgba(34, 34, 38, .92);
  --vidu-border: rgba(255, 255, 255, .058);
  --vidu-border-strong: rgba(255, 255, 255, .11);
  --vidu-text-secondary: rgba(235, 235, 238, .64);
  --vidu-text-muted: rgba(180, 180, 187, .58);
  --vidu-muted: rgba(235, 235, 238, .64);
  --vidu-meta: rgba(180, 180, 187, .58);
}

#vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-dialog {
  border-color: var(--vidu-modal-border) !important;
  box-shadow: var(--vidu-modal-shadow), var(--vidu-modal-glow) !important;
}

#vidu-app-modal.vidu-offer-modal-shell .vidu-app-modal-backdrop {
  backdrop-filter: blur(10px) saturate(1.02) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.02) !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar .vidu-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-discount-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-list,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table-wrap,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder details,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder summary {
  background: var(--vidu-builder-card-bg) !important;
  border-color: var(--vidu-border) !important;
  box-shadow: var(--vidu-shadow-card) !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="text"],
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="email"],
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="number"],
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder input[type="date"],
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder textarea,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder select,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-readonly,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-title-input,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-description-input {
  background: var(--vidu-builder-field-bg) !important;
  border-color: var(--vidu-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018) !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-field label,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-field > span,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table th,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat-label,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-block-topline,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row span,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-help,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat-small {
  color: var(--vidu-text-muted) !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-btn,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-mini-btn,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-icon-btn,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-description-add {
  box-shadow: none !important;
  opacity: .72;
  transition:
    opacity .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-btn:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-mini-btn:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-icon-btn:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-description-add:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-btn:focus-visible,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-mini-btn:focus-visible,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-icon-btn:focus-visible {
  opacity: 1;
}

/* Keep the builder operational and dimensional, not flat-minimal. */
#vidu-app-modal.vidu-offer-modal-shell {
  --vidu-builder-depth-edge: inset 0 1px 0 rgba(255, 255, 255, .024);
  --vidu-builder-depth-surface: 0 10px 28px rgba(0, 0, 0, .18), var(--vidu-builder-depth-edge);
  --vidu-builder-depth-focus: 0 14px 34px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .026), var(--vidu-builder-depth-edge);
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-sidebar .vidu-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-meta-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-discount-card,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-list,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table-wrap,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder details,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .024), rgba(255, 255, 255, .006)),
    var(--vidu-builder-card-bg) !important;
  box-shadow: var(--vidu-builder-depth-surface) !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder details:hover {
  box-shadow: var(--vidu-builder-depth-focus) !important;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header h2,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-card-header h3,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-section-title-input,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-stat-value {
  letter-spacing: 0;
  line-height: 1.18;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table td,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-profit-row,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-field {
  line-height: 1.38;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-row-actions .vidu-icon-btn {
  opacity: .52;
}

#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-table tr:hover .vidu-row-actions .vidu-icon-btn,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-row-actions .vidu-icon-btn:hover,
#vidu-app-modal.vidu-offer-modal-shell #vidu-project-builder .vidu-row-actions .vidu-icon-btn:focus-visible {
  opacity: 1;
}

/* Saved offer sharing, available inside the desktop builder as well. */
#vidu-project-builder .vidu-offer-share {
  display:grid; gap:10px; padding:16px; margin-top:14px; min-width:0;
  border:1px solid var(--vidu-border-soft,rgba(255,255,255,.1)); border-radius:16px;
  background:var(--vidu-card-bg,#181818);
}
#vidu-project-builder .vidu-offer-share h3 { margin:0; font-size:13px; }
#vidu-project-builder .vidu-offer-share p,
#vidu-project-builder #vidu-offer-share-status { margin:0; font-size:11px; line-height:1.5; color:var(--vidu-text-muted,#999); }
#vidu-project-builder .vidu-offer-share-label { font-size:10px; color:var(--vidu-text-muted,#999); }
#vidu-project-builder #vidu-offer-share-url {
  box-sizing:border-box; width:100%; min-width:0; height:36px; padding:0 10px;
  border:1px solid var(--vidu-border-soft,rgba(255,255,255,.1)); border-radius:9px;
  background:var(--vidu-control-bg,#222); color:var(--vidu-text-primary,#eee); font-size:11px;
}
#vidu-project-builder #vidu-copy-offer-link { width:100%; min-height:36px; }
#vidu-project-builder #vidu-offer-share-status:empty { display:none; }
