/* BARBAROS — lp-studio.css: Landing Studio (home, Canva-like editor, overview promo)
   Collision list: #panel-landing-pages legacy creator markup is hidden (#1); `[class*="card"]` painters
   never match (classes are lps-*); `.panel-header` of the legacy panel hidden (#1). */

/* #1 — the legacy creator stays in the DOM (its inline scripts query it) but is never shown */
html[data-buld-theme] #panel-landing-pages > *:not(#lpStudio) { display: none !important; }
html[data-buld-theme] #panel-landing-pages #lpStudio { display: block; }
/* #2 — dark-fix.css paints `[class*="card"]:hover` with the dark raise colour; `.p-card` matches it */
html[data-buld-theme] body #lpStudio .p-card, html[data-buld-theme] body #lpStudio .p-card:hover,
html[data-buld-theme] body #panel-overview .lps-promo:hover { background: var(--p-card-bg) !important; border-color: var(--p-card-border) !important; }

html[data-buld-theme] .lps { --lps-gap: 18px; color: var(--buld-ink-1); }
html[data-buld-theme] .lps-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
html[data-buld-theme] .lps-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--buld-ink-1); }
html[data-buld-theme] .lps-head p { margin: 2px 0 0; font-size: 13px; color: var(--buld-ink-3); }
html[data-buld-theme] .lps-head--bar { justify-content: flex-start; }
html[data-buld-theme] .lps-sub { margin: 26px 0 12px; font-size: 15px; font-weight: 600; color: var(--buld-ink-1); }
html[data-buld-theme] .lps-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--buld-cta); }
html[data-buld-theme] .lps-eyebrow svg { width: 14px; height: 14px; }
html[data-buld-theme] .lps-muted { font-size: 12.5px; color: var(--buld-ink-3); line-height: 1.5; margin: 0 0 10px; }
html[data-buld-theme] .lps-danger { color: var(--buld-danger) !important; }
html[data-buld-theme] .lps-btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
html[data-buld-theme] .lps .bx-btn svg, html[data-buld-theme] .lps .bx-btn i { width: 15px; height: 15px; }
html[data-buld-theme] .lps-chip { gap: 6px; }

/* hero */
html[data-buld-theme] .lps-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; padding: 30px 32px; overflow: hidden; position: relative; }
html[data-buld-theme] .lps-hero h2 { margin: 10px 0 8px; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--buld-ink-1); }
html[data-buld-theme] .lps-hero p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--buld-ink-3); max-width: 60ch; }
html[data-buld-theme] .lps-hero__steps { display: flex; gap: 12px; margin: 18px 0 20px; flex-wrap: wrap; }
html[data-buld-theme] .lps-hero__steps div { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--buld-ink-2); }
html[data-buld-theme] .lps-hero__steps b { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--buld-cta-soft); color: var(--buld-cta); font-size: 12px; }
html[data-buld-theme] .lps-hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
html[data-buld-theme] .lps-hero__art { display: flex; align-items: center; justify-content: center; }
html[data-buld-theme] .lps-mock { width: 150px; padding: 14px; border-radius: 18px; background: var(--buld-elevated-2, #fff); border: 1px solid var(--buld-hairline); box-shadow: var(--bx-shadow-2); display: grid; gap: 8px; transform: rotate(-4deg); }
html[data-buld-theme="dark"] .lps-mock { background: var(--buld-surface-2); }
html[data-buld-theme] .lps-mock i { display: block; height: 8px; border-radius: 4px; background: var(--buld-hover); }
html[data-buld-theme] .lps-mock i:first-child { width: 60%; background: var(--buld-cta); opacity: .9; }
html[data-buld-theme] .lps-mock i.img { height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--buld-cta-soft), var(--buld-hover)); }
html[data-buld-theme] .lps-mock i.btn { height: 22px; border-radius: 8px; background: var(--buld-cta); }
html[data-buld-theme] .lps-mock--sm { width: 110px; padding: 10px; gap: 6px; }
html[data-buld-theme] .lps-mock--sm i.img { height: 46px; }

