.hp-tabs{display:flex;gap:4px;padding:4px;background:#eeeae3;border-radius:12px;width:fit-content;margin:0 0 20px}.hp-tabs button{padding:10px 20px;border:0;border-radius:9px;background:transparent;color:#70695f;font:inherit;cursor:pointer}.hp-tabs button[aria-selected=true]{background:white;color:#312820;box-shadow:0 2px 6px #33200c12}.hp-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}.hp-editor .panel-head>div{display:grid;gap:5px}.hp-editor fieldset{border:0;margin:0;padding:0;min-width:0}.hp-field{display:flex;flex-direction:column;gap:10px;margin:22px 0;color:#40372e;font-weight:600;font-size:14px}.hp-field input,.hp-field select{width:100%;box-sizing:border-box;border:1px solid #dcd5cc;border-radius:10px;padding:11px 12px;background:white;color:#302921;font:inherit;font-weight:400}.hp-field small,.hp-image-tools small{color:#8b8175;font-size:12px;font-weight:400;line-height:1.7}.hp-switch{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px;background:#f7f4ee;border-radius:12px}.hp-switch span{display:grid;gap:6px}.hp-switch small{font-size:12px;color:#81766b}.hp-switch input{appearance:none;flex-shrink:0;width:42px;height:24px;background:#c6beb3;border:0;border-radius:99px;cursor:pointer;position:relative;transition:background .16s}.hp-switch input:before{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;background:white;border-radius:50%;box-shadow:0 1px 4px #0002;transition:transform .16s}.hp-switch input:checked{background:#a87c45}.hp-switch input:checked:before{transform:translateX(18px)}.hp-image-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hp-presets{display:flex;gap:10px;margin-top:4px}.hp-preset{display:flex;align-items:center;gap:10px;padding:6px 13px 6px 6px;border:1px solid #ded6ca;border-radius:10px;background:white;color:#776046;cursor:pointer}.hp-preset img{width:34px;height:46px;object-fit:cover;border-radius:5px}.hp-preset.selected{border-color:#ae824b;background:#f9f2e6}.hp-target-actions{display:flex;gap:10px;margin-top:-8px}.hp-frequency{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #e5ddd2;border-radius:11px;font-weight:400;cursor:pointer}.hp-frequency input{width:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:#a87c45}.hp-frequency span{display:grid;gap:5px}.hp-frequency strong{font-weight:500}.hp-frequency:has(input:checked){border-color:#b58e5d;background:#fbf7ef}.hp-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:16px;border-top:1px solid #eee7dd}.hp-error{color:#ae4235;line-height:1.6;font-size:13px;min-height:1em}.hp-preview-panel{position:sticky;top:25px}.hp-preview-heading{display:grid;gap:7px;margin-bottom:20px}.hp-preview-heading strong{font-size:15px;color:#3f342a}.hp-preview-heading span,.hp-preview-panel>p{font-size:12px;line-height:1.7;color:#8c8174}.hp-phone{position:relative;width:290px;height:550px;border:7px solid #272427;border-radius:35px;overflow:hidden;background:#151116;box-shadow:0 20px 40px #2916061a}.hp-phone-chrome{display:flex;justify-content:space-between;padding:13px 18px;color:#ddd3c3;font-size:11px}.hp-phone-home{display:flex;justify-content:space-between;color:#c7b18c;padding:25px 18px;font-size:30px}.hp-phone-home small{font-size:12px;color:#b3a38f}.hp-phone-shade{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#050407b8;padding:30px 20px}.hp-phone-dialog{width:100%;display:flex;flex-direction:column;align-items:center}.hp-preview-card{width:100%;overflow:hidden;border:1px solid #ddc08966;border-radius:14px;background:#171316;box-shadow:0 18px 50px #0006}.hp-preview-image{display:block;width:100%;max-height:280px;object-fit:contain;background:#171316}.hp-preview-empty{display:grid;place-content:center;text-align:center;height:245px;color:#c7ad86;font-size:14px;line-height:2}.hp-preview-empty small{font-size:10px;color:#847260}.hp-preview-caption{padding:16px 18px;background:linear-gradient(140deg,#28201f,#181417);color:#f7eddf}.hp-preview-caption small{font-size:10px;letter-spacing:2px;color:#bda47a}.hp-preview-caption strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45;font-size:18px;margin:8px 0 14px;font-weight:500;word-break:break-all}.hp-preview-caption>span{display:flex;justify-content:space-between;border-top:1px solid #e0c1882b;padding-top:12px;font-size:12px;color:#e3c493}.hp-preview-caption b{font-size:17px;font-weight:400}.hp-preview-close{display:grid;place-items:center;width:32px;height:32px;border:1px solid #f5ebdb66;border-radius:50%;color:#f5ebdb;font-size:24px;font-weight:200;margin-top:12px}.hp-loading{padding:30px}.hp-activity-dialog{width:min(600px,calc(100vw - 48px));max-height:80vh;padding:25px;border:0;border-radius:16px;color:#372d23;background:#fffdf8}.hp-activity-dialog::backdrop{background:#08050bb3}.hp-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:20px;border-bottom:1px solid #eee7dd}.hp-dialog-head strong{font-size:20px;line-height:1.5}.hp-activity-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:15px;padding-top:20px}.hp-tabs button:focus-visible,.hp-preset:focus-visible,.hp-switch input:focus-visible{outline:2px solid #a87c45;outline-offset:3px}.hp-editor button:active{transform:scale(.98)}.hp-editor button:disabled{opacity:.55;cursor:default}
@media(max-width:1100px){.hp-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.hp-phone{width:265px;height:525px}}@media(max-width:850px){.hp-layout{grid-template-columns:1fr}.hp-preview-panel{position:static}.hp-phone{margin:auto}.hp-preview-heading,.hp-preview-panel>p{text-align:center}.hp-tabs{max-width:100%;box-sizing:border-box}.hp-tabs button{padding:10px 14px}}@media(prefers-reduced-motion:reduce){.hp-switch input,.hp-switch input:before{transition:none}}
.hp-workspace { min-width:0; color:#27364b; }
.hp-workspace .hp-tabs { padding:0; margin:0 0 26px; gap:28px; width:100%; border-bottom:1px solid #e1e6ed; border-radius:0; background:none; }
.hp-workspace .hp-tabs button { position:relative; border-radius:0; padding:0 1px 13px; color:#64748b; font-size:14px; }
.hp-workspace .hp-tabs button[aria-selected=true] { background:none; box-shadow:none; color:#1677ff; }
.hp-workspace .hp-tabs button[aria-selected=true]::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; border-radius:2px; background:#1677ff; }
.hp-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.hp-heading h1 { margin:0 0 9px; font-size:23px; font-weight:600; letter-spacing:0; color:#1e293b; }
.hp-heading p { margin:0; color:#64748b; font-size:13px; line-height:1.6; }
.hp-scope { padding:7px 10px; border:1px solid #dde4ee; border-radius:6px; background:#fff; color:#64748b; font-size:12px; white-space:nowrap; }
.hp-workspace .hp-layout { grid-template-columns:minmax(0,1fr) 360px; gap:24px; }
.hp-workspace .hp-editor { min-width:0; border-radius:10px; border-color:#e1e6ed; box-shadow:0 4px 20px #223b5404; background:#fff; }
.hp-workspace .hp-editor>.panel-head { display:flex; min-height:84px; padding:20px 24px; border-bottom:1px solid #edf0f4; }
.hp-workspace .hp-editor>.panel-head h3 { color:#25344a; font-size:16px; font-weight:600; }
.hp-workspace .hp-editor>.panel-head span { color:#64748b; font-size:12px; }
.hp-workspace .hp-editor>.panel-head>.status { padding:5px 8px; white-space:nowrap; font-size:11px; }
.hp-workspace .hp-editor .panel-body { padding:24px; }
.hp-workspace .hp-switch { padding:17px 18px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; }
.hp-workspace .hp-switch strong { color:#334155; font-weight:500; font-size:14px; }
.hp-workspace .hp-switch small { color:#64748b; line-height:1.6; }
.hp-workspace .hp-switch input:checked { background:#1677ff; }
/* Keep the switch geometry independent of the shared text-input styles. */
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch] { appearance:none; -webkit-appearance:none; position:relative; box-sizing:border-box; flex:0 0 44px; width:44px; min-width:44px; max-width:44px; height:26px; min-height:26px; max-height:26px; margin:0; padding:0; border:0; border-radius:999px; background:#cbd5e1; box-shadow:inset 0 1px 2px #0f172a0d; cursor:pointer; transition:background-color .18s ease,box-shadow .18s ease; }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]::before { content:''; position:absolute; box-sizing:border-box; width:20px; height:20px; top:3px; left:3px; border:0; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0f172a26; transform:translateX(0); transition:transform .18s cubic-bezier(.2,.8,.2,1); }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]:checked { background:#1677ff; box-shadow:inset 0 1px 2px #1556a326; }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]:checked::before { transform:translateX(18px); }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]:active::before { transform:scale(.92); }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]:checked:active::before { transform:translateX(18px) scale(.92); }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]:focus-visible { outline:3px solid #1677ff40; outline-offset:3px; }
.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]:disabled { opacity:.55; cursor:wait; }
@media(prefers-reduced-motion:reduce) { .hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch],.hp-workspace .hp-editor .hp-switch input[type=checkbox][role=switch]::before { transition:none; } }
.hp-workspace .hp-field { margin:25px 0; gap:10px; color:#334155; font-size:14px; font-weight:500; }
.hp-workspace .hp-field input,.hp-workspace .hp-field select { min-height:42px; border-color:#dce2ea; border-radius:6px; color:#334155; font-size:13px; }
.hp-workspace .hp-field input:focus,.hp-workspace .hp-field select:focus { outline:2px solid #1677ff30; border-color:#6eacff; }
.hp-workspace .hp-field small,.hp-workspace .hp-image-tools small { color:#64748b; font-size:12px; }
.hp-workspace .hp-presets { gap:10px; flex-wrap:wrap; }
.hp-workspace .hp-preset { border-radius:7px; padding:6px 12px 6px 6px; border-color:#dce2ea; color:#475569; }
.hp-workspace .hp-preset.selected { border-color:#1677ff; background:#f1f7ff; }
.hp-workspace .hp-frequency { gap:11px; padding:15px; border-radius:7px; border-color:#dfe5ed; }
.hp-workspace .hp-frequency input { min-height:0; width:16px; height:16px; margin:2px 0 0; accent-color:#1677ff; }
.hp-workspace .hp-frequency strong { color:#334155; font-size:13px; }
.hp-workspace .hp-frequency:has(input:checked) { border-color:#82b6ff; background:#f5f9ff; }
.hp-workspace .hp-editor .btn { min-height:36px; height:auto; padding:8px 14px; border-radius:6px; border:1px solid #dce2ea; background:#fff; color:#475569; font-size:13px; }
.hp-workspace .hp-editor .btn.primary { border-color:#1677ff; background:#1677ff; color:#fff; }
.hp-workspace .hp-footer { margin-top:22px; padding-top:21px; border-color:#e8edf3; }
.hp-workspace .hp-error { color:#ba354d; }
.hp-workspace .hp-preview-panel { padding:22px 22px 18px; border:1px solid #e3e7ed; border-radius:10px; background:#f0f2f6; }
.hp-workspace .hp-preview-heading strong { color:#334155; font-size:14px; }
.hp-workspace .hp-preview-heading span,.hp-workspace .hp-preview-panel>p { color:#64748b; font-size:12px; }
.hp-workspace .hp-phone { width:290px; height:600px; margin:auto; border:7px solid #28232b; border-radius:38px; background:radial-gradient(ellipse at 80% 45%,#3d1721,#160f15 70%); box-shadow:0 18px 32px #18233720; }
.hp-workspace .hp-phone-chrome { padding:13px 18px; color:#eee5db; font-size:11px; }
.hp-workspace .hp-phone-home { display:block; padding:20px; color:#fff7ed; }
.hp-workspace .hp-phone-home strong { font-size:22px; font-weight:700; font-style:italic; }
.hp-workspace .hp-phone-home>span { display:block; margin-top:32px; font-size:31px; line-height:1.4; font-weight:600; }
.hp-workspace .hp-phone-home i { display:block; height:105px; border:1px solid #8c6648; border-radius:12px; margin-top:24px; background:#4e2827; }
.hp-workspace .hp-phone-shade { padding:16px 18px; background:rgba(6,4,7,.32); }
.hp-workspace .hp-phone-dialog { width:100%; }
.hp-workspace .hp-preview-card { position:relative; box-sizing:border-box; width:68%; max-width:193px; aspect-ratio:3/4; overflow:hidden; border:0; border-radius:14px; background:#171215; box-shadow:0 22px 44px -8px #0009,0 6px 15px -4px #0005,0 0 24px #d8a44830; }
.hp-workspace .hp-preview-image { position:absolute; inset:0; display:block; width:100%; max-width:100%; height:100%; object-fit:contain; background:transparent; }
.hp-workspace .hp-preview-empty { position:absolute; inset:0; height:auto; }
.hp-workspace .hp-preview-close { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:34px; height:34px; margin-top:9px; border:0; background:transparent; }
.hp-workspace .hp-preview-close i { display:block; position:relative; width:25px; height:25px; border:1px solid #f6eae0a8; border-radius:50%; }
.hp-workspace .hp-preview-close i::before,.hp-workspace .hp-preview-close i::after { content:''; position:absolute; width:1px; height:11px; left:11px; top:6px; background:#f9f2eb; transform:rotate(45deg); }
.hp-workspace .hp-preview-close i::after { transform:rotate(-45deg); }
.hp-workspace .hp-tabs button:focus-visible,.hp-workspace .hp-preset:focus-visible,.hp-workspace .hp-switch input:focus-visible { outline-color:#1677ff; }
@media (max-width:1200px) { .hp-workspace .hp-layout { grid-template-columns:minmax(0,1fr) 326px; gap:18px; } .hp-workspace .hp-preview-panel { padding:20px 12px; } }
@media (max-width:1000px) { .hp-workspace .hp-layout { grid-template-columns:1fr; } .hp-workspace .hp-preview-panel { position:static; } .hp-workspace .hp-preview-heading,.hp-workspace .hp-preview-panel>p { text-align:center; } }
@media (max-width:480px) { .hp-heading { align-items:flex-start; } .hp-heading h1 { font-size:20px; } .hp-scope { display:none; } .hp-workspace .hp-editor .panel-body,.hp-workspace .hp-editor>.panel-head { padding:18px 16px; } .hp-workspace .hp-phone { max-width:100%; } .hp-workspace .hp-target-actions { flex-wrap:wrap; } .hp-workspace .hp-footer { gap:8px; } }
.hp-slides-head { display:flex; justify-content:space-between; gap:16px; margin-top:25px; color:#334155; font-size:14px; }
.hp-slides-head>div { display:grid; gap:5px; }
.hp-slides-head strong { font-weight:500; }
.hp-slides-head small,.hp-slides-head>span { color:#64748b; font-size:12px; line-height:1.6; }
.hp-slide-list { display:flex; gap:10px; overflow-x:auto; padding:14px 2px 12px; margin-bottom:6px; }
.hp-slide-tab,.hp-slide-add { display:flex; flex:0 0 70px; flex-direction:column; align-items:center; justify-content:center; box-sizing:border-box; min-height:102px; padding:5px; border:1px solid #e2e8f0; border-radius:8px; color:#64748b; background:#fff; cursor:pointer; font:inherit; font-size:11px; }
.hp-slide-tab img,.hp-slide-empty { display:block; width:58px; height:72px; border-radius:4px; object-fit:cover; }
.hp-slide-tab small { padding-top:6px; font-size:11px; }
.hp-slide-tab.selected { border-color:#1677ff; box-shadow:0 0 0 1px #1677ff; color:#1677ff; background:#f5f9ff; }
.hp-slide-empty { display:grid; place-items:center; background:#f1f5f9; color:#94a3b8; font-size:23px; }
.hp-slide-add { gap:8px; border-style:dashed; background:#f8fafc; }
.hp-slide-add>span { font-size:24px; font-weight:300; }
.hp-slide-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 4px; }
.hp-slide-tools>strong { color:#64748b; font-weight:400; font-size:12px; }
.hp-slide-tools>div { display:flex; gap:6px; }
.hp-workspace .hp-slide-tools .btn { min-height:28px; padding:5px 9px; font-size:12px; }
.hp-workspace .hp-slide-tools .hp-remove-slide { color:#ba354d; }
.hp-carousel-settings { display:grid; gap:17px; margin-top:26px; padding:24px 0 0; border-top:1px solid #edf0f4; }
.hp-interval { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:#475569; font-size:13px; }
.hp-workspace .hp-interval input { box-sizing:border-box; width:74px; min-width:0; height:36px; padding:8px 10px; border:1px solid #dce2ea; border-radius:6px; background:#fff; color:#334155; font:inherit; }
.hp-interval small { color:#64748b; font-size:12px; }
.hp-preview-dots { display:flex; align-items:center; justify-content:center; gap:4px; margin-top:10px; height:5px; }
.hp-preview-dots i { width:4px; height:4px; border-radius:4px; background:#f8e8d259; }
.hp-preview-dots i.active { width:12px; background:#e6c691; }

.hp-preview-edge { position:absolute; inset:0; pointer-events:none; border:1px solid #e2b36285; border-radius:14px; box-shadow:0 0 9px #e9b65d3d,inset 0 1px 0 #fff2ca38; }
.hp-preview-edge i { position:absolute; display:block; }
.hp-preview-edge .hp-edge-top,.hp-preview-edge .hp-edge-bottom { left:13px; right:13px; height:1px; background:linear-gradient(90deg,#ffebb700,#ffefc6f5 18%,#bc812c6b 57%,#f2cc85b8 83%,#f2cc8500); }
.hp-preview-edge .hp-edge-top { top:-1px; }
.hp-preview-edge .hp-edge-bottom { bottom:-1px; transform:rotate(180deg); }
.hp-preview-edge .hp-edge-left,.hp-preview-edge .hp-edge-right { top:13px; bottom:13px; width:1px; background:linear-gradient(180deg,#ffebb700,#ffecbbdb 13%,#a1692633 52%,#f1c573c7 84%,#f2cc8500); }
.hp-preview-edge .hp-edge-left { left:-1px; }
.hp-preview-edge .hp-edge-right { right:-1px; transform:rotate(180deg); }
.hp-size-setting { display:grid; gap:10px; margin:22px 0; color:#475569; font-size:14px; }
.hp-size-setting>small { color:#64748b; font-size:12px; line-height:1.7; }
.hp-size-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.hp-size-option { display:flex; align-items:center; justify-content:center; gap:9px; padding:12px 16px; border:1px solid #dce2ea; border-radius:7px; background:#fff; cursor:pointer; transition:border-color .16s,background-color .16s; }
.hp-size-option input { width:16px; height:16px; margin:0; accent-color:#1677ff; }
.hp-size-option:has(input:checked) { color:#1677ff; border-color:#91caff; background:#eff6ff; }
.hp-size-option:has(input:focus-visible) { outline:2px solid #1677ff; outline-offset:2px; }
.hp-workspace .hp-phone-shade { padding:16px 0; }
.hp-workspace .hp-preview-card { width:var(--hp-popup-width,74%); max-width:none; }
.hp-workspace .hp-preview-image { max-height:none; }
.hp-close-size-setting { display:grid; gap:10px; margin:24px 0; color:#475569; }
.hp-close-size-head { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; }
.hp-close-size-head output { min-width:58px; padding:4px 8px; border-radius:5px; background:#eff6ff; color:#1677ff; font-size:13px; text-align:center; font-variant-numeric:tabular-nums; }
.hp-close-size-control { display:flex; align-items:center; gap:14px; min-width:0; }
.hp-workspace .hp-close-size-control input[type=range] { flex:1; min-width:0; width:100%; height:28px; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; accent-color:#1677ff; cursor:pointer; }
.hp-workspace .hp-close-size-control .btn { flex-shrink:0; min-height:32px; padding:6px 12px; font-size:12px; }
.hp-close-size-scale { display:flex; justify-content:space-between; padding-right:100px; color:#94a3b8; font-size:11px; }
.hp-close-size-setting>small { color:#64748b; font-size:12px; line-height:1.7; }
.hp-workspace .hp-preview-close { position:relative; flex-shrink:0; width:var(--hp-close-hit-width,13.333333%); height:auto; aspect-ratio:1; margin:var(--hp-close-gap,0) 0 0; padding:0; border:0; border-radius:50%; background:transparent; }
.hp-workspace .hp-preview-close-image { display:block; width:var(--hp-close-art-ratio,76.923077%); height:auto; aspect-ratio:1; object-fit:contain; pointer-events:none; }
.hp-workspace .hp-preview-close-fallback { display:block; position:relative; width:var(--hp-close-art-ratio,76.923077%); height:auto; aspect-ratio:1; }
.hp-workspace .hp-preview-close-image[hidden],.hp-workspace .hp-preview-close-fallback[hidden] { display:none; }
.hp-workspace .hp-preview-close-fallback i { display:block; box-sizing:border-box; width:100%; height:100%; border:1px solid #d3ad68; border-radius:50%; background:#17130f; box-shadow:0 3px 10px #0003; }
.hp-workspace .hp-preview-close-fallback i::before,.hp-workspace .hp-preview-close-fallback i::after { height:40%; width:1px; left:50%; top:30%; background:#e9c781; }
.hp-workspace .hp-preview-dots { width:100%; height:auto; aspect-ratio:65; margin-top:6.153846%; }
