/* Global box model (topic: base / reset) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: base/reset.css
 */
/* ============================= */
/* BASE */
/* ============================= */
body {
  font-family: Arial, sans-serif;
  background: #f7f2ff;
  margin: 0;
  position: relative;
  overflow-x: clip;
}

.app-layout {
  display: flex;
  direction: rtl;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
}

.main-content {
  flex: 1;
  padding: 20px;
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content > #header,
.main-content > #main {
  width: 100%;
}

.main-content > #header:empty {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.page-shell {
  box-sizing: border-box;
  width: min(100%, 420px);
  max-width: 420px;
  position: relative;
  margin-inline: auto;
  background: var(--ce-card-background, #ffffff);
  margin-bottom: 0;
}

.edit-sidebar {
  flex: 0 0 260px;
  width: 260px;
  max-width: min(260px, 100vw);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  height: fit-content;
  z-index: 1002;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  order: -1;
  padding-inline-end: 4px;
  box-sizing: border-box;
  pointer-events: auto;
}

#editSidebar {
  z-index: 1002;
  pointer-events: auto;
}

#editSidebar .edit-btn,
.edit-sidebar .edit-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Closed modal stack must not intercept sidebar / preview pointer events */
#modals {
  pointer-events: none;
  z-index: 900;
}

.modal-overlay[aria-hidden="true"],
.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"],
.amount-slider-overlay:not(.is-open),
.flow-steps-modal-overlay[aria-hidden="true"],
.flow-steps-modal-overlay[style*="display: none"],
.appointments-modal-overlay[aria-hidden="true"],
#engineIframeHostOverlay[aria-hidden="true"] {
  pointer-events: none !important;
}

.modal-overlay[aria-hidden="false"]:not([style*="display: none"]):not([style*="display:none"]),
.amount-slider-overlay.is-open,
.flow-steps-modal-overlay[aria-hidden="false"]:not([style*="display: none"]),
.appointments-modal-overlay[aria-hidden="false"]:not([style*="display: none"]),
#engineIframeHostOverlay[aria-hidden="false"]:not([style*="display: none"]),
#slide-modal:not(.hidden):not([style*="display: none"]),
#slideModal:not(.hidden):not([style*="display:none"]) {
  pointer-events: auto;
}

.edit-sidebar-section-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .edit-sidebar {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    flex-basis: auto;
    position: relative;
    top: auto;
    max-height: none;
  }
}

/* פאנל עורכים: ללא קיצורי «מי אנחנו» / «שירותים» (גיבוי מול מטמון / זרימות ישנות) */
#sidebar .edit-text-focus-btn[data-scroll-target="about"],
#sidebar .edit-text-focus-btn[data-scroll-target="services"],
#sidebar button[data-text-editor-key="about_title"],
#sidebar button[data-text-editor-key="services_title"],
.edit-sidebar .edit-text-focus-btn[data-scroll-target="about"],
.edit-sidebar .edit-text-focus-btn[data-scroll-target="services"],
.edit-sidebar button[data-text-editor-key="about_title"],
.edit-sidebar button[data-text-editor-key="services_title"] {
  display: none !important;
  pointer-events: none !important;
}

.edit-btn {
  position: relative;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #f3edff;
  border: 1px solid #d6ccff;
  color: #5b4b9a;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-btn:hover:not(:disabled) {
  background: #e9e0ff;
  transform: translateX(-4px);
}

.edit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.edit-btn:disabled:hover {
  background: #f3edff;
  transform: none;
}

.publish-live-site-btn {
  font-weight: 700;
  border-width: 2px;
  border-color: #5b4b9a;
}

.publish-live-site-status {
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 4px 0 8px;
  padding: 0 2px;
  min-height: 1.2em;
  color: #4a3d78;
}

/* Blocking live publish: constitutional emergency — red-only, maximum severity (no neutral / orange) */
@keyframes publish-hardfail-red-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.55), 0 0 28px rgba(220, 38, 38, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(254, 202, 202, 0.9), 0 0 36px rgba(220, 38, 38, 0.55);
  }
}

.publish-blocking-verdict-chip {
  display: none;
  margin: 6px 0 4px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
  color: #fff;
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
  border: 2px solid #fecaca;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(127, 29, 29, 0.55);
}

.publish-blocking-verdict-chip.publish-blocking-verdict-chip--visible {
  display: block;
  animation: publish-hardfail-red-pulse 1.6s ease-in-out infinite;
}

.publish-live-site-btn.publish-live-site-btn--hard-fail {


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: base/typography.css
 */
  border-color: #7f1d1d !important;
  border-width: 3px !important;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 45%, #7f1d1d 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.65), 0 8px 24px rgba(69, 10, 10, 0.55);
  animation: publish-hardfail-red-pulse 2s ease-in-out infinite;
}

.publish-live-site-btn.publish-live-site-btn--hard-fail:disabled {
  opacity: 1;
  filter: saturate(1.08) contrast(1.05);
}

.publish-live-site-status.publish-live-site-status--hard-fail {
  color: #7f1d1d !important;
  font-weight: 900;
  white-space: pre-wrap;
  border: 3px solid #dc2626;
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 0 1px rgba(254, 202, 202, 0.8);
}

.publish-live-site-status.publish-live-site-status--success {
  color: #15803d !important;
  font-weight: 700;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 6px 8px;
}

.publish-live-site-hardfail-panel {
  display: none;
  margin: 6px 0 10px;
  padding: 12px 14px;
  border: 4px solid #dc2626;
  border-radius: 12px;
  background: linear-gradient(165deg, #1c0505 0%, #450a0a 40%, #7f1d1d 100%);
  color: #fecaca;
  font-size: 0.74rem;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 0 0 2px #fecaca, 0 12px 40px rgba(127, 29, 29, 0.65);
}

.publish-live-site-hardfail-panel.is-visible {
  display: block;
  animation: publish-hardfail-red-pulse 2.2s ease-in-out infinite;
}

.publish-blocking-fail-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-stack-typography);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(69, 10, 10, 0.72);
  box-sizing: border-box;
  backdrop-filter: blur(2px);
}

@media (max-width: 640px) {
  .publish-blocking-fail-overlay {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .publish-blocking-fail-overlay {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
  }
}

.publish-blocking-fail-overlay.is-open {
  display: flex;
}

.publish-blocking-fail-dialog {
  max-width: min(640px, 100vw - 32px);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: #1c0505;
  border-radius: 14px;
  border: 5px solid #dc2626;
  box-shadow: 0 0 0 3px rgba(254, 202, 202, 0.5), 0 28px 72px rgba(69, 10, 10, 0.75);
  animation: publish-hardfail-red-pulse 2.4s ease-in-out infinite;
}

.publish-blocking-fail-dialog__title {
  margin: 0;
  padding: 16px 18px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(254, 202, 202, 0.95), 0 2px 4px rgba(0, 0, 0, 0.45);
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 40%, #991b1b 100%);
  border-radius: 9px 9px 0 0;
  border-bottom: 3px solid #fecaca;
}

.publish-blocking-fail-dialog__subtitle {
  margin: 0;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #b91c1c;
  border-bottom: 3px solid #7f1d1d;
}

.publish-blocking-fail-dialog__body {
  margin: 0;
  padding: 16px 18px 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #fecaca;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: linear-gradient(180deg, #2a0a0a 0%, #1c0505 100%);
  border-top: 1px solid rgba(220, 38, 38, 0.4);
}

.publish-blocking-fail-dialog__close {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
  border: 2px solid #fecaca;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(127, 29, 29, 0.5);
}

.publish-blocking-fail-dialog__close:hover {
  background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
}

/* תיאום פגישה — כפתור שליחה בסגנון כפתורי העריכה */
#meetingSection .meeting-submit-btn {
  margin-top: 12px;
  font-weight: 600;
  font-size: 15px;
  max-width: 100%;
  box-shadow: 0 4px 14px rgba(91, 75, 154, 0.18);
}

/* ============================= */
/* HEADER */
/* ============================= */
.site-header {
  text-align: center;
  margin-top: 24px;
  padding-top: 8px;
  font-weight: bold;
  color: #6c4fd3;
}

.site-header .logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* English reading content is LTR and begins at the left reading edge.
   Editor chrome remains independent, so Hebrew controls retain RTL layout. */
html[lang="en"] #mainContent #main #text-sections-section .info-card,
html[lang="en"] #mainContent #main #text-sections-section .info-card :is(h1, h2, h3, h4, h5, h6, p, li),
html[lang="en"] #mainContent #main #contactSection,
html[lang="en"] #mainContent #main #contactSection :is(h1, h2, h3, h4, h5, h6, p, li) {
  direction: ltr;
  text-align: left;
}



/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: base/variables.css
 */
.site-header .logo {
  text-decoration: none;
  color: #6c4fd3;
  font-size: 18px;
}