/* page cards */
html[data-buld-theme] .lps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
html[data-buld-theme] .lps-pg { background: var(--p-card-bg); border: 1px solid var(--p-card-border); border-radius: var(--p-card-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--bx-dur-hover) var(--bx-ease), box-shadow var(--bx-dur-hover) var(--bx-ease); }
html[data-buld-theme="light"] .lps-pg { box-shadow: var(--bx-shadow-1); }
html[data-buld-theme] .lps-pg:hover { transform: translateY(-2px); box-shadow: var(--bx-shadow-2); }
html[data-buld-theme] .lps-pg--sk { height: 260px; background: linear-gradient(90deg, var(--buld-elevated) 25%, var(--buld-hover) 50%, var(--buld-elevated) 75%); background-size: 200% 100%; animation: lpsSk 1.2s linear infinite; }
@keyframes lpsSk { to { background-position: -200% 0; } }
html[data-buld-theme] .lps-pg__cover { aspect-ratio: 16/10; background: var(--buld-elevated); display: flex; align-items: center; justify-content: center; color: var(--buld-ink-4); cursor: pointer; overflow: hidden; }
html[data-buld-theme] .lps-pg__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-buld-theme] .lps-pg__cover svg { width: 28px; height: 28px; }
html[data-buld-theme] .lps-pg__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
html[data-buld-theme] .lps-pg__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html[data-buld-theme] .lps-pg__title strong { font-size: 14.5px; font-weight: 600; color: var(--buld-ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-buld-theme] .lps-pg__meta { display: flex; gap: 14px; font-size: 12px; color: var(--buld-ink-3); }
html[data-buld-theme] .lps-pg__meta span { display: inline-flex; align-items: center; gap: 4px; }
html[data-buld-theme] .lps-pg__meta svg { width: 13px; height: 13px; }
html[data-buld-theme] .lps-pg__actions { display: flex; align-items: center; gap: 6px; }
html[data-buld-theme] .lps-pg__actions .p-iconbtn { width: 30px; height: 30px; }
html[data-buld-theme] .lps-pg__actions .p-iconbtn:first-of-type { margin-inline-start: auto; }

/* fields, segments, palettes (inspector) */
html[data-buld-theme] .lps-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--buld-ink-3); min-width: 160px; flex: 1; }
html[data-buld-theme] .lps-field > span { display: flex; justify-content: space-between; }
html[data-buld-theme] .lps-field small { font-weight: 400; color: var(--buld-ink-4); }
html[data-buld-theme] body .lps input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]), html[data-buld-theme] body .lps select, html[data-buld-theme] body .lps textarea {
    width: 100%; height: 36px; padding: 0 12px; margin: 0; border-radius: 10px; border: 1px solid var(--buld-hairline); background: var(--buld-elevated-2, #fff); color: var(--buld-ink-1); font: inherit; font-size: 13.5px; font-weight: 500; box-shadow: none; outline: none; }
html[data-buld-theme="dark"] body .lps input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), html[data-buld-theme="dark"] body .lps select, html[data-buld-theme="dark"] body .lps textarea { background: var(--buld-surface-2); }
html[data-buld-theme] body .lps textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
html[data-buld-theme] body .lps input:focus, html[data-buld-theme] body .lps select:focus, html[data-buld-theme] body .lps textarea:focus { border-color: var(--buld-cta); box-shadow: 0 0 0 3px var(--buld-cta-soft); }
html[data-buld-theme] .lps-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--buld-elevated); gap: 2px; }
html[data-buld-theme] body .lps-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--buld-ink-3); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
html[data-buld-theme] body .lps-seg button.on { background: var(--buld-elevated-2, #fff); color: var(--buld-ink-1); box-shadow: var(--bx-shadow-1); }
html[data-buld-theme="dark"] body .lps-seg button.on { background: var(--buld-hover); }
html[data-buld-theme] .lps-seg--icons button { width: 34px; padding: 0; justify-content: center; }
html[data-buld-theme] .lps-seg svg { width: 15px; height: 15px; }
html[data-buld-theme] .lps-presets { display: flex; gap: 10px; flex-wrap: wrap; }
html[data-buld-theme] body .lps-preset { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; border: 2px solid transparent; background: var(--buld-elevated); cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--buld-ink-3); }
html[data-buld-theme] body .lps-preset.on { border-color: var(--buld-cta); color: var(--buld-ink-1); }
html[data-buld-theme] .lps-preset i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin: 0 -3px; border: 2px solid var(--buld-elevated); }
html[data-buld-theme] .lps-preset i:first-child { margin-inline-start: 0; }
html[data-buld-theme] .lps-presets--sm .lps-preset { padding: 6px; }
html[data-buld-theme] .lps-presets--sm .lps-preset i { width: 14px; height: 14px; }

