:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --line: #d6dfeb;
  --text: #12233b;
  --muted: #5f718f;
  --accent: #1363ff;
  --accent-soft: #e8f0ff;
  --danger: #cf2f3b;
  --shadow: 0 20px 50px rgba(16, 39, 70, 0.12);
  --primary: #1363ff;
  --secondary: #f22f8f;
  --tertiary: #f7a242;
  --neutral: #12233b;
  --font-base: "Manrope", system-ui, sans-serif;
  --font-heading: "Sora", sans-serif;
  --heading-weight: 700;
  --text-body: clamp(1rem, 0.98rem + 0.2vw, 1.125rem);
  --text-h1: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --text-h2: clamp(2rem, 1.7rem + 1.2vw, 3.25rem);
  --text-h3: clamp(1.5rem, 1.35rem + 0.7vw, 2.25rem);
  --text-h4: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --lh-body: 1.6;
  --lh-heading: 1.1;
  --button-radius: 22px;
  --button-fill-bg: var(--secondary);
  --button-fill-color: #ffffff;
  --button-fill-border: transparent;
  --button-fill-shadow: none;
  --button-ghost-bg: #ffffff;
  --button-ghost-color: var(--secondary);
  --button-ghost-border: 2px solid var(--secondary);
  --button-ghost-shadow: none;
  --field-radius: 16px;
  --field-bg: #ffffff;
  --field-color: #9fa3b7;
  --field-border: 2px solid #1d2258;
  --field-shadow: none;
  --field-border-mode: full;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #dfe9ff 0, transparent 28%),
    radial-gradient(circle at 95% 6%, #e3fbf3 0, transparent 22%),
    var(--bg);
}

.topbar {
  height: 70px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left-controls {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #1c2e47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon-btn:hover:not(:disabled) {
  border: none;
  background: rgba(28, 46, 71, 0.06);
}

.topbar-icon-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.topbar-icon-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-status {
  min-width: 110px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dbe4f1;
  background: #fff;
  color: #607089;
  font: 600 0.75rem/1 var(--font-base);
  text-align: center;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.save-status[data-tone="saving"] {
  color: #375a88;
  border-color: #c9ddff;
  background: #eef5ff;
}

.save-status[data-tone="saved"] {
  color: #1b6b4a;
  border-color: #c7ead9;
  background: #eefbf4;
}

.save-status[data-tone="local"] {
  color: #7a5a12;
  border-color: #eedda7;
  background: #fff9e8;
}

.save-status[data-tone="error"] {
  color: #b13a44;
  border-color: #f2c4ca;
  background: #fff1f3;
}

.viewport-toggle {
  justify-self: center;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #dbe4f1;
  background: #fff;
}

.viewport-toggle button {
  width: 46px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #1c2e47;
}

.viewport-toggle button.active {
  background: #eef2f8;
}

.viewport-toggle button svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

button {
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: 600 0.85rem var(--font-base);
  color: var(--text);
  background: #fff;
}

button:hover {
  border-color: #9eb9e2;
}

button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

button.ghost {
  background: #f7faff;
}

button.ghost[aria-pressed="true"] {
  background: #dfeaff;
  border-color: #7ea6eb;
  color: #184a9c;
}

.preview-switch-button {
  min-width: 150px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: #dbe4f1;
  background: #f8fbff;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.preview-switch-button:hover {
  border-color: #b8cae7;
  background: #f3f8ff;
}

.preview-switch-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.preview-switch-title {
  font: 700 0.82rem/1 var(--font-base);
  letter-spacing: 0.01em;
}

.preview-switch-state {
  font: 600 0.69rem/1 var(--font-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7d98;
}

.preview-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d7dfec;
  transition: background 0.18s ease;
}

.preview-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 20, 38, 0.25);
  transition: transform 0.18s ease;
}

.preview-switch-button[aria-pressed="true"] {
  background: #edf4ff;
  border-color: #8caee8;
  color: #184a9c;
  box-shadow: 0 0 0 1px rgba(19, 99, 255, 0.08);
}

.preview-switch-button[aria-pressed="true"] .preview-switch-state {
  color: #2d63bf;
}

.preview-switch-button[aria-pressed="true"] .preview-switch-track {
  background: #1363ff;
}

.preview-switch-button[aria-pressed="true"] .preview-switch-knob {
  transform: translateX(20px);
}

.canvas-engine-switch-button[aria-pressed="true"] {
  background: #fff6e8;
  border-color: #e8be71;
  color: #935d05;
  box-shadow: 0 0 0 1px rgba(199, 138, 18, 0.08);
}

.canvas-engine-switch-button[aria-pressed="true"] .preview-switch-state {
  color: #a66b08;
}

.canvas-engine-switch-button[aria-pressed="true"] .preview-switch-track {
  background: #d08a14;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 70px);
  height: calc(100vh - 70px);
  overflow: hidden;
}

.layout.sidebar-collapsed {
  grid-template-columns: 1fr;
}

.layout.sidebar-collapsed .right-panel {
  display: none;
}

.layout.sidebar-collapsed .canvas-wrap {
  grid-column: 1;
}

body.preview .left-panel,
body.preview .right-panel {
  display: none;
}

body.preview .layout {
  grid-template-columns: 1fr;
}

body.preview .canvas-wrap {
  padding: 0;
}

body.preview .canvas {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.preview .add-section-anchor,
body.preview .page-add-tail,
body.preview .section-settings-panel,
body.preview .section-padding-handle,
body.preview .section-padding-guide,
body.preview .row-child-move-handle,
body.preview .row-child-resize-handle,
body.preview .added-text-resize-handle,
body.preview .button-top-space-overlay,
body.preview .button-top-space-handle,
body.preview .button-top-space-ui,
body.preview .image-inset-handle,
body.preview .page-empty-add,
body.preview .stack-gap-overlay,
body.preview .stack-gap-handle,
body.preview .stack-gap-ui {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.preview .add-block-anchor,
body.preview .add-block-menu,
body.preview .section-toolbar {
  display: none !important;
}

body.preview .web-section.focused::after {
  display: none;
}

body.preview .block-type-chip {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.preview [data-link-mode],
body.preview .added-image-link,
body.preview [data-preview-page-label] {
  cursor: pointer;
}

body.preview .added-block-wrap.text-block-selected > .added-block,
body.preview .added-block-wrap[data-added-selectable="text"]:hover > .added-block,
body.preview .row-child-wrap.text-block-selected,
body.preview .row-child-wrap[data-row-child-selectable="true"]:hover,
body.preview .row-child-wrap.text-block-selected > .row-child-content,
body.preview .row-child-wrap[data-row-child-selectable="true"]:hover > .row-child-content,
body.preview .row-child-wrap.row-resizing-target,
body.preview .web-section.focused .row-block,
body.preview .web-section.focused .container-block,
body.preview .web-section.focused .stack-block,
body.preview .web-section.focused .card-block {
  outline: none;
  background: transparent;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.preview .row-child-wrap.row-resizing-target::after {
  display: none;
}

.panel {
  background: var(--surface);
  padding: 18px;
  border-right: 1px solid var(--line);
}

.right-panel {
  border-left: none;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.sidebar-menu-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  padding-right: 2px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.panel-title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.site-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-title-row h2 {
  margin: 0;
}

.site-domain-label {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 0.73rem var(--font-base);
  color: var(--muted);
}

.site-switcher-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border: none;
  background: transparent;
}

.site-switcher-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.panel-title-menu {
  position: relative;
  z-index: 3;
}

.panel-title-menu .page-actions-menu {
  top: calc(100% + 4px);
  z-index: 20;
}

.site-switcher-menu {
  min-width: 240px;
  max-height: 260px;
  overflow: auto;
}

.site-switcher-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
}

.site-switcher-row + .site-switcher-row {
  margin-top: 4px;
}

.site-switcher-item {
  display: grid;
  gap: 2px;
  align-items: start;
  width: 100%;
  text-align: left;
}

.site-switcher-item strong {
  font: 700 0.9rem var(--font-base);
  color: var(--text);
}

.site-switcher-item span {
  font: 500 0.73rem var(--font-base);
  color: var(--muted);
}

.site-switcher-item.active {
  background: #eef4ff;
  border-color: #c6d7fb;
}

.site-switcher-delete {
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #9aa3b2;
  display: grid;
  place-items: center;
}

.site-switcher-delete svg {
  width: 16px;
  height: 16px;
}

.site-switcher-delete:hover {
  background: #fff1f2;
  border-color: #ffd1d5;
  color: #d12a44;
}

.site-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.site-menu:empty {
  display: none;
}

.pages-inline-panel {
  margin-top: 10px;
  min-height: 0;
}

.pages-inline-head {
  margin: 0 0 10px;
}

.site-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 700;
}

.site-menu-item.active {
  border-color: var(--primary);
  background: #ecf3ff;
}

.site-menu-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.site-menu-item-configuration {
  margin-top: auto;
}

.configuration-list {
  display: grid;
  gap: 8px;
}

.configuration-item {
  width: 100%;
  text-align: left;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
  font-weight: 700;
}

.configuration-item:hover {
  background: #f5f8ff;
}

.ui-blocks-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ui-block-item {
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.ui-block-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ui-block-item-head span {
  color: #6f7f97;
  font-size: 0.83rem;
}

.ui-block-item-actions {
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
}

.sidebar-view {
  display: none;
  margin-top: 8px;
}

.sidebar-view.active {
  display: block;
}

.modules-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.modules-list {
  display: grid;
  gap: 10px;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 600;
  position: relative;
}

.ui-block-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ui-block-row-copy strong {
  font: 700 0.92rem var(--font-base);
  color: #17253a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-block-row-copy small {
  color: #7a879b;
  font: 600 0.74rem var(--font-base);
  text-transform: capitalize;
}

.module-row-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.module-more-btn {
  width: 30px;
  height: 30px;
  padding: 4px;
  font-size: 1.05rem;
}

.module-switch {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-block;
}

.module-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.module-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7dfec;
  transition: background 0.18s ease;
}

.module-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 20, 38, 0.25);
  transition: transform 0.18s ease;
}

.module-switch input:checked + .module-switch-slider {
  background: #1363ff;
}

.module-switch input:checked + .module-switch-slider::after {
  transform: translateX(20px);
}

.pages-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 18px;
  transform: translateX(-106%);
  transition: transform 220ms ease;
  z-index: 40;
  overflow: auto;
}

.pages-overlay.open {
  transform: translateX(0);
}

#designOverlay {
  z-index: 41;
  position: absolute;
  inset: 0;
  overflow-x: hidden;
}

.design-home {
  display: grid;
  gap: 14px;
}

.design-subpanel {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 26px 28px 32px;
  overflow: auto;
  transform: translateX(106%);
  transition: transform 220ms ease;
  z-index: 42;
  visibility: hidden;
  pointer-events: none;
}

.design-subpanel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.design-tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "templates"
    "colors"
    "fonts"
    "buttons"
    "forms";
  gap: 10px;
}

.design-tile {
  width: 100%;
  min-width: 0;
  min-height: 98px;
  border-radius: 16px;
  border: 1px solid #dde6f2;
  background: #f7f9fc;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tile-colors {
  grid-area: colors;
}

.tile-templates {
  grid-area: templates;
}

.tile-fonts {
  grid-area: fonts;
}

.tile-buttons {
  grid-area: buttons;
}

.tile-forms {
  grid-area: forms;
}

.design-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 8px;
}

.design-font-preview {
  border: 1px solid #e1e8f2;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.design-font-preview strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.design-font-preview span {
  font-family: var(--font-base);
  font-size: 0.95rem;
}

.design-color-dots {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  padding: 6px;
}

.design-color-dots span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  margin-left: -6px;
  border: 2px solid #fff;
}

.design-color-dots span:first-child {
  margin-left: 0;
}

.design-templates-preview {
  border: 1px solid #e1e8f2;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  height: 48px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.template-preview-screen {
  display: block;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f5f6fa, #e8edf7);
  border: 1px solid #dfe8f6;
}

.template-preview-bar {
  display: block;
  width: 62%;
  height: 6px;
  border-radius: 999px;
  background: #cad8ee;
}

.dot-primary {
  background: var(--primary);
}

.dot-secondary {
  background: var(--secondary);
}

.dot-tertiary {
  background: var(--tertiary);
}

.dot-bg {
  background: var(--bg);
}

.design-palette-grid,
.design-palette-library {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#designButtonsView {
  overflow-x: hidden;
  overflow-y: auto;
}

#designFormsView {
  overflow-x: hidden;
  overflow-y: auto;
}

#designButtonsView h5,
#designFormsView h5 {
  margin: 18px 0 10px;
  font: 700 0.92rem var(--font-base);
  color: #1e2430;
}

#designButtonsView .button-shape-grid,
#designButtonsView .button-style-grid,
#designFormsView .button-shape-grid,
#designFormsView .button-style-grid {
  grid-template-columns: 1fr;
}

.palette-card {
  border: 1px solid #dbe5f2;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.palette-card .palette-preview {
  display: inline-flex;
}

.palette-card .palette-preview span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  margin-left: -5px;
  border: 2px solid #fff;
}

.palette-card .palette-preview span:first-child {
  margin-left: 0;
}

.palette-card strong {
  font: var(--heading-weight) 0.84rem var(--font-heading);
}

.theme-menu-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #dde6f2;
  border-radius: 14px;
}

.theme-aa {
  font: var(--heading-weight) 2.1rem var(--font-heading);
  line-height: 1;
  color: var(--neutral);
}

.theme-button-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--button-radius);
  padding: 0 14px;
  font: 700 1rem var(--font-base);
  color: var(--button-fill-color);
  background: var(--button-fill-bg);
  border: var(--button-fill-border);
  box-shadow: var(--button-fill-shadow);
  white-space: nowrap;
}

.theme-swatches {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

.theme-swatches span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-left: -7px;
  border: 2px solid #fff;
}

.theme-swatches span:first-child {
  margin-left: 0;
}

.theme-swatches .s-neutral {
  background: var(--neutral);
}

.theme-swatches .s-primary {
  background: var(--primary);
}

.theme-swatches .s-bg {
  background: var(--bg);
}

.theme-card {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: left;
}

.theme-card.active {
  box-shadow: none;
}

.theme-card.active .theme-menu-preview {
  border-color: var(--neutral);
  box-shadow: inset 0 0 0 1px var(--neutral);
}

.theme-card-name {
  display: none;
}

.design-buttons-preview {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 44px;
  border-radius: var(--button-radius);
  font: 700 1.9rem var(--font-base);
  color: var(--button-fill-color);
  background: var(--button-fill-bg);
  border: var(--button-fill-border);
  box-shadow: var(--button-fill-shadow);
}

.design-forms-preview {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: var(--field-border);
  border-radius: var(--field-radius);
  padding: 0 10px;
  font: 500 1rem/1 var(--font-base);
  color: var(--field-color);
  background: var(--field-bg);
  box-shadow: var(--field-shadow);
}