.site-header .logo #logoPreview {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* ============================= */
/* HERO */
/* ============================= */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  max-width: min(100%, 560px);
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  /* רקע על המעטפת — לא על ה־img (מניע „פסים” / הפרדה ויזואלית ב־PNG שקוף) */
  background: var(--ce-hero-surface, var(--hero-surface, #eef0f4));
}

/* עורך: כמו .app-layout--live .hero-media img ב־aileen_site/shared/css/main.css —
   בלי גובה קבוע 200px (גרם לחיתוך ולצורות שבורות לעומת האתר החי) */
.hero-media img {
  display: block;
  width: 100%;
  max-width: min(100%, 560px);
  height: auto;
  min-height: 240px;
  max-height: min(80vh, 620px);
  object-fit: cover;
  object-position: center;
  margin-inline: auto;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

/* ============================= */
/* ICON GRID */
/* ============================= */
.category-wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Hero + icons: one continuous white surface (editor + live preview). */
[data-aileen-site-block="section_hero"].aileen-landing-block,
[data-aileen-site-block="section_hero"] {
  background: var(--ce-card-background, #ffffff);
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#icons-bar-section,
[data-aileen-site-block="section_icons"] {
  background: var(--ce-card-background, #ffffff);
  margin-top: 0;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  display: flow-root;
  padding-top: 0;
  height: auto;
  min-height: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

[data-aileen-site-block="section_hero"],
.page-shell {
  position: relative;
  z-index: 1;
}

.page-shell + #icons-bar-section,
.page-shell + [data-aileen-site-block="section_icons"],
[data-aileen-site-block="section_hero"] + #icons-bar-section,
[data-aileen-site-block="section_hero"] + [data-aileen-site-block="section_icons"] {
  margin-top: 0;
}

#icons-bar-section > .category-buttons,
[data-aileen-site-block="section_icons"] > .category-buttons {
  padding-top: 18px;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  transition: all 0.5s ease;
  height: auto;
  min-height: 0;
  align-content: flex-start;
}

body.amount-mode .category-wrapper {
  justify-content: flex-end;
}

body.amount-mode .category-buttons {
  justify-content: flex-end;
  margin-right: 40px;
}

.category-buttons .icon-grid {
  margin-top: 0;
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  align-content: flex-start;
}

#icons-bar-section .category-buttons .icon-grid,
[data-aileen-site-block="section_icons"] .category-buttons .icon-grid {
  margin-top: 0;
}

.icon-grid .row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
  justify-content: center;
  height: auto;
  min-height: 0;
}

.icon-grid .row:last-child {
  margin-bottom: 0;
}

.icon[data-icon-manual-pos="1"] {
  overflow: visible;
  z-index: 4;
}

#aleenLiveIconGrid,
#aleenLiveIconGrid .icon-grid,
#aleenLiveIconGrid .row {
  overflow: visible;
}

.icon {
  /* One knob: emoji + uploaded image stay the same visual order of magnitude */
  --icon-mark-size: 1.75rem;
  /* Per-icon offset from icon_editor_engine / icon_xy_position_engine (live_icons.js) */
  --icon-pos-x: 0px;
  --icon-pos-y: 0px;
  --icon-pos-y-clamp: 0px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  background: transparent;
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 12px 14px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s ease;
  height: auto;
  min-height: 0;
}

.icon:hover {
  opacity: 0.9;
}

/* Image + title move as one unit; transform keeps layout flow while allowing in-section nudge. */
.icon .aleen-live-icon-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
  transform: translate(var(--icon-pos-x), var(--icon-pos-y));
  transition: transform 0.2s ease;
  will-change: transform;
}

[data-icon-coordinate-plane="1"] {
  position: relative;
  width: 100%;
  height: 430px;
  min-height: 430px;
  overflow: visible;
}

[data-icon-coordinate-plane="1"][data-icon-coordinate-device="desktop"] {
  height: 520px;
  min-height: 520px;
}

[data-icon-coordinate-plane="1"] > .row {
  display: contents;
}

[data-icon-coordinate-plane="1"] .icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  min-width: 0;
  padding: 0;
  transform: translate(
    calc(-50% + var(--icon-pos-x)),
    calc(-50% + var(--icon-pos-y))
  );
}

[data-icon-coordinate-plane="1"] .icon .aleen-live-icon-unit,
[data-icon-coordinate-plane="1"] .icon:hover .aleen-live-icon-unit {
  display: flex !important;
  transform: none !important;
}

[data-icon-coordinate-plane="1"] .icon .aleen-live-icon-caption {
  position: static !important;
  transform: none !important;
}

.icon:hover .aleen-live-icon-unit {
  transform: translate(var(--icon-pos-x), calc(var(--icon-pos-y) - 2px));
}

/* Fixed slot: card size stays stable; image/emoji scale inside (see live_icons.js + icon_size) */
.icon .aleen-live-icon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.icon.icon--custom-size .aleen-live-icon-mark {
  width: var(--icon-custom-size, auto);
  height: var(--icon-custom-size, auto);
  min-width: 0;
  min-height: 0;
}

.icon .aleen-live-icon-mark .aleen-live-icon-img {
  /* ~same optical weight as emoji at --icon-mark-size when no custom icon_size */
  width: calc(var(--icon-mark-size) * 1.43);
  height: calc(var(--icon-mark-size) * 1.43);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
}

.icon .aleen-live-icon-mark .aleen-live-icon-emoji {
  display: block;
  font-size: var(--icon-mark-size);
  line-height: 1.05;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.icon .aleen-live-icon-caption {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* ============================= */
/* CARDS */
/* ============================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;

/* ICON_XY_UNIT_COUPLING_LAW: image and caption are one positioned visual unit. */
[data-icon-coordinate-plane="1"] {
  position: relative !important;
  width: 100% !important;
  min-height: 430px !important;
  overflow: visible !important;
}
[data-icon-coordinate-plane="1"][data-icon-coordinate-device="desktop"] {
  min-height: 520px !important;
}
[data-icon-coordinate-plane="1"] > .row { display: contents !important; }
[data-icon-coordinate-plane="1"] .icon {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 170px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  transform: translate(calc(-50% + var(--icon-pos-x, 0px)), calc(-50% + var(--icon-pos-y, 0px))) !important;
}
[data-icon-coordinate-plane="1"] .icon .aleen-live-icon-unit,
[data-icon-coordinate-plane="1"] .icon:hover .aleen-live-icon-unit {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 170px !important;
  margin: 0 auto !important;
  gap: 8px !important;
  transform: none !important;
}
[data-icon-coordinate-plane="1"] .icon .aleen-live-icon-mark {
  width: var(--icon-custom-size, var(--icon-mark-size, 112px)) !important;
  height: var(--icon-custom-size, var(--icon-mark-size, 112px)) !important;
  flex: 0 0 auto !important;
}
[data-icon-coordinate-plane="1"] .icon[data-icon-size-px] .aleen-live-icon-mark {
  width: var(--aileen-icon-img-size) !important;
  height: var(--aileen-icon-img-size) !important;
}
[data-icon-coordinate-plane="1"] .icon .aleen-live-icon-mark .aleen-live-icon-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}
[data-icon-coordinate-plane="1"] .icon .aleen-live-icon-caption {
  position: static !important;
  width: max-content !important;
  max-width: 170px !important;
  margin: 0 !important;
  color: #fff !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.2 !important;
  /* Icon captions must remain crisp; do not add a text shadow. */
  text-shadow: none !important;
  text-align: center !important;
  transform: none !important;
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: base/animations.css
 */
  margin-top: 18px;
  width: 100%;
  justify-items: stretch;
}

.cards > div:not(.content-card) {
  background: white;
  border-radius: 16px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
}

.cards .content-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
  min-height: 140px;
  height: auto;
}

.cards .content-card .card-image-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 96px;
  max-height: 160px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
  display: block;
  height: auto;
  background: var(--ce-icons-section-surface, var(--icons-section-surface, #eef0f4));
}

.cards .content-card.content-card--has-image .card-image-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: none;
  height: auto;
  display: block;
  background: transparent;
}

.cards .content-card .card-image-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.cards .content-card .card-image-placeholder {
  font-size: 11px;
  font-weight: 600;
  color: var(--ce-text-secondary, var(--text-secondary, #9aa3b2));
}

.cards .content-card .card-large-image {
  width: 100%;
  height: 100%;
  min-height: 96px;
  max-height: 180px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.cards .content-card.content-card--has-image .card-large-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.cards .content-card h3 {
  margin: 0;
  padding: 8px 10px 2px;
  font-size: 13px;
  font-weight: 800;
}

.cards .content-card p {
  margin: 0;
  padding: 0 10px 10px;
  font-size: 10px;
  font-weight: normal;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cards .content-card h3[data-card-linked-text-key],
.cards .content-card p[data-card-linked-text-key] {
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
}

.cards .content-card p[data-card-linked-text-key] {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

[data-editable]:hover {
  outline: 1px dashed #aaa;
  cursor: text;
}

[data-editable]:focus {
  outline: 2px solid #6c5ce7;
  background: #fff;
}

[data-text-key] {
  cursor: default;
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
}

/* מודאל עריכת טקסט (text_editor_engine) */
.text-editor-overlay {
  z-index: var(--z-stack-animation);
}

.text-editor-panel {
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow: auto;
  box-sizing: border-box;
}

.text-editor-panel h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

.text-editor-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5b4b7a;
}

.text-editor-body {
  display: block;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.45;
}

.text-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-start;
}

.text-editor-actions .edit-btn {
  width: auto;
  min-width: 6rem;
}

.text-editor-cancel {
  background: #fff;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: layout/shell.css
 */
  border-color: #c4b8e8;
}

.text-editor-add-new {
  background: #ede6ff;
  border-color: #b8a6e8;
}

.text-editor-new-panel {
  margin-top: 16px;
}

.text-editor-new-panel[hidden] {
  display: none !important;
}

.text-editor-divider {
  border: none;
  border-top: 1px solid #e2daf5;
  margin: 8px 0 12px;
}

.text-editor-subhead {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4a3d7a;
}

.text-editor-new-body {
  min-height: 100px;
  resize: vertical;
}

.cards .content-card [data-editable]:focus {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}

/* ============================= */
/* SECTION CONTENT */
/* ============================= */
.container {
  margin-top: 20px;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

/* ============================= */
/* בחר סכום — תיבה לבנה + תפריט */
/* ============================= */
.budget-selector {
  position: relative;
  z-index: 20;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(93, 75, 154, 0.12);
  border: 1px solid #e8dff5;
}

.budget-selector .dropdown:not(.hidden) {
  position: relative;
  z-index: 30;
}

.budget-selector .main-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: #faf8ff;
  color: #5b4b9a;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

.budget-selector .main-btn:hover {
  background: #f3ecff;
  color: #4a3d82;
}

/* ============================= */
/* DROPDOWN */
/* ============================= */
.dropdown {
  background: white;
  border-radius: 10px;
  margin-top: 8px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.budget-selector .dropdown {
  margin-top: 6px;
  box-shadow: none;
  border: 1px solid #ede5fa;
}

.hidden {
  display: none;
}

.option {
  padding: 8px;
  cursor: pointer;
}

.option:hover {
  background: #f3eefc;
}

/* ============================= */
/* CONTACT */
/* ============================= */
.contact-card .contact-lead {
  margin: 0 0 8px;
  color: #666;
  font-size: 0.9rem;
}

.contact-card input {
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.contact-item {
  margin: 6px 0;
}

.cta-btn {
  display: block;
  margin: 6px 0;
  padding: 10px;
  background: #6c4fd3;
  color: white;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
}

/* ============================= */
/* RECOMMENDATIONS */
/* ============================= */
.recommendations {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.recommendations.recommendations--carousel {
  display: block;
  overflow: visible;
  width: 100%;
}


@media (max-width: 768px) {
  .testimonials-carousel-viewport {
    max-width: 100%;
    min-width: 0;
  }

  .recommendations.recommendations--carousel {
    overflow-x: auto;
  }
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: layout/header.css
 */
.testimonials-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 8px;
  direction: rtl;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonials-track .rec-card {
  flex: 0 0 auto;
}

.rec-card--testimonial-page {
  padding: 0;
  overflow: hidden;
}

.rec-card--testimonial-page .rec-card-media {
  margin: 0;
}

.testimonial-image-wrap {
  position: relative;
}

.testimonial-image-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-no-img-placeholder {
  font-size: 0.9rem;
  color: #9588b5;
}

.testimonial-open-text-btn {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.rec-card-media.rec-card-media--pair .testimonial-open-text-btn,
.testimonial-image-wrap.rec-card-media--pair .testimonial-open-text-btn {
  bottom: 8px;
  inset-inline-end: 8px;
}

.testimonial-read-modal .testimonial-read-panel {
  width: min(940px, calc(100vw - 32px));
  max-width: 940px;
  max-height: min(86vh, 720px);
  overflow: hidden;
}

.testimonial-read-layout {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
  min-height: min(54vh, 500px);
}

.testimonial-read-copy {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.testimonial-read-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 8px;
}

.testimonial-read-media {
  min-width: 0;
  margin: 0;
}

.testimonial-read-media-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: min(54vh, 500px);
  aspect-ratio: auto;
  max-height: none;
  background: #f0ecf9;
}

.testimonial-read-media-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-read-media-inner--pair {
  display: flex;
  gap: 8px;
  aspect-ratio: auto;
  max-height: none;
}

.testimonial-read-media-inner--pair img {
  position: relative;
  inset: auto;
  flex: 1;
  width: 0;
  min-height: 100px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.testimonial-read-heading {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #2d1b69;
}

.testimonial-read-meta {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #555;
}

.testimonial-read-body {
  line-height: 1.5;
  font-size: 0.95rem;
  color: #222;
}

.testimonial-read-quote {
  margin: 0;
  white-space: pre-wrap;
}

.testimonial-read-empty {
  margin: 0;
  color: #666;
  font-style: italic;
}

@media (max-width: 680px) {
  .testimonial-read-modal .testimonial-read-panel {
    width: min(94vw, 520px);
    max-height: 90vh;
    overflow-y: auto;
  }

  .testimonial-read-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .testimonial-read-media-inner {
    min-height: 220px;
    max-height: 34vh;
  }

  .testimonial-read-body {
    max-height: none;
    overflow: visible;
  }
}

.rec-card {
  min-width: min(220px, 100%);
  max-width: 100%;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-sizing: border-box;
}

.rec-card-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 420px);
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #f0ecf9;
}

.rec-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.rec-card-media.rec-card-media--pair {
  display: flex;
  gap: 6px;
  aspect-ratio: 16 / 9;
  max-height: min(40vh, 280px);
}

.rec-card-media.rec-card-media--pair img {
  flex: 1;
  min-width: 0;
  object-fit: cover;
}

@media (max-width: 768px) {
  .site-header,
  .site-header-inner,
  .header-nav {
    max-width: 100%;
    width: 100%;
    flex-wrap: wrap;
  }
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: layout/footer.css
 */
  position: relative;
  inset: auto;
  flex: 1;
  width: 0;
  min-height: 120px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.rec-card-img-fail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 0.75rem;
  color: #9588b5;
  background: #f3f0fa;
  border-radius: 8px;
}

.rec-card .rec-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d1b69;
  line-height: 1.35;
}

.rec-card .rec-quote {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

/* ============================= */
/* BEFORE / AFTER */
/* ============================= */
.before-after-slider {
  display: flex;
  gap: 10px;
}

.before-after-slider img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ============================= */
/* VALUES */
/* ============================= */
.values ul {
  padding-right: 20px;
}

.values-image-wrap {
  margin: 12px 0;
  text-align: center;
}

.values-section-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: inline-block;
}

.our-values-editor-overlay .our-values-editor-panel {
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
}

.our-values-editor-hint {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 12px;
}

.our-values-subhead {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.our-values-preview-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.our-values-live-preview {
  font-size: 0.95rem;
}

.our-values-font-filter {
  margin: 0 0 6px;
}

.our-values-font-select {
  margin: 0 0 8px;
}

.our-values-line-row .our-values-font-filter {
  margin-bottom: 6px;
}

.our-values-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}

.our-values-color-input {
  width: 48px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.our-values-image-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.our-values-image-preview {
  border-radius: 8px;
  object-fit: cover;
}

.our-values-image-preview-empty {
  font-size: 0.85rem;
  opacity: 0.75;
}

.our-values-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.our-values-gallery-tile {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.our-values-gallery-tile img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.our-values-repo-empty {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.our-values-repo-hint {
  font-size: 0.82rem;
  opacity: 0.8;
  margin: 8px 0 4px;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: layout/sections.css
 */
}

.our-values-lines-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.our-values-line-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.our-values-line-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.our-values-line-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.our-values-line-move {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.our-values-toolbar {
  margin: 12px 0;
}

.our-values-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ============================= */
/* ROI */
/* ============================= */
.roi-section input {
  width: 100%;
  margin: 6px 0;
  padding: 8px;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.back-to-top {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #1f1f1f;
  text-align: center;
  padding: 12px;
  border-radius: 12px 12px 0 0;
}

.back-to-top a {
  color: white;
  text-decoration: none;
}

/* The editor already owns viewport navigation. Never let the public-site
   back-to-top control cover editable content inside the backoffice shell. */
body:has(#editorSidebarToolsMount) .back-to-top {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  pointer-events: auto;
  overscroll-behavior: contain;
}

.modal-overlay .modal-content {
  pointer-events: auto;
}

.modal-content {
  position: relative;
  z-index: 1000;
}

.step-editor-container {
  margin: 40px auto;
  max-width: 800px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* מסך מלא + מרכוז viewport גם כש־/engines/.../slider_styles.css לא נטען */
.amount-slider-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  direction: ltr;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  pointer-events: none;
  visibility: hidden;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  z-index: var(--z-amount-slider-overlay);
}

.amount-slider-overlay.is-open {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}

/* מיכל טכני: בלי קופסה לבנה מ־.step-editor-container הכללי — המנוע (slider_styles) מרכז את הפאנל */
.amount-slider-overlay .step-editor-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.amount-slider-modal {
  position: relative;
}

.amount-slider-close--float {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 auto;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.amount-slider-step1-shell {
  padding: 56px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.amount-slider-step1-select {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #d4d0e8;
  background: #fff;
  color: #2d2640;
  cursor: pointer;
}

.amount-slider-step1-hide {
  display: none !important;
}

.amount-slider-editor-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.amount-slider-field {
  display: block;
  margin-bottom: 10px;
}

.amount-slider-field span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.amount-slider-field input,
.amount-slider-field textarea {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .amount-slider-field,
  .amount-slider-field input,
  .amount-slider-field textarea {
    max-width: 100%;
    min-width: 0;
  }
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: layout/grids.css
 */
  box-sizing: border-box;
}

.amount-slider-save-wide {
  width: 100%;
  margin-top: 8px;
}

/* Legacy stray step UI — do not hide #amount-slider-overlay (מודאל עריכת שלבים) */
.step-editor,
#stepEditor,
.step-box {
  display: none !important;
}

/* מודאל עריכת שלבים 3–4 (מנוע amount_slider_engine — גשר עורך סטטי) */
#amount-flow-modal.amount-flow-steps34-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-stack-grid-overlay);
  pointer-events: none;
  overscroll-behavior: contain;
  visibility: hidden;
}

#amount-flow-modal.amount-flow-steps34-overlay.is-open,
#amount-flow-modal.amount-flow-steps34-overlay[style*="flex"] {
  pointer-events: auto;
  visibility: visible;
}

@media (max-width: 640px) {
  #amount-flow-modal.amount-flow-steps34-overlay {
    width: 100vw;
    height: 100dvh;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  #amount-flow-modal.amount-flow-steps34-overlay {
    width: 100vw;
    height: 100dvh;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

#amount-flow-modal .amount-flow-steps34-content {
  position: relative;
  background: #fff;
  padding: 20px;
  width: 80%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

#amount-flow-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

#amount-flow-modal #step3-editor .amount-flow-step34-row,
#amount-flow-modal #step4-editor .amount-flow-step34-row {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fafafa;
}

#amount-flow-modal #step3-editor input[type="text"],
#amount-flow-modal #step4-editor input[type="text"],
#amount-flow-modal #step3-editor textarea,
#amount-flow-modal #step4-editor textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

#amount-flow-modal .amount-flow-step34-preview {
  max-width: 100%;
  max-height: 120px;
  margin-top: 4px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

/* מנוע תוכן (#amountEditorModal) — פאנל מידע רחב, לבן וממורכז ב־viewport */
.amount-flow-editor-overlay.cards-editor-overlay {
  z-index: var(--z-stack-grid);
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
  box-sizing: border-box;
}

.amount-flow-editor-panel.cards-editor-panel {
  width: min(1180px, calc(100vw - 32px));
  max-width: min(1180px, calc(100vw - 32px));
  max-height: min(92vh, 900px);
  margin: 0 auto;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  border: 1px solid #e8ecf1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.amount-flow-editor-panel.cards-editor-panel > h3#amountFlowEditorTitle {
  margin: 6px 48px 0 0;
  padding-inline-end: 4px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.amount-flow-editor-panel.cards-editor-panel > .modal-close {
  z-index: 3;
  top: 14px;
  left: 14px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.amount-flow-editor-scroll,
#amountFlowEditorBody.amount-flow-editor-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.amount-flow-editor-actions.ce-item-actions {
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #eceff3;
}

@media (max-width: 640px) {
  .amount-flow-editor-panel.cards-editor-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 20px);
    padding: 20px 16px 16px;
  }

  .amount-flow-editor-panel.cards-editor-panel > h3#amountFlowEditorTitle {
    margin-inline-end: 44px;
    font-size: 1.05rem;
  }
}

/* תמונה ראשית בלבד — overlay מעל עורך זרימת הסכום; ללא גלריה / ללא flowStepsModal */
.amount-flow-main-image-pop {
  z-index: var(--z-stack-animation);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.amount-flow-main-image-pop-panel {
  position: relative;
  width: fit-content;
  max-width: min(400px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}

.amount-flow-main-image-pop-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 14px 14px;
  box-sizing: border-box;
}

.amount-flow-main-image-pop-img.ace-proj-preview {
  margin-top: 0;
}

.amount-flow-main-image-pop-empty {
  margin: 12px 0 4px;
  text-align: center;
}

#amountFlowEditorBody #aceProjPreview0[src]:not([src=""]) {
  cursor: pointer;
}

button.ce-card-tile.ace-mode-tile {
  cursor: pointer;
  font: inherit;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}

button.ce-card-tile.ace-mode-tile:focus-visible {
  outline: 2px solid #5d4b9a;
  outline-offset: 2px;
}

.ce-card-tile.ce-card-tile--active {
  box-shadow: 0 0 0 2px #9b7ed8, 0 6px 20px rgba(93, 75, 154, 0.18);
}

span.ce-tile-head.ace-tile-head--btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.ace-mode-tiles-grid {
  margin-top: 2px;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: layout/spacing.css
 */
}

.ace-mode-tiles-wrap {
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #efe9fb;
}

.ace-amount-flow-lead {
  margin-bottom: 10px;
}

.ace-saved-slides-empty {
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px dashed #d4d0e8;
  border-radius: 10px;
  text-align: center;
  color: #5c5670;
}

.ace-saved-slide-card-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ace-saved-flow-card img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.ace-saved-slide-card-meta code,
.ace-saved-slide-card-target code {
  font-size: 0.78em;
  word-break: break-all;
}

.ace-section-quicknav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

button.ace-scroll-to-section {
  font-size: 0.85em;
}

.ce-tile-hero.ce-tile-hero--img {
  padding: 0;
  overflow: hidden;
  min-height: 72px;
  max-height: 96px;
}

.ce-tile-hero.ce-tile-hero--img img {
  width: 100%;
  height: 100%;
  max-height: 96px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.ace-amount-flow-wizard-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #efe9fb;
}

.ace-flow-wizard-steps {
  margin: 8px 0 0;
  padding-right: 1.25rem;
  line-height: 1.55;
  font-size: 0.92rem;
  color: #4a4458;
}

.ace-flow-wizard-panels {
  margin-top: 4px;
}

.ace-wiz-property-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

button.ace-wiz-property-btn.ace-home-subtab {
  flex: 1 1 140px;
  min-block-size: clamp(44px, 12vw, 48px);
  padding-block: 0.65rem;
  padding-inline: 0.85rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 600;
}

.amount-flow-editor-panel textarea.ace-proj-text-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ace-flow-all-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.ce-card-tile.ace-flow-step-block {
  scroll-margin-top: 16px;
  margin: 0;
}

.ace-flow-step-block .ce-card-tile.ace-home-inner-tile,
.ace-flow-step-block .ce-card-tile.ace-proj-upload-cell {
  box-shadow: none;
}

.ce-card-tile.ace-home-inner-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  margin: 0;
}

.cards-editor-row.ace-amount-flow-form {
  margin-top: 0;
}

.amount-flow-editor-panel .icon-edit-input.field-desc,
.amount-flow-editor-panel #amountFlowEditorBody textarea.icon-edit-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  resize: vertical;
}

#amountFlowEditorBody .field-slide-preview {
  display: block;
  max-width: 100%;
  max-height: min(320px, 42vh);
  margin-top: 6px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

/* תצוגת תמונה ראשית בתוך המודאל הרחב */
#amountFlowEditorBody .ace-proj-preview,
#amountFlowEditorBody img.ace-proj-preview {
  max-width: min(100%, 560px);
  max-height: min(400px, 48vh);
}

.amount-flow-section {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.amount-flow-section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.amount-flow-hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #666;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: components/buttons.css
 */
}

.amount-flow-mode-panel {
  margin-top: 8px;
}

.ace-form-panel {
  margin-top: 0;
  padding-top: 8px;
  border-top: none;
}

.ace-form-panel > h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.ace-form-lead {
  margin-top: 0;
  margin-bottom: 16px;
  color: #64748b;
}

.ace-home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ace-home-split.ace-home-split--tiles {
  grid-template-columns: 1fr;
  max-width: 560px;
}

.ace-home-subpanel--hidden {
  display: none !important;
}

.ace-home-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ace-home-subtab--active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

@media (max-width: 720px) {
  .ace-home-split {
    grid-template-columns: 1fr;
  }
}

.ace-amount-single {
  max-width: 100%;
}

.amount-flow-editor-scroll .icon-edit-field-label {
  display: block;
  margin-top: 10px;
}

.amount-flow-editor-scroll .icon-edit-field-label:first-of-type {
  margin-top: 4px;
}

.ace-amount-step-select {
  margin-bottom: 4px;
}

.ace-amount-step-badge {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.ace-panel--saved .ace-saved-summary {
  margin-top: 4px;
}

.ace-saved-dl {
  margin: 0 0 14px;
  padding: 0;
}

.ace-saved-dl dt {
  margin: 10px 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.ace-saved-dl dd {
  margin: 0;
  padding: 0 0 4px 8px;
  border-inline-start: 3px solid #e8d9ff;
  font-size: 0.92rem;
  color: #0f172a;
}

.ace-saved-muted {
  color: #64748b;
  font-weight: 500;
}

.ace-saved-fieldline {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

.ace-saved-steps-list {
  margin: 0;
  padding: 0 18px 0 0;
  list-style: disc;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ace-saved-proj-preview {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin-top: 6px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

.ace-saved-slider-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ace-saved-slider-cell img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ace-amt-preview {
  display: block;
  max-width: 220px;
  max-height: 140px;
  margin-top: 8px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

.ace-advanced-block {
  margin-top: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}

.ace-advanced-block summary {
  cursor: pointer;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: components/cards.css
 */
  font-weight: 600;
  color: #475569;
  padding: 6px 0;
}

.ace-advanced-hint {
  margin-top: 8px;
}

.ace-path-inline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ace-path-inline label {
  font-size: 0.78rem;
  color: #64748b;
}

.ace-code-hint {
  margin-top: 10px;
  font-size: 0.8rem;
}

.ace-proj-preview-caption,
.ace-slider-list-label,
.ace-slider-preview-label {
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.ace-project-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ace-project-preview-row .ace-proj-preview {
  margin-top: 0;
  width: 100%;
  max-width: none;
  min-height: 100px;
  background: #f8fafc;
}

.ace-proj-upload-cell {
  margin-bottom: 4px;
}

.ace-project-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .ace-project-two-col {
    grid-template-columns: 1fr;
  }
}

.ace-proj-preview {
  display: block;
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  max-height: min(200px, 38vh);
  margin-top: 8px;
  margin-inline: auto;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ace-project-primary {
  max-width: min(400px, 100%);
  margin-inline: auto;
  margin-bottom: 10px;
}

.ace-proj-preview-inline-label {
  margin-top: 10px;
  margin-bottom: 0;
}

.ace-slider-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.ace-slider-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f5;
}

.ace-slider-form-num {
  flex: 0 0 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

.ace-slider-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ace-slider-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ace-slider-carousel-preview {
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.ace-slider-carousel-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  min-height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ace-slider-carousel-slide {
  display: none;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.ace-slider-carousel-slide--active {
  display: flex;
}

.ace-slider-carousel-slide img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.ace-slider-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ace-slider-carousel-count {
  font-size: 0.85rem;
  color: #475569;
}

.ace-slider-carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.ace-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.ace-carousel-dot--active {
  background: #2563eb;
}

.ace-carousel-prev,
.ace-carousel-next {
  min-width: 32px;
}

.ace-slider-add-files {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}

.ace-slider-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.ace-proj-preview {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ace-carousel-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.ace-carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 120px;
  max-width: 100%;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dde3ea;
  background: #fff;
}

.ace-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-examples-lead {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #333;
}

.ace-site-slider-carousel {
  margin-top: 14px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: components/forms.css
 */
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ace-site-slider-carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  scroll-snap-type: x mandatory;
}

.ace-site-slider-carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(200px, 70vw);
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dde3ea;
  background: #fff;
}

.ace-site-slider-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.amount-flow-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .amount-flow-grid-two {
    grid-template-columns: 1fr;
  }
}

.amount-flow-step-block {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafafa;
}

.amount-flow-type-menu {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: none !important;
}

.field-block-heading {
  margin: 0 0 8px;
  font-size: 1rem;
}

.amount-flow-amt-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.amount-flow-amt-row label {
  font-size: 0.78rem;
}

#amountFlowEditorBody input[type="text"],
#amountFlowEditorBody textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  margin-bottom: 8px;
}

.amount-choice-thumb {
  max-height: 28px;
  vertical-align: middle;
  margin-inline-end: 8px;
  border-radius: 4px;
}

.slide-step-visual img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  display: block;
  margin-top: 8px;
}

.modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.appointments-modal-overlay {
  z-index: var(--z-stack-form);
}

.appointments-modal-panel {
  max-width: min(640px, 96vw);
  max-height: 85vh;
  overflow: auto;
}

.appointments-modal-panel h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
}

.appointments-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.appointments-table {
  border-collapse: collapse;
  font-size: 0.88rem;
}

.appointments-table th,
.appointments-table td {
  padding: 8px 10px;
  text-align: start;
  border: 1px solid #ddd;
}

.appointments-table thead th {
  background: #f3eefc;
  font-weight: 700;
}

.icons-registry-panel {
  margin-bottom: 14px;
  padding-bottom: 8px;
}

.icons-modal-divider {
  border: none;
  border-top: 1px solid #e6e0f5;
  margin: 16px 0;
}

.icons-def-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.icons-editor-overlay {
  z-index: var(--z-stack-form-elevated);
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: components/modals.css
 */

.icon-item-editor-overlay {
  z-index: var(--z-stack-modal);
}

.icons-editor-panel {
  max-width: min(920px, 98vw);
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.icon-item-editor-panel {
  max-width: min(520px, 96vw);
  max-height: 92vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

#iconItemEditorModal {
  z-index: 1000001 !important;
}

.icon-item-editor-panel h3 {
  margin: 20px 0 0;
  font-size: 1.1rem;
}

.icons-editor-panel h3 {
  margin: 20px 0 0;
  font-size: 1.1rem;
}

.icons-editor-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.icons-editor-form input[type="text"] {
  flex: 1 1 140px;
  min-width: min(120px, 100%);
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.icon-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#selectIconBtn,
.icon-file-select-btn {
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

#fileName,
.icon-file-name {
  margin-inline-start: 10px;
  font-size: 12px;
  color: #666;
}

.ba-upload-overlay {
  z-index: var(--z-stack-modal-low);
}

.ba-upload-panel {
  box-sizing: border-box;
  /* רוחב מפורש — בלי זה flex על המעטפת נותן לתיבה להימתח לפי תוכן רחב (מאגר תמונות). */
  width: min(980px, 94vw);
  max-width: 100%;
  max-height: min(92vh, 900px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.ba-preview-pair {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 4px 0 6px;
}

.ba-preview-box {
  flex: 1 1 140px;
  min-width: min(120px, 100%);
  max-width: min(48%, 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 8px 10px;
  background: #f8fafc;
  box-sizing: border-box;
}

.ba-preview-box--filled {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.ba-preview-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 6px;
  text-align: center;
}

.ba-preview-label--before {
  color: #0f766e;
}

.ba-preview-label--after {
  color: #7c3aed;
}

.ba-preview-frame {
  position: relative;
  min-height: 100px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ba-preview-box--filled .ba-preview-frame {
  border-style: solid;
  border-color: #e2e8f0;
}

.ba-preview-img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.ba-preview-empty {
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 10px;
  text-align: center;
}

.ba-repo-heading {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.ba-repo-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.ba-repo-gallery {
  display: grid;

#iconItemEditorModal.icon-editor-force-closed {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: components/badges.css
 */
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
  max-height: min(320px, 48vh);
  overflow: auto;
  padding: 2px 1px 6px;
  margin: 0 -2px;
  align-items: start;
}

.ba-repo-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  min-height: 0;
  max-width: 100%;
}

.ba-repo-card--before {
  box-shadow: inset 0 0 0 2px #0d9488;
}

.ba-repo-card--after {
  box-shadow: inset 0 0 0 2px #7c3aed;
}

.ba-repo-card.ba-repo-card--before.ba-repo-card--after {
  box-shadow: inset 0 0 0 2px #0d9488, inset 0 0 0 4px #7c3aed;
}

.ba-repo-thumb-wrap {
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-repo-thumb {
  width: 100%;
  height: 100%;
  max-height: 48px;
  object-fit: cover;
  display: block;
}

.ba-repo-meta {
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  max-width: 100%;
  min-height: 0;
}

.ba-repo-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: stretch;
}

.ba-repo-actions .edit-btn {
  font-size: 0.62rem;
  padding: 3px 4px;
  line-height: 1.15;
  min-height: 0;
  flex: 1 1 calc(33.33% - 2px);
  min-width: 0;
  box-sizing: border-box;
}

.ba-repo-actions .edit-btn.ba-repo-delete {
  background: #dc2626;
  color: #fff;
  border: 1px solid #b91c1c;
}

.ba-repo-actions .edit-btn.ba-repo-delete:hover {
  filter: brightness(0.95);
}

.ba-repo-actions .edit-btn.ba-repo-delete:focus-visible {
  outline: 2px solid #fecaca;
  outline-offset: 1px;
}

.ba-upload-panel h3 {
  margin: 24px 0 0;
  font-size: 1.1rem;
}

.ba-upload-error,
.testimonials-editor-error {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #b00020;
  background: #ffebee;
  border-radius: 8px;
}

.ba-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.before-after-pairs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.before-after-empty {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #f5f2fc;
  border-radius: 12px;
}

.before-after-pair-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e8e0f5;
  background: #faf8ff;
}

.before-after-pair-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.before-after-pair-imgs img {
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
}

.before-after-pair-card p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
}

/* —— לפני/אחרי: קרוסלה באתר —— */
.before-after-carousel {
  margin-top: 8px;
}

.before-after-carousel-viewport {


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: components/overlays.css
 */
  overflow: hidden;
  width: 100%;
  direction: ltr;
  border-radius: 14px;
  touch-action: pan-y pinch-zoom;
  outline: none;
}

.before-after-carousel-track {
  display: flex;
  transition: transform 0.38s ease;
  will-change: transform;
}

.before-after-carousel-slide {
  box-sizing: border-box;
  padding: 0 2px;
}

.before-after-pair-card--carousel {
  margin: 0;
}

.before-after-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 0;
}

.before-after-side-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #5b4a8a;
}

.before-after-side img {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
}

/* —— לפני/אחרי באתר: השוואה חיה (מחיצה נגררת), לא שתי תמונות זו ליד זו —— */
.before-after-live {
  width: 100%;
  margin: 0;
}

.before-after-live-frame {
  position: relative;
  width: 100%;
  max-width: min(100%, 420px);
  margin-inline: auto;
  max-height: min(78vw, 440px);
  min-height: 200px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: clip;
  background: #1a0d33;
  touch-action: none;
  box-sizing: border-box;
}

.before-after-live-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  display: block;
}

.before-after-live-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}

.before-after-live-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-inline-start: -2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  cursor: ew-resize;
  touch-action: none;
  z-index: 4;
}

.before-after-live-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #6c4dc2;
  box-shadow: 0 4px 14px rgba(26, 13, 51, 0.28);
}

.before-after-live-chip {
  position: absolute;
  z-index: 3;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  background: rgba(26, 13, 51, 0.75);
  color: #fff;
  pointer-events: none;
}

.before-after-live-chip--before {
  inset-inline-start: 10px;
}

.before-after-live-chip--after {
  inset-inline-end: 10px;
}

.before-after-slide-caption {
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.45;
  font-size: 0.95rem;
  direction: rtl;
}

.before-after-carousel-nav {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.before-after-carousel-nav-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.before-after-carousel-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 1.35rem;
  line-height: 1;
}

.before-after-carousel-counter {


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/logo.css
 */
  margin: 0;
  min-width: 5.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
}

.before-after-carousel-counter--solo {
  margin-top: 8px;
  color: #666;
}

/* נקודות לפני/אחרי: מחלקות משותפות עם .videos-carousel-dots / .videos-carousel-dot (main.css) */
.before-after-carousel-dots.videos-carousel-dots {
  margin-top: 6px;
}

/* —— מודאל לפני/אחרי: רשימת זוגות —— */
.ba-existing-heading {
  margin: 12px 0 6px;
  font-size: 1rem;
}

.ba-form-subhead {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.ba-existing-hint {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}

.ba-modal-divider {
  border: none;
  border-top: 1px solid #e4dcf5;
  margin: 14px 0;
}

.before-after-existing-list {
  height: min(220px, 35vh);
  min-height: 160px;
  max-height: 220px;
  flex: 0 0 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ba-existing-loading,
.ba-existing-error,
.ba-existing-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
}

.ba-existing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e8e0f5;
  background: #faf8ff;
}

.ba-existing-thumbs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ba-existing-thumbs img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.ba-existing-meta {
  flex: 1 1 140px;
  min-width: 0;
}

.ba-existing-title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}

.ba-existing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.ba-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* מעל #slide-modal (10020) — אחרת סלייד מסך מלא בולע לחיצות ונראה שכפתורי עריכת המלצות «מתים» */
.testimonials-editor-overlay {
  z-index: var(--z-stack-logo);
}

.testimonials-editor-panel {
  width: min(560px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  max-height: min(92dvh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  box-sizing: border-box;
}

.testimonials-editor-panel * {
  box-sizing: border-box;
}

.testimonial-upload-form,
.testimonial-existing-list,
.testimonial-editor-existing-nav,
#existing-images {
  max-width: 100%;
  overflow-x: hidden;
}

.testimonials-editor-panel h3 {
  margin: 24px 0 0;
  font-size: 1.1rem;
}

.testimonials-editor-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.35;
}

.testimonials-editor-subhead {
  margin: 12px 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4a3d7a;
}

.testimonials-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.testimonial-upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 12px;
}

.testimonial-upload-row {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #e8e0f5;
  border-radius: 12px;
  background: #faf8ff;
}

.tu-row-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tu-image-stack {
  display: flex;
  flex-direction: column;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/icons.css
 */
  align-items: stretch;
  gap: 10px;
}

.tu-preview-shell {
  position: relative;
  min-height: 120px;
  max-height: 200px;
  border: 2px dashed #cfc4e8;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.tu-preview-shell--has-image {
  cursor: default;
}

.tu-preview-shell .tu-preview-img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.tu-preview-shell .tu-preview-empty {
  font-size: 0.88rem;
  color: #9588b5;
  padding: 12px;
  text-align: center;
}

.testimonial-upload-form .image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.testimonial-upload-form .image-item {
  position: relative;
}

.testimonial-upload-form .image-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.testimonial-upload-form .delete-btn {
  position: absolute;
  top: 5px;
  left: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tu-image-buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

/*
 * שורת המלצות: input מוסתר ב-clip/1px נחסם בכרום לעיתים (אין דיאלוג קבצים).
 * label עוטף input + שכבה שקופה inset:0 — לחיצה אמיתית על ה-input.
 */
.tu-file-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}

.tu-file-label .tu-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
}

.tu-file-label .tu-file-label-text {
  position: relative;
  z-index: 0;
  pointer-events: none;
  text-align: center;
  width: 100%;
}

.tu-image-buttons .tu-clear-file {
  flex: 1 1 calc(50% - 4px);
  width: auto;
  min-width: 0;
}

.tu-image-buttons .tu-clear-file:disabled {
  opacity: 0.45;
}

.tu-title-under-img {
  margin-top: 2px;
}

.tu-meta-below {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #e8e0f5;
}

.tu-row-inner .icon-edit-input {
  width: 100%;
  box-sizing: border-box;
}

.tu-row-inner .icon-edit-field-label,
.tu-row-inner span.icon-edit-field-label {
  margin-top: 4px;
}

.testimonial-existing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(42vh, 320px);
  min-height: 72px;
  flex-shrink: 0;
  overflow: auto;
  padding: 4px 0;
}

.testimonials-existing-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #777;
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/testimonials.css
 */

.testimonial-editor-existing-nav {
  display: none !important;
}

.testimonial-existing-list--editor-cards,
.testimonial-editor-cards-mount {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 48px;
}

.testimonial-existing-list--editor-single {
  min-height: 92px;
}

.testimonial-editor-active-mount {
  min-height: 92px;
}

.testimonial-existing-item--editing {
  border-color: #8b6fd6;
  box-shadow: 0 0 0 2px rgba(139, 111, 214, 0.2);
}

.testimonials-editor-form-mode {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5c4a9e;
}

.testimonials-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.testimonial-text-input {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  font-family: inherit;
}

.testimonials-editor-subhead--optional {
  margin-top: 12px;
  font-size: 0.92rem;
  color: #666;
}

.testimonials-editor-subhead--inline {
  cursor: pointer;
  font-size: 0.88rem;
  margin: 8px 0;
}

.testimonial-asset-gallery-details {
  margin: 8px 0 0;
}

.te-no-thumb--text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5c4a9e;
}

.testimonial-editor-empty-add-btn {
  margin-top: 10px;
}

.testimonial-existing-item .te-read {
  flex-shrink: 0;
}

.testimonials-existing-empty-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.35;
}

.testimonial-existing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e8e0f5;
  border-radius: 10px;
  background: #fff;
}

.te-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.te-thumb-pair {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.te-thumb.te-thumb--pair {
  width: 36px;
  height: 72px;
}

.te-no-thumb {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
  background: #f3f0fa;
  border-radius: 8px;
  flex-shrink: 0;
  text-align: center;
  padding: 4px;
}

.te-meta {
  flex: 1;
  min-width: 0;
}

.te-meta .te-title-line {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5c4a9e;
  margin-bottom: 4px;
  line-height: 1.25;
}

.te-meta strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.te-text-preview {
  margin: 0;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.3;
}

.testimonial-existing-item .te-delete,
.testimonial-existing-item .te-card-actions .te-delete {
  width: auto;
  min-width: 3.5rem;
  flex-shrink: 0;
  color: #a12828;
  border-color: #e8b4b4;
  background: #fff5f5;
}

.te-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.testimonial-editor-list-toolbar {
  margin: 0 0 10px;
}

.testimonial-probe-cleanup-btn {
  font-size: 0.82rem;
  opacity: 0.92;
}

.testimonials-editor-error--success {
  color: #1f6b3a;
  background: #eef8f1;
  border-color: #b8dfc6;
}

.testimonials-empty {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #f5f2fc;
  border-radius: 12px;
}

.rec-testimonial-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.rec-testimonial-photos img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

.rec-name {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.rec-role {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #666;
}

.videos-subtitle {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.videos-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.videos-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: auto auto;
  gap: 12px 10px;
  align-items: stretch;
  direction: ltr;
}

.videos-carousel-viewport {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
}

.videos-carousel-viewport .video-card {
  direction: rtl;
}

.videos-carousel-btn {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dcd4ee;
  background: #faf8ff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  color: #4a2fa8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.videos-carousel-btn:hover:not(:disabled) {
  background: #f0eaff;
  border-color: #c4b4e8;
}

/* קרוסלת המלצות בדף: כרטיס יחיד + מונה ונקודות בשורות נפרדות */
.testimonials-track--single-page {
  display: block;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 2px 0 8px;
}

.testimonials-page-active-mount {
  width: 100%;
  min-height: 1px;
}

.testimonials-page-active-mount .rec-card {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-carousel-shell--cards.videos-carousel:has(.videos-carousel-dots) {
  grid-template-rows: auto auto auto;
}

.testimonials-carousel-shell--cards .testimonials-page-index-label {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c4a9e;
  margin: 4px 0 0;
  direction: rtl;
}

.testimonials-carousel-shell--cards:has(.videos-carousel-dots) .videos-carousel-dots {
  grid-row: 3;
}

/* מונה בלבד (מעל 12): שורה שנייה */
.testimonials-carousel-shell--cards:not(:has(.videos-carousel-dots)) .videos-carousel-counter {
  grid-row: 2;
}



/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/video.css
 */
.videos-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.videos-carousel-btn--prev {
  grid-column: 1;
}

.videos-carousel-btn--next {
  grid-column: 3;
}

.videos-carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  direction: rtl;
}

.videos-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d4c8ee;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.videos-carousel-dot.is-active {
  background: #6b46c1;
  transform: scale(1.2);
}

.videos-carousel-counter {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  direction: rtl;
}

.videos-empty {
  margin: 0;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #f5f2fc;
  border-radius: 12px;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e0f5;
  background: #faf8ff;
  padding: 12px;
}

.video-card-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 420px);
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #0f0f0f;
}

.video-card-media .video-card-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

.video-card-player {
  width: 100%;
  max-height: 320px;
  border-radius: 10px;
  background: #000;
}

.video-card-embed-wrap {
  position: relative;
  width: min(100%, calc(min(220px, 42vh) * 16 / 9));
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-card-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-media .video-card-youtube-host {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: auto;
}

.video-card-youtube-host .video-card-embed-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.video-youtube-escape-strip {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  background: rgba(22, 18, 32, 0.92);
  color: #e8e2f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-youtube-escape-link {
  font-weight: 700;
  color: #c9b6ff;
  text-decoration: underline;
  white-space: nowrap;
}

.video-youtube-escape-hint {
  max-width: 100%;
  opacity: 0.92;
}

.video-link-preview-inner .video-youtube-escape-strip {
  background: rgba(40, 36, 52, 0.95);
  color: #ece6ff;
}

.video-youtube-embed-blocked {
  padding: 14px 12px;
  text-align: center;
  max-width: 100%;
}

.video-youtube-embed-blocked-msg {
  margin: 0 0 10px;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/contact.css
 */
  font-size: 0.95rem;
  line-height: 1.45;
  color: #eae6f7;
}

.video-card-media .video-youtube-embed-blocked-msg {
  color: #333;
}

.video-card-youtube-native-fallback {
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
}

.video-card-link-fallback {
  padding: 16px;
  text-align: center;
  background: #f0ecf9;
  border-radius: 10px;
  border: 1px dashed #c4b6e0;
}

.video-card-external-link {
  font-weight: 600;
  color: #4a2fa8;
  text-decoration: underline;
}

.video-link-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}

.video-link-section {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #e0d8f0;
  background: #faf8ff;
  pointer-events: auto;
}

.video-link-section--inactive {
  opacity: 0.72;
  background: #f5f3fa;
  pointer-events: auto;
}

.video-link-preview {
  margin-top: 10px;
}

.video-link-preview[hidden] {
  display: none !important;
}

.video-link-preview-inner {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dcd4ee;
  background: #000;
}

.video-link-preview-inner .video-card-link-fallback {
  margin: 0;
}

.video-link-preview-inner .video-youtube-embed-blocked-msg,
.video-link-preview-inner .video-card-youtube-native-fallback .video-youtube-embed-blocked-msg {
  color: #f0ecf8;
}

.video-link-preview-inner .video-card-youtube-native-fallback {
  padding: 16px;
  background: #1a1a1a;
}

.video-link-preview-msg {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.video-link-preview-msg--err {
  color: #9a1530;
}

.video-link-preview-msg--ok {
  color: #1a6b3a;
}

.video-source-badge {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 999px;
  background: #e8e0f5;
  color: #5a3d99;
}

.video-card-title {
  margin: 10px 0 4px;
  font-size: 0.95rem;
}

.video-card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.4;
}

.video-editor-overlay {
  z-index: var(--z-stack-contact);
}

.contact-editor-overlay {
  z-index: var(--z-stack-contact-overlay);
}

.contact-editor-panel {
  max-width: min(440px, 96vw);
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.contact-editor-panel h3 {
  margin: 24px 0 0;
  font-size: 1.1rem;
}

.contact-editor-panel .contact-comm-block-title {
  margin: 12px 0 0;
  font-weight: 600;
}

/* Appointment section surface contract (editor + live preview). */
#meetingSection.aileen-meeting {
  box-sizing: border-box;
  width: min(100%, 560px);
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #e4dcf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 35, 80, 0.08);
  color: #2c2350;
}

#meetingSection.aileen-meeting h3 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.2rem;
}

#meetingSection.aileen-meeting .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#meetingSection .aileen-meeting__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#meetingSection .aileen-meeting__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cec4e8;
  border-radius: 10px;
  background: #fff;
  color: #2c2350;
  font: inherit;
  text-align: start;
}

#meetingSection .aileen-meeting__input:focus {
  outline: 2px solid #8b73d6;
  outline-offset: 1px;
  border-color: #8b73d6;
}

#meetingSection .aileen-meeting__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  text-align: center;
}

#meetingSection .aileen-meeting__submit {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
}