/* editor */
html[data-buld-theme] .lps-ebar { gap: 12px; margin-bottom: 14px; position: sticky; top: 64px; z-index: 20; padding: 10px 0; background: var(--buld-page); }
html[data-buld-theme] body .lps-name { flex: 0 1 300px !important; height: 34px !important; font-size: 15px !important; font-weight: 600 !important; }
html[data-buld-theme] .lps-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--buld-success); white-space: nowrap; }
html[data-buld-theme] .lps-saved.is-dirty { color: var(--buld-ink-3); }
html[data-buld-theme] .lps-saved svg { width: 14px; height: 14px; }
html[data-buld-theme] .lps-ebar__right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
html[data-buld-theme] .lps-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--lps-gap); align-items: start; }
html[data-buld-theme] .lps-canvas { background: var(--buld-elevated); border-radius: var(--p-card-radius); padding: 24px; min-height: calc(100vh - 220px); display: flex; justify-content: center; border: 1px solid var(--p-card-border); }
html[data-buld-theme="dark"] .lps-canvas { background: #1d1c20; }
html[data-buld-theme] .lps-frame-wrap { width: 100%; max-width: 1100px; height: calc(100vh - 268px); min-height: 560px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--bx-shadow-3); transition: max-width var(--bx-dur-overlay) var(--bx-ease); }
html[data-buld-theme] .lps-canvas[data-device="mobile"] .lps-frame-wrap { max-width: 400px; border-radius: 30px; border: 8px solid #1c1c1e; }
html[data-buld-theme] .lps-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
html[data-buld-theme] .lps-inspector { position: sticky; top: 76px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
html[data-buld-theme] .lps-tabs { display: flex; border-bottom: 1px solid var(--buld-hairline); }
html[data-buld-theme] body .lps-tabs button { flex: 1; height: 44px; border: 0; background: transparent; color: var(--buld-ink-3); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
html[data-buld-theme] body .lps-tabs button.on { color: var(--buld-cta); border-bottom-color: var(--buld-cta); }
html[data-buld-theme] .lps-tabs svg { width: 15px; height: 15px; }
html[data-buld-theme] .lps-inspector__body { overflow: auto; padding: 16px; display: grid; gap: 18px; align-content: start; }
html[data-buld-theme] .lps-group h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--buld-ink-3); display: flex; flex-direction: column; gap: 2px; }
html[data-buld-theme] .lps-group h4 small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11.5px; color: var(--buld-ink-4); }
html[data-buld-theme] .lps-group .lps-field { margin-bottom: 10px; min-width: 0; }
html[data-buld-theme] .lps-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-buld-theme] .lps-color { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--buld-hairline); background: var(--buld-elevated-2, #fff); }
html[data-buld-theme="dark"] .lps-color { background: var(--buld-surface-2); }
html[data-buld-theme] body .lps-color input[type="color"] { width: 26px; height: 26px; padding: 0; border: 0; background: none; border-radius: 6px; cursor: pointer; }
html[data-buld-theme] .lps-color code { font-size: 12px; color: var(--buld-ink-2); font-family: ui-monospace, monospace; }
html[data-buld-theme] body .lps input[type="range"] { width: 100%; accent-color: var(--buld-cta); }
html[data-buld-theme] .lps-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--buld-ink-2); cursor: pointer; }
html[data-buld-theme] body .lps-check input { width: 16px; height: 16px; accent-color: var(--buld-cta); margin: 0; }
html[data-buld-theme] .lps-checks { display: grid; gap: 8px; }
html[data-buld-theme] .lps-secs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
html[data-buld-theme] .lps-secs li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 9px; background: var(--buld-elevated); font-size: 13px; font-weight: 500; color: var(--buld-ink-1); }
html[data-buld-theme] .lps-secs li.off { opacity: .5; }
html[data-buld-theme] .lps-secs__btns { display: inline-flex; gap: 2px; }
html[data-buld-theme] body .lps-secs__btns button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--buld-ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
html[data-buld-theme] body .lps-secs__btns button:hover { background: var(--buld-hover); color: var(--buld-ink-1); }
html[data-buld-theme] .lps-secs__btns svg { width: 14px; height: 14px; }
html[data-buld-theme] .lps-status { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--buld-ink-3); margin-bottom: 10px; }
html[data-buld-theme] .lps-link { display: flex; gap: 6px; margin-bottom: 10px; }
html[data-buld-theme] body .lps-link input { font-size: 12px !important; font-family: ui-monospace, monospace; }
html[data-buld-theme] .lps-btns { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-buld-theme] .lps-installed { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bx-success-soft); color: var(--buld-success); font-size: 12.5px; margin-bottom: 10px; flex-wrap: wrap; }
html[data-buld-theme] .lps-installed svg { width: 16px; height: 16px; flex-shrink: 0; }
html[data-buld-theme] .lps-installed a { color: inherit; font-weight: 600; word-break: break-all; }
html[data-buld-theme] .lps-plist { display: grid; gap: 6px; max-height: 260px; overflow: auto; margin-bottom: 10px; }
html[data-buld-theme] .lps-prod { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--buld-hairline); cursor: pointer; }
html[data-buld-theme] .lps-prod.on { border-color: var(--buld-cta); background: var(--buld-cta-soft); }
html[data-buld-theme] body .lps-prod input { accent-color: var(--buld-cta); margin: 0; }
html[data-buld-theme] .lps-prod img, html[data-buld-theme] .lps-prod__ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--buld-elevated); display: inline-flex; align-items: center; justify-content: center; color: var(--buld-ink-4); flex-shrink: 0; }
html[data-buld-theme] .lps-prod__ph svg { width: 16px; height: 16px; }
html[data-buld-theme] .lps-prod__t { display: flex; flex-direction: column; min-width: 0; }
html[data-buld-theme] .lps-prod__t strong { font-size: 13px; font-weight: 600; color: var(--buld-ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-buld-theme] .lps-prod__t small { font-size: 11.5px; color: var(--buld-ink-3); }

/* overview promo */
html[data-buld-theme] body #panel-overview .lps-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 18px 22px; margin: 0 0 18px; background: var(--p-card-bg) !important; border: 1px solid var(--p-card-border) !important; }
html[data-buld-theme] body .lps-promo h3 { margin: 4px 0 4px; font-size: 16px; font-weight: 600; color: var(--buld-ink-1) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
html[data-buld-theme] body .lps-promo p { margin: 0; font-size: 13px; color: var(--buld-ink-3) !important; background: transparent !important; border: 0 !important; padding: 0 !important; max-width: 70ch; }
html[data-buld-theme] .lps-promo__cta { display: flex; gap: 8px; }
html[data-buld-theme] .lps-promo__art .lps-mock { transform: rotate(-6deg); }

/* nav: the Studio entry is a primary section */
html[data-buld-theme] .ap-nav-group[data-group="studio"] > .ap-nav-link::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--buld-cta); margin-inline-end: 7px; vertical-align: 2px; }