.button-shape-grid,
.button-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.button-option-card {
  width: 100%;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  text-align: left;
}

.button-option-card.active {
  border-color: var(--neutral);
  box-shadow: inset 0 0 0 1px var(--neutral);
}

.preview-btn-shape,
.preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 14px;
  font: 700 1rem/1 var(--font-base);
}

.preview-btn-shape {
  background: var(--secondary);
  color: #fff;
}

.preview-btn-row {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-btn.primary {
  background: var(--button-fill-bg);
  color: var(--button-fill-color);
  border: var(--button-fill-border);
  box-shadow: var(--button-fill-shadow);
}

.preview-btn.secondary {
  background: var(--button-ghost-bg);
  color: var(--button-ghost-color);
  border: var(--button-ghost-border);
  box-shadow: var(--button-ghost-shadow);
}

.preview-field {
  width: 100%;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  background: var(--field-bg);
  color: var(--field-color);
  border: var(--field-border);
  box-shadow: var(--field-shadow);
  border-radius: var(--field-radius);
  font: 500 2rem var(--font-base);
}

.preview-field.underline {
  border: 0;
  border-bottom: 3px solid #1d2258;
  border-radius: 0;
}

.preview-field.framed {
  border: 3px solid #1d2258;
}

.design-colors-view h4,
.design-colors-view h5 {
  margin: 8px 0 10px;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
}

.design-color-roles {
  display: grid;
  gap: 8px;
}

.color-role-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.color-role-btn .swatch {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #d3dcea;
}

.design-colors-view label {
  display: block;
  margin: 8px 0 6px;
  font-weight: 700;
}

.font-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.font-panel-title {
  margin: 0 0 26px !important;
  font-size: clamp(1.7rem, 2.55vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.design-select {
  width: 100%;
  border: 1px solid #d8e3f0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  font: 600 0.98rem var(--font-base);
}

.font-panel-select {
  font-size: 1.22rem;
}

.font-panel-select-base,
.font-panel-select-heading {
  font-size: clamp(1.28rem, 1.4vw, 1.55rem);
}

.font-panel-select-weight {
  font-size: clamp(1.12rem, 1.25vw, 1.35rem);
}

.font-picker {
  position: relative;
  width: 100%;
}

.font-picker-native {
  display: none !important;
}

.font-picker-trigger {
  width: 100%;
  min-height: 52px;
  padding: 10px 40px 10px 14px;
  border: 1px solid #d8e3f0;
  border-radius: 14px;
  background: #fff;
  color: #151b25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(8, 26, 51, 0.02);
}

.font-picker-trigger-sm {
  min-height: 52px;
}

.font-picker-value {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-picker-value-sm {
  font-size: 0.98rem;
}

.font-picker-chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.75px solid #151b25;
  border-bottom: 1.75px solid #151b25;
  transform: rotate(45deg) translateY(-2px);
}

.font-picker.open .font-picker-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.font-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 55;
  max-height: 300px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d8e3f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(8, 26, 51, 0.12);
}

.font-picker-group {
  padding: 8px 10px 6px;
  color: #677a94;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.font-picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #151b25;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}

.font-picker-option:hover,
.font-picker-option.active {
  background: #f4f7fb;
}

.font-panel-save-btn {
  min-width: 96px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.fonts-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  align-items: start;
}

.font-scale-panel {
  margin-top: 16px;
}

.font-scale-panel h5 {
  margin: 0 0 10px;
  font: 700 0.92rem var(--font-base);
  color: #1e2430;
}

.font-scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.font-scale-field label {
  margin: 0 0 5px;
}

.font-scale-select {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  font: 600 0.92rem var(--font-base);
}

.font-pairings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.font-pairing-card {
  border: 1px solid #d8e3f0;
  border-radius: 14px;
  background: #fff;
  padding: 11px;
  text-align: left;
}

.font-pairing-card.active {
  border-color: var(--neutral);
  box-shadow: inset 0 0 0 1px var(--neutral);
}

.font-pairing-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.pages-back-btn {
  border: none;
  background: transparent;
  padding: 2px 0;
  border-radius: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.pages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}

.pages-head h3 {
  margin: 0;
  font: var(--heading-weight) 2rem var(--font-heading);
  letter-spacing: -0.02em;
}

.pages-add-btn {
  border-radius: 18px;
  padding: 9px 18px;
  background: #eceff4;
  border: 1px solid #e2e7ee;
  font-size: 1.05rem;
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.extension-title-display {
  display: inline-flex;
  align-items: center;
  width: 100%;
  cursor: default;
  padding: 10px 8px;
  color: inherit;
  font: 700 0.92rem var(--font-base);
  line-height: 1.2;
}

.extension-title-display .page-list-main,
.extension-title-display .page-list-main > span {
  font-size: inherit;
  line-height: inherit;
}

.page-list-heading {
  margin: 14px 0 4px;
  padding: 0 8px;
  color: var(--muted);
  font: 700 0.82rem var(--font-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-block-category-heading {
  margin: 14px 0 4px;
  padding: 0 8px;
  color: var(--muted);
  font: 700 0.82rem var(--font-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
}

.page-list-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-list-switch {
  transform: scale(0.9);
  transform-origin: center;
}

.page-list-row.active {
  border-color: #c9d9ef;
  background: #f2f7ff;
}

.page-title-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 10px 8px;
  color: inherit;
  font: 700 0.92rem var(--font-base);
  line-height: 1.2;
}

.page-title-btn:hover {
  background: #f8fbff;
}

.page-list-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.page-list-home {
  width: 18px;
  height: 18px;
  color: #1a2d48;
}

.page-more-btn {
  border: none;
  background: transparent;
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #405574;
  font-size: 1.25rem;
  line-height: 1;
}

.page-more-btn:hover {
  background: #eef4ff;
}

.page-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 140px;
  border: 1px solid #d8e2f0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(16, 39, 70, 0.16);
  padding: 4px;
  display: grid;
  gap: 2px;
}

.page-actions-menu[hidden] {
  display: none;
}

.design-templates-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.template-library-item {
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #fff;
  overflow: visible;
  position: relative;
}

.template-library-item.active {
  border-color: #b9ccf0;
  box-shadow: 0 0 0 1px #d7e3fb;
}

.template-library-preview {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #eef3fb;
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  padding: 2px;
  border-bottom: 1px solid #e7edf7;
}

.template-library-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  display: block;
}

.template-library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}

.template-library-meta strong {
  font: 700 0.92rem var(--font-base);
  color: #13233e;
}

.template-library-meta .panel-title-menu {
  position: relative;
  z-index: 30;
}

.template-library-meta .page-actions-menu {
  z-index: 80;
}


.page-action-item {
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
}

.page-action-item:hover {
  background: #f5f8ff;
}

.page-action-item.delete {
  color: var(--danger);
}

.view-copy {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel h2,
.panel h3,
.canvas-header h1,
.page-shell h1,
.page-shell h2,
.page-shell h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
}

.page-shell h4,
.page-shell h5,
.page-shell h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
}

.panel h2,
.panel h3 {
  margin: 0;
}

.panel h3 {
  margin-top: 18px;
  font-size: 1rem;
}

.hint {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.library,
.section-list {
  display: grid;
  gap: 8px;
}

.section-list {
  margin: 8px 0 0;
  list-style: none;
  padding: 0;
}

.section-list button {
  text-align: left;
}

.section-list button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}

.canvas-wrap {
  position: relative;
  padding: 22px;
  min-height: 0;
  overflow: auto;
}

.canvas-engine-debug {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 35;
  width: fit-content;
  max-width: min(360px, calc(100% - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(208, 138, 20, 0.35);
  border-radius: 14px;
  background: rgba(255, 247, 232, 0.94);
  color: #724705;
  box-shadow: 0 8px 24px rgba(88, 58, 10, 0.12);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.canvas-engine-status {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 36;
  width: fit-content;
  max-width: min(360px, calc(100% - 28px));
  padding: 9px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: rgba(244, 248, 255, 0.94);
  color: #1f3b7a;
  box-shadow: 0 8px 24px rgba(25, 58, 120, 0.1);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.canvas-engine-status-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.canvas-engine-status-header strong {
  font: 800 0.74rem/1 var(--font-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.canvas-engine-status-header span {
  color: #5f79b4;
  font: 700 0.68rem/1 var(--font-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.canvas-engine-status-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.canvas-engine-status-body div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.canvas-engine-status-body .canvas-engine-status-action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.canvas-engine-status-body span {
  color: #5f79b4;
  font: 700 0.68rem/1.1 var(--font-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.canvas-engine-status-body strong {
  font: 700 0.8rem/1.25 var(--font-base);
  word-break: break-word;
}

.canvas-engine-status-toggle {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #2451b5;
  padding: 6px 10px;
  font: 700 0.72rem/1 var(--font-base);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.canvas-engine-status-toggle:hover {
  background: #edf4ff;
  border-color: rgba(37, 99, 235, 0.34);
}

.canvas-engine-status-toggle:active {
  transform: translateY(1px);
}

.canvas-engine-debug-title {
  display: block;
  margin: 0 0 6px;
  font: 800 0.72rem/1 var(--font-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.canvas-engine-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  font: 600 0.74rem/1.3 var(--font-base);
}

.canvas-engine-debug-grid span {
  color: #9a6a13;
}

.canvas-header h1 {
  margin: 0;
}

.canvas-header p {
  margin: 4px 0 16px;
  color: var(--muted);
}

.canvas {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f8fbff;
}

body.viewport-phone .canvas {
  width: min(390px, 100%);
  margin: 0 auto;
}

.page-shell {
  background: #fff;
  font-family: var(--font-base);
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}

.page-nav .logo {
  font: var(--heading-weight) 0.95rem var(--font-heading);
}

.page-nav nav {
  display: flex;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.web-section {
  margin: 0 18px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #fbfdff;
  position: relative;
  overflow: visible;
  --section-pad-top: 48px;
  --section-pad-bottom: 48px;
}

.web-section[data-hidden="true"] {
  opacity: 0.45;
}

.web-section.focused {
  border-color: var(--accent);
  box-shadow: none;
}

.web-section.focused::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 0;
  pointer-events: none;
  z-index: 6;
}

.web-section.text-resizing,
.web-section.text-resizing * {
  transition: none !important;
}

.section-toolbar {
  position: absolute;
  right: 12px;
  top: 12px;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d7e2f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 39, 70, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 7;
}

.section-toolbar button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #fff;
  color: #223851;
  line-height: 1;
}

.section-toolbar button:hover {
  border-color: #c7d7ee;
  background: #f7fbff;
}

.section-toolbar button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.section-toolbar button[data-toolbar-action="remove"] {
  color: var(--danger);
}

.web-section.focused .section-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.section-shared-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #d7e2f1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(16, 39, 70, 0.1);
  color: #223851;
  font: 700 0.74rem/1 var(--font-base);
  letter-spacing: 0.01em;
}

.section-shared-badge-header {
  color: #1f4ed8;
}

.section-shared-badge-footer {
  color: #0f766e;
}

body.preview .section-shared-badge {
  display: none;
}

.section-content {
  position: relative;
  z-index: 2;
  padding: var(--section-pad-top) 24px var(--section-pad-bottom);
}

.section-padding-guide {
  position: absolute;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(-45deg, rgba(56, 154, 255, 0.16) 0 2px, rgba(56, 154, 255, 0.05) 2px 9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 1;
}

.section-padding-guide-top {
  top: 0;
  height: var(--section-pad-top);
  border-radius: 16px 16px 0 0;
}

.section-padding-guide-bottom {
  bottom: 0;
  height: var(--section-pad-bottom);
  border-radius: 0 0 16px 16px;
}

.web-section.padding-guides-visible .section-padding-guide,
.web-section.padding-dragging .section-padding-guide {
  opacity: 1;
}

.section-padding-readout {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #278ef9;
  font: 700 0.95rem var(--font-base);
}

.section-padding-readout.bottom {
  top: auto;
  bottom: 8px;
}

.section-padding-readout strong {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #2d97fb;
  color: #ffffff;
}

.section-padding-handle {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 14px;
  margin-left: -11px;
  border: 0;
  background: transparent;
  opacity: 0;
  z-index: 8;
  cursor: ns-resize;
}

.section-padding-handle::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: #2d97fb;
}

.section-padding-handle.top {
  top: var(--section-top-handle-top, calc((var(--section-pad-top) / 2) - 7px));
}

.section-padding-handle.bottom {
  bottom: var(--section-bottom-handle-bottom, calc((var(--section-pad-bottom) / 2) - 7px));
}

.web-section.focused .section-padding-handle {
  opacity: 1;
}

.custom-html-block {
  width: 100%;
}

.custom-block-frame {
  width: 100%;
  min-height: 24px;
  border: 0;
  display: block;
  background: transparent;
}

.page-location-frame-shell {
  width: 100%;
  min-height: min(1200px, calc(100vh - 180px));
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.page-location-frame {
  width: 100%;
  min-height: min(1200px, calc(100vh - 180px));
  height: min(1200px, calc(100vh - 180px));
  border: 0;
  display: block;
  background: #fff;
}

.page-location-frame-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 48px 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f6fb 100%);
  border: 1px dashed #d3ddea;
  border-radius: 20px;
}

.page-location-frame-message {
  max-width: 560px;
  text-align: center;
}

.page-location-frame-message h2 {
  margin: 0 0 12px;
}

.page-location-frame-message p {
  margin: 0;
  color: var(--muted);
}

.web-section.custom .section-content {
  padding-left: 0;
  padding-right: 0;
}

.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 0;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(11, 22, 37, 0.28);
  z-index: 1;
}

.section-settings-panel {
  position: absolute;
  top: 54px;
  right: 12px;
  width: min(390px, calc(100% - 24px));
  max-height: min(720px, calc(100vh - 120px));
  background: #ffffff;
  border: 1px solid #d9e4f1;
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(16, 39, 70, 0.2);
  padding: 14px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.section-settings-panel h4 {
  margin: 0 0 10px;
  font: var(--heading-weight) 1.2rem var(--font-heading);
  flex: 0 0 auto;
}

.section-settings-panel label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 0.86rem;
}

.settings-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #f0f3f8;
  border-radius: 14px;
}

.settings-pill {
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  font-weight: 700;
}

.settings-pill.active {
  background: #fff;
  border-color: #d4dfec;
  box-shadow: 0 1px 2px rgba(16, 39, 70, 0.1);
}

.settings-upload-btn {
  width: 100%;
  text-align: left;
  border-radius: 12px;
}

.settings-upload-chip {
  width: auto;
  min-width: 118px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 999px;
}

.settings-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-colors div {
  display: grid;
  gap: 6px;
}

.settings-colors span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-colors input[type="color"] {
  width: 100%;
  border: 1px solid #d6e1ee;
  border-radius: 12px;
  height: 42px;
  background: #fff;
  padding: 3px;
}

.section-settings-panel input[data-settings-id] {
  width: 100%;
  border: 1px solid #d6e1ee;
  border-radius: 12px;
  padding: 10px;
  font: 500 0.95rem var(--font-base);
}

.section-settings-panel small {
  color: var(--muted);
  font-size: 0.76rem;
}

.section-settings-panel input[data-settings-menu-name] {
  width: 100%;
  border: 1px solid #d6e1ee;
  border-radius: 12px;
  padding: 10px;
  font: 500 0.95rem var(--font-base);
}

.menu-height-segment {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.menu-position-segment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-bg-segment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-settings-colors {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.section-settings-colors {
  margin-bottom: 6px;
}

.menu-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid #d8dee9;
  background: var(--swatch-bg);
  color: var(--swatch-text);
  font: 700 0.9rem var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-color-swatch.active {
  border-color: #111744;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.add-section-anchor {
  position: absolute;
  left: 50%;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: transform 120ms ease, top 120ms ease, bottom 120ms ease;
}

.add-section-anchor.top {
  top: var(--section-top-anchor-top, 0px);
  transform: translate(-50%, -50%);
}

.add-section-anchor.bottom {
  bottom: var(--section-bottom-anchor-bottom, 0px);
  transform: translate(-50%, 50%);
}

.web-section.focused .add-section-anchor {
  opacity: 1;
  pointer-events: auto;
}

.web-section.padding-guides-visible .add-section-anchor,
.web-section.padding-dragging .add-section-anchor {
  opacity: 0;
  pointer-events: none;
}

.web-section.shift-top-anchor .add-section-anchor.top,
.web-section.padding-guides-visible .add-section-anchor.top,
.web-section.padding-dragging .add-section-anchor.top {
  top: var(--section-top-anchor-top, 0px);
  transform: translate(-50%, calc(-50% + var(--top-anchor-shift, 0px)));
}

.web-section.shift-bottom-anchor .add-section-anchor.bottom,
.web-section.padding-guides-visible .add-section-anchor.bottom,
.web-section.padding-dragging .add-section-anchor.bottom {
  bottom: var(--section-bottom-anchor-bottom, 0px);
  transform: translate(-50%, calc(50% + var(--bottom-anchor-shift, 0px)));
}

.add-block-anchor {
  position: absolute;
  left: 16px;
  top: var(--add-block-float-top, 12px);
  transform: none;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  width: max-content;
  transition: opacity 120ms ease, top 140ms ease;
}

.web-section.focused .add-block-anchor {
  opacity: 1;
  pointer-events: auto;
}

.add-block-btn {
  height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font: 700 0.78rem var(--font-base);
  border: 1px solid #d7e2f1;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 39, 70, 0.16);
  display: inline-flex;
  align-items: center;
}

.add-block-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(560px, calc(100vw - 96px));
  max-width: calc(100vw - 96px);
  border-radius: 22px;
  border: 1px solid #dbe2ec;
  background: #f2f4f7;
  box-shadow: 0 14px 32px rgba(16, 39, 70, 0.16);
  padding: 14px 14px;
  z-index: 9;
  max-height: min(580px, calc(100vh - 180px));
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.add-block-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.add-block-group + .add-block-group {
  margin-top: 10px;
}

.add-block-group h5 {
  margin: 0 0 7px;
  font: 600 0.72rem var(--font-base);
  color: #7d808a;
}

.add-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.add-block-item {
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 7px 8px;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #202733;
}

.add-block-item:hover {
  background: #e8ebf0;
  border-color: #d5dbe5;
}

.add-block-item-icon {
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: #1f2732;
  letter-spacing: 0.01em;
}

.add-section-btn {
  height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font: 700 0.78rem var(--font-base);
  border: 1px solid #d7e2f1;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 39, 70, 0.16);
  display: inline-flex;
  align-items: center;
}

.add-section-btn:hover {
  border-color: var(--accent);
}

.page-empty-add {
  margin: 36px 18px 28px;
  display: flex;
  justify-content: center;
}

.added-blocks {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  padding: 0 16px;
}

.added-blocks.header-added-blocks {
  margin-top: 0;
}

.added-blocks-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.added-block-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  padding-top: var(--button-top-space, 0);
  cursor: grab;
  position: relative;
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1), filter 120ms ease, opacity 120ms ease;
}

.added-block-wrap-grid {
  grid-column: 1 / -1;
  grid-row: auto;
  transform: translate(var(--drag-shift-x, 0), var(--drag-shift-y, 0));
}

.added-block-wrap.dragging {
  opacity: 0.28;
  filter: saturate(0.9);
  z-index: 24;
}

.added-blocks.drag-previewing .added-block-wrap:not(.dragging) {
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#canvas.drop-snapping .added-block-wrap,
#canvas.drop-snapping .row-child-wrap,
#canvas.drop-snapping .added-blocks.drag-previewing .added-block-wrap:not(.dragging),
#canvas.drop-snapping .row-block.drag-previewing > .row-child-wrap:not(.dragging),
#canvas.drop-snapping .stack-block.drag-previewing > .row-child-wrap:not(.dragging),
#canvas.drop-snapping .container-block.drag-previewing > .row-child-wrap:not(.dragging),
#canvas.drop-snapping .card-block.drag-previewing > .row-child-wrap:not(.dragging) {
  transition: none !important;
}

.added-block-wrap[data-added-selectable="text"] {
  cursor: grab;
}

.added-block-wrap:hover {
  cursor: grab;
}

.added-block-wrap:hover > .added-block {
  outline: 1px solid rgba(47, 154, 255, 0.52);
  outline-offset: 2px;
}

.added-block-wrap[data-added-selectable="text"] [data-edit] {
  -webkit-user-drag: none;
}

.added-block-wrap[data-added-selectable="text"]:active {
  cursor: grabbing;
}

.added-block-wrap.text-block-selected {
  outline: none;
  z-index: 12;
}

.added-block-wrap.text-block-selected > .added-block {
  outline: 2px solid #2f9aff;
  outline-offset: 2px;
}

.added-block-wrap.dragging > .added-block,
.added-blocks.drag-previewing .added-block-wrap > .added-block,
.row-child-wrap.dragging > .row-child-content,
.row-block.drag-previewing > .row-child-wrap > .row-child-content,
.stack-block.drag-previewing > .row-child-wrap > .row-child-content,
.container-block.drag-previewing > .row-child-wrap > .row-child-content,
.card-block.drag-previewing > .row-child-wrap > .row-child-content {
  outline: none !important;
  outline-offset: 0 !important;
}

.added-block-wrap.dragging > .block-type-chip,
.added-blocks.drag-previewing .added-block-wrap > .block-type-chip,
.row-child-wrap.dragging > .block-type-chip,
.row-block.drag-previewing > .row-child-wrap > .block-type-chip,
.stack-block.drag-previewing > .row-child-wrap > .block-type-chip,
.container-block.drag-previewing > .row-child-wrap > .block-type-chip,
.card-block.drag-previewing > .row-child-wrap > .block-type-chip {
  opacity: 0 !important;
  pointer-events: none !important;
}

.row-child-wrap {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding-top: var(--button-top-space, 0px);
  cursor: text;
  transform: translate(var(--drag-shift-x, 0), var(--drag-shift-y, 0));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 150ms ease, opacity 150ms ease;
}

.row-child-wrap {
  position: relative;
  min-width: 0;
  grid-column: 1 / -1;
}

.row-child-content {
  position: relative;
  min-width: 0;
}

.row-child-wrap:hover > .row-child-content {
  outline: 1px solid rgba(47, 154, 255, 0.52);
  outline-offset: 2px;
}

.row-child-wrap.text-block-selected > .row-child-content {
  outline: 2px solid #2f9aff;
  outline-offset: 2px;
}

.added-block-wrap[data-block-layer="media"],
.row-child-wrap[data-block-layer="media"] {
  z-index: 1;
}

.added-block-wrap[data-block-layer="text-overlay"],
.row-child-wrap[data-block-layer="text-overlay"] {
  z-index: 4;
}

.row-child-wrap.text-block-selected {
  z-index: 12;
}

.row-child-move-handle {
  position: absolute;
  top: calc(var(--button-top-space, 0px) + 6px);
  left: 6px;
  width: 18px;
  height: 18px;
  display: none;
  grid-auto-flow: row;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(18, 28, 45, 0.92);
  box-shadow: 0 10px 24px rgba(12, 24, 42, 0.22);
  backdrop-filter: blur(8px);
  cursor: grab;
  z-index: 7;
}

.row-child-move-handle span {
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  display: block;
}

.row-child-wrap.text-block-selected .row-child-move-handle {
  display: grid;
}

.row-child-move-handle:active {
  cursor: grabbing;
}

.row-child-wrap.row-resizing-target {
  background: rgba(47, 154, 255, 0.08);
  outline: 2px solid #2f9aff;
  outline-offset: 2px;
}

.row-child-wrap.row-resizing-target::after {
  content: attr(data-row-span-label);
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #2f9aff;
  color: #fff;
  font: 700 0.72rem/1.2 var(--font-base);
  white-space: nowrap;
  pointer-events: none;
  z-index: 8;
}

.row-child-resize-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  transform: translateY(-50%);
  cursor: col-resize;
  display: none;
  z-index: 6;
}

.row-child-resize-handle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: rgba(18, 28, 45, 0.92);
  box-shadow: 0 8px 18px rgba(12, 24, 42, 0.18);
}

.row-child-resize-handle.left {
  left: -15px;
}

.row-child-resize-handle.right {
  right: -15px;
}

.row-child-wrap.text-block-selected .row-child-resize-handle {
  display: block;
}

.added-text-resize-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  z-index: 10;
  cursor: ew-resize;
  opacity: 0;
  pointer-events: none;
}

.added-text-resize-handle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: rgba(18, 28, 45, 0.92);
  box-shadow: 0 8px 18px rgba(12, 24, 42, 0.18);
}

.added-text-resize-handle.left {
  left: -15px;
}

.added-text-resize-handle.right {
  right: auto;
  left: calc(100% + 1px);
}

.added-block-wrap.text-block-selected .added-text-resize-handle {
  opacity: 1;
  pointer-events: auto;
}

.row-child-wrap.text-block-selected .added-text-resize-handle {
  opacity: 1;
  pointer-events: auto;
}

.button-top-space-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--button-top-space, 0);
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(45, 151, 251, 0.05), rgba(45, 151, 251, 0.05)),
    repeating-linear-gradient(
      -45deg,
      rgba(45, 151, 251, 0.16) 0,
      rgba(45, 151, 251, 0.16) 2px,
      transparent 2px,
      transparent 9px
    );
  transition: opacity 100ms ease;
  z-index: 6;
}

.button-top-space-handle {
  position: absolute;
  left: 50%;
  top: calc(var(--button-top-space, 0) / 2);
  width: 20px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  cursor: ns-resize;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.button-top-space-handle::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  border-radius: 2px;
  background: #2d97fb;
}

.button-top-space-ui {
  position: absolute;
  left: calc(50% + 14px);
  top: calc(var(--button-top-space, 0) / 2);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 100ms ease;
  z-index: 10;
}

.button-top-space-readout {
  min-width: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 28, 45, 0.92);
  color: #fff;
  box-shadow: 0 10px 22px rgba(12, 24, 42, 0.18);
  font: 700 0.72rem var(--font-base);
  pointer-events: none;
}

.button-top-space-undo {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d97fb;
  font: 700 15px/1 var(--font-base);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.added-block-wrap.text-block-selected .button-top-space-handle {
  opacity: 1;
  pointer-events: auto;
}

.row-child-wrap.text-block-selected .button-top-space-handle {
  opacity: 1;
  pointer-events: auto;
}

.added-block-wrap.text-block-selected:focus-within .button-top-space-overlay,
.row-child-wrap.text-block-selected:focus-within .button-top-space-overlay,
.row-child-wrap.button-space-dragging .button-top-space-overlay,
.added-block-wrap.button-space-dragging .button-top-space-overlay {
  opacity: 1;
}

.added-block-wrap.text-block-selected .button-top-space-ui,
.row-child-wrap.text-block-selected .button-top-space-ui,
.added-block-wrap.text-block-selected:focus-within .button-top-space-ui,
.row-child-wrap.text-block-selected:focus-within .button-top-space-ui,
.row-child-wrap.button-space-dragging .button-top-space-ui,
.added-block-wrap.button-space-dragging .button-top-space-ui {
  opacity: 1;
}

.added-block {
  margin: 0;
}

.row-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  min-height: 96px;
  gap: 16px;
  background: var(--row-surface-bg, #ffffff);
  border: var(--row-surface-border, 1px solid transparent);
  border-radius: var(--row-surface-radius, 0);
  box-shadow: var(--row-surface-shadow, none);
  padding: var(--row-surface-padding-y, 0px) var(--row-surface-padding-x, 16px);
  align-content: stretch;
}

.row-block.align-center {
  align-items: center;
}

.row-block.align-end {
  align-items: end;
}

.row-block.align-stretch {
  align-items: stretch;
}

.header-row-wrap {
  --button-top-space: 0px !important;
}

.header-row-block {
  position: relative;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-content: stretch;
}

.header-row-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(18, 28, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(12, 24, 42, 0.12);
  cursor: pointer;
  justify-self: end;
  align-self: center;
  z-index: 5;
}

.header-row-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(18, 28, 45, 0.9);
}

body.viewport-phone .header-row-block {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  body:not(.viewport-phone) .added-blocks {
    gap: 24px;
    padding: 0 24px;
  }

  body:not(.viewport-phone) .added-blocks-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  body:not(.viewport-phone) .added-block-wrap-grid {
    grid-column: var(--block-col-start, 1) / span var(--block-col-span, 6);
    grid-row: var(--block-row-start, auto);
  }

  body:not(.viewport-phone) .row-block {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    padding: var(--row-surface-padding-y, 0px) var(--row-surface-padding-x, 24px);
  }

  body:not(.viewport-phone) .row-child-wrap {
    grid-column: var(--row-child-col-start, auto) / span var(--row-child-span, 6);
    grid-row: var(--row-child-row-start, auto);
  }

}

@media (max-width: 767px) {
  .header-row-block {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .header-row-block > .header-row-menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .header-row-block > .row-child-wrap[data-header-slot="brand"] {
    grid-column: 1;
    grid-row: 1;
  }

  .header-row-block > .row-child-wrap[data-header-slot="nav"],
  .header-row-block > .row-child-wrap[data-header-slot="actions"] {
    grid-column: 1 / -1;
  }

  .header-row-block:not(.mobile-open) > .row-child-wrap[data-header-slot="nav"],
  .header-row-block:not(.mobile-open) > .row-child-wrap[data-header-slot="actions"] {
    display: none;
  }

  .header-row-block.mobile-open > .row-child-wrap[data-header-slot="nav"],
  .header-row-block.mobile-open > .row-child-wrap[data-header-slot="actions"] {
    display: block;
  }

  .header-row-block > .row-child-wrap[data-header-slot="nav"] .stack-block,
  .header-row-block > .row-child-wrap[data-header-slot="actions"] .stack-block {
    width: 100%;
    min-height: 0;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .header-row-block > .row-child-wrap[data-header-slot="actions"] .button-like,
  .header-row-block > .row-child-wrap[data-header-slot="actions"] .added-block.button,
  .header-row-block > .row-child-wrap[data-header-slot="nav"] .button-like {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .header-row-block {
    min-height: 0 !important;
    align-content: stretch;
  }
}

.row-block.transparent-surface,
.container-block.transparent-surface,
.stack-block.transparent-surface {
  background: transparent;
}

.container-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 96px;
  background: var(--container-surface-bg, #ffffff);
  border: var(--container-surface-border, 1px solid transparent);
  border-radius: var(--container-surface-radius, 0);
  box-shadow: var(--container-surface-shadow, none);
  padding: var(--container-surface-padding-y, 8px) var(--container-surface-padding-x, 14px);
  align-content: start;
}

.container-child-wrap {
  grid-column: 1 / -1;
  width: calc((var(--row-child-span, 12) / 12) * 100%);
  max-width: 100%;
  justify-self: start;
}

.card-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-height: 104px;
  background-color: var(--card-surface, #f5f7fb);
  background-image: var(--card-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #d7dfed;
  padding: var(--card-padding, 32px);
  align-content: start;
  overflow: hidden;
}

.card-block.corners-none {
  border-radius: 0;
}

.card-block.corners-soft {
  border-radius: 18px;
}

.card-block.corners-round {
  border-radius: 28px;
}

.card-block .container-child-wrap {
  grid-column: 1 / -1;
}

.stack-block {
  position: relative;
  display: flex;
  gap: var(--stack-gap, 0px);
  min-height: 72px;
  background: transparent;
  border: 1px solid transparent;
  padding: 12px 14px;
  align-items: center;
  justify-content: flex-start;
}

.stack-block.direction-horizontal {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
}

.stack-block:has(> .row-child-wrap) {
  min-height: 0;
  padding: 0;
}

.added-block-wrap:hover > .row-block,
.added-block-wrap:hover > .container-block,
.added-block-wrap:hover > .stack-block,
.row-child-wrap:hover > .row-child-content > .row-block,
.row-child-wrap:hover > .row-child-content > .container-block,
.row-child-wrap:hover > .row-child-content > .stack-block {
  border-color: rgba(47, 154, 255, 0.52);
}

.added-block-wrap.text-block-selected > .row-block,
.added-block-wrap.text-block-selected > .container-block,
.added-block-wrap.text-block-selected > .stack-block,
.row-child-wrap.text-block-selected > .row-child-content > .row-block,
.row-child-wrap.text-block-selected > .row-child-content > .container-block,
.row-child-wrap.text-block-selected > .row-child-content > .stack-block {
  border-color: #2f9aff;
}

.stack-block.direction-vertical {
  flex-direction: column;
  align-items: stretch;
}

.stack-block.wrap-yes {
  flex-wrap: wrap;
}

.stack-block.wrap-no {
  flex-wrap: nowrap;
}

.stack-block.justify-center {
  justify-content: center;
}

.stack-block.justify-end {
  justify-content: flex-end;
}

.stack-block.justify-space {
  justify-content: space-between;
}

.stack-block.align-start {
  align-items: flex-start;
}

.stack-block.align-center {
  align-items: center;
}

.stack-block.align-end {
  align-items: flex-end;
}

.stack-block.align-stretch {
  align-items: stretch;
}

.stack-child-wrap {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin-left: 0;
}

.stack-child-wrap > .row-child-chip {
  top: -22px;
}

.stack-block.direction-vertical .stack-child-wrap {
  flex-basis: auto;
  width: auto;
  margin-left: 0;
  margin-top: 0;
}

.stack-block.direction-vertical.align-stretch .stack-child-wrap {
  align-self: stretch;
  width: 100%;
}

.stack-gap-overlay {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(45, 151, 251, 0.05), rgba(45, 151, 251, 0.05)),
    repeating-linear-gradient(
      -45deg,
      rgba(45, 151, 251, 0.16) 0,
      rgba(45, 151, 251, 0.16) 2px,
      transparent 2px,
      transparent 9px
    );
  transition: opacity 100ms ease;
  z-index: 6;
}

.stack-gap-overlay.direction-horizontal {
  top: 0;
  bottom: 0;
  left: calc(var(--stack-gap, 0px) * -1);
  width: var(--stack-gap, 0px);
}

.stack-gap-overlay.direction-vertical {
  left: 0;
  right: 0;
  top: calc(var(--stack-gap, 0px) * -1);
  height: var(--stack-gap, 0px);
}

.stack-gap-handle {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.stack-gap-handle::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #2f9aff;
}

.stack-gap-handle.direction-horizontal {
  top: 50%;
  left: calc((var(--stack-gap, 0px) / -2) - 10px);
  width: 20px;
  height: 30px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.stack-gap-handle.direction-horizontal::before {
  top: 4px;
  bottom: 4px;
  left: 9px;
  width: 2px;
}

.stack-gap-handle.direction-vertical {
  left: 50%;
  top: calc((var(--stack-gap, 0px) / -2) - 6px);
  width: 20px;
  height: 12px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.stack-gap-handle.direction-vertical::before {
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
}

.stack-gap-ui {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
  z-index: 10;
}

.stack-gap-ui.direction-horizontal {
  top: 50%;
  left: calc((var(--stack-gap, 0px) / -2) + 14px);
  transform: translate(-100%, -50%);
  flex-direction: row-reverse;
}

.stack-gap-ui.direction-vertical {
  left: calc(50% + 14px);
  top: calc((var(--stack-gap, 0px) / -2));
  transform: translateY(-50%);
}

.stack-gap-readout {
  min-width: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(18, 28, 45, 0.92);
  color: #fff;
  box-shadow: 0 10px 22px rgba(12, 24, 42, 0.18);
  font: 700 0.72rem var(--font-base);
  pointer-events: none;
}

.row-child-wrap.dragging {
  z-index: 24;
}

.stack-gap-undo {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d97fb;
  font: 700 15px/1 var(--font-base);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
}

.added-block-wrap.text-block-selected .stack-gap-handle,
.row-child-wrap.text-block-selected > .row-child-content .stack-block .stack-gap-handle {
  opacity: 1;
  pointer-events: auto;
}

.stack-block > .row-child-wrap.text-block-selected > .stack-gap-handle {
  opacity: 1;
  pointer-events: auto;
}

.row-child-wrap.text-block-selected.stack-gap-active > .stack-gap-overlay,
.row-child-wrap.text-block-selected > .stack-gap-overlay {
  opacity: 1;
}

.row-child-wrap.text-block-selected.stack-gap-active > .stack-gap-ui,
.row-child-wrap.text-block-selected > .stack-gap-ui {
  opacity: 1;
}

.nested-layout-block {
  width: 100%;
}

.nested-row-preview {
  min-height: 72px;
  border-color: #bfdcff;
  padding: 8px 10px;
}

.nested-row-preview-cell {
  min-width: 0;
}

.row-child-list {
  display: grid;
  gap: 10px;
}

.row-child-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  background: #fff;
}

.row-child-list-item span {
  font: 500 0.98rem/1.2 var(--font-base);
  color: #111827;
}

.row-child-list-empty {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f4f6;
  color: #6b7280;
  font: 500 0.92rem/1.2 var(--font-base);
}

.container-block.row-drop-target::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: var(--container-insert-y, 10px);
  height: 10px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(47, 154, 255, 0.12) 0,
      rgba(47, 154, 255, 0.12) 4px,
      rgba(47, 154, 255, 0.03) 4px,
      rgba(47, 154, 255, 0.03) 10px
    ),
    rgba(47, 154, 255, 0.06);
  outline: 1px solid rgba(47, 154, 255, 0.35);
  pointer-events: none;
  z-index: 4;
  transform: translateY(-50%);
}

.container-block.row-drop-target::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: var(--container-insert-y, 10px);
  height: 3px;
  border-radius: 999px;
  background: #2f9aff;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
}

.row-block.row-resizing {
  background:
    linear-gradient(rgba(47, 154, 255, 0.06), rgba(47, 154, 255, 0.06)),
    repeating-linear-gradient(
      to right,
      rgba(47, 154, 255, 0.14) 0,
      rgba(47, 154, 255, 0.14) 1px,
      transparent 1px,
      transparent calc(100% / 12)
    ),
    #ffffff;
}

.row-child-chip {
  position: absolute;
  top: -28px;
  left: 28px;
  opacity: 1;
  pointer-events: auto;
  cursor: grab;
  z-index: 8;
}

.row-block-drop-placeholder {
  grid-column: 1 / -1;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9dc8fb;
  border-radius: 12px;
  background: #f7fbff;
  color: #6a7e93;
  font: 500 0.9rem/1.2 var(--font-base);
  text-align: center;
  padding: 12px;
  pointer-events: none;
}

.row-block.row-drop-target,
.container-block.row-drop-target {
  background: rgba(47, 154, 255, 0.08);
}

.stack-block.row-drop-target::after {
  content: none;
}

.row-block.row-drop-target::before,
.row-block.row-drop-target::after {
  content: none;
}

.row-drop-placeholder-indicator {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      -45deg,
      rgba(47, 154, 255, 0.12) 0,
      rgba(47, 154, 255, 0.12) 4px,
      rgba(47, 154, 255, 0.03) 4px,
      rgba(47, 154, 255, 0.03) 10px
    ),
    rgba(47, 154, 255, 0.06);
  outline: 2px solid rgba(47, 154, 255, 0.58);
  box-shadow:
    0 0 0 6px rgba(47, 154, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  pointer-events: none;
  z-index: 4;
  transition:
    left 180ms cubic-bezier(0.22, 1, 0.36, 1),
    top 180ms cubic-bezier(0.22, 1, 0.36, 1),
    width 180ms cubic-bezier(0.22, 1, 0.36, 1),
    height 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    outline-color 180ms ease;
}

.row-drop-placeholder-indicator.has-skeleton {
  backdrop-filter: saturate(1.05);
}

.row-drop-placeholder-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: #2f9aff;
  transform: translateX(-50%);
}

.row-drop-placeholder-skeleton {
  position: absolute;
  inset: 14px 14px 14px 22px;
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.row-drop-placeholder-skeleton-text {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.row-drop-placeholder-skeleton-button {
  align-items: center;
  justify-content: flex-start;
}

.row-drop-placeholder-skeleton-logo {
  align-items: center;
  gap: 10px;
}

.row-drop-placeholder-line,
.row-drop-placeholder-pill,
.row-drop-placeholder-dot {
  display: block;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(47, 154, 255, 0.16);
}

.row-drop-placeholder-line {
  height: 10px;
  border-radius: 999px;
}

.row-drop-placeholder-pill {
  height: 34px;
  min-width: 112px;
  border-radius: 999px;
}

.row-drop-placeholder-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.row-drop-placeholder-width-short {
  width: 42%;
}

.row-drop-placeholder-width-medium {
  width: 58%;
}

.row-drop-placeholder-width-long {
  width: 82%;
}

[data-layout-drop].row-drop-target .row-block-drop-placeholder {
  border-color: #2f9aff;
  color: #2f9aff;
  background: #eef7ff;
}

.row-child-wrap.dragging {
  opacity: 0.5;
}

.row-block.drag-previewing > .row-child-wrap:not(.dragging),
.stack-block.drag-previewing > .row-child-wrap:not(.dragging),
.container-block.drag-previewing > .row-child-wrap:not(.dragging),
.card-block.drag-previewing > .row-child-wrap:not(.dragging) {
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.row-block-paragraph {
  margin: 0;
  max-width: 100%;
  color: #1b1f24;
  font-family: var(--font-base);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

.added-text {
  --text-level-size: 1rem;
  --text-size-scale: 1;
  font-size: calc(var(--text-level-size) * var(--text-size-scale));
  line-height: var(--lh-body);
}

.added-text.level-h1,
.added-text.level-h2,
.added-text.level-h3,
.added-text.level-h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--lh-heading);
}

.added-text.level-h1 {
  --text-level-size: var(--text-h1);
}

.added-text.level-h2 {
  --text-level-size: var(--text-h2);
}

.added-text.level-h3 {
  --text-level-size: var(--text-h3);
}

.added-text.level-h4 {
  --text-level-size: var(--text-h4);
}

.added-text.level-p {
  --text-level-size: var(--text-body);
  font-family: var(--font-base);
  font-weight: 400;
}

.added-text.align-left {
  text-align: left;
}

.added-text.align-center {
  text-align: center;
}

.added-text.align-right {
  text-align: right;
}

.added-text.size-xs {
  --text-size-scale: 0.72;
}

.added-text.size-s {
  --text-size-scale: 0.86;
}

.added-text.size-m {
  --text-size-scale: 1;
}

.added-text.size-l {
  --text-size-scale: 1.2;
}

.added-text.size-xl {
  --text-size-scale: 1.38;
}

.text-block-overlay {
  z-index: 12;
}

#textBlockOverlayContent {
  display: grid;
  gap: 10px;
}

.text-block-toolbar-content {
  border: 1px solid #dde2eb;
  border-radius: 16px;
  background: #f3f4f6;
  box-shadow: 0 8px 22px rgba(15, 30, 54, 0.14);
  padding: 10px 10px 12px;
}

.text-toolbar-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.text-level-select {
  width: 100%;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  background: #f7f8fa;
  padding: 8px 10px;
  font: 600 0.92rem var(--font-base);
  color: #1e2430;
}

.text-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-toolbar-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  background: #f7f8fa;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #273142;
}

.text-toolbar-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-toolbar-icon.danger {
  color: #c33237;
}

.text-toolbar-group + .text-toolbar-group {
  margin-top: 10px;
}

.text-toolbar-group p {
  margin: 0 0 6px;
  font: 600 0.72rem var(--font-base);
  color: #364257;
}

.text-toolbar-group small {
  display: block;
  margin-top: 6px;
  font: 500 0.78rem var(--font-base);
  color: #667085;
}

.text-toolbar-group small a {
  color: inherit;
}

.html-code-textarea {
  min-height: 110px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
}

.text-block-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  padding: 4px;
  background: #e8eaef;
}