body[data-site-version="mobile"] #meetingSection .aileen-meeting__fields,
body[data-editor-viewport="mobile"] #meetingSection .aileen-meeting__fields {
  grid-template-columns: minmax(0, 1fr);
}

.contact-comm-fields-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact-comm-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e4daf7;
  border-radius: 12px;
  background: linear-gradient(165deg, #fdfbff 0%, #f8f4ff 100%);
}

.contact-comm-row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/before_after.css
 */
  align-items: center;
}

.contact-comm-row-top {
  display: flex;
  justify-content: flex-end;
}

.contact-comm-row-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contact-comm-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e4daf7;
  flex-shrink: 0;
}

.contact-comm-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-comm-upload-btn,
.contact-comm-clear-img-btn {
  font-size: 0.82rem;
  padding: 6px 10px;
}

.contact-comm-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 8px;
}

.contact-comm-delete:hover {
  background: rgba(93, 75, 154, 0.08);
}

.contact-comm-add-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.contact-item--empty {
  color: #888;
  margin: 0;
}

.contact-item--with-img {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-item-inline-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e4daf7;
  flex-shrink: 0;
}

.cards-editor-overlay {
  z-index: var(--z-stack-form-elevated);
}

.card-item-editor-overlay {
  z-index: var(--z-stack-modal);
}

