/**
 * MiniSiteMudah @ MSM - M5 Visual Builder MVP Styles
 * @version 1.0.0
 * @date 2026-07-01
 */
.msm-builder-header .msm-form-actions { justify-content: flex-end; }
.msm-builder-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; color: #475569; }
.msm-builder-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.msm-builder-section-title h3 { margin: 0 0 6px; letter-spacing: -.03em; }
.msm-builder-section-title p { margin: 0 0 16px; color: #64748b; font-size: .9rem; line-height: 1.5; }
.msm-builder-palette-list { display: grid; gap: 10px; }
.msm-builder-palette-button { width: 100%; text-align: left; padding: 13px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; cursor: pointer; }
.msm-builder-palette-button strong { display: block; color: #0f172a; }
.msm-builder-palette-button small { display: block; color: #64748b; line-height: 1.45; margin-top: 4px; }
.msm-builder-palette-button:hover { border-color: #c7d2fe; background: #eef2ff; }
.msm-builder-canvas-wrap { min-height: 620px; }
.msm-builder-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.msm-builder-toolbar small { display: block; color: #64748b; margin-top: 3px; }
.msm-builder-alert { min-height: 1.2em; margin-bottom: 12px; color: #475569; font-size: .92rem; }
.msm-builder-canvas { display: grid; gap: 14px; min-height: 480px; padding: 16px; border: 2px dashed #cbd5e1; border-radius: 22px; background: #f8fafc; }
.msm-builder-empty { text-align: center; color: #64748b; padding: 54px 20px; }
.msm-builder-component { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px rgba(15,23,42,.05); }
.msm-builder-component.is-selected { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.msm-builder-component.is-dragging { opacity: .55; }
.msm-builder-component-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.msm-builder-component-bar strong { font-size: .88rem; }
.msm-builder-component-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.msm-builder-mini-button { border: 0; border-radius: 10px; background: #fff; color: #334155; padding: 6px 8px; cursor: pointer; font-weight: 800; }
.msm-builder-mini-button:hover { background: #e0e7ff; color: #3730a3; }
.msm-builder-component-preview { padding: 22px; }
.msm-builder-component-preview [contenteditable="true"] { outline: 2px dashed transparent; border-radius: 8px; }
.msm-builder-component-preview [contenteditable="true"]:focus { outline-color: #a5b4fc; background: #eef2ff; }
.msm-builder-preview-eyebrow, .msm-builder-eyebrow { margin: 0 0 8px; color: #4f46e5; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.msm-builder-preview-title { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -.06em; line-height: 1; }
.msm-builder-preview-heading { margin: 0 0 10px; font-size: 1.6rem; letter-spacing: -.04em; }
.msm-builder-preview-text { margin: 0; color: #475569; line-height: 1.7; white-space: pre-wrap; }
.msm-builder-preview-button { display: inline-flex; margin-top: 16px; padding: 10px 14px; border-radius: 999px; background: #4f46e5; color: #fff; font-weight: 800; }
.msm-builder-preview-image-placeholder { display: grid; place-items: center; min-height: 180px; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 18px; background: #f8fafc; }
.msm-builder-component-preview img { max-width: 100%; border-radius: 18px; display: block; }
.msm-builder-component-preview figcaption { color: #64748b; margin-top: 8px; font-size: .9rem; }
.msm-builder-preview-cta { border-radius: 20px; padding: 24px; background: linear-gradient(135deg, #eef2ff, #f8fafc); }
.msm-builder-preview-spacer { border-radius: 12px; background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #e2e8f0 8px, #e2e8f0 16px); }
.msm-builder-preview-spacer.small { height: 24px; }
.msm-builder-preview-spacer.medium { height: 52px; }
.msm-builder-preview-spacer.large { height: 88px; }
.msm-builder-inspector-body { display: grid; gap: 14px; }
.msm-builder-inspector-body label span { display: block; margin-bottom: 7px; color: #334155; font-weight: 800; }
.msm-builder-inspector-body input, .msm-builder-inspector-body textarea, .msm-builder-inspector-body select, .msm-builder-export-panel textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.msm-builder-inspector-body textarea, .msm-builder-export-panel textarea { resize: vertical; }
.msm-builder-help { color: #64748b; font-size: .86rem; line-height: 1.45; }
.msm-public-section { margin: 0 0 34px; }
.msm-public-section.is-center { text-align: center; margin-left: auto; margin-right: auto; }
.msm-public-section.is-left { text-align: left; }
.msm-public-hero { padding: clamp(20px, 5vw, 42px) 0; }
.msm-public-hero h2 { margin: 0; font-size: clamp(2rem, 7vw, 4.5rem); line-height: .95; letter-spacing: -.06em; }
.msm-builder-lead { color: #475569; font-size: 1.12rem; line-height: 1.7; max-width: 760px; margin: 18px auto 0; }
.msm-public-text h2, .msm-public-cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.04em; margin: 0 0 14px; }
.msm-public-text p, .msm-public-cta p { color: #334155; line-height: 1.85; font-size: 1.02rem; }
.msm-public-image img { max-width: 100%; width: 100%; display: block; border-radius: 24px; border: 1px solid #e5e7eb; }
.msm-builder-caption { color: #64748b; text-align: center; margin-top: 10px; font-size: .92rem; }
.msm-public-cta { padding: clamp(24px, 5vw, 42px); border-radius: 28px; background: #eef2ff; border: 1px solid #c7d2fe; text-align: center; }
.msm-public-button { display: inline-flex; margin-top: 18px; padding: 12px 18px; border-radius: 999px; background: #4f46e5; color: #fff; font-weight: 900; text-decoration: none; }
.msm-public-spacer-small { height: 24px; }
.msm-public-spacer-medium { height: 54px; }
.msm-public-spacer-large { height: 92px; }
@media (max-width: 1180px) { .msm-builder-shell { grid-template-columns: 1fr; } .msm-builder-canvas-wrap { min-height: 0; } }
@media (max-width: 620px) { .msm-builder-toolbar, .msm-builder-meta { align-items: flex-start; flex-direction: column; } }
