/* V143.54 — expanded visual studio is rendered in a body-level dialog.
   Independent of popup preview clipping, transforms, and administrator stacking contexts. */
html.hv54-modal-open,html.hv54-modal-open body{overflow:hidden!important}
.hv54-overlay{position:fixed!important;inset:0!important;z-index:2147483645!important;
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 padding:clamp(6px,2vh,20px);background:rgba(15,23,42,.64);
 overscroll-behavior:contain;isolation:isolate}
.hv54-dialog{position:relative;display:flex;flex-direction:column;width:min(1530px,100%);
 height:min(950px,100%);min-width:0;min-height:0;overflow:hidden;
 border-radius:12px;background:#f8fafc;border:1px solid #cbd5e1;
 box-shadow:0 30px 95px rgba(2,6,23,.38);box-sizing:border-box}
.hv54-dialog-header{flex:none;display:flex;align-items:center;justify-content:space-between;
 min-height:60px;padding:10px 18px;gap:12px;background:#fff;border-bottom:1px solid #e2e8f0;z-index:4}
.hv54-dialog-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.hv54-dialog-title{font-size:17px;font-weight:750;color:#0f172a;line-height:1.3}
.hv54-dialog-tip{font-size:11px;color:#64748b;line-height:1.45}
.hv54-dismiss{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;
 border:1px solid #94a3b8;border-radius:7px;background:#fff;color:#0f172a;
 font-size:14px;font-weight:750;padding:8px 16px;cursor:pointer;white-space:nowrap}
.hv54-dismiss:hover,.hv54-dismiss:focus-visible{color:#1d4ed8;border-color:#2563eb;outline-offset:2px}
.hv54-dialog .hv54-expanded-editor{position:relative!important;display:flex!important;
 flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;overflow:hidden!important;
 padding:12px 16px!important;box-sizing:border-box}
.hv54-dialog .hv52-toolbar{flex:none;max-height:112px;overflow-y:auto;padding:0 0 8px}
.hv54-dialog .hv52-helper{flex:none;margin:0 0 12px}
.hv54-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,320px);
 gap:16px;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
.hv54-canvas-scroll{display:flex;align-items:flex-start;justify-content:center;min-width:0;min-height:0;
 overflow:auto;overscroll-behavior:contain;padding:12px 12px 20px;box-sizing:border-box;
 border-radius:9px;background:#edf2f8;border:1px solid #dce4ee}
.hv54-settings{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;
 padding:2px 5px 12px 2px;box-sizing:border-box}
.hv54-empty{padding:22px 16px;background:#fff;border:1px dashed #bac9dc;border-radius:8px;
 font-size:13px;line-height:1.65;color:#64748b}
.hv54-overlay .hv52-editor .hv52-stage{flex:none;margin:0 auto;max-width:100%;height:auto}
.hv54-overlay .hv52-editor .hv52-slide{width:min(100%,1080px,calc((100vh - 230px) * var(--hana-slide-ratio-pc-num,1.91)));aspect-ratio:var(--hana-slide-ratio-pc,1280 / 670)}
.hv54-overlay .hv52-editor .hv52-popup{width:min(100%,650px);max-width:none;aspect-ratio:520/420}
.hv54-overlay .hv54-settings .hv52-inspector{width:100%;max-width:none;margin:0;
 position:relative!important;right:auto!important;top:auto!important;overflow:visible;
 z-index:auto!important;box-shadow:none;border:1px solid #d3deeb}
.hv54-overlay .hv52-tool,.hv54-overlay .hv52-expand{white-space:nowrap}
@media(max-width:790px){
 .hv54-overlay{padding:6px}
 .hv54-dialog{border-radius:8px}
 .hv54-dialog-header{padding:8px 12px;min-height:58px}
 .hv54-dialog-title{font-size:14px}
 .hv54-dialog-tip{font-size:10px}
 .hv54-dismiss{min-height:40px;padding:8px 12px}
 .hv54-dialog .hv54-expanded-editor{padding:8px!important}
 .hv54-workspace{display:flex;flex-direction:column;gap:9px}
 .hv54-canvas-scroll{flex:1 1 auto;min-height:140px}
 .hv54-settings{flex:0 1 37%;min-height:110px;max-height:42%;padding:0 0 6px}
 .hv54-dialog .hv52-toolbar{max-height:88px}
 .hv54-dialog .hv52-helper{margin-bottom:6px}
}
@media(max-width:420px){.hv54-dialog-tip{display:none}.hv54-dialog .hv52-toolbar{max-height:116px}}

/* Reused administrator editor styles for controls moved into the body portal. */

.hv54-overlay .hv52-editor,.hv54-overlay .hv52-editor{position:relative;min-width:0;width:100%;font-family:system-ui,-apple-system,'Malgun Gothic',sans-serif;color:#1e293b;isolation:isolate}

.hv54-overlay .hv52-toolbar,.hv54-overlay .hv52-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px 0 12px}

.hv54-overlay .hv52-tool,.hv54-overlay .hv52-tool,.hv54-overlay .hv52-expand,.hv54-overlay .hv52-expand{font-size:12px;font-weight:650;min-height:34px;padding:6px 9px;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer}

.hv54-overlay .hv52-tool:hover,.hv54-overlay .hv52-tool:hover{border-color:#2563eb;color:#1d4ed8}

.hv54-overlay .hv52-undo,.hv54-overlay .hv52-undo{font-size:18px;padding:3px 9px}

.hv54-overlay .hv52-background,.hv54-overlay .hv52-background{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;white-space:nowrap}

.hv54-overlay .hv52-background input,.hv54-overlay .hv52-background input{height:31px;width:38px;border:1px solid #cbd5e1;border-radius:6px;padding:2px;cursor:pointer}

.hv54-overlay .hv52-helper,.hv54-overlay .hv52-helper{font-size:11px;color:#64748b;line-height:1.6;margin:0 0 9px}

.hv54-overlay .hv52-stage,.hv54-overlay .hv52-stage{width:100%;position:relative;overflow:visible;container-type:inline-size;box-sizing:border-box;background:#edf5ff;outline:1px solid #cbd5e1;border-radius:3px;box-shadow:0 5px 12px #0001;touch-action:none;user-select:none;margin:auto}

.hv54-overlay .hv52-slide{aspect-ratio:var(--hana-slide-ratio-pc,1280 / 670)}

.hv54-overlay .hv52-popup{aspect-ratio:520 / 420;max-width:520px}

.hv54-overlay .hv52-item,.hv54-overlay .hv52-item{position:absolute;display:flex;align-items:center;padding:.25em .4em;line-height:1.27;word-break:break-word;white-space:pre-wrap;overflow:hidden;box-sizing:border-box;user-select:none;touch-action:none;cursor:move;outline:1px solid transparent}

.hv54-overlay .hv52-item-text,.hv54-overlay .hv52-item-text{display:block}

.hv54-overlay .hv52-item-button,.hv54-overlay .hv52-item-button{justify-content:center}

.hv54-overlay .hv52-item-image,.hv54-overlay .hv52-item-image{padding:0;background:#e2e8f0}

.hv54-overlay .hv52-item-image img,.hv54-overlay .hv52-item-image img{width:100%;height:100%;object-fit:cover;pointer-events:none}

.hv54-overlay .hv52-item.is-selected,.hv54-overlay .hv52-item.is-selected{outline:2px solid #2563eb;outline-offset:1px;overflow:visible}

.hv54-overlay .hv52-grip,.hv54-overlay .hv52-grip{position:absolute;right:-8px;bottom:-8px;width:19px;height:19px;background:#2563eb;color:#fff;font-size:13px;line-height:18px;text-align:center;border-radius:3px;cursor:nwse-resize;z-index:5;touch-action:none}

.hv54-overlay .hv52-inspector,.hv54-overlay .hv52-inspector{position:relative;right:auto;top:auto;width:100%;max-height:none;overflow:visible;margin:12px 0 0;padding:13px;background:#fff;border:1px solid #bed5fb;border-radius:8px;box-shadow:0 4px 18px #10254012;box-sizing:border-box;z-index:10}

.hv54-overlay .hv52-inspector-head,.hv54-overlay .hv52-inspector-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:13px}

.hv54-overlay .hv52-close,.hv54-overlay .hv52-close{border:0;background:transparent;font-size:20px;color:#64748b;cursor:pointer}

.hv54-overlay .hv52-inspector-fields,.hv54-overlay .hv52-inspector-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

.hv54-overlay .hv52-field,.hv54-overlay .hv52-field{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:11px;font-weight:650;color:#475569;min-width:0}

.hv54-overlay .hv52-field:has(textarea),.hv54-overlay .hv52-field:has(textarea){grid-column:1/-1}

.hv54-overlay .hv52-field input,.hv54-overlay .hv52-field input,.hv54-overlay .hv52-field textarea,.hv54-overlay .hv52-field textarea,.hv54-overlay .hv52-field select,.hv54-overlay .hv52-field select{width:100%;min-width:0;min-height:33px;box-sizing:border-box;padding:6px 8px;font-family:inherit;font-size:12px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#1f2937}

.hv54-overlay .hv52-field textarea,.hv54-overlay .hv52-field textarea{min-height:58px;resize:vertical}

.hv54-overlay .hv52-field input[type=checkbox],.hv54-overlay .hv52-field input[type=checkbox]{height:21px;width:21px;min-height:0}

.hv54-overlay .hv52-field input[type=color],.hv54-overlay .hv52-field input[type=color]{padding:2px}

.hv54-overlay .hv52-two,.hv54-overlay .hv52-two{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}

.hv54-overlay .hv52-inspector-actions,.hv54-overlay .hv52-inspector-actions{display:flex;gap:6px;margin-top:12px}

.hv54-overlay .hv52-inspector-actions button,.hv54-overlay .hv52-inspector-actions button{flex:1;border:1px solid #cbd5e1;background:#fff;border-radius:5px;padding:8px;cursor:pointer;color:#334155;font-size:11px}

.hv54-overlay .hv52-inspector-actions .hv52-danger,.hv54-overlay .hv52-inspector-actions .hv52-danger{color:#b42318}
.hv54-overlay .hv52-inspector-fields,.hv54-overlay .hv52-inspector-fields{grid-template-columns:1fr 1fr}
.hv54-overlay .hv52-inspector,.hv54-overlay .hv52-inspector{position:relative;right:auto;top:auto;width:100%;max-height:none;margin:12px 0 0}