.cards-editor-panel {
  max-width: min(920px, 98vw);
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.card-item-editor-panel {
  max-width: min(520px, 96vw);
  max-height: 92vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.card-item-editor-panel h3 {
  margin: 20px 0 0;
  font-size: 1.1rem;
}

.cards-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.ce-card-tile {
  border: 1px solid #e4daf7;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(165deg, #fdfbff 0%, #f6f1ff 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  box-shadow: 0 2px 10px rgba(93, 75, 154, 0.06);
}

.ce-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ce-tile-order {
  font-size: 0.75rem;
  color: #7a6b9a;
  font-weight: 700;
}

.ce-tile-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.ce-tile-on {
  background: #e8f8ef;
  color: #1e7a45;
}

.ce-tile-off {
  background: #f0f0f0;
  color: #666;
}

.ce-tile-hero {
  width: 100%;
  min-block-size: 100px;
  max-block-size: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef0f4;
  display: flex;
  align-items: center;
  justify-content: center;


/*
 * Card item editor — separate card-size vs image-size control surfaces.
 */
.card-item-editor-panel .ce-fieldset--hero {
  margin-bottom: 1rem;
}

.card-item-editor-panel .csc-image-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid #dccff5;
  border-radius: 12px;
  background: var(--ce-popup-background, #faf8ff);
}

.card-item-editor-panel .csc-image-panel > legend {
  font-weight: 700;
  color: var(--ce-heading-primary, #5b4b9a);
}

.card-item-editor-panel #ceCardSizeControlMount {
  margin-top: 1rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid #b8daf5;
  border-radius: 12px;
  background: var(--ce-card-background, #f4faff);
}

.card-item-editor-panel #ceCardSizeControlMount .csc-card-panel,
.card-item-editor-panel #ceCardSizeControlMount fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.card-item-editor-panel .csc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.card-item-editor-panel .csc-actions .edit-btn {
  flex: 1 1 auto;
  min-width: 8rem;
  max-width: 14rem;
}

.card-item-editor-panel .ce-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ece6ff;
}

.card-item-editor-panel .ce-item-actions .edit-btn {
  max-width: 12rem;
}

.editor-preview-frame-inner .budget-selector,
#main .budget-selector {
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
}

.editor-preview-frame-inner .budget-selector .main-btn,
#main .budget-selector .main-btn {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.aileen-suspended-button {
  display: inline-block;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/calculator.css
 */
  margin-bottom: 8px;
}