.text-block-segment.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-block-segment.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-block-segment.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.text-toolbar-group:last-child .text-block-segment {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.text-block-segment-btn {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 5px 4px;
  min-height: 30px;
  font: 600 0.8rem var(--font-base);
  color: #2a3343;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-block-segment-btn.active {
  background: #fff;
  border-color: #d4dceb;
  box-shadow: 0 1px 2px rgba(18, 35, 59, 0.08);
}

.align-icon {
  display: inline-block;
  width: 16px;
  height: 10px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.align-icon.align-left {
  background-image: linear-gradient(#263245, #263245), linear-gradient(#263245, #263245), linear-gradient(#263245, #263245);
  background-size: 12px 2px, 9px 2px, 12px 2px;
  background-position: left 0 top 0, left 0 center, left 0 bottom;
}

.align-icon.align-center {
  background-image: linear-gradient(#263245, #263245), linear-gradient(#263245, #263245), linear-gradient(#263245, #263245);
  background-size: 12px 2px, 9px 2px, 12px 2px;
  background-position: center top 0, center center, center bottom;
}

.align-icon.align-right {
  background-image: linear-gradient(#263245, #263245), linear-gradient(#263245, #263245), linear-gradient(#263245, #263245);
  background-size: 12px 2px, 9px 2px, 12px 2px;
  background-position: right 0 top 0, right 0 center, right 0 bottom;
}

.button-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.button-type-option {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 4px;
  overflow: hidden;
}

.button-type-option.active {
  background: #eef2f7;
  box-shadow: none;
}

.button-type-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  font: 700 0.8rem var(--font-base);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button-type-preview.type-ghost {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.button-type-preview.type-solid.color-primary {
  background: var(--primary);
  color: #fff;
}

.button-type-preview.type-solid.color-secondary {
  background: var(--secondary);
  color: #fff;
}

.button-type-preview.type-solid.color-tertiary {
  background: var(--tertiary);
  color: #13253e;
}

.button-type-preview.type-solid.color-neutral {
  background: var(--neutral);
  color: #fff;
}

.button-type-preview.type-outline.color-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button-type-preview.type-outline.color-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.button-type-preview.type-outline.color-tertiary {
  background: transparent;
  color: var(--tertiary);
  border: 2px solid var(--tertiary);
}

.button-type-preview.type-outline.color-neutral {
  background: transparent;
  color: var(--neutral);
  border: 2px solid var(--neutral);
}

.button-type-preview.type-ghost.color-primary,
.button-type-preview.link-preset.type-ghost.color-primary {
  color: var(--primary);
}

.button-type-preview.type-ghost.color-secondary,
.button-type-preview.link-preset.type-ghost.color-secondary {
  color: var(--secondary);
}

.button-type-preview.type-ghost.color-tertiary,
.button-type-preview.link-preset.type-ghost.color-tertiary {
  color: var(--tertiary);
}

.button-type-preview.type-ghost.color-neutral,
.button-type-preview.link-preset.type-ghost.color-neutral {
  color: var(--neutral);
}
.button-color-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button-color-swatch.disabled {
  background: #ececef;
  color: #b9bcc5;
  border-color: #d9dde7;
  cursor: default;
  box-shadow: none;
  font: 500 1.2rem/1 var(--font-base);
}

.button-color-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #d8dce2;
  background: var(--btn-swatch);
  padding: 0;
  font: 700 1rem/1 var(--font-base);
  color: #16233a;
}

.button-color-swatch.active {
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #1f2732;
}

.button-advanced {
  margin-top: 12px;
}

.button-advanced summary {
  cursor: pointer;
  font: 700 0.9rem var(--font-base);
  color: #232d3f;
}

.block-advanced-fields {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.block-advanced-fields label {
  font: 600 0.82rem var(--font-base);
  color: #263245;
}

.block-advanced-fields .text-level-select {
  width: 100%;
}

.block-advanced-fields small {
  margin: 0;
  font: 500 0.76rem var(--font-base);
  color: #6f7786;
}

.media-toolbar-frame {
  min-height: 230px;
  border: 1px solid #dfe3ea;
  border-radius: 28px;
  background: #e9eaee;
  display: grid;
  place-items: center;
  margin: 4px 0 10px;
}

.media-toolbar-add-btn {
  min-width: 98px;
  height: 62px;
  border-radius: 22px;
  font: 600 2rem/1 var(--font-base);
}


.added-block.chip {
  border: 1px dashed #ccd9ea;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
}

.added-block.link {
  color: var(--primary);
  text-decoration: underline;
}

.added-block.rich-link-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 148px;
  padding: 22px 28px;
  border: 1px solid #d7dde8;
  border-radius: 28px;
  background: #ffffff;
  color: #111827;
}

.added-block.rich-link-card.corners-none {
  border-radius: 0;
}

.added-block.rich-link-card.corners-soft {
  border-radius: 16px;
}

.added-block.rich-link-card.corners-round {
  border-radius: 28px;
}

.rich-link-placeholder-text {
  font: 500 1.1rem/1.3 var(--font-base);
  color: #7a7a7f;
}

.rich-link-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.rich-link-card-main.has-thumb {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.rich-link-badge,
.rich-link-favicon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e5e7eb;
  color: #4b5563;
  font: 700 1rem/1 var(--font-heading);
}

.rich-link-favicon {
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
}

.rich-link-thumb {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  background: #e5e7eb;
}

.rich-link-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rich-link-title,
.rich-link-description,
.rich-link-host {
  margin: 0;
}

.rich-link-title {
  font: 600 1rem/1.3 var(--font-base);
  color: #111827;
}

.rich-link-description {
  font: 400 0.95rem/1.35 var(--font-base);
  color: #6b7280;
}

.rich-link-host {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.8rem/1.3 var(--font-base);
  color: #8a8f99;
  text-transform: lowercase;
}

.rich-link-arrow {
  color: #8a8f99;
  font: 600 1rem/1 var(--font-base);
}

.added-block.tweet-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 116px;
  padding: 20px 24px;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  color: #111827;
}

.added-block.tweet-card.corners-none {
  border-radius: 0;
}

.added-block.tweet-card.corners-soft {
  border-radius: 16px;
}

.added-block.tweet-card.corners-round {
  border-radius: 28px;
}

.tweet-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.tweet-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.tweet-title,
.tweet-detail {
  margin: 0;
}

.tweet-title {
  font: 500 0.98rem/1.3 var(--font-base);
  color: #7a7a7f;
}

.tweet-detail {
  font: 500 0.82rem/1.35 var(--font-base);
  color: #8a8f99;
  word-break: break-word;
}

.tweet-embed-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.added-block.tweet-card.has-embed {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.tweet-embed-frame iframe {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none !important;
  min-height: 0;
  border: 0;
  pointer-events: none;
}

.tweet-embed-loading,
.tweet-embed-fallback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 20px 24px;
}

.tweet-fallback-copy {
  font: 500 0.98rem/1.3 var(--font-base);
  color: #7a7a7f;
}

.tweet-mark {
  color: #111827;
  font: 400 2.6rem/1 var(--font-heading);
}

.text-block-textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
}

.added-block-wrap.button-fill-wrap {
  display: flex;
}

.block-type-chip {
  position: absolute;
  left: 2px;
  top: calc(var(--button-top-space, 0px) - 2px);
  transform: translateY(-100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(18, 28, 45, 0.92);
  box-shadow: 0 12px 26px rgba(12, 24, 42, 0.18);
  color: #ffffff;
  font: 500 0.7rem/1 var(--font-base);
  letter-spacing: 0.015em;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: opacity 120ms ease, transform 150ms ease;
}

.block-type-chip.row-child-chip {
  left: 2px;
  top: calc(var(--button-top-space, 0px) - 24px);
  transform: none;
  border-radius: 999px;
  pointer-events: auto;
  cursor: grab;
  z-index: 13;
  appearance: none;
  user-select: none;
}

.block-type-chip-icon {
  left: 0;
}

.added-block-wrap:hover > .block-type-chip,
.row-child-wrap:hover > .block-type-chip {
  opacity: 1;
  pointer-events: auto;
}

.added-block-wrap.text-block-selected > .block-type-chip,
.row-child-wrap.text-block-selected > .block-type-chip {
  opacity: 0;
  pointer-events: none;
}

body.canvas-engine-nested-qa .block-type-chip.row-child-chip {
  top: calc(var(--button-top-space, 0px) - 18px);
  left: 0;
  min-width: 44px;
  min-height: 32px;
  padding: 8px 12px;
  border: 2px solid rgba(37, 99, 235, 0.35);
  background: rgba(19, 99, 255, 0.98);
  box-shadow: 0 10px 24px rgba(19, 99, 255, 0.24);
  color: #ffffff;
  z-index: 24;
}

.button-like.added-block.button {
  margin-top: 0;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.button-like.added-block.button .button-label {
  display: inline-block;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  outline: none;
}

.button-like.added-block.button.fill-width {
  width: 100%;
  justify-content: center;
}

.button-like.added-block.button.type-outline {
  background: transparent;
  border: 2px solid currentColor;
}

.button-like.added-block.button.type-ghost {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.button-like.added-block.button.link-preset.type-ghost {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.button-like.added-block.button.link-preset.type-ghost.color-primary {
  color: var(--primary);
}

.button-like.added-block.button.link-preset.type-ghost.color-secondary {
  color: var(--secondary);
}

.button-like.added-block.button.link-preset.type-ghost.color-tertiary {
  color: var(--tertiary);
}

.button-like.added-block.button.link-preset.type-ghost.color-neutral {
  color: #0b0d12;
}

.web-section.footer .button-like.added-block.button.link-preset,
.web-section.footer .button-like.added-block.button.link-preset .button-label {
  font-weight: 400;
}

.web-section.footer .stack-block.direction-vertical > .stack-child-wrap {
  min-height: 0;
}

.web-section.footer .stack-child-wrap,
.web-section.footer .stack-child-wrap > .row-child-content,
.web-section.footer .stack-child-wrap .stack-block,
.web-section.footer .stack-child-wrap .button-like,
.web-section.footer .stack-child-wrap .button-like .button-label {
  cursor: grab;
}

.web-section.footer .stack-child-wrap:active,
.web-section.footer .stack-child-wrap:active > .row-child-content,
.web-section.footer .stack-child-wrap:active .stack-block,
.web-section.footer .stack-child-wrap:active .button-like,
.web-section.footer .stack-child-wrap:active .button-like .button-label {
  cursor: grabbing;
}

.web-section.footer .button-like.added-block.button.link-preset {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.button-like.added-block.button.type-ghost.color-primary {
  background: transparent;
  border: 0;
  color: var(--primary);
}

.button-like.added-block.button.type-ghost.color-secondary {
  background: transparent;
  border: 0;
  color: var(--secondary);
}

.button-like.added-block.button.type-ghost.color-tertiary {
  background: transparent;
  border: 0;
  color: var(--tertiary);
}

.button-like.added-block.button.type-ghost.color-neutral {
  background: transparent;
  border: 0;
  color: var(--neutral);
}

.button-like.added-block.button.corners-none {
  border-radius: 0;
}

.button-like.added-block.button.corners-soft {
  border-radius: 12px;
}

.button-like.added-block.button.corners-round {
  border-radius: 999px;
}

.button-like.added-block.button.color-primary {
  background: var(--primary);
  color: #fff;
}

.button-like.added-block.button.color-secondary {
  background: var(--secondary);
  color: #fff;
}

.button-like.added-block.button.color-tertiary {
  background: var(--tertiary);
  color: #13253e;
}

.button-like.added-block.button.color-neutral {
  background: var(--neutral);
  color: #fff;
}

.button-like.added-block.button.link-preset.type-ghost.color-primary,
.button-like.added-block.button.link-preset.type-ghost.color-secondary,
.button-like.added-block.button.link-preset.type-ghost.color-tertiary,
.button-like.added-block.button.link-preset.type-ghost.color-neutral {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.button-like.added-block.button.link-preset.type-ghost.color-primary {
  color: var(--primary);
}

.button-like.added-block.button.link-preset.type-ghost.color-secondary {
  color: var(--secondary);
}

.button-like.added-block.button.link-preset.type-ghost.color-tertiary {
  color: var(--tertiary);
}

.button-like.added-block.button.link-preset.type-ghost.color-neutral {
  color: #0b0d12;
}

.added-block.dropdown-block {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  width: auto;
  min-width: 180px;
  padding: 12px 18px;
  border: 2px solid #2f86f8;
  border-radius: 0;
  background: #ffffff;
  color: #111318;
  font: 700 1rem var(--font-base);
  cursor: pointer;
}

.added-block.dropdown-block.fill-width {
  width: 100%;
}

.added-block.dropdown-block.size-xs {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.added-block.dropdown-block.size-s {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.added-block.dropdown-block.size-m {
  min-height: 56px;
  padding: 12px 18px;
  font-size: 1rem;
}

.added-block.dropdown-block.size-l {
  min-height: 64px;
  padding: 14px 20px;
  font-size: 1.1rem;
}

.added-block.dropdown-block.size-xl {
  min-height: 72px;
  padding: 16px 22px;
  font-size: 1.22rem;
}

.added-block.dropdown-block.color-neutral {
  color: #111318;
}

.added-block.dropdown-block.color-tertiary {
  color: #9a744e;
}

.dropdown-block-label {
  pointer-events: none;
}

.dropdown-block-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.dropdown-block-chevron svg {
  width: 16px;
  height: 16px;
}

.dropdown-links-group {
  display: grid;
  gap: 12px;
}

.dropdown-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.dropdown-link-open,
.dropdown-link-detail-input {
  min-height: 60px;
}

.dropdown-link-open {
  width: 100%;
  text-align: left;
  border: 1px solid #d7dbe5;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px 20px;
  font: 500 1rem var(--font-base);
}

.dropdown-link-open.active {
  border-color: #1f2732;
  box-shadow: inset 0 0 0 1px #1f2732;
}

.dropdown-link-editor {
  display: grid;
  gap: 14px;
}

.dropdown-link-back {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: #6a7282;
  font: 500 0.92rem var(--font-base);
}

.dropdown-link-add {
  width: fit-content;
  min-width: 110px;
  border: 1px solid #d7dbe5;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 22px;
  font: 500 1rem var(--font-base);
}

.dropdown-link-remove {
  border: 0;
  background: transparent;
  color: #ef4753;
  font: 500 2rem/1 var(--font-base);
  padding: 0 4px;
}

.accordion-item-editor-list {
  display: grid;
  gap: 12px;
}

.accordion-item-editor {
  display: grid;
  gap: 8px;
  border: 1px solid #d7dbe5;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.accordion-item-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-item-editor-actions {
  display: inline-flex;
  gap: 6px;
}

.accordion-item-editor > label {
  font: 500 0.94rem var(--font-base);
  color: #1c2430;
}

.button-like.added-block.button.type-outline.color-primary,
.button-like.added-block.button.type-outline.color-secondary,
.button-like.added-block.button.type-outline.color-tertiary,
.button-like.added-block.button.type-outline.color-neutral {
  background: transparent;
}

.button-like.added-block.button.type-outline.color-primary {
  color: var(--primary);
}

.button-like.added-block.button.type-outline.color-secondary {
  color: var(--secondary);
}

.button-like.added-block.button.type-outline.color-tertiary {
  color: var(--tertiary);
}

.button-like.added-block.button.type-outline.color-neutral {
  color: var(--neutral);
}

.button-like.added-block.button.size-xs {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.button-like.added-block.button.size-s {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.button-like.added-block.button.size-m {
  padding: 10px 14px;
  font-size: 1rem;
}

.button-like.added-block.button.size-l {
  padding: 12px 16px;
  font-size: 1.12rem;
}

.button-like.added-block.button.size-xl {
  padding: 14px 18px;
  font-size: 1.24rem;
}

.added-block.divider {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 22px;
  padding: 4px 0;
  background: #ffffff;
}

.added-block.divider .divider-line {
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: #2f9aff;
}

.added-block.accordion-block {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d8e2f0;
}

.accordion-item + .accordion-item {
  border-top: 1px solid #d8e2f0;
}

.accordion-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  cursor: pointer;
}

.accordion-item-title {
  font: 700 clamp(1.2rem, 2vw, 2.8rem) / 1.12 var(--font-heading);
  color: #14223a;
  text-align: left;
}

.accordion-item-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #1c2430;
}

.accordion-item-chevron svg {
  width: 22px;
  height: 22px;
}

.accordion-item-body {
  overflow: hidden;
  max-height: 480px;
  opacity: 1;
  transition: max-height 180ms ease, opacity 160ms ease, padding 160ms ease;
}

.accordion-item.closed .accordion-item-body {
  max-height: 0;
  opacity: 0;
}

.accordion-item-content {
  margin: 0;
  padding: 0 16px 16px;
  font: 500 1.02rem / 1.5 var(--font-base);
  color: #1c2430;
}

.added-block.icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding-inline: var(--icon-inset, 0);
  min-height: var(--icon-size, 48px);
  color: var(--icon-color, #0b0d12);
  line-height: 0;
}

.added-icon-glyph {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask-image: var(--icon-src);
  mask-image: var(--icon-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.added-block-media {
  width: 100%;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #eef3fb;
}

.added-block.image-frame,
.added-block.video-frame,
.added-block.map-frame {
  position: relative;
  width: 100%;
  padding-inline: var(--image-inset, 0);
}

.added-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.added-block.image-frame .added-block-media,
.added-block.video-frame .added-block-media,
.added-block.map-frame .added-block-media {
  min-height: 220px;
}

.added-block.image-frame img.added-block-media {
  background: transparent;
}

.added-block.video-frame .added-block-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.added-block.image-frame.aspect-16-9 .added-block-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.added-block.image-frame.aspect-3-2 .added-block-media {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.added-block.image-frame.aspect-4-3 .added-block-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.added-block.image-frame.shape-square .added-block-media,
.added-block.image-frame.shape-circle .added-block-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.added-block.image-frame.shape-circle .added-block-media {
  border-radius: 999px;
}

.added-block.image-frame.corners-none .added-block-media,
.added-block.video-frame.corners-none .added-block-media,
.added-block.map-frame.corners-none .added-block-media {
  border-radius: 0;
}

.added-block.image-frame.corners-soft .added-block-media,
.added-block.video-frame.corners-soft .added-block-media,
.added-block.map-frame.corners-soft .added-block-media {
  border-radius: 12px;
}

.added-block.image-frame.corners-round .added-block-media,
.added-block.video-frame.corners-round .added-block-media,
.added-block.map-frame.corners-round .added-block-media {
  border-radius: 24px;
}

.added-block.image-frame.style-plain .added-block-media,
.added-block.video-frame.style-plain .added-block-media,
.added-block.map-frame.style-plain .added-block-media {
  box-shadow: none;
}

.added-block.image-frame.style-inset .added-block-media,
.added-block.video-frame.style-inset .added-block-media,
.added-block.map-frame.style-inset .added-block-media {
  box-shadow: inset 0 0 0 2px rgba(19, 35, 62, 0.12);
}

.added-block.image-frame.style-shadow .added-block-media,
.added-block.video-frame.style-shadow .added-block-media,
.added-block.map-frame.style-shadow .added-block-media {
  box-shadow: 0 14px 26px rgba(13, 30, 56, 0.18);
}

.added-block.image-frame.transparent-media .added-block-media,
.added-block.video-frame.transparent-media .added-block-media,
.added-block.map-frame.transparent-media .added-block-media {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.added-block.map-frame.aspect-16-9 .added-block-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.added-block.map-frame.aspect-3-2 .added-block-media {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.added-block.map-frame.aspect-4-3 .added-block-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.added-block.map-frame.aspect-1-1 .added-block-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.added-image-placeholder {
  display: grid;
  place-items: center;
  background: #ededf1;
  border: 2px solid #d2d7e1;
}

.added-image-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: #b5bbca;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.added-video-placeholder {
  display: grid;
  place-items: center;
  background: #ededf1;
  border: 2px solid #d2d7e1;
}

.added-video-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: #b5bbca;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.added-map-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #ededf1;
  border: 2px solid #d2d7e1;
}

.added-map-surface {
  overflow: hidden;
  padding: 0;
}

.added-map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ededf1;
  pointer-events: none;
}

.added-map-placeholder svg {
  width: 76px;
  height: 76px;
  stroke: #b5bbca;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.added-image {
  display: block;
  min-height: 180px;
  object-fit: cover;
}

.added-video {
  display: block;
  min-height: 220px;
}

.image-inset-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  z-index: 10;
  cursor: ew-resize;
  opacity: 0;
  pointer-events: none;
}

.image-inset-handle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: rgba(18, 28, 45, 0.78);
  box-shadow: 0 8px 18px rgba(12, 24, 42, 0.16);
}

.image-inset-handle.left {
  left: 1px;
}

.image-inset-handle.right {
  right: 1px;
}

.media-inset-handle.left {
  left: max(1px, calc(var(--image-inset, 0px) - 3px));
}

.media-inset-handle.right {
  right: max(1px, calc(var(--image-inset, 0px) - 3px));
}

.icon-inset-handle.left {
  left: max(1px, calc(var(--icon-inset, 0px) - 3px));
}

.icon-inset-handle.right {
  right: max(1px, calc(var(--icon-inset, 0px) - 3px));
}

.added-block-wrap.text-block-selected .image-inset-handle {
  opacity: 1;
  pointer-events: auto;
}

.row-child-wrap.text-block-selected .image-inset-handle {
  opacity: 1;
  pointer-events: auto;
}

.added-block.form {
  display: grid;
  gap: 8px;
}

.added-form-field,
.added-block-select {
  width: 100%;
  border: var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-bg);
  color: var(--field-color);
  box-shadow: var(--field-shadow);
  padding: 10px 12px;
  font: 500 0.95rem var(--font-base);
}

.added-block.html-block {
  min-height: 20px;
  border: 1px solid #cfd7e7;
  border-radius: 2px;
  background: #ffffff;
  overflow: hidden;
}

.html-block-empty {
  min-height: 18px;
  width: 100%;
}

.html-block-frame {
  width: 100%;
  min-height: 28px;
  border: 0;
  display: block;
  background: transparent;
  pointer-events: none;
}

.section-grid-overlay {
  --section-grid-columns: 1;
  --section-grid-padding-x: 16px;
  --section-grid-gap: 0px;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--section-grid-columns), minmax(0, 1fr));
  padding: 0 var(--section-grid-padding-x);
  gap: var(--section-grid-gap);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 4;
}

.section-grid-cell {
  background: rgba(191, 178, 150, 0.12);
  border-radius: 2px;
}

.section-grid-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(19, 99, 255, 0.05);
  outline: 1px solid rgba(19, 99, 255, 0.18);
  outline-offset: -1px;
  border-radius: 3px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 1024px) {
  body:not(.viewport-phone) .section-grid-overlay,
  body:not(.viewport-phone) .section-grid-indicator {
    --section-grid-columns: 12;
    --section-grid-padding-x: 24px;
    --section-grid-gap: 24px;
  }
}

.section-grid-drop-placeholder {
  position: absolute;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(19, 99, 255, 0.06), rgba(19, 99, 255, 0.03));
  outline: 1px dashed rgba(19, 99, 255, 0.38);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 5;
  transition:
    left 110ms cubic-bezier(0.22, 1, 0.36, 1),
    top 110ms cubic-bezier(0.22, 1, 0.36, 1),
    width 110ms cubic-bezier(0.22, 1, 0.36, 1),
    height 110ms cubic-bezier(0.22, 1, 0.36, 1);
}

.badge {
  display: inline-block;
  background: #dce8ff;
  color: #0b4fc9;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 9px;
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
}

.features-grid,
.gallery-grid,
.pricing-grid,
.testimonial-grid,
.faq-grid {
  display: grid;
  gap: 12px;
}

.features-grid,
.gallery-grid,
.pricing-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid #e5ecf7;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #f3f8ff 0%, #ffffff 85%);
}

.contact-grid .card,
.footer-strip {
  background: linear-gradient(140deg, #0f2442, #1f3f68);
  color: #f1f6ff;
  border: none;
}

.footer-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.button-like {
  margin-top: 14px;
  display: inline-flex;
  background: var(--button-fill-bg);
  color: var(--button-fill-color);
  font-weight: 700;
  border-radius: var(--button-radius);
  border: var(--button-fill-border);
  box-shadow: var(--button-fill-shadow);
  padding: 10px 14px;
}

.button-like.secondary {
  background: var(--button-outline-bg);
  color: var(--button-outline-color);
  border: var(--button-outline-border);
  box-shadow: var(--button-outline-shadow);
}

.hero-layout {
  display: grid;
  gap: 20px;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--heading-weight);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 12px 0 0;
  color: #1f2852;
  font-family: var(--font-base);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.hero-actions {
  margin-top: 18px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.hero-layout.center-text,
.hero-layout.center-image {
  justify-items: center;
  text-align: center;
}

.hero-layout.center-text .hero-copy,
.hero-layout.center-image .hero-copy {
  max-width: 760px;
}

.hero-layout.top-left-image .hero-copy {
  max-width: 660px;
}

.hero-layout.split-image {
  grid-template-columns: 1fr minmax(260px, 0.95fr);
  align-items: center;
  gap: 28px;
}

.hero-layout.split-image .hero-copy p,
.hero-layout.top-left-image .hero-copy p,
.hero-layout.center-image .hero-copy p,
.hero-layout.center-text .hero-copy p {
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.web-section.features > .section-content > h2,
.web-section.gallery > .section-content > h2,
.web-section.testimonials > .section-content > h2,
.web-section.pricing > .section-content > h2,
.web-section.faq > .section-content > h2,
.web-section.contact > .section-content > h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--heading-weight);
  line-height: var(--lh-heading);
}

.web-section.features > .section-content > p,
.web-section.gallery > .section-content > p,
.web-section.testimonials > .section-content > p,
.web-section.pricing > .section-content > p,
.web-section.faq > .section-content > p,
.web-section.contact > .section-content > p {
  margin: 0 0 18px;
  font-family: var(--font-base);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

.contact-grid .card h3,
.footer-strip h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--heading-weight);
  line-height: var(--lh-heading);
}

.contact-grid .card p,
.footer-strip p,
.pricing-card {
  font-family: var(--font-base);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.hero-media {
  width: 100%;
}

.hero-image.editable-image {
  height: 420px;
  border-radius: 0;
  border: 0;
  background: #ebedf2;
}

.hero-layout.top-left-image .hero-image.editable-image,
.hero-layout.center-image .hero-image.editable-image {
  height: 440px;
}

.editable-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d9e4f4;
}

[data-edit],
[data-image] {
  outline: none;
}

[data-edit]:focus {
  box-shadow: 0 0 0 2px rgba(19, 99, 255, 0.25);
  border-radius: 6px;
}

[data-image] {
  cursor: pointer;
}

.codex-action-text {
  display: inline;
  color: inherit;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: inherit;
  vertical-align: baseline;
  white-space: pre-wrap;
  outline: none;
  cursor: text;
}

[data-image]:hover {
  box-shadow: 0 0 0 2px rgba(19, 99, 255, 0.25);
}

.right-panel label {
  font-size: 0.82rem;
  color: var(--muted);
}

.right-panel input,
.right-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  padding: 10px;
  font: 500 0.9rem var(--font-base);
}

.design-select,
.page-settings-dialog input,
.page-settings-dialog textarea,
.section-settings-panel input[data-settings-id] {
  border: 1px solid #d8e3f0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

button.danger {
  color: var(--danger);
  border-color: #efc0c4;
}

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

#exportOutput {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: #f8faff;
}

.section-gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 38, 0.4);
  display: grid;
  place-items: center;
  z-index: 90;
}

.section-gallery-modal[hidden] {
  display: none !important;
}

.section-gallery-dialog {
  width: min(980px, calc(100% - 44px));
  height: min(760px, calc(100vh - 92px));
  max-height: calc(100vh - 92px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px 20px 14px;
}

.section-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-gallery-preview-toggle-wrap {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
}

.section-gallery-preview-toggle {
  padding: 8px;
  border-radius: 18px;
}

.section-gallery-preview-toggle button {
  width: 52px;
  height: 44px;
}

.section-gallery-head h3 {
  margin: 0;
  font: var(--heading-weight) 2.9rem var(--font-heading);
}

.section-gallery-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-gallery-body {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
}

.page-settings-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

#uiBlockSettingsModal .page-settings-dialog {
  display: flex;
  flex-direction: column;
}

.page-settings-dialog h3 {
  margin: 0 0 12px;
  font: var(--heading-weight) 2.2rem var(--font-heading);
}

.confirm-dialog {
  width: min(460px, calc(100% - 24px));
  max-height: none;
}

.confirm-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.settings-group {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dde6f3;
  border-radius: 14px;
  background: #fbfdff;
}

.settings-group h4 {
  margin: 0 0 6px;
  font: var(--heading-weight) 1.15rem var(--font-heading);
}

.page-settings-dialog label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
}

.page-settings-dialog input,
.page-settings-dialog textarea {
  width: 100%;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  padding: 11px 12px;
  font: 500 1.02rem var(--font-base);
}

.page-settings-dialog small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.84rem;
}

