/* ============================================================================
   BARBAROS — lp-canvas.css (premium, LANDING CANVAS, namespace lc-)
   The region editor dialog: stage (picture + selection canvas) on the left, tools on the right;
   stacked on phones. Tokens: --buld-*. No collision list: every class is lc- prefixed.
   ============================================================================ */
html[data-buld-theme] .lc-ov{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(10,10,14,.56);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .18s ease}
html[data-buld-theme] .lc-ov.is-in{opacity:1}
html[data-buld-theme] .lc-dlg{width:min(1120px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:var(--buld-elevated-2,#fff);color:var(--buld-ink-1);border:1px solid var(--buld-hairline);border-radius:var(--buld-radius-card,18px);box-shadow:0 40px 90px -30px rgba(0,0,0,.45);overflow:hidden;transform:translateY(8px) scale(.985);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
html[data-buld-theme] .lc-ov.is-in .lc-dlg{transform:none}
html[data-buld-theme] .lc-hd{display:flex;align-items:baseline;gap:12px;padding:16px 20px;border-bottom:1px solid var(--buld-hairline)}
html[data-buld-theme] .lc-hd h2{margin:0;font-size:17px;font-weight:600;letter-spacing:-.016em;color:var(--buld-ink-1)}
html[data-buld-theme] .lc-sub{font-size:13px;color:var(--buld-ink-3);flex:1;min-width:0}
html[data-buld-theme] .lc-x{width:32px;height:32px;border-radius:50%;border:0;background:transparent;color:var(--buld-ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;align-self:center}
html[data-buld-theme] .lc-x:hover{background:var(--buld-hover)}
html[data-buld-theme] .lc-x svg{width:18px;height:18px}
html[data-buld-theme] .lc-bd{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:0;flex:1}
html[data-buld-theme] .lc-bd.is-plain{grid-template-columns:minmax(0,1fr) 280px}
html[data-buld-theme] .lc-stage{position:relative;display:flex;align-items:center;justify-content:center;padding:20px;min-height:360px;background:repeating-conic-gradient(var(--buld-hover) 0 25%,transparent 0 50%) 0 0/20px 20px,var(--buld-page);overflow:hidden}
html[data-buld-theme] .lc-media{display:block;max-width:100%;max-height:calc(100vh - 200px);border-radius:10px;box-shadow:0 12px 40px -18px rgba(0,0,0,.4);user-select:none;-webkit-user-drag:none}
html[data-buld-theme] .lc-none{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--buld-ink-3);font-size:14px}
html[data-buld-theme] .lc-none svg{width:40px;height:40px}
html[data-buld-theme] .lc-mask{position:absolute;opacity:.45;cursor:crosshair;touch-action:none;border-radius:10px}
html[data-buld-theme] .lc-ov.is-before .lc-mask{visibility:hidden}
html[data-buld-theme] .lc-busy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:color-mix(in srgb,var(--buld-page) 72%,transparent);backdrop-filter:blur(2px);color:var(--buld-ink-1);font-size:14px}
html[data-buld-theme] .lc-busy[hidden]{display:none}
html[data-buld-theme] .lc-busy small{color:var(--buld-ink-3);font-size:12px}
html[data-buld-theme] .lc-spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--buld-cta-soft);border-top-color:var(--buld-cta);animation:lc-spin .8s linear infinite}
@keyframes lc-spin{to{transform:rotate(360deg)}}
html[data-buld-theme] .lc-side{display:flex;flex-direction:column;gap:12px;padding:18px;border-left:1px solid var(--buld-hairline);overflow:auto}
html[data-buld-theme] .lc-grp{display:flex;flex-direction:column;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--buld-hairline)}
html[data-buld-theme] .lc-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;background:var(--buld-page);border-radius:12px}
html[data-buld-theme] .lc-tools button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border:0;border-radius:9px;background:transparent;color:var(--buld-ink-2);font:inherit;font-size:12px;font-weight:500;cursor:pointer}
html[data-buld-theme] .lc-tools button svg{width:18px;height:18px}
html[data-buld-theme] .lc-tools button[aria-checked="true"]{background:var(--buld-elevated-2,#fff);color:var(--buld-cta);box-shadow:0 1px 3px rgba(0,0,0,.12)}
html[data-buld-theme] .lc-size{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--buld-ink-3)}
html[data-buld-theme] .lc-size input{flex:1;accent-color:var(--buld-cta)}
html[data-buld-theme] .lc-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
html[data-buld-theme] .lc-lnk{display:inline-flex;align-items:center;gap:5px;border:0;background:none;padding:2px 0;color:var(--buld-cta);font:inherit;font-size:12.5px;font-weight:500;cursor:pointer}
html[data-buld-theme] .lc-lnk svg{width:13px;height:13px}
html[data-buld-theme] .lc-lnk[aria-pressed="true"]{text-decoration:underline}
html[data-buld-theme] .lc-lbl{font-size:12px;font-weight:600;color:var(--buld-ink-2);letter-spacing:.01em}
html[data-buld-theme] .lc-ta{width:100%;box-sizing:border-box;resize:vertical;min-height:76px;padding:10px 12px;border-radius:var(--buld-radius-input,12px);border:1px solid var(--buld-divider);background:var(--buld-elevated-2,#fff);color:var(--buld-ink-1);font:inherit;font-size:14px;line-height:1.45}
html[data-buld-theme] .lc-ta:focus{outline:none;border-color:var(--buld-cta);box-shadow:0 0 0 3px var(--buld-cta-soft)}
html[data-buld-theme] .lc-quick{display:flex;flex-wrap:wrap;gap:6px}
html[data-buld-theme] .lc-q{border:1px solid var(--buld-hairline);background:var(--buld-page);color:var(--buld-ink-2);border-radius:var(--buld-radius-pill,980px);padding:5px 10px;font:inherit;font-size:12px;cursor:pointer}
html[data-buld-theme] .lc-q:hover{border-color:var(--buld-cta);color:var(--buld-cta)}
html[data-buld-theme] .lc-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 14px;border:0;border-radius:12px;background:var(--buld-cta);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
html[data-buld-theme] .lc-go:hover{background:var(--buld-cta-hover)}
html[data-buld-theme] .lc-go:disabled{opacity:.45;cursor:not-allowed}
html[data-buld-theme] .lc-go svg{width:16px;height:16px}
html[data-buld-theme] .lc-go em{font-style:normal;font-size:12px;font-weight:600;padding:2px 8px;border-radius:980px;background:rgba(255,255,255,.2)}
html[data-buld-theme] .lc-hint{margin:0;font-size:12px;color:var(--buld-ink-3)}
html[data-buld-theme] .lc-vers[hidden]{display:none}
html[data-buld-theme] .lc-vh{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:var(--buld-ink-2);margin-bottom:8px}
html[data-buld-theme] .lc-vl{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
html[data-buld-theme] .lc-v{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px;border:2px solid transparent;border-radius:10px;background:none;cursor:pointer;color:var(--buld-ink-3);font:inherit;font-size:11px}
html[data-buld-theme] .lc-v img{width:56px;height:56px;object-fit:cover;border-radius:7px;display:block}
html[data-buld-theme] .lc-v.is-on{border-color:var(--buld-cta);color:var(--buld-cta)}
html[data-buld-theme] .lc-rep{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--buld-hairline)}
html[data-buld-theme] .lc-bd.is-plain .lc-rep{margin-top:0;border-top:0;padding-top:0}
html[data-buld-theme] .lc-sec{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border:1px solid var(--buld-divider);border-radius:10px;background:transparent;color:var(--buld-ink-1);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
html[data-buld-theme] .lc-sec:hover{border-color:var(--buld-cta);color:var(--buld-cta)}
html[data-buld-theme] .lc-sec svg{width:16px;height:16px}
html[data-buld-theme] .lc-ov.is-busy .lc-side{pointer-events:none;opacity:.6}
html[data-buld-theme] .lc-ov :focus-visible{outline:2px solid var(--buld-cta);outline-offset:2px}

@media (max-width:760px){
  html[data-buld-theme] .lc-ov{padding:0;align-items:flex-end}
  html[data-buld-theme] .lc-dlg{max-height:100dvh;height:100dvh;border-radius:0}
  html[data-buld-theme] .lc-bd,html[data-buld-theme] .lc-bd.is-plain{grid-template-columns:minmax(0,1fr);overflow:auto}
  html[data-buld-theme] .lc-stage{min-height:0;padding:12px}
  html[data-buld-theme] .lc-media{max-height:46vh}
  html[data-buld-theme] .lc-side{border-left:0;border-top:1px solid var(--buld-hairline);overflow:visible}
  html[data-buld-theme] .lc-sub{display:none}
}
@media (prefers-reduced-motion:reduce){
  html[data-buld-theme] .lc-ov,html[data-buld-theme] .lc-dlg{transition:none}
  html[data-buld-theme] .lc-spin{animation-duration:2.4s}
}