.ce-tile-hero-img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.ce-tile-hero--empty {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9aa3b2;
}

.ce-tile-hero.ce-tile-hero--emoji {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 500;
}

.ce-tile-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #2d2640;
}

.ce-tile-links {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #4a3d6a;
}

.ce-tile-k {
  color: #8b7cb5;
  font-weight: 600;
}

.ce-tile-v {
  color: #2a2440;
}

.ce-tile-muted {
  color: #999;
}

.ce-tile-preview {
  margin: 0;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.35;
  min-height: 2.6em;
}

.ce-tile-img-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.ce-tile-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0d8f0;
}

.ce-tile-img-yes {
  font-size: 0.75rem;
  color: #1e7a45;
  font-weight: 700;
}

.ce-tile-img-no {
  font-size: 0.75rem;
  color: #999;
}

.ce-tile-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: auto;
  width: 100%;
}

.ce-tile-actions .edit-btn {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.ce-tile-edit {
  flex: 0 0 auto;
  min-width: 0;
}

.ce-tile-move {
  min-width: 0;
  padding-inline: 6px;
}

.ce-tile-remove {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 0.88rem;
  background: #fff5f5;
  border-color: #e8b4c4;
  color: #9b1c3c;
}

.ce-tile-remove:hover:not(:disabled) {
  background: #ffe8ec;
  border-color: #d48a9e;
  color: #7a152f;
}

.cards-editor-empty {
  margin: 8px 0;
  color: #666;
}

.ce-fieldset {
  border: 1px solid #e8dff5;
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 0;
}

.ce-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #4a3d7a;
}