@media (max-width: 1100px) { html[data-buld-theme] .lps-editor { grid-template-columns: 1fr; } html[data-buld-theme] .lps-inspector { position: static; max-height: none; } html[data-buld-theme] .lps-hero { grid-template-columns: 1fr; } html[data-buld-theme] .lps-hero__art { display: none; } }
@media (max-width: 760px) { html[data-buld-theme] body #panel-overview .lps-promo { grid-template-columns: 1fr; } html[data-buld-theme] .lps-promo__art { display: none; } html[data-buld-theme] .lps-ebar { flex-wrap: wrap; } }

/* ==========================================================================
   Editor workspace (2026-10 audit). The editor fills the space under the topbar like Canva or the
   Shopify theme editor: one bar on top, the canvas and the inspector below, each scrolling on its
   own. The page behind no longer scrolls, so the bar and the inspector can never overlap, and the
   frame is as tall as the screen allows (above the floating assistant field).
   ========================================================================== */
html[data-buld-theme] #panel-landing-pages #lpStudio[data-view="editor"], html[data-buld-theme] #lpStudio[data-view="editor"] { position: fixed; inset: 64px 0 0 0; z-index: 30; display: flex; flex-direction: column; gap: 12px; padding: 12px max(16px, 2vw) 0; background: var(--buld-page); }
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-ebar { position: static; margin: 0; padding: 0; flex-wrap: nowrap; min-width: 0; }
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-name { min-width: 120px; max-width: 360px; flex: 0 1 360px; }
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-editor { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-canvas { min-height: 0; height: auto; overflow: hidden; padding: 20px 20px 92px; margin-bottom: 12px; align-items: stretch; }
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-frame-wrap { height: 100%; min-height: 0; }
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-inspector { position: relative; top: auto; height: 100%; max-height: none; margin-bottom: 12px; }
html[data-buld-theme] .lps-hist { display: inline-flex; gap: 2px; }
html[data-buld-theme] .lps-hist .p-iconbtn[disabled] { opacity: .35; cursor: default; background: transparent; }
html[data-buld-theme] .lps-sheet-btn, html[data-buld-theme] .lps-sheet-x { display: none; }
html[data-buld-theme] body .lps-secs__lab { flex: 1; min-width: 0; text-align: start; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-buld-theme] body .lps-secs__lab:hover { color: var(--buld-cta); }

/* narrow screens: the canvas takes the width, the inspector is a sheet that slides up on « Réglages » */
@media (max-width: 1100px) {
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-editor { grid-template-columns: minmax(0, 1fr); }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-sheet-btn { display: inline-flex; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-inspector { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: min(72dvh, 640px); margin: 0; z-index: 40; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform var(--bx-dur-overlay, .28s) var(--bx-ease, ease); box-shadow: 0 -24px 60px -20px rgba(0,0,0,.5); }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-editor.is-sheet .lps-inspector { transform: none; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-sheet-x { display: inline-flex; position: absolute; top: 6px; inset-inline-end: 8px; z-index: 2; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--buld-ink-3); cursor: pointer; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-tabs { padding-inline-end: 40px; }
}
@media (max-width: 760px) {
    html[data-buld-theme] #lpStudio[data-view="editor"] { padding: 8px 10px 0; gap: 8px; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-ebar { flex-wrap: wrap; row-gap: 8px; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-name { flex: 1 1 100%; max-width: none; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-saved { display: none; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-ebar__right { margin-inline-start: 0; flex: 1 1 100%; justify-content: space-between; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-ebar__right .bx-btn span { display: none; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-ebar__right .bx-btn--primary span { display: inline; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-seg--icons { display: none; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-canvas { padding: 0 0 84px; border: 0; background: transparent; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-canvas[data-device="mobile"] .lps-frame-wrap { border-width: 0; border-radius: 14px; max-width: none; }
}

/* « Voir en grand »: a poster panel full size (lp-studio viewer) */
html[data-buld-theme] .lpv { position: fixed; inset: 0; z-index: 2147483000; background: rgba(8, 10, 16, .94); display: flex; align-items: center; justify-content: center; animation: lpvIn .16s ease-out; }
@keyframes lpvIn { from { opacity: 0; } to { opacity: 1; } }
html[data-buld-theme] .lpv-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 72px 24px; box-sizing: border-box; overflow: auto; }
html[data-buld-theme] .lpv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
html[data-buld-theme] .lpv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
html[data-buld-theme] .lpv-count { color: #fff; font: 600 13px/1 var(--p-font, system-ui), sans-serif; background: rgba(255, 255, 255, .12); padding: 8px 12px; border-radius: 980px; }
html[data-buld-theme] .lpv-x, html[data-buld-theme] .lpv-nav { width: 40px; height: 40px; border: 0; border-radius: 980px; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html[data-buld-theme] .lpv-x:hover, html[data-buld-theme] .lpv-nav:hover { background: rgba(255, 255, 255, .22); }
html[data-buld-theme] .lpv-nav { position: absolute; top: 50%; transform: translateY(-50%); }
html[data-buld-theme] .lpv-prev { left: 16px; }
html[data-buld-theme] .lpv-next { right: 16px; }
html[data-buld-theme] .lpv-nav[hidden] { display: none; }
html[data-buld-theme] .lpv svg, html[data-buld-theme] .lpv i { width: 20px; height: 20px; }
@media (max-width: 640px) { html[data-buld-theme] .lpv-stage { padding: 60px 8px 16px; } html[data-buld-theme] .lpv-nav { display: none; } }

/* idea sheet (« Nouvelle idée », « Refaire ce visuel ») */
html[data-buld-theme] .lpi-text { width: 100%; box-sizing: border-box; min-height: 110px; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--buld-divider); background: var(--buld-elevated-2); color: var(--buld-ink-1); font: 14px/1.5 inherit; }
html[data-buld-theme] .lpi-text:focus { outline: 2px solid var(--buld-cta-soft); border-color: var(--buld-cta); }
html[data-buld-theme] .lpi-hint { margin: 8px 0 0; color: var(--buld-ink-3); font-size: 12px; }

/* ==========================================================================
   « Éléments » column (2026-10): every block of the page in order, like the Shopify theme editor —
   drag to reorder, hide, delete, change the media — and « Ajouter un élément » (images, video, YouTube
   Short, COD form, order button, promo banner…). Narrow screens: a drawer from the side (« Éléments »).
   ========================================================================== */
html[data-buld-theme] #lpStudio[data-view="editor"] .lps-editor--rail { grid-template-columns: 264px minmax(0, 1fr) 320px; }
html[data-buld-theme] .lps-rail { display: flex; flex-direction: column; min-height: 0; height: 100%; margin-bottom: 12px; padding: 0; overflow: hidden; }
html[data-buld-theme] .lps-rail__hd { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--buld-hairline); }
html[data-buld-theme] .lps-rail__hd h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--buld-ink-1); letter-spacing: -.01em; }
html[data-buld-theme] .lps-rail__hd small { font-size: 11px; color: var(--buld-ink-4); font-weight: 600; background: var(--buld-elevated); border-radius: 980px; padding: 1px 7px; }
html[data-buld-theme] body .lps-rail__x { display: none; margin-inline-start: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--buld-ink-3); cursor: pointer; align-items: center; justify-content: center; }
html[data-buld-theme] .lps-els { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; overflow: auto; flex: 1; min-height: 0; align-content: start; }
html[data-buld-theme] .lps-el { position: relative; display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 3px 4px 3px 2px; border-radius: 10px; transition: background .15s; }
html[data-buld-theme] .lps-el:hover { background: var(--buld-elevated); }
html[data-buld-theme] .lps-el.is-sel { background: var(--buld-cta-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--buld-cta) 35%, transparent); }
html[data-buld-theme] .lps-el.is-off .lps-el__main { opacity: .45; }
html[data-buld-theme] .lps-el.is-drag { opacity: .4; }
html[data-buld-theme] .lps-el.drop-before::before, html[data-buld-theme] .lps-el.drop-after::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: var(--buld-cta); }
html[data-buld-theme] .lps-el.drop-before::before { top: -2px; }
html[data-buld-theme] .lps-el.drop-after::after { bottom: -2px; }
html[data-buld-theme] .lps-el__grip { flex: none; width: 18px; display: inline-flex; justify-content: center; color: var(--buld-ink-4); cursor: grab; }
html[data-buld-theme] .lps-el__grip svg { width: 14px; height: 14px; }
html[data-buld-theme] body .lps-el__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--buld-ink-1); font: inherit; text-align: start; padding: 2px 4px; cursor: pointer; }
html[data-buld-theme] .lps-el__ic, html[data-buld-theme] .lps-el__th { flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--buld-elevated); color: var(--buld-ink-2); overflow: hidden; }
html[data-buld-theme] .lps-el__ic svg { width: 16px; height: 16px; }
html[data-buld-theme] .lps-el__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-buld-theme] .lps-el__tx { display: flex; flex-direction: column; min-width: 0; }
html[data-buld-theme] .lps-el__tx b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-buld-theme] .lps-el__tx small { font-size: 11.5px; color: var(--buld-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-buld-theme] .lps-el__btns { flex: none; display: inline-flex; gap: 0; opacity: 0; transition: opacity .15s; }
html[data-buld-theme] .lps-el:hover .lps-el__btns, html[data-buld-theme] .lps-el.is-sel .lps-el__btns, html[data-buld-theme] .lps-el:focus-within .lps-el__btns { opacity: 1; }
html[data-buld-theme] .lps-el.is-off .lps-el__btns { opacity: 1; }
html[data-buld-theme] body .lps-el__btns button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--buld-ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
html[data-buld-theme] body .lps-el__btns button:hover { background: var(--buld-hover); color: var(--buld-ink-1); }
html[data-buld-theme] body .lps-el__btns .lps-el__del:hover { color: var(--buld-danger); }
html[data-buld-theme] .lps-el__btns svg { width: 15px; height: 15px; }
html[data-buld-theme] .lps-rail__ft { position: relative; padding: 10px; border-top: 1px solid var(--buld-hairline); }
html[data-buld-theme] body .lps-addbtn { width: 100%; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed color-mix(in srgb, var(--buld-cta) 55%, transparent); border-radius: 12px; background: var(--buld-cta-soft); color: var(--buld-cta); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
html[data-buld-theme] body .lps-addbtn:hover, html[data-buld-theme] body .lps-addbtn.on { border-style: solid; background: color-mix(in srgb, var(--buld-cta) 16%, transparent); }
html[data-buld-theme] .lps-addbtn svg { width: 16px; height: 16px; }
html[data-buld-theme] .lps-addm { position: absolute; left: 10px; right: 10px; bottom: calc(100% - 4px); max-height: min(62vh, 560px); overflow: auto; padding: 8px; border-radius: 16px; background: var(--buld-elevated-2, #fff); border: 1px solid var(--buld-hairline); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .35); z-index: 5; animation: lpsAddIn .16s cubic-bezier(.2, .8, .2, 1); }
@keyframes lpsAddIn { from { opacity: 0; transform: translateY(6px); } }
html[data-buld-theme] .lps-addm__g + .lps-addm__g { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--buld-hairline); }
html[data-buld-theme] .lps-addm h6 { margin: 4px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--buld-ink-4); }
html[data-buld-theme] body .lps-addm button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--buld-ink-1); font: inherit; text-align: start; cursor: pointer; }
html[data-buld-theme] body .lps-addm button:hover:not([disabled]) { background: var(--buld-elevated); }
html[data-buld-theme] body .lps-addm button[disabled] { opacity: .45; cursor: default; }
html[data-buld-theme] .lps-addm__ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--buld-cta-soft); color: var(--buld-cta); }
html[data-buld-theme] .lps-addm__ic svg { width: 16px; height: 16px; }
html[data-buld-theme] .lps-addm b { display: block; font-size: 13px; font-weight: 600; }
html[data-buld-theme] .lps-addm small { display: block; font-size: 11.5px; color: var(--buld-ink-3); line-height: 1.3; }
html[data-buld-theme] .lps-rail-btn { display: none; }
html[data-buld-theme] .lps-group .lps-muted svg { width: 14px; height: 14px; vertical-align: -2px; }
html[data-buld-theme] .lpy-prev img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-top: 10px; }
html[data-buld-theme] .lpy-msg.is-bad { color: var(--buld-danger); }
@media (max-width: 1100px) {
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-editor--rail { grid-template-columns: minmax(0, 1fr); }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-rail-btn { display: inline-flex; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-rail { position: fixed; top: 64px; bottom: 0; inset-inline-start: 0; width: min(320px, 88vw); height: auto; margin: 0; z-index: 41; border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform var(--bx-dur-overlay, .28s) cubic-bezier(.2, .8, .2, 1); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
    html[data-buld-theme][dir="rtl"] #lpStudio[data-view="editor"] .lps-rail { transform: translateX(105%); border-radius: 20px 0 0 20px; }
    html[data-buld-theme] #lpStudio[data-view="editor"] .lps-rail.is-open { transform: none; }
    html[data-buld-theme] #lpStudio[data-view="editor"] body .lps-rail__x, html[data-buld-theme] body #lpStudio[data-view="editor"] .lps-rail__x { display: inline-flex; }
    html[data-buld-theme] .lps-el__btns { opacity: 1; }
}

/* media picker (lp-media.js): the device, the store's product photos, Barbaros IA's pictures, past uploads */
html[data-buld-theme] .lpm { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
html[data-buld-theme] .lpm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--buld-elevated); overflow-x: auto; }
html[data-buld-theme] body .lpm-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--buld-ink-3); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
html[data-buld-theme] body .lpm-tabs button[aria-selected="true"] { background: var(--buld-elevated-2, #fff); color: var(--buld-ink-1); box-shadow: var(--bx-shadow-1, 0 1px 3px rgba(0, 0, 0, .12)); }
html[data-buld-theme] .lpm-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 230px; padding: 24px; border: 1.5px dashed var(--buld-divider); border-radius: 18px; text-align: center; color: var(--buld-ink-3); transition: border-color .15s, background .15s; }
html[data-buld-theme] .lpm-drop.is-over { border-color: var(--buld-cta); background: var(--buld-cta-soft); }
html[data-buld-theme] .lpm-drop > svg { color: var(--buld-cta); }
html[data-buld-theme] .lpm-drop b { font-size: 15px; color: var(--buld-ink-1); }
html[data-buld-theme] .lpm-drop small { font-size: 12px; }
html[data-buld-theme] .lpm-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
html[data-buld-theme] body .lpm-retouch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid var(--buld-hairline); border-radius: 14px; background: var(--buld-elevated); color: var(--buld-ink-1); font: inherit; text-align: start; cursor: pointer; }
html[data-buld-theme] body .lpm-retouch:hover { border-color: var(--buld-cta); }
html[data-buld-theme] .lpm-retouch b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
html[data-buld-theme] .lpm-retouch small { display: block; font-size: 12px; color: var(--buld-ink-3); margin-top: 2px; }
html[data-buld-theme] .lpm-th { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--buld-hover); }
html[data-buld-theme] .lpm-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-buld-theme] .lpm-grp h5 { margin: 4px 2px 8px; font-size: 12px; font-weight: 700; color: var(--buld-ink-2); }
html[data-buld-theme] .lpm-grp + .lpm-grp { margin-top: 14px; }
html[data-buld-theme] .lpm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
html[data-buld-theme] body .lpm-it { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--buld-elevated); cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .15s; }
html[data-buld-theme] body .lpm-it:hover { transform: translateY(-1px); outline-color: color-mix(in srgb, var(--buld-cta) 60%, transparent); }
html[data-buld-theme] body .lpm-it.on { outline-color: var(--buld-cta); }
html[data-buld-theme] .lpm-it img, html[data-buld-theme] .lpm-it video { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-buld-theme] .lpm-vid { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
html[data-buld-theme] .lpm-ok { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--buld-cta); color: #fff; }
html[data-buld-theme] .lpm-it.on .lpm-ok, html[data-buld-theme] .lpm-it:hover .lpm-ok { display: grid; }
html[data-buld-theme] .lpm-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; padding: 20px; text-align: center; font-size: 13px; color: var(--buld-ink-3); line-height: 1.5; }
html[data-buld-theme] .lpm-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; background: color-mix(in srgb, var(--buld-elevated-2, #fff) 82%, transparent); font-size: 13px; color: var(--buld-ink-1); }
html[data-buld-theme] .lpm-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--buld-hairline); border-top-color: var(--buld-cta); animation: lpmSpin .8s linear infinite; }
@keyframes lpmSpin { to { transform: rotate(360deg); } }