.settings-inline-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.45rem;
  color: var(--accent, #1363ff);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.settings-inline-link:hover {
  text-decoration: underline;
}

.ui-block-settings-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  background: #eef4fb;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
}

.ui-block-settings-tab {
  border: 1px solid #d8e4f2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 10px;
  font: 700 0.9rem var(--font-base);
  color: #203249;
}

.ui-block-settings-tab.active {
  background: #fff;
  border-color: #9bbbe2;
  box-shadow: 0 1px 2px rgba(16, 39, 70, 0.08);
}

.ui-block-preview-view {
  display: block;
}

.ui-block-preview-view[hidden] {
  display: none !important;
}

.ui-block-preview-toolbar {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.ui-block-preview-toggle {
  padding: 8px;
  border-radius: 18px;
}

.ui-block-preview-toggle button {
  width: 52px;
  height: 44px;
}

.ui-block-preview-shell {
  min-height: 0;
  border: 1px solid #dde6f3;
  border-radius: 14px;
  background: #ffffff;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  position: relative;
}

.ui-block-preview-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
  flex: 0 0 auto;
}

.ui-block-preview-shell[data-preview-viewport="phone"] .ui-block-preview-frame {
  max-width: 100%;
}

.favicon-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
}

.favicon-grid button {
  padding: 8px 10px;
  border-radius: 10px;
}