.ce-field-hint {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.ce-text-preview {
  font-size: 0.78rem;
  color: #444;
  background: #faf8ff;
  border: 1px solid #ece6fa;
  border-radius: 8px;
  padding: 8px;
  margin: 4px 0 10px;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
  line-height: 1.35;
}

.ce-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 88px;
  line-height: 1.4;
}

.ce-tile-badge.ce-tile-device-mobile {
  background: #e8f0ff;
  color: #1e4a8a;
}

.ce-tile-badge.ce-tile-device-desktop {
  background: #f3e8ff;
  color: #5b21b6;
}

.ce-tile-badge.ce-tile-device-unknown {
  background: #f5f5f4;
  color: #57534e;
}

.ce-tile-mode-line {
  margin: 2px 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.icon-item-editor-mode-status,
.icon-edit-mode-status {
  margin: 0 0 10px;
  font-weight: 600;
  color: #334155;
}

.icon-device-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.icon-device-badge--mobile {
  background: #e8f0ff;
  color: #1e4a8a;
}

.icon-device-badge--desktop {
  background: #f3e8ff;
  color: #5b21b6;
}

.icon-device-badge--unknown {
  background: #f5f5f4;
  color: #57534e;
}

.icon-mode-line {
  margin: 2px 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.icon-card-internal-mode {
  margin: 8px 0 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.icon-card-edit-btn--mobile {
  font-weight: 700;
}

.icon-card-edit-btn--desktop {
  font-weight: 700;
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/amount_slider.css
 */
  min-height: 120px;
  border: 1px dashed #cfc3e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8ff;
  margin-bottom: 8px;
  position: relative;
}

.ce-image-empty {
  color: #998fb8;
  font-size: 0.88rem;
}

.ce-image-preview-img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.ce-image-preview-box--hero {
  min-height: 160px;
  padding: 0;
  overflow: hidden;
}

.ce-image-preview-box--hero .ce-image-preview-img {
  width: 100%;
  max-height: none;
  min-height: 160px;
  max-height: 240px;
  object-fit: cover;
  border-radius: 0;
}

.ce-fieldset--hero {
  margin-bottom: 4px;
}

.ce-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ce-advanced {
  margin-top: 4px;
  font-size: 0.88rem;
}

.ce-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #5b4b9a;
}

.ce-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.ce-live-preview-wrap {
  margin-top: 8px;
}

.ce-subhead {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #4a3d7a;
}

.ce-live-preview {
  border: 1px solid #e2daf5;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.ce-live-preview-inner {
  text-align: center;
}

.ce-live-preview-inner--hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 10px;
}

.ce-lp-hero {
  width: 100%;
  min-height: 120px;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.ce-lp-hero--empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f4;
  color: #8b92a0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
}

.ce-lp-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #2d2640;
}

.ce-live-preview-inner--hero .ce-lp-title {
  padding: 8px 10px 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.ce-live-preview-inner--hero .ce-lp-body {
  padding: 4px 10px 10px;
}

.ce-lp-body {
  font-size: 0.8rem;
  color: #555;
  text-align: right;
  direction: rtl;
  white-space: pre-wrap;
  line-height: 1.35;
}

.ce-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-item-editor-panel .icon-edit-field-label {
  margin-top: 6px;
}

.card-item-editor-panel .icon-edit-input {
  width: 100%;
  box-sizing: border-box;
}

.cards-editor-panel h3 {
  margin: 24px 0 0;
  font-size: 1.1rem;
}

.cards-editor-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.45;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/network_connection.css
 */
}

.cards-editor-subhead {
  margin: 16px 0 4px;
  font-size: 0.95rem;
  color: #444;
}

.cards-editor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.cards-editor-row {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}

.cards-editor-row .row-key {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #333;
}

.cards-editor-row label {
  display: block;
  font-size: 0.82rem;
  margin-top: 8px;
  color: #444;
}

.cards-editor-row input,
.cards-editor-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.cards-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cards-editor-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.video-editor-panel {
  width: min(900px, 96vw);
  max-width: 900px;
  height: min(88vh, 900px);
  max-height: 90vh;
  overflow: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.video-editor-panel h3 {
  margin: 24px 0 0;
  font-size: 1.1rem;
}

.video-editor-subhead {
  margin: 12px 0 4px;
  font-size: 0.95rem;
  color: #444;
}

.video-existing-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  min-height: min(32vh, 280px);
  max-height: min(52vh, 520px);
  overflow: auto;
  padding: 4px 6px;
  scrollbar-gutter: stable;
}

@media (max-width: 620px) {
  .video-editor-panel {
    width: 96vw;
    height: 92vh;
  }

  .video-existing-list {
    grid-template-columns: minmax(0, 1fr);
    min-height: 220px;
    max-height: 46vh;
  }
}

.video-existing-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8e0f5;
  border-radius: 10px;
  background: #faf8ff;
}

.video-existing-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.video-existing-preview iframe,
.video-existing-preview video,
.video-existing-preview .video-card-embed-wrap,
.video-existing-preview .video-card-player {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
}

.video-existing-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 160px;
  min-width: 0;
}

.video-existing-url {
  font-size: 0.72rem;
  color: #777;
  word-break: break-all;
}

.video-delete-btn {
  flex-shrink: 0;
}

.icons-editor-body {
  margin-top: 12px;
}

.icons-browser-hint {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #555;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.icons-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  background: #f5f2fc;
  border-radius: 10px;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  background: #faf8ff;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.icon-tile:hover,
.icon-tile:focus-visible {
  border-color: #6c4fd3;
  box-shadow: 0 4px 12px rgba(108, 79, 211, 0.15);
  outline: none;
}

.icon-tile-img-wrap {
  display: flex;


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/text.css
 */
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
}

.icon-tile-img-wrap img {
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.icon-tile-name {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #333;
  word-break: break-word;
  max-width: 100%;
}

.icon-edit-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8e0f5;
}

.icon-edit-back {
  align-self: flex-start;
}

.icon-edit-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.icon-edit-preview-wrap {
  align-self: center;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e0f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.icon-edit-preview-wrap img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.icon-edit-field-label {
  font-size: 0.8rem;
  color: #555;
}

.icon-edit-input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}

.icon-item-editor-panel .icon-edit-pos-fieldset {
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 0.85rem 0 0.35rem;
}

.icon-item-editor-panel .icon-edit-pos-fieldset .icons-browser-hint {
  margin-top: 0.25rem;
}

.icon-item-editor-panel .icon-edit-pos-legend {
  padding: 0 6px;
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
}

.icon-item-editor-panel .icon-edit-pos-axes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 6px;
}

.icon-item-editor-panel .icon-edit-pos-axis {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #faf8fc;
  border: 1px solid #ece6f2;
}

.icon-item-editor-panel .icon-edit-pos-main-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
}

.icon-item-editor-panel .icon-edit-pos-sub {
  font-weight: 500;
  color: #666;
  font-size: 0.8rem;
}

.icon-item-editor-panel .icon-edit-pos-num-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.icon-item-editor-panel .icon-edit-pos-num {
  flex: 1;
  min-width: 0;
  max-width: 11rem;
  font-variant-numeric: tabular-nums;
}

.icon-item-editor-panel .icon-edit-pos-unit {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

.icon-item-editor-panel .icon-edit-pos-slider-caption {
  font-size: 0.72rem;
  color: #777;
  margin: 2px 0 0;
  font-weight: 500;
}

.icon-item-editor-panel .icon-edit-pos-range {
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
}

.icon-item-editor-panel .icon-edit-range {
  width: 100%;
  max-width: 100%;
}

#iconDefPosReset {
  margin-top: 4px;
  margin-bottom: 0;
}

/* —— בחר סכום + סלייד 3 שלבים + מודל סלייד —— */
/* .hidden alone loses to #id — must hide when .hidden or initial state is broken / modal won’t close */
#slide-modal.hidden {
  display: none !important;
  pointer-events: none;
}



/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: engines/site_hierarchy.css
 */
#slide-modal {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  direction: ltr;
  z-index: var(--z-stack-hierarchy);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 640px) {
  #slide-modal {
    max-width: 100vw;
    min-height: 100dvh;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  #slide-modal {
    max-width: 100vw;
    min-height: 100dvh;
    overflow-y: auto;
  }
}

/* תצוגת סלייד במסגרת טלפון אנכי — יחס רוחב:גובה 9:16 (גובה = רוחב × 16/9) */
#slide-modal .modal-content {
  box-sizing: border-box;
  direction: rtl;
  width: min(360px, calc(100vw - 32px), calc((min(100dvh, 900px) - 48px) * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: min(calc(100dvh - 48px), 900px);
  max-width: calc(100vw - 32px);
  margin: 0;
  margin-inline: auto;
  flex-shrink: 0;
  background: var(--ce-popup-background, var(--popup-background, #0f172a));
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

/* מיקום לפי כפתור בחירת הסכום (#open-selector — הטקסט מה־API כמו «הקלד סכום») */
#slide-modal.slide-modal--anchored .modal-content {
  position: fixed;
  left: var(--slide-modal-anchor-left, 50%);
  top: var(--slide-modal-anchor-top, 50%);
  transform: translate(-50%, -50%);
  margin: 0;
  margin-inline: 0;
}

@media (max-width: 640px) {
  #slide-modal.slide-modal--anchored .modal-content {
    left: 50%;
    top: 50%;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
}

@media (max-width: 640px) {
  #slide-modal.slide-modal--anchored .modal-content {
    left: 50%;
    top: 50%;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
}

#slide-modal .modal-content > #slide-frame {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-height: min(62dvh, 520px);
}

#slide-modal .modal-content > #slide-modal-topic-host {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

#slide-modal #slide-frame {
  border: none;
  display: block;
  background: var(--ce-popup-background, var(--popup-background, #0f172a));
  overflow: hidden;
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  height: min(62dvh, 520px);
  max-height: min(62dvh, 520px);
  min-height: 180px;
}

/* מעל התוכן — לא תופס שורה בפלקס (יותר גובה לתצוגת סלייד) */
#slide-modal #close-modal {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  z-index: var(--z-stack-animation);
  flex: none;
  margin: 0;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* תצוגת גלריה בתוך #slide-modal — אותם מחלקות כמו בגלריית המנוע (mountBeforeAfterCompare) */
#slide-modal #slide-modal-topic-host {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ce-popup-background, var(--popup-background, #0f172a));
  box-sizing: border-box;
}

#slide-modal #slide-modal-topic-host .gc-root {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  direction: rtl;
  text-align: start;
  box-sizing: border-box;
}

/* סדר כמו גלריה: תמונה למעלה, מתחתיה כותרת + עיגולי דפדוף, ואז כפתורים */
#slide-modal #slide-modal-topic-host .gc-meta {
  order: 2;
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

#slide-modal #slide-modal-topic-host .gc-title-display {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.25em;
  text-align: center;
}