.favicon-name {
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-preview-box {
  border: 1px solid #dde5f0;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfdff;
}

#pagePreviewImage {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe5f3;
  background: #eef2f8;
}

.locations-dialog {
  width: min(1080px, calc(100% - 24px));
}

.location-editor-dialog {
  width: min(760px, calc(100% - 24px));
}

.menu-categories-dialog {
  width: min(860px, calc(100% - 24px));
}

.locations-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3eaf4;
}

.locations-dialog-head h3 {
  margin: 0;
  font: var(--heading-weight) 2.2rem var(--font-heading);
}

.locations-table-wrap {
  overflow: auto;
  border: 1px solid #dde6f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  margin: 14px 0 18px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.locations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.locations-table th,
.locations-table td {
  padding: 12px;
  border-bottom: 1px solid #e5ecf5;
  text-align: left;
  vertical-align: top;
}

.locations-table th {
  font: 700 0.84rem var(--font-base);
  color: var(--muted);
  background: #f4f8fd;
  position: sticky;
  top: -12px;
  z-index: 1;
}

.locations-table tbody tr:last-child td {
  border-bottom: none;
}

.location-row-actions {
  white-space: nowrap;
}

.location-row-actions button + button {
  margin-left: 8px;
}

.location-detail-row td {
  background: #ffffff;
}

.locations-dialog .module-script-actions,
.location-editor-dialog .module-script-actions,
.menu-categories-dialog .module-script-actions {
  margin-top: 18px;
}

.location-editor-dialog .settings-group,
.locations-dialog .settings-group,
.menu-categories-dialog .settings-group {
  background: #fbfdff;
}

.menu-categories-list-wrap {
  max-height: min(68vh, 720px);
  overflow: auto;
  border: 1px solid #dde6f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  padding: 12px;
  margin: 14px 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.menu-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.menu-category-empty {
  border: 1px dashed #cfdbec;
  border-radius: 12px;
  padding: 16px;
  color: #6f7d92;
  text-align: center;
}

.menu-category-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.menu-category-row.dragging {
  opacity: 0.5;
}

.menu-category-row.drop-target {
  border-color: #8db1ea;
  box-shadow: 0 0 0 1px #bad2f4 inset;
}

.menu-category-drag {
  border: none;
  background: #f3f7fd;
  color: #4f6281;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: grab;
}

.menu-category-fields {
  display: grid;
  gap: 8px;
}

.menu-category-fields label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.menu-category-fields input,
.menu-category-fields textarea {
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: 600 0.95rem var(--font-base);
  resize: vertical;
}

.menu-category-delete {
  margin-top: 24px;
}

.menu-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.menu-item-list-row {
  list-style: none;
}

.menu-item-open-btn {
  width: 100%;
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  text-align: left;
  cursor: pointer;
}

.menu-item-open-btn strong {
  font: 700 0.97rem var(--font-base);
  color: #102137;
}

.menu-item-open-btn span {
  font: 500 0.82rem var(--font-base);
  color: #6a7c95;
}

.menu-item-open-btn:hover {
  border-color: #9fbce6;
  box-shadow: 0 0 0 1px #c8daf3 inset;
}

.menu-item-form-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.menu-item-form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.menu-item-form-grid label em {
  font-style: normal;
  color: #d03030;
}

.menu-item-fields {
  display: grid;
  gap: 10px;
}

.menu-item-fields label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.menu-item-fields label em {
  font-style: normal;
  color: #d03030;
}

.menu-item-fields input,
.menu-item-fields textarea,
.menu-item-fields select {
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: 600 0.95rem var(--font-base);
  resize: vertical;
  background: #fff;
}

.menu-item-fields .field-required-missing {
  border-color: #e39090;
  box-shadow: 0 0 0 1px rgba(221, 100, 100, 0.22) inset;
}

.menu-item-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-item-image-field > span {
  font-weight: 700;
  color: #1a2940;
}

.menu-item-image-controls {
  margin-top: 6px;
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  background: #f9fbff;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.menu-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #d8e2ee;
  background: #eef3f8;
}

.menu-item-thumb.placeholder {
  display: grid;
  place-items: center;
  color: #7384a0;
  font: 700 0.72rem var(--font-base);
}

.menu-item-image-actions {
  display: grid;
  gap: 6px;
  align-items: start;
  justify-items: start;
}

.menu-item-image-actions small {
  color: #77849a;
  font: 500 0.78rem var(--font-base);
}

.menu-item-actions {
  display: grid;
  align-items: start;
}

@media (max-width: 860px) {
  .menu-item-field-grid {
    grid-template-columns: 1fr;
  }
}

.location-editor-active {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid #e4ebf5;
}

.location-editor-dialog .settings-group > small {
  margin-top: 0;
  margin-bottom: 12px;
}

.location-editor-dialog .settings-group h4 + small {
  max-width: 560px;
}

#locationEditorHours {
  display: grid;
  gap: 8px;
}

.location-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.location-detail-grid label,
.location-hours-row {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.location-detail-grid input,
.location-hours-row input {
  width: 100%;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: 500 0.95rem var(--font-base);
}

.location-hours-grid {
  display: grid;
  gap: 8px;
}

.location-hours-head,
.location-hours-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.location-hours-head {
  font: 700 0.8rem var(--font-base);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-settings-actions {
  margin-top: 16px;
}

.settings-action-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.restore-points-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.restore-point-item {
  border: 1px solid #dde5f0;
  border-radius: 16px;
  background: #fbfdff;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.restore-point-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.restore-point-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.restore-point-copy strong {
  font: 700 0.95rem var(--font-base);
  color: #17253a;
}

.restore-point-copy span,
.restore-point-copy small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.restore-point-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.restore-point-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.restore-point-actions button {
  flex: 1 1 120px;
}

.settings-action-btn {
  width: 100%;
  justify-content: flex-start;
}

.settings-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dde5f0;
  background: #fbfdff;
  text-align: left;
}

.settings-module-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfdff;
  align-items: center;
}

.settings-config-copy {
  display: grid;
  gap: 4px;
}

.settings-config-copy strong {
  font-size: 0.98rem;
}

.settings-config-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.settings-config-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: none;
}