#slide-modal #slide-modal-topic-host .gc-dots {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px 8px 8px;
  min-height: 32px;
  box-sizing: border-box;
}

#slide-modal #slide-modal-topic-host .gc-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#slide-modal #slide-modal-topic-host .gc-dot:hover {
  background: #94a3b8;
}

#slide-modal #slide-modal-topic-host .gc-dot--active {
  background: #2563eb;
  transform: scale(1.22);
  box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(37, 99, 235, 0.45);
}

#slide-modal #slide-modal-topic-host .gc-frame {
  order: 1;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

#slide-modal #slide-modal-topic-host .gc-slide {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
}

/* שלב 3 — iframe ישיר ב־#slide-frame (ללא topic-host): בלי מסגרת 9:16 מלאה */
#slide-modal .modal-content:has(> #slide-frame[src*=".html"]) {
  aspect-ratio: unset;
  height: auto;
  width: min(400px, calc(100vw - 32px));
  max-height: min(calc(100dvh - 32px), 720px);
}

.mobile-viewport-shell > #slide-modal .modal-content:has(> #slide-frame[src*=".html"]),
.app-layout > .mobile-viewport-shell > #slide-modal .modal-content:has(> #slide-frame[src*=".html"]) {
  aspect-ratio: unset;
  height: auto;
  width: min(360px, calc(100vw - 24px));
  max-height: min(calc(100dvh - 28px), calc(100% - 28px), 720px);
}

/* סלייד יחיד (שלב 3 — תצוגה ציבורית/עורך): בלי מסגרת 9:16 מלאה וריקת מילוי סביב ה-iframe */
#slide-modal .modal-content:has(#slide-modal-topic-host.ace-flow-slide-modal-gallery--single) {
  aspect-ratio: unset;
  height: auto;
  width: min(400px, calc(100vw - 32px));
  max-height: min(calc(100dvh - 32px), 900px);
}

.mobile-viewport-shell > #slide-modal .modal-content:has(#slide-modal-topic-host.ace-flow-slide-modal-gallery--single),
.app-layout > .mobile-viewport-shell > #slide-modal .modal-content:has(#slide-modal-topic-host.ace-flow-slide-modal-gallery--single) {
  aspect-ratio: unset;
  height: auto;
  width: min(360px, calc(100vw - 24px));
  max-height: min(calc(100dvh - 28px), calc(100% - 28px), 900px);
}

#slide-modal #slide-modal-topic-host.ace-flow-slide-modal-gallery--single,
#slide-modal #slide-modal-topic-host.ace-flow-slide-modal-gallery--single .gc-root {
  flex: 0 1 auto;
}

#slide-modal #slide-modal-topic-host.ace-flow-slide-modal-gallery--single .gc-frame {
  flex: 0 1 auto;
  max-height: min(68dvh, 600px);
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: utilities/helpers.css
 */

/* מילוי מסגרת הטלפון — בלי «חלונית לבנה» סביב תוכן ה־iframe */
#slide-modal #slide-modal-topic-host .gc-root {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

#slide-modal #slide-modal-topic-host iframe.gc-slide--iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f172a;
  display: block;
}

#slide-modal #slide-modal-topic-host.ace-flow-slide-modal-gallery--single iframe.gc-slide--iframe {
  flex: 0 1 auto;
  height: min(62dvh, 520px);
  max-height: min(62dvh, 520px);
  min-height: 180px;
}

#slide-modal #slide-modal-topic-host .ba-nav {
  order: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

#slide-modal #slide-modal-topic-host .gc-title-field-wrap {
  order: 4;
}

#slide-modal #slide-modal-topic-host .ba-nav-btn {
  flex: 1 1 auto;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#slide-modal #slide-modal-topic-host .ba-nav-btn:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

#slide-modal #slide-modal-topic-host .ba-nav-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

#slide-modal #slide-modal-topic-host .ba-nav-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.flow-steps-modal-overlay {
  z-index: var(--z-stack-modal);
  align-items: flex-start;
  padding-top: 24px;
  overflow-y: auto;
}

.flow-steps-modal-panel.modal {
  max-width: min(920px, 96vw);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  width: 100%;
  margin: 0 12px 24px;
  text-align: right;
}

.flow-steps-modal-title {
  margin: 0 0 12px;
  padding: 0 36px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
}

#flowStepsModal #slider.slider {
  margin-top: 0;
  max-width: min(360px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.step3-images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, min(160px, 100%)));
  gap: 8px;
  align-items: center;
  justify-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(340px, 100%);
  margin: 0 auto;
  padding: 4px 0 8px;
  box-sizing: border-box;
}

.step3-images-gallery img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(32vh, 220px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}

/* תצוגת popup לשלב 3 — תמונה ראשית יחידה */
.step3-images-gallery--single {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: min(280px, 100%);
  min-height: 0;
}

.step3-images-gallery--single img {
  max-width: 100%;
  max-height: min(38vh, 260px);
  width: auto;
  height: auto;
}

.step3-images-gallery--empty {
  min-height: 0;
  padding: 0;
}

#slider.slider {
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e8d9ff;
  box-shadow: 0 8px 24px rgba(168, 130, 230, 0.12);
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
  background: #faf7ff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e8d9ff;
  min-height: 140px;
}

.slide h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.slide p {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.9rem;
}

.slider-tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b6fd6;
  margin-bottom: 6px;
}

.slider-open-slide {
  margin-top: 4px;
}



/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: utilities/visibility.css
 */
.slide-step-examples .slider-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.slide-step-examples .slider-example-grid--single {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.slider-example-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #e8d9ff;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  min-height: 120px;
}

.slider-example-card:focus {
  outline: 2px solid #8b6fd6;
  outline-offset: 2px;
}

.slider-example-card img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.slider-example-ph {
  width: 100%;
  min-height: 100px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0e8ff 0%, #e8e0f8 100%);
  border: 2px dashed #c4b5e0;
}

.slider-example-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a3d6b;
}

.slider-final-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .slide-step-examples .slider-example-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   אתר מובייל + עורך: אותו DOM/CSS כמו aileen_site (מעטפת + app-layout--live).
   נטען תמיד מ־gui — גם כשהעורך לא טוען את shared/css/main.css.
   ============================================================================= */

/* עורך: עמודת התצוגה החיה לצד הסרגל — עטיפת preview קשיחה במידות טלפון */
.app-layout > .preview-stage {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  min-height: 100%;
  box-sizing: border-box;
}

.preview-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
}

.phone-preview-shell {
  width: min(390px, 100%);
  min-width: 0;
  max-width: 100%;
  height: min(844px, 100vh);
  min-height: 0;
  max-height: 100vh;
  margin: 0 auto;
  position: relative;
  transform: scale(1);
  transform-origin: top center;
  box-sizing: border-box;
}

.phone-preview-frame {
  width: min(390px, 100%);
  min-width: 0;
  max-width: 100%;
  height: min(844px, 100vh);
  min-height: 0;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid rgba(91, 75, 154, 0.16);
  box-shadow: 0 18px 42px rgba(31, 24, 63, 0.2);
  background: #fff;
}

.phone-preview-frame > .mobile-viewport-shell,
.phone-preview-frame .mobile-viewport-shell {
  width: min(390px, 100%) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: min(844px, 100vh) !important;
  min-height: 0 !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.phone-preview-frame .app-layout,
.phone-preview-frame .app-layout--live,
.phone-preview-frame main,
.phone-preview-frame section {
  width: min(390px, 100%) !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.phone-preview-frame .app-layout.app-layout--live {
  height: 844px !important;
  min-height: 844px !important;
  max-height: 844px !important;
  margin: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body[data-editor-mode="true"] .phone-preview-frame .mobile-viewport-shell {
  direction: ltr;
  margin: 0 !important;
}

/* ---- Mobile live: strong contrast, no wash overlay ---- */
body[data-site-version="mobile"] {
  color: #1a0d33;
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100%;
  box-sizing: border-box;
}

body[data-site-version="mobile"] .site-header,
body[data-site-version="mobile"] .site-header .logo {
  color: #4a2fa8;
}

body[data-site-version="mobile"] .icon {
  color: #1a0d33;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-site-version="mobile"] .info-card h3 {
  color: #2d1b69;
}

body[data-site-version="mobile"] .info-card p,
body[data-site-version="mobile"] .contact-card .contact-lead {
  color: #241838;
}

body[data-site-version="mobile"] .contact-item,
body[data-site-version="mobile"] .contact-card h3 {
  color: #1c1530;
}

body[data-site-version="mobile"] .app-layout--live .hero-media img {
  opacity: 1;
  filter: none;
  box-shadow: 0 8px 28px rgba(45, 27, 105, 0.18);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-site-version="mobile"] #live-boot-fallback {
  display: none !important;
}

body[data-site-version="mobile"] .mobile-viewport-shell {
  direction: rtl;
  display: block;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  overflow-x: clip;
  contain: layout style;
}

body[data-site-version="mobile"] .app-layout.app-layout--live {
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-inline: clamp(14px, 4vw, 22px);
  padding-block: 8px 28px;
  box-sizing: border-box;
  gap: 0;
}

/* ילד ישיר של body — מרכוז עמודה (נתיב ישן בלי מעטפת) */
body[data-site-version="mobile"] > .app-layout.app-layout--live {
  display: flex !important;
  width: min(calc(100vw - 24px), 440px) !important;
  max-width: 440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* גם כשהמעטפת בתוך .app-layout של העורך — ילד ישיר של המעטפת */
body[data-site-version="mobile"] .mobile-viewport-shell > .app-layout.app-layout--live {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* -------------------------------------------------------------------------
   מודאלים ילדים של .mobile-viewport-shell — ממוקמים מעל עמודת התצוגה בלבד,
   לא כ־position:fixed על כל viewport הדפדפן (בלי «חלון נפרד» על כל המסך).
   ------------------------------------------------------------------------- */
.mobile-viewport-shell > #slide-modal,
.app-layout > .mobile-viewport-shell > #slide-modal {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
}

/* כשהמודאל פתוח: מסך מלא כדי שמסגרת הטלפון (9:16) תיחשב מול viewport — לא מול עמודת פריוויו צרה */
.mobile-viewport-shell > #slide-modal:not(.hidden),
.app-layout > .mobile-viewport-shell > #slide-modal:not(.hidden) {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: var(--z-visibility-utility);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  direction: ltr;
  box-sizing: border-box;
}

.mobile-viewport-shell > #slide-modal .modal-content,
.app-layout > .mobile-viewport-shell > #slide-modal .modal-content {
  /* כמו ב־#slide-modal הגלובלי: מגבלת גובה מבוססת dvh — לא min(100%) על רוחב המעטפת (שגרם לרוחב ~220px). */
  width: min(360px, calc(100% - 32px), calc((min(100dvh, 900px) - 48px) * 9 / 16));
  max-height: min(calc(100dvh - 48px), calc(100% - 48px), 900px);
  max-width: calc(100% - 32px);
  margin-inline: auto;
  flex-shrink: 0;
}

.mobile-viewport-shell > #amount-slider-overlay,
.app-layout > .mobile-viewport-shell > #amount-slider-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
}

/* עורך בחירת סכום: כשפתוח — מלא viewport (לא רק עמודת התצוגה הצרה), כדי שפאנל העריכה יהיה רחב וממורכז */
.mobile-viewport-shell > #amount-slider-overlay.amount-slider-overlay.is-open,
.app-layout > .mobile-viewport-shell > #amount-slider-overlay.amount-slider-overlay.is-open {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: var(--z-visibility-utility);
}


/*
 * Migrated shard from legacy gui/styles/main.css (preserve concatenation order).
 * Path: utilities/responsive.css
 */

body[data-site-version="mobile"] .main-content {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body[data-site-version="mobile"] .main-content > #header,
body[data-site-version="mobile"] .main-content > #main {
  width: 100%;
  max-width: 100%;
}

body[data-site-version="mobile"] #main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

#editor-root #mainContent #main,
body[data-editor-mode="true"] #mainContent #main {
  gap: 0;
}

.page-shell + #icons-bar-section,
.page-shell + [data-aileen-site-block="section_icons"] {
  margin-top: 0;
}

body[data-site-version="mobile"] .site-header {
  width: 100%;
  margin-inline: auto;
}

body[data-site-version="mobile"] .page-shell {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

body[data-site-version="mobile"] .mobile-live-hero-title,
body[data-site-version="mobile"] .mobile-live-lead {
  text-align: center;
}

body[data-site-version="mobile"] .hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

body[data-site-version="mobile"] .hero-media img {
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-site-version="mobile"] .category-wrapper,
body[data-site-version="mobile"] .category-buttons {
  width: 100%;
  max-width: 100%;
  margin-inline: auto !important;
  margin-right: 0 !important;
  justify-content: center !important;
}

body[data-site-version="mobile"].amount-mode .category-wrapper,
body[data-site-version="mobile"].amount-mode .category-buttons {
  justify-content: center !important;
  margin-right: 0 !important;
  margin-inline: auto !important;
}

body[data-site-version="mobile"] .category-buttons .icon-grid {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: flex-start;
  height: auto;
  min-height: 0;
}

body[data-site-version="mobile"] .icon-grid .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  gap: 10px;
  height: auto;
  min-height: 0;
}

body[data-site-version="mobile"] .icon {
  flex: 0 1 auto;
  --icon-mark-size: 3.65rem;
  min-width: 6.5rem;
  max-width: 10.5rem;
  box-sizing: border-box;
}

body[data-site-version="mobile"] .icon .aleen-live-icon-mark {
  width: 6.25rem;
  height: 6.25rem;
}

body[data-site-version="mobile"] .icon.icon--custom-size .aleen-live-icon-mark {
  width: var(--icon-custom-size, auto);
  height: var(--icon-custom-size, auto);
  min-width: 0;
  min-height: 0;
}

body[data-site-version="mobile"] .icon .aleen-live-icon-mark .aleen-live-icon-emoji {
  line-height: 1.05;
}

body[data-site-version="mobile"] .container,
body[data-site-version="mobile"] .budget-section,
body[data-site-version="mobile"] .budget-selector {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

body[data-site-version="mobile"] .text-sections {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

body[data-site-version="mobile"] .info-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  text-align: right;
}

body[data-site-version="mobile"] .cards {
  width: 100%;
  max-width: min(100%, 380px);
  margin-inline: auto;
  justify-items: stretch;
}

body[data-site-version="mobile"] #contactSection,
body[data-site-version="mobile"] .contact-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  text-align: right;
}

body[data-site-version="mobile"] .cta-btn {
  margin-inline: auto;
  max-width: 22rem;
}

/* מסגרת iframe לעורכי מנוע (וואטסאפ / צבעים) — כרום ניטרלי; ללא צבעי אתר על המסגרת */
.engine-iframe-host-overlay .engine-iframe-host-panel {
  width: min(1120px, calc(100vw - 24px));
  max-width: min(1180px, calc(100vw - 24px));
  max-height: 82vh;
  margin: 12px;
  padding: 12px 12px 16px;
  background: #ffffff;
  border: 1px solid #d8def0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.engine-iframe-host-frame {
  flex: 1;
  min-height: min(58vh, 560px);
  max-height: min(78vh, 860px);
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 8px;
  background: #f8fafc;
}

.engine-iframe-host-title {
  margin: 0 40px 0 0;
  font-size: 1.1rem;
}


/* Production / static publish theme bridge (extend as needed). */
:root {
  --publish-surface: #ffffff;
}


/*
 * Mobile live viewport + engine iframe host (legacy tail of gui/styles/main.css).
 * NOTE: The same rules also appear in-order inside the migrated shards; this file
 * exists so bundles can optionally include an explicit "live mode" slice later.
 * Current main bundle relies on shard ordering for a byte-identical migration.
 */
:root {
  /* reserved: live mode hook */
}


/* Public live + parity: minimal anchors in gui_main (editor + aileen resolved bundle). */
/* Root gui/styles/public_live_anchors.css is a deprecated stub; canonical content lives here. */

body[data-site-version="mobile"] {
  direction: rtl;
}

body[data-static-live="1"] {
  direction: rtl;
}

.hero {
  position: relative;
}

.section {
  position: relative;
}

.card {
  position: relative;
}

.amount-slider {
  position: relative;
}

/* Visitor/score parity: canonical class tokens (layout-neutral; theme lives in shards). */
.amount-slider-panel {
  position: relative;
}

.amount-slider-option {
  position: relative;
}

.amount-slider-card {
  position: relative;
}

.amount-result {
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.amount-images {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.amount-modal {
  position: relative;
}

/* Parity contract names (modal shell is ``#slide-modal``; classes alias for tests + diagnostics). */
.amount-modal-close {
  position: relative;
}

.amount-result .amount-images img,
.amount-modal-image,
.amount-slider-slide {
  display: block;
  position: relative;
  object-fit: contain;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* תוצאת סכום בתוך מודאל הסלייד — תמונות פרויקט ברזולוציה גבוהה לא מפרקות את מסגרת הטלפון */
#slide-modal .modal-content > .amount-result {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0 10px 12px;
  box-sizing: border-box;
}

#modals {
  position: relative;
  z-index: 900;
  pointer-events: none;
}

.aileen-icons-host {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 1px;
}

.aileen-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  flex: 0 0 auto;
}

.aileen-icon-img {
  display: block;
  width: var(--aileen-icon-size, 42px);
  height: var(--aileen-icon-size, 42px);
  object-fit: contain;
  flex-shrink: 0;
}

.aileen-icon-label {
  display: block;
  max-width: 100%;
  text-align: center;
}

/* Static visitor amount overlay (injected shell — editor-parity card grid, no engine file inputs). */
.amount-slider-overlay--visitor .amount-slider-modal--visitor {
  max-width: min(420px, calc(100vw - 24px));
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 8px 14px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  margin: auto;
  direction: rtl;
  box-sizing: border-box;
}

.amount-visitor-overlay-title {
  margin: 4px 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  color: #2d2640;
}

.amount-visitor-overlay-lead {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}

.amount-visitor-amount-wrap {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e8dff5;
}

#amount-slider-visitor-root .cards-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.amount-visitor-type-tile,
.amount-visitor-amount-tile {
  cursor: pointer;
  border: none;
  font: inherit;
  text-align: center;
}

.amount-visitor-type-icon {
  display: block;
  font-size: 2.35rem;
  line-height: 1.1;
  margin: 6px 0 4px;
  user-select: none;
}

.amount-visitor-type-tile .amount-visitor-tile-label {
  margin-top: 0;
}

.ce-tile-hero--empty {
  min-height: 100px;
  background: linear-gradient(165deg, #eef0f4 0%, #e4e8f0 100%);
}

.amount-visitor-tile-label {
  display: block;
  font-weight: 650;
  margin-top: 8px;
  font-size: 1rem;
  color: #2d2640;
}

/* CONTACT SECTION SURFACE LAW
   Contact details must never inherit dark visible-surface theme unless its text
   is also inverted. Current contract: contact section stays light in editor and public.
*/

#contact,
#contactSection,
[data-aileen-site-block="section_contact"],
.contact,
.contact-section,
.contact-details,
.contact-info,
.contact-block,
section[id*="contact"],
section[class*="contact"],
[data-section="contact"],
[data-section-id="contact"],
[data-section-key="contact"] {
  background: var(--ce-popup-background, var(--popup-background, #ffffff)) !important;
  background-color: var(--ce-popup-background, var(--popup-background, #ffffff)) !important;
  color: var(--ce-text-primary, #1f1f2e) !important;
}

#contact *,
#contactSection *,
[data-aileen-site-block="section_contact"] *,
.contact *,
.contact-section *,
.contact-details *,
.contact-info *,
.contact-block *,
section[id*="contact"] *,
section[class*="contact"] *,
[data-section="contact"] *,
[data-section-id="contact"] *,
[data-section-key="contact"] * {
  color: var(--ce-text-primary, #1f1f2e) !important;
  background-color: transparent !important;
}

#contact a,
#contactSection a,
[data-aileen-site-block="section_contact"] a,
.contact a,
.contact-section a,
.contact-details a,
.contact-info a,
.contact-block a,
section[id*="contact"] a,
section[class*="contact"] a,
[data-section="contact"] a,
[data-section-id="contact"] a,
[data-section-key="contact"] a {
  color: var(--ce-link-primary, #4f2dbd) !important;
  text-decoration-color: var(--ce-link-primary, #4f2dbd) !important;
}

#contact a.cta-btn,
#contactSection a.cta-btn,
[data-aileen-site-block="section_contact"] a.cta-btn {
  background: var(--ce-button-primary, #6f45c8) !important;
  background-color: var(--ce-button-primary, #6f45c8) !important;
  color: var(--ce-popup-background, var(--popup-background, #ffffff)) !important;
  border-color: var(--ce-button-primary, #6f45c8) !important;
  text-decoration-color: var(--ce-popup-background, var(--popup-background, #ffffff)) !important;
}

#contact button,
#contact .btn,
#contact a.button,
#contactSection button,
#contactSection .btn,
#contactSection a.button,
[data-aileen-site-block="section_contact"] button,
[data-aileen-site-block="section_contact"] .btn,
[data-aileen-site-block="section_contact"] a.button,
.contact button,
.contact .btn,
.contact a.button,
.contact-section button,
.contact-section .btn,
.contact-section a.button,
.contact-details button,
.contact-details .btn,
.contact-details a.button,
.contact-info button,
.contact-info .btn,
.contact-info a.button,
.contact-block button,
.contact-block .btn,
.contact-block a.button,
section[id*="contact"] button,
section[id*="contact"] .btn,
section[id*="contact"] a.button,
section[class*="contact"] button,
section[class*="contact"] .btn,
section[class*="contact"] a.button,
[data-section="contact"] button,
[data-section="contact"] .btn,
[data-section="contact"] a.button,
[data-section-id="contact"] button,
[data-section-id="contact"] .btn,
[data-section-id="contact"] a.button,
[data-section-key="contact"] button,
[data-section-key="contact"] .btn,
[data-section-key="contact"] a.button {
  background: var(--ce-button-primary, #6f45c8) !important;
  background-color: var(--ce-button-primary, #6f45c8) !important;
  color: var(--ce-popup-background, var(--popup-background, #ffffff)) !important;
  border-color: var(--ce-button-primary, #6f45c8) !important;
}

.ba-sequential-picker-prompt {
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 14px;
  background: #f5f3ff;
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.14);
  text-align: center;
}

.ba-sequential-picker-prompt h4,
.ba-sequential-picker-prompt p {
  margin: 0 0 10px;
}

/* Phone reader: crop portrait testimonial media so the text remains primary. */
@media (max-width: 640px) {
  .testimonial-read-modal .testimonial-read-panel {
    width: min(calc(100% - 24px), 420px) !important;
    max-height: calc(100dvh - 24px) !important;
  }

  .testimonial-read-modal .testimonial-read-media {
    width: min(100%, 220px) !important;
    margin: 0 auto 12px !important;
  }

  .testimonial-read-modal .testimonial-read-media-inner {
    width: 100% !important;
    max-width: 220px !important;
    height: min(31vh, 240px) !important;
    max-height: min(31vh, 240px) !important;
    margin-inline: auto !important;
  }

  .testimonial-read-modal .testimonial-read-media-inner img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
  }
}

/* The editor's mobile canvas is often inspected from a wide desktop browser.
   Use the explicit viewport contract as well as the physical media query so
   the reader keeps phone-sized media in that preview too. */
body[data-editor-viewport="mobile"] .testimonial-read-modal .testimonial-read-panel {
  width: min(calc(100% - 24px), 420px) !important;
  max-height: calc(100dvh - 24px) !important;
}
body[data-editor-viewport="mobile"] .testimonial-read-modal .testimonial-read-media {
  width: min(100%, 220px) !important;
  height: min(31vh, 240px) !important;
  min-height: 0 !important;
  max-height: min(31vh, 240px) !important;
  overflow: hidden !important;
  margin: 0 auto 12px !important;
}
body[data-editor-viewport="mobile"] .testimonial-read-modal .testimonial-read-media-inner {
  width: 100% !important;
  max-width: 220px !important;
  height: min(31vh, 240px) !important;
  min-height: 0 !important;
  max-height: min(31vh, 240px) !important;
  margin-inline: auto !important;
}
body[data-editor-viewport="mobile"] .testimonial-read-modal .testimonial-read-media-inner img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}

body[data-editor-viewport="mobile"] .testimonial-read-modal .testimonial-read-panel {
  overflow-y: auto !important;
}
body[data-editor-viewport="mobile"] .testimonial-read-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 0 !important;
  gap: 12px !important;
}
body[data-editor-viewport="mobile"] .testimonial-read-copy { min-width: 0 !important; }
body[data-editor-viewport="mobile"] .testimonial-read-body {
  max-height: none !important;
  overflow: visible !important;
}