.settings-module-meta {
  flex: none;
}

.settings-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: #5f6b7a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.settings-status-chip.is-enabled {
  background: #e8f7ee;
  color: #177245;
}

.settings-status-chip.is-disabled {
  background: #eef3fb;
  color: #5f6b7a;
}

.settings-status-chip.is-warning {
  background: #fff3df;
  color: #946200;
}

.settings-config-cta {
  flex: none;
  color: var(--accent, #1363ff);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.page-settings-actions button {
  width: 100%;
}

.module-script-dialog {
  width: min(1120px, calc(100% - 52px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
}

.module-script-dialog h3 {
  margin: 0 0 16px;
  font: var(--heading-weight) 2rem var(--font-heading);
}

.module-script-dialog label {
  display: block;
  margin: 16px 0 8px;
  font: 700 1.12rem var(--font-base);
  color: #121726;
}

.script-editor-wrap {
  border: 1px solid #e7e7ea;
  border-radius: 24px;
  background: #f3f3f5;
  min-height: 138px;
  display: grid;
  grid-template-columns: 50px 1fr;
  overflow: hidden;
}

.script-editor-lines {
  border-right: 1px solid #dbdde1;
  color: #a2a8b0;
  font: 500 1.08rem/1.5 var(--font-base);
  padding: 12px 0 12px 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.script-editor-wrap textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: vertical;
  min-height: 138px;
  padding: 14px 16px;
  font: 500 1rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #1f2633;
}

.script-editor-wrap textarea:focus {
  outline: none;
}

.script-editor-help {
  margin: 10px 0 4px;
  color: #6f7580;
  font: 500 1.2rem/1.3 var(--font-base);
}

.script-editor-help span {
  display: inline-block;
  background: #ebebee;
  border-radius: 4px;
  padding: 0 8px;
  color: #5d626d;
}

.module-script-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dynamic-section-btn {
  margin-right: auto;
}

.section-gallery-tabs {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 4px 6px 78px;
  border-right: 1px solid #e3e9f2;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.section-gallery-tab {
  text-align: left;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: #1f2f44;
}

.section-gallery-tab.active {
  border-color: #d8e3f2;
  background: #f1f5fb;
}

.gallery-rail-label {
  padding: 2px 8px 6px;
  font: 500 1.85rem var(--font-heading);
  color: #1d2e45;
}

.gallery-rail-subtitle {
  padding: 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: #8a95ab;
}

.section-gallery-grid {
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding-right: 4px;
  display: block;
}

.section-gallery-grid-list {
  display: grid;
  gap: 10px;
  min-height: max-content;
}

.gallery-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  transition: opacity 120ms ease;
}

.gallery-option:hover {
  opacity: 0.95;
}

.gallery-preview {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.gallery-preview.live {
  padding: 0;
  overflow: hidden;
}

.gallery-preview.menu {
  min-height: 0;
  display: grid;
  align-items: center;
}

.gallery-option:not(.menu-template) .gallery-preview {
  min-height: 0;
  display: block;
}

.gallery-preview.snapshot {
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.gallery-preview-shell {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.gallery-preview-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
  pointer-events: none;
  transform-origin: top left;
  margin: 0;
}

.section-gallery-grid[data-preview-viewport="phone"] .gallery-preview-frame {
  max-width: 100%;
}

.snapshot-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.snapshot-scale {
  --snapshot-zoom: 0.255;
  width: calc(100% / var(--snapshot-zoom));
  zoom: var(--snapshot-zoom);
  pointer-events: none;
  overflow: hidden;
}

.snapshot-scale .web-section {
  margin: 0;
  margin-top: 0;
  padding: 20px;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.snapshot-scale .web-section .section-content {
  overflow: hidden;
}

.snapshot-code-thumb {
  width: 100%;
  height: 180px;
  border: 1px dashed #c7d6eb;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f8fbff;
  color: #58719a;
  font: 700 1.2rem var(--font-heading);
}

.custom-block-thumb-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}


.gallery-preview.realistic {
  padding: 8px;
  background: #f4f6f9;
}

.section-thumb {
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.thumb-title {
  width: 56%;
  height: 9px;
  border-radius: 999px;
  background: #cdd8eb;
}

.thumb-title.center {
  margin-inline: auto;
}

.thumb-copy {
  width: 82%;
  height: 6px;
  border-radius: 999px;
  background: #dbe4f3;
}

.thumb-copy.center {
  margin-inline: auto;
}

.thumb-btn-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.thumb-btn-row span {
  width: 44px;
  height: 14px;
  border-radius: 999px;
  background: #f23690;
}

.thumb-btn-row span.outline {
  background: #fff;
  border: 1px solid #f23690;
}

.thumb-media {
  border-radius: 7px;
  border: 1px solid #dfe7f3;
  background: #eceff5;
  min-height: 82px;
}

.thumb-media.wide {
  min-height: 108px;
}

.thumb-media.tall {
  min-height: 132px;
}

.thumb-hero.center {
  justify-items: center;
}

.thumb-hero.split {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 10px;
  align-items: center;
}

.thumb-feature-grid,
.thumb-testimonial-grid,
.thumb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.thumb-feature-card,
.thumb-testimonial-card,
.thumb-pricing-card {
  border: 1px solid #dfe7f3;
  border-radius: 9px;
  background: #fafcff;
  padding: 8px;
  display: grid;
  gap: 5px;
  min-height: 84px;
}

.thumb-feature-card b {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f23690;
}

.thumb-feature-card i,
.thumb-testimonial-card i,
.thumb-pricing-card i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #d6e1f1;
}

.thumb-feature-card i.short,
.thumb-testimonial-card i.short,
.thumb-pricing-card i.short {
  width: 70%;
}

.thumb-testimonial-card b {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b9c7dc;
}

.thumb-pricing-card.featured {
  border-color: #c9daf6;
  background: #edf3ff;
}

.thumb-pricing-card span {
  width: 64%;
  height: 12px;
  border-radius: 999px;
  background: #f23690;
}

.thumb-faq-list {
  display: grid;
  gap: 8px;
}

.thumb-faq-row {
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  background: #fafcff;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thumb-faq-row i {
  width: 68%;
  height: 5px;
  border-radius: 999px;
  background: #d6e1f1;
}

.thumb-faq-row b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #c4d1e6;
}

.thumb-cta-shell {
  border: 1px solid #dfe7f3;
  border-radius: 10px;
  background: #fafcff;
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.thumb-logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.thumb-logo-row span {
  display: block;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #dfe7f3;
  background: #f0f4fa;
}

.thumb-footer-shell {
  border-radius: 10px;
  background: linear-gradient(132deg, #172f52, #21446e);
  padding: 10px;
  min-height: 124px;
  display: grid;
  align-content: end;
  gap: 9px;
}

.thumb-footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.thumb-footer-top .brand {
  display: block;
  width: 50px;
  height: 7px;
  border-radius: 999px;
  background: rgba(242, 247, 255, 0.95);
}

.thumb-footer-top .links {
  justify-self: end;
  display: inline-flex;
  gap: 5px;
}

.thumb-footer-top .links i {
  display: block;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(230, 239, 250, 0.8);
}

.thumb-footer-bottom {
  width: 46%;
  height: 5px;
  border-radius: 999px;
  background: rgba(230, 239, 250, 0.65);
}

.preview-header-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.preview-header-row strong {
  margin: 0;
  font: 700 var(--text-h4) / var(--lh-heading) var(--font-heading);
  color: #767f9b;
}

.preview-menu-links {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #78809a;
  font: 500 0.83rem/1.2 var(--font-base);
}

.preview-menu-aux {
  color: #f27db2;
}

.preview-menu-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.preview-menu-shell {
  display: grid;
  align-items: center;
  gap: 10px;
}

.preview-menu-shell strong {
  margin: 0;
  font: 700 var(--text-h4) / var(--lh-heading) var(--font-heading);
  color: #767f9b;
}

.preview-menu-shell .preview-menu-links {
  justify-self: end;
}

.preview-menu-shell.v1,
.preview-menu-shell.v2 {
  grid-template-columns: auto 1fr auto;
}

.preview-menu-shell.v3,
.preview-menu-shell.v6 {
  grid-template-columns: auto 1fr auto;
}

.preview-menu-shell.v4 {
  grid-template-columns: 1fr auto;
}

.preview-menu-left-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.preview-menu-shell.v5 {
  grid-template-columns: 1fr auto auto;
}

.preview-menu-shell.v5 strong {
  justify-self: center;
}

.preview-menu-shell.v6 strong {
  justify-self: center;
}

.preview-menu-shell.v6 .preview-menu-links {
  justify-self: center;
}

.preview-menu-shell.v6 .preview-menu-actions {
  justify-self: end;
}

.preview-menu-shell.v7 {
  grid-template-columns: 1fr;
}

.preview-menu-shell.v7 .preview-menu-links {
  justify-self: center;
}

.preview-cta {
  border-radius: 999px;
  padding: 6px 12px;
  background: #f398c6;
  color: #fff;
  font: 700 0.78rem/1 var(--font-base);
}

.gallery-option.menu-template {
  padding-top: 0;
}

.gallery-preview.logos {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.gallery-option.kind-logos .gallery-preview {
  min-height: 188px;
}

.preview-logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.preview-logo-row span {
  display: block;
  border-radius: 8px;
  height: 36px;
  background: #eef2f8;
  border: 1px solid #dde5f1;
}

.preview-hero {
  display: grid;
  gap: 8px;
}

.gallery-option.kind-hero_top_left_image .preview-image.wide,
.gallery-option.kind-hero_center_image .preview-image.wide {
  min-height: 122px;
}

.gallery-option.kind-hero_split_image .preview-image.tall {
  min-height: 138px;
}

.preview-lines {
  display: grid;
  gap: 4px;
}

.preview-lines.center {
  justify-items: center;
}

.preview-line {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #dbe6f7;
}

.preview-line.short {
  width: 62%;
}

.preview-hero-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.preview-pill {
  width: 42px;
  height: 14px;
  border-radius: 999px;
  background: #f23690;
}

.preview-pill.outline {
  background: transparent;
  border: 1px solid #f23690;
}

.preview-image {
  border-radius: 6px;
  min-height: 32px;
  background: #ebeef3;
  border: 1px solid #e1e6ee;
}

.preview-image.wide {
  min-height: 72px;
}

.preview-image.tall {
  min-height: 88px;
}

.preview-hero.center {
  justify-items: center;
}

.preview-hero.top-left {
  grid-template-columns: 1fr;
}

.preview-hero.split {
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.preview-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-card {
  height: 26px;
  border-radius: 6px;
  background: #ecf2fb;
  border: 1px solid #e0e9f6;
}

.preview-card.featured {
  background: #dce9ff;
  border-color: #bfd6ff;
}

.preview-footer {
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(130deg, #17345a, #29537f);
}

.preview-feature-grid,
.preview-testimonial-grid,
.preview-pricing-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-feature-card,
.preview-testimonial-card,
.preview-pricing-card {
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.gallery-option.kind-features .preview-feature-card {
  min-height: 108px;
}

.gallery-option.kind-testimonials .preview-testimonial-card {
  min-height: 118px;
}

.preview-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f23690;
}

.preview-feature-line {
  height: 4px;
  border-radius: 999px;
  background: #d9e3f2;
}

.preview-feature-line.short {
  width: 76%;
}

.preview-quote-line {
  height: 4px;
  border-radius: 999px;
  background: #d9e3f2;
}

.preview-quote-line.short {
  width: 66%;
}

.preview-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b8c5da;
}

.preview-pricing-card {
  min-height: 66px;
}

.gallery-option.kind-pricing .preview-pricing-card {
  min-height: 122px;
}

.preview-pricing-card.featured {
  border-color: #cbdcf7;
  background: #edf3ff;
}

.preview-price-line {
  height: 5px;
  border-radius: 999px;
  background: #d5deec;
}

.preview-price-line.short {
  width: 58%;
}

.preview-price-btn {
  width: 62%;
  height: 14px;
  border-radius: 999px;
  background: #f23690;
}

.preview-faq-list {
  display: grid;
  gap: 6px;
}

.gallery-option.kind-faq .preview-faq-list {
  gap: 9px;
}

.preview-faq-row {
  border: 1px solid #e0e7f2;
  border-radius: 9px;
  background: #f8fafd;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-faq-row span {
  display: block;
  width: 72%;
  height: 4px;
  border-radius: 999px;
  background: #d9e3f2;
}

.preview-faq-row i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #c9d5e7;
}

.preview-cta-box {
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #f8fafd;
  padding: 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.gallery-option.kind-cta .preview-cta-box {
  min-height: 164px;
  align-content: center;
}

.preview-footer-block {
  border-radius: 10px;
  background: linear-gradient(132deg, #172f52, #21446e);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.gallery-option.kind-footer .preview-footer-block {
  min-height: 148px;
  align-content: end;
}

.preview-footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.preview-footer-brand {
  display: block;
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: rgba(246, 250, 255, 0.95);
}

.preview-footer-links {
  justify-self: end;
  display: inline-flex;
  gap: 6px;
}

.preview-footer-links i {
  display: block;
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(235, 241, 250, 0.8);
}

.preview-footer-bottom {
  height: 5px;
  width: 44%;
  border-radius: 999px;
  background: rgba(235, 241, 250, 0.6);
}

.menu-section-shell {
  border: 1px solid #e2e8f1;
  border-radius: 14px;
  background: var(--menu-shell-bg, #fff);
  padding: 14px 16px;
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: var(--menu-row-height, 66px);
}

.menu-pin-wrap.fixed {
  position: sticky;
  top: 78px;
  z-index: 15;
}

body.preview .menu-pin-wrap.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
}

body.preview.viewport-phone .menu-pin-wrap.fixed {
  left: 0;
  right: 0;
  width: auto;
  transform: none;
}

body.preview .menu-pin-wrap.fixed .menu-section-shell {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin: 0;
}

.menu-section-shell strong.menu-brand {
  margin: 0;
  font: var(--heading-weight) 1.05rem var(--font-heading);
  color: var(--menu-ink, #707894);
}

.menu-links-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.menu-link {
  color: var(--menu-ink, #75809b);
  font-size: 0.92rem;
}

.menu-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.menu-link.aux {
  color: var(--menu-cta-bg, #f27db2);
}

.menu-cta {
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--menu-cta-bg, #f398c6);
  color: #fff;
  font-weight: 700;
}

.menu-section-shell.v1 {
  grid-template-columns: auto 1fr;
}

.menu-section-shell.v1 .menu-links-wrap {
  justify-self: end;
}

.menu-section-shell.v2,
.menu-section-shell.v3,
.menu-section-shell.v6 {
  grid-template-columns: auto 1fr auto;
}

.menu-section-shell.v2 .menu-links-wrap {
  justify-self: end;
}

.menu-section-shell.v3 .menu-links-wrap {
  justify-self: center;
}

.menu-section-shell.v6 strong.menu-brand {
  justify-self: center;
}

.menu-section-shell.v6 .menu-links-wrap {
  justify-self: center;
}

.menu-section-shell.v4 {
  grid-template-columns: 1fr auto;
}

.menu-section-shell.v4 .menu-left-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.menu-section-shell.v5 {
  grid-template-columns: 1fr auto auto;
}

.menu-section-shell.v5 strong.menu-brand {
  justify-self: center;
}

.menu-section-shell.v7 {
  grid-template-columns: 1fr;
}

.menu-section-shell.v7 .menu-links-wrap {
  justify-self: center;
}

.menu-note {
  margin: 10px 8px 0;
  color: #6f768b;
  font-size: 0.95rem;
}

.gallery-blank-option {
  position: absolute;
  left: 6px;
  right: 12px;
  bottom: 8px;
  width: auto;
  text-align: center;
  border-radius: 14px;
  border: 1px solid #d5dde9;
  background: #fff;
  font-size: 0.92rem;
  padding: 10px 12px;
}

@media (max-width: 920px) {
  .section-gallery-body {
    grid-template-columns: 1fr;
  }

  .section-gallery-tabs {
    border-right: 0;
    border-bottom: 1px solid #e3e9f2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 0 70px;
  }

  .gallery-blank-option {
    left: 0;
    right: 0;
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .panel,
  .right-panel {
    border: none;
    border-bottom: 1px solid var(--line);
  }

  .right-panel {
    position: relative;
    top: auto;
    height: auto;
  }

  .canvas-wrap {
    overflow: visible;
  }

  .canvas-engine-status,
  .canvas-engine-debug {
    right: 10px;
    max-width: min(320px, calc(100% - 20px));
  }

  .canvas-engine-status {
    top: 10px;
  }

  .canvas-engine-debug {
    bottom: 10px;
  }

  .hero-layout.split-image,
  .contact-grid,
  .features-grid,
  .gallery-grid,
  .pricing-grid,
  .testimonial-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.logo-block {
  display: flex;
  align-items: center;
  min-height: 48px;
  width: 100%;
  color: #11151f;
}

.logo-block-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.logo-block-link {
  display: flex;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.logo-block.align-left .logo-block-inner {
  justify-content: flex-start;
}

.logo-block.align-center .logo-block-inner {
  justify-content: center;
}

.logo-block.align-right .logo-block-inner {
  justify-content: flex-end;
}

.logo-block-image {
  width: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.logo-block-placeholder {
  width: 42px;
  border-radius: 10px;
  background: #f3f5f9;
  border: 1px solid #d6dbe6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.logo-block-placeholder svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #9ca7bb;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-block-title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
}

.logo-block-title.size-xs { font-size: 18px; }
.logo-block-title.size-s { font-size: 24px; }
.logo-block-title.size-m { font-size: 32px; }
.logo-block-title.size-l { font-size: 40px; }
.logo-block-title.size-xl { font-size: 48px; }

.nested-container-preview {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nested-container-preview-item {
  width: 100%;
}

.nested-stack-preview {
  width: 100%;
}

.template-library-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(247, 178, 208, 0.38), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 228, 193, 0.72), transparent 26%),
    #fff;
  color: #12233b;
}

.start-website-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(248, 203, 228, 0.95), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 232, 205, 0.95), transparent 24%),
    #fff;
  color: #12233b;
}

.start-website-shell {
  width: min(1360px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.start-website-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.start-website-brand {
  font: 800 1.8rem/1 "Sora", sans-serif;
  letter-spacing: -0.05em;
}

.start-website-nav {
  display: inline-flex;
  justify-content: center;
  gap: 32px;
}

.start-website-nav a {
  color: #1f3150;
  text-decoration: none;
  font: 600 0.95rem/1 var(--font-base);
}

.start-website-hero {
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 38px;
  align-items: center;
  padding-top: 72px;
}

.start-website-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: #526784;
  font: 700 0.82rem/1 var(--font-base);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.start-website-hero-copy h1 {
  margin: 0;
  font: 800 var(--text-h1) / 0.92 var(--font-heading);
  letter-spacing: -0.07em;
}

.start-website-hero-copy p {
  margin: 18px 0 0;
  max-width: 560px;
  color: #536882;
  font: 500 var(--text-body) / var(--lh-body) var(--font-base);
}

.start-website-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.start-website-cta-row .primary,
.start-website-cta-row .ghost,
.start-website-header .primary {
  border-radius: 999px;
  padding: 15px 22px;
  font: 700 0.95rem/1 var(--font-base);
}

.start-website-browser {
  border: 1px solid #dfe7f2;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 64px rgba(18, 35, 59, 0.12);
}

.start-website-browser-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid #ebf0f7;
  background: rgba(251, 252, 255, 0.96);
}

.start-website-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d5dfeb;
}

.start-website-browser-stage {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.65)),
    linear-gradient(135deg, #faf0ff 0%, #ffffff 55%, #fff7ec 100%);
}

.start-website-browser-stage img {
  width: 100%;
  display: block;
}

.template-library-shell {
  width: min(1320px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.template-library-header {
  display: grid;
  gap: 32px;
}

.template-library-brand {
  font: 800 1.65rem/1 var(--font-heading);
  letter-spacing: -0.04em;
}

.template-library-copy {
  max-width: 680px;
}

.template-library-copy h1 {
  margin: 0;
  font: 800 var(--text-h1)/0.96 var(--font-heading);
  letter-spacing: -0.06em;
}

.template-library-copy p {
  margin: 16px 0 0;
  max-width: 560px;
  color: #4f627e;
  font: 500 var(--text-body)/var(--lh-body) var(--font-base);
}

.template-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 28px;
}

.template-library-filter {
  border: 1px solid #dce3ee;
  background: rgba(255, 255, 255, 0.9);
  color: #334766;
  border-radius: 999px;
  padding: 10px 16px;
  font: 700 0.92rem/1 var(--font-base);
  cursor: pointer;
}

.template-library-filter.active {
  background: #12233b;
  border-color: #12233b;
  color: #fff;
}

.template-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.template-library-card {
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(18, 35, 59, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
}

.template-library-card-media {
  aspect-ratio: 16 / 12.5;
  overflow: hidden;
  background: #f3f6fb;
}

.template-library-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-library-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 22px;
}

.template-library-card-copy strong {
  display: block;
  font: 700 1rem/1.25 var(--font-base);
}

.template-library-card-cta {
  border: 1px solid #dce3ee;
  background: #fff;
  color: #12233b;
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 0.92rem/1 var(--font-base);
  cursor: pointer;
  white-space: nowrap;
}

.template-library-card-cta:hover {
  background: #12233b;
  border-color: #12233b;
  color: #fff;
}

.template-preview-screen {
  min-height: 100vh;
  background: #fff;
  color: #12233b;
}

.template-preview-shell {
  width: min(1400px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.template-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.template-preview-back {
  border: 0;
  background: transparent;
  color: #314967;
  font: 700 0.95rem/1 var(--font-base);
  cursor: pointer;
  padding: 8px 0;
}

.template-preview-start,
.template-preview-start-inline {
  border-radius: 999px;
  padding: 14px 20px;
  font: 700 0.95rem/1 var(--font-base);
}

.template-preview-hero {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 42px;
  align-items: start;
}

.template-preview-copy {
  position: sticky;
  top: 32px;
}

.template-preview-eyebrow {
  margin: 0 0 14px;
  color: #5d7393;
  font: 700 0.88rem/1 var(--font-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-preview-copy h1 {
  margin: 0;
  font: 800 var(--text-h1)/0.96 var(--font-heading);
  letter-spacing: -0.06em;
}

.template-preview-copy p:not(.template-preview-eyebrow) {
  margin: 18px 0 0;
  color: #536882;
  font: 500 var(--text-body)/var(--lh-body) var(--font-base);
}

.template-preview-start-inline {
  margin-top: 24px;
}

.template-preview-stage {
  min-width: 0;
}

.template-preview-browser {
  border: 1px solid #dbe4ef;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 35, 59, 0.12);
}

.template-preview-browser-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e7edf6;
  background: #fbfcfe;
}

.template-preview-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d6dfec;
}

.template-preview-frame-shell {
  background: #fff;
  padding: 0;
}

.template-preview-frame {
  width: 100%;
  min-height: 1320px;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 900px) {
  .start-website-shell {
    width: min(100vw - 32px, 1360px);
    padding: 20px 0 48px;
  }

  .start-website-header {
    grid-template-columns: 1fr;
  }

  .start-website-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }

  .start-website-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .template-library-shell {
    width: min(100vw - 32px, 1320px);
    padding: 36px 0 56px;
  }

  .template-library-grid {
    grid-template-columns: 1fr;
  }

  .template-library-card-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-preview-shell {
    width: min(100vw - 28px, 1400px);
    padding: 20px 0 48px;
  }

  .template-preview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-preview-hero {
    grid-template-columns: 1fr;
  }

  .template-preview-copy {
    position: static;
  }
}
