.ahb-root{--ahb-ink:#243247;--ahb-muted:#52647a;--ahb-line:#dbe3ed;padding:20px;margin-bottom:20px;color:var(--ahb-ink);min-width:0}.ahb-root *{box-sizing:border-box}.ahb-root h3{margin:0 0 10px;font-size:19px}.ahb-root h4{margin:0 0 12px;font-size:15px}.ahb-root .btn{min-height:44px;font-size:13px;white-space:normal}.ahb-root button:focus-visible,.ahb-root input:focus-visible,.ahb-root select:focus-visible,.ahb-root summary:focus-visible{outline:3px solid #1677ff;outline-offset:3px}.ahb-muted{font-size:13px;color:var(--ahb-muted);line-height:1.7;margin:8px 0}.ahb-error{color:#b42318;font-size:13px;line-height:1.7}.ahb-actions,.ahb-palette{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ahb-status{font-size:13px;line-height:1.75;padding:12px;background:#f0f6ff;border:1px solid #dbe8fa;border-radius:8px;overflow-wrap:anywhere}.ahb-status strong{color:#925200}.ahb-page-settings{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:16px;margin:16px 0}.ahb-field{display:grid;gap:6px;font-size:12px;color:var(--ahb-muted);min-width:0}.ahb-field input,.ahb-field select{min-width:0;max-width:100%;width:100%;height:40px;border:1px solid var(--ahb-line);border-radius:7px;background:white;color:var(--ahb-ink);padding:8px;font-size:13px}.ahb-field input[type=color]{padding:4px}.ahb-workspace{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.3fr);gap:16px;align-items:start}.ahb-order,.ahb-config{padding:14px;border:1px solid var(--ahb-line);border-radius:9px;min-width:0}.ahb-block{padding:10px;background:#f4f7fb;border:1px solid #e4eaf2;border-radius:7px;margin-bottom:10px}.ahb-block.selected{border:2px solid #1677ff;padding:9px;background:#eef5ff}.ahb-block.hidden-block{background:#f6f6f6}.ahb-block>div{display:flex;flex-wrap:wrap;gap:5px}.ahb-block .btn{font-size:12px;padding:6px 8px}.ahb-select{border:0;background:transparent;color:#243247;min-height:44px;width:100%;text-align:left;font-size:14px;cursor:pointer}.ahb-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ahb-items fieldset{border:1px solid var(--ahb-line);border-radius:7px;margin:14px 0;padding:10px;display:grid;gap:10px;min-width:0}.ahb-items legend{font-size:12px;color:var(--ahb-muted)}.ahb-empty{padding:22px 10px;color:var(--ahb-muted);font-size:13px;line-height:1.8}.ahb-products{margin-top:18px;padding-top:16px;border-top:1px solid var(--ahb-line)}.ahb-product-search{display:flex;gap:8px;align-items:end}.ahb-product-search label{flex:1}.ahb-product-options{max-height:300px;overflow:auto;margin-top:12px}.ahb-product-options>label{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #edf0f5;font-size:13px;min-height:44px}.ahb-product-options input{width:20px;height:20px;flex-shrink:0}.ahb-product-options small{display:block;color:var(--ahb-muted);margin-top:4px;font-size:12px}.ahb-preview-section{margin-top:20px;border-top:1px solid var(--ahb-line);padding-top:12px}.ahb-preview-section summary{min-height:44px;cursor:pointer;font-size:14px;line-height:1.8}.ahb-phone{max-width:360px;min-height:180px;border:6px solid #263347;border-radius:20px;overflow:hidden;margin:16px auto;padding:12px;color:#243247}.ahb-phone img{display:block;max-width:100%;object-fit:cover}.ahb-phone>h4{text-align:center;margin:8px 0 16px}.ahb-preview-goods{display:grid;gap:8px;margin:10px 0}.ahb-preview-goods article{background:white;border-radius:8px;padding:8px;min-width:0}.ahb-preview-goods img{aspect-ratio:1;width:100%}.ahb-preview-goods b{display:block;font-size:13px;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}.ahb-preview-goods span{color:#c43e3e;font-size:15px}.ahb-preview-nav{display:grid;gap:8px;padding:12px 8px}.ahb-preview-nav>div{text-align:center;min-width:0}.ahb-preview-nav img{width:32px;height:32px;margin:0 auto}.ahb-preview-nav span{display:block;margin-top:6px;font-size:12px;overflow-wrap:anywhere}.ahb-preview-banner{margin:8px 0}.ahb-preview-banner>div+div{margin-top:8px}.ahb-preview-banner img{width:100%;border-radius:8px;max-height:200px}.ahb-preview-banner small{display:block;padding:4px;font-size:12px}.ahb-preview-copy{padding:12px;font-size:14px;line-height:1.8}.ahb-preview-entry{padding:16px;background:#eef6ff;border-radius:8px;margin:8px 0}.ahb-preview-entry p{font-size:13px;line-height:1.7}.ahb-preview-entry span{display:inline-block;background:#1677ff;color:white;border-radius:6px;padding:6px 12px;font-size:13px}@media(max-width:1300px){.ahb-workspace{grid-template-columns:1fr}.ahb-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ahb-root{padding:14px}.ahb-fields{grid-template-columns:1fr}.ahb-page-settings{grid-template-columns:minmax(0,1fr) 80px}.ahb-product-search{flex-wrap:wrap}.ahb-product-search label{flex-basis:100%}}

.ahb-preview-banner img{height:var(--ahb-banner-height,140px);max-height:600px;border-radius:var(--ahb-banner-radius,8px)}

.ahb-selected-products{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.ahb-selected-products>span{display:flex;align-items:center;gap:8px;max-width:100%;overflow-wrap:anywhere;background:#eef4fb;border:1px solid #dbe4ef;border-radius:8px;padding:4px 8px;font-size:12px}.ahb-selected-products .btn{flex-shrink:0}
.ahb-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ahb-palette>section{padding:12px;border:1px solid var(--ahb-line);border-radius:8px;min-width:0}.ahb-palette>section>div{display:flex;flex-wrap:wrap;gap:6px}.ahb-palette h4{margin-bottom:8px}.ahb-activities{margin-top:16px;padding-top:16px;border-top:1px solid var(--ahb-line)}.ahb-activity-options{display:grid;gap:8px;max-height:280px;overflow:auto;margin-top:12px}.ahb-activity-options [aria-pressed=true]{border:2px solid #1677ff;background:#eef5ff}.ahb-field input[type=checkbox]{width:24px;height:24px}.ahb-preview-entry small{overflow-wrap:anywhere}.ahb-root .ahb-preview-entry{overflow-wrap:anywhere}@media(max-width:600px){.ahb-palette{grid-template-columns:1fr}}

/* Three-pane authoring workbench. Keep native live preview outside this frame. */
.ahb-workbench{display:grid;grid-template-columns:270px 680px minmax(220px,1fr);gap:14px;min-width:0;height:clamp(440px,calc(100dvh - 340px),880px);margin-top:16px;align-items:stretch}
.ahb-components-pane,.ahb-preview-pane,.ahb-settings-pane{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--ahb-line);border-radius:9px;padding:14px;background:#fff}
.ahb-root{container-type:inline-size}.ahb-preview-pane{background:#f2f4f7;padding-left:50px;padding-right:50px}.ahb-components-pane>.ahb-palette{display:block;margin:0}.ahb-workbench .ahb-palette>section{padding:10px 0;border:0;border-bottom:1px solid var(--ahb-line);border-radius:0}.ahb-workbench .ahb-palette>section>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ahb-workbench .ahb-palette .btn{width:100%;padding:7px 5px;font-size:12px}
.ahb-workbench .ahb-order,.ahb-workbench .ahb-config{padding:0;border:0;border-radius:0}.ahb-workbench .ahb-order{padding-top:16px;margin-top:16px;border-top:1px solid var(--ahb-line)}.ahb-workbench .ahb-fields{grid-template-columns:minmax(0,1fr)}.ahb-workbench .ahb-page-settings{grid-template-columns:minmax(0,1fr) 64px;margin:0 0 20px;gap:10px}
.ahb-workbench .ahb-preview-section{margin:0;padding:0;border:0}.ahb-workbench .ahb-preview-section>summary{font-weight:600}.ahb-workbench .ahb-phone{width:100%;max-width:360px;min-height:600px;margin:14px auto;background:#fff}.ahb-workbench .ahb-preview-section .ahb-empty{min-height:440px;display:grid;place-items:center;text-align:center}.ahb-workbench .ahb-product-search{flex-wrap:wrap}.ahb-workbench .ahb-product-search label{flex-basis:100%}
@media(max-width:1550px){.ahb-workbench{grid-template-columns:230px minmax(360px,560px) minmax(180px,1fr);gap:10px}.ahb-components-pane,.ahb-preview-pane,.ahb-settings-pane{padding:10px}.ahb-preview-pane{padding-left:50px;padding-right:50px}}
@media(max-width:1000px){.ahb-workbench{grid-template-columns:230px minmax(0,1fr);height:auto}.ahb-components-pane,.ahb-preview-pane{height:600px}.ahb-settings-pane{grid-column:1/-1;max-height:650px}.ahb-workbench .ahb-settings-pane .ahb-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.ahb-workbench{grid-template-columns:minmax(0,1fr)}.ahb-components-pane{height:320px}.ahb-preview-pane{height:560px}.ahb-settings-pane{grid-column:auto}.ahb-workbench .ahb-settings-pane .ahb-fields{grid-template-columns:minmax(0,1fr)}}

@container(max-width:1198px){.ahb-workbench{grid-template-columns:230px minmax(360px,560px) minmax(180px,1fr)}}
@container(max-width:790px){.ahb-workbench{grid-template-columns:230px minmax(0,1fr);height:auto}.ahb-components-pane,.ahb-preview-pane{height:600px}.ahb-settings-pane{grid-column:1/-1;max-height:650px}}
@container(max-width:540px){.ahb-workbench{grid-template-columns:minmax(0,1fr)}.ahb-components-pane{height:320px}.ahb-preview-pane{height:560px}.ahb-settings-pane{grid-column:auto}}

/* Draft-only interactive canvas; controls never navigate or publish. */
.ahb-canvas-block{position:relative;min-height:44px;outline:2px solid transparent;outline-offset:-2px;cursor:pointer;scroll-margin:50px;margin:6px 0}.ahb-canvas-block:hover,.ahb-canvas-block:focus-visible{outline-color:#76aaff;background:#f0f6ff}.ahb-canvas-block.selected{outline-color:#1677ff;background:#eef5ff}.ahb-canvas-content{min-height:44px;overflow-wrap:anywhere;pointer-events:none}.ahb-canvas-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:4px;background:#eef5ff;border-bottom:1px solid #c8ddff;opacity:.35}.ahb-canvas-block:hover .ahb-canvas-tools,.ahb-canvas-block.selected .ahb-canvas-tools,.ahb-canvas-block:focus-within .ahb-canvas-tools{opacity:1}.ahb-canvas-tools button{min-width:44px;min-height:36px;border:1px solid #c8d8ec;border-radius:5px;background:white;color:#243247;cursor:pointer;font-size:12px}.ahb-canvas-tools button[draggable=true]{cursor:grab}.ahb-canvas-tools button:disabled{opacity:.4;cursor:default}.ahb-canvas-label{font-size:12px;color:#315985;margin-right:auto}.ahb-canvas-block.drop-target{outline:3px dashed #1677ff;background:#dbeafe}.ahb-canvas-tools button:focus-visible{outline:3px solid #1677ff;outline-offset:2px}@media(pointer:coarse){.ahb-canvas-tools{opacity:1}.ahb-canvas-tools button{min-height:44px}}

.ahb-canvas-tools [data-ahb-drag-handle]{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:36px;border:1px solid #c8d8ec;border-radius:5px;background:white;color:#243247;font-size:12px;cursor:grab;user-select:none}.ahb-canvas-tools [data-ahb-drag-handle]:focus-visible{outline:3px solid #1677ff;outline-offset:2px}

.ahb-workbench .ahb-palette .btn.selected{border:2px solid #1677ff;background:#e6f0ff;color:#1456a3;opacity:1}

/* Reserve a separate rail outside the phone for the selected component. */
.ahb-canvas-stage{width:100%;max-width:424px;margin:14px auto;padding-right:64px;box-sizing:border-box}.ahb-workbench .ahb-canvas-stage .ahb-phone{width:100%;margin:0;overflow:visible}.ahb-canvas-stage .ahb-canvas-tools{display:none;position:absolute;left:calc(100% + 30px);top:0;z-index:3;flex-direction:column;flex-wrap:nowrap;gap:4px;width:52px;padding:5px 4px;background:#fff;border:1px solid #e1e6ee;border-radius:26px;box-shadow:0 4px 14px #24324718;opacity:1}.ahb-canvas-block.selected>.ahb-canvas-tools{display:flex}.ahb-canvas-tools .ahb-canvas-label{display:none}.ahb-canvas-tools button,.ahb-canvas-tools [data-ahb-drag-handle]{width:42px;min-width:42px;min-height:40px;border:0;background:transparent;border-radius:12px}.ahb-canvas-tools button:hover,.ahb-canvas-tools [data-ahb-drag-handle]:hover{background:#edf4ff}.ahb-canvas-content{overflow:hidden}@media(max-width:680px){.ahb-preview-pane{padding-left:10px;padding-right:10px}}

.ahb-actions{align-items:center}.ahb-delete-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;border:1px solid #f4c7bd;border-radius:8px;background:#fff7f4;font-size:13px;color:#6e3426}.ahb-delete-confirm .ahb-delete-danger{color:#fff;background:#ba302b;border-color:#ba302b}.ahb-delete-confirm span{overflow-wrap:anywhere}@media(max-width:680px){[data-ahb-delete-slot]{max-width:100%}.ahb-delete-confirm{width:100%}}

.ahb-global-controls{display:grid;gap:8px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--ahb-line)}.ahb-global-controls h4{margin-bottom:2px}.ahb-global-controls .btn{text-align:left;width:100%}.ahb-global-controls .btn.selected{border:2px solid #1677ff;background:#e6f0ff;color:#1456a3}.ahb-workbench .ahb-page-settings.ahb-global-fields{grid-template-columns:minmax(0,1fr);gap:14px}

.ahb-components-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.ahb-components-heading h4{margin:0}.ahb-components-heading .btn{font-size:12px;min-height:36px;padding:5px 9px}.ahb-components-heading .btn.selected{background:#e6f0ff;border-color:#1677ff}.ahb-preview-topbar{display:flex;align-items:center;gap:10px;padding:10px 4px}.ahb-preview-topbar img,.ahb-logo-placeholder{width:38px;height:38px;flex:none;object-fit:contain;border-radius:50%}.ahb-logo-placeholder{display:grid;place-items:center;background:#eef2f7;font-size:10px}.ahb-preview-topbar>span:last-child{flex:1;min-width:0;padding:8px 12px;border:1px solid #e1e6ed;border-radius:24px;font-size:12px;overflow-wrap:anywhere}

.ahb-components-heading{position:sticky;top:0;z-index:2;background:#fff;padding:6px 0;border-bottom:1px solid var(--ahb-line)}

.ahb-align-buttons{display:flex;gap:0}.ahb-align-buttons .btn{min-width:42px;min-height:40px;padding:6px;border-radius:0;display:grid;place-items:center}.ahb-align-buttons .btn:first-child{border-radius:6px 0 0 6px}.ahb-align-buttons .btn:last-child{border-radius:0 6px 6px 0}.ahb-align-buttons .btn.selected{border-color:#1677ff;background:#eaf3ff;color:#1677ff}.ahb-settings-pane{container-type:inline-size}.ahb-workbench .ahb-settings-pane .ahb-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}@container(max-width:560px){.ahb-workbench .ahb-settings-pane .ahb-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@container(max-width:260px){.ahb-workbench .ahb-settings-pane .ahb-fields{grid-template-columns:minmax(0,1fr)}}

.ahb-color-row{display:grid;grid-template-columns:40px max-content;gap:8px;align-items:center;min-width:0}.ahb-color-row input[type=color]{width:40px;height:40px;min-width:40px;padding:4px}.ahb-color-row input[data-color-hex]{min-width:0;width:calc(7ch + 16px);height:40px;font-family:monospace;font-size:12px;padding:6px}.ahb-color-error{color:#b42318;font-size:12px;line-height:1.5}.ahb-color-error[hidden]{display:none}.ahb-color-row input[aria-invalid=true]{border-color:#b42318}

.ahb-number-stepper{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:3px;align-items:center}.ahb-number-stepper .btn{min-width:0;padding:4px;min-height:36px}.ahb-number-stepper input{min-width:0;padding:6px;text-align:center;height:36px}.ahb-preview-search-layout .ahb-preview-copy,.ahb-preview-topbar>span:last-child{box-sizing:border-box;white-space:nowrap;overflow:hidden}

.ahb-preview-topbar img,.ahb-preview-topbar .ahb-logo-placeholder{width:var(--ahb-logo-size,44px);height:var(--ahb-logo-size,44px)}

/* Custom-module workspace follows the decoration editor without changing the homepage builder. */
.ahb-module-editor .ahb-workbench{grid-template-columns:330px minmax(390px,1fr) clamp(390px,calc(100% - 752px),590px);gap:16px}
.ahb-module-editor .ahb-components-pane,.ahb-module-editor .ahb-settings-pane{padding:18px;background:#fff;border-radius:7px}
.ahb-module-editor .ahb-preview-pane{padding:0 16px 26px;background:#f2f4f7;border:0}
.ahb-module-editor .ahb-canvas-stage{max-width:454px;padding-right:64px}
.ahb-module-editor .ahb-workbench .ahb-canvas-stage .ahb-phone{max-width:390px;min-height:760px;padding:0;border:1px solid #d8dee8;border-radius:0;box-shadow:0 12px 38px rgba(15,23,42,.12)}
.ahb-module-editor .ahb-config>h4{margin:0 -18px 0;padding:20px 20px 12px;border-left:5px solid #2491ff;font-size:20px}
.ahb-module-editor .ahb-config>[role=tablist]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--ahb-line);margin:0 -18px 20px}
.ahb-module-editor .ahb-config>[role=tablist] .btn{min-width:0;min-height:48px;padding:8px 3px;border:0;border-bottom:2px solid transparent;border-radius:0;background:#fff;color:#263547}
.ahb-module-editor .ahb-config>[role=tablist] .btn[aria-selected=true]{color:#1677ff;border-bottom-color:#1677ff}
.ahb-module-editor .ahb-workbench .ahb-config>[role=tabpanel]{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.ahb-module-editor .ahb-config [role=tabpanel]>h5{margin:8px 0 0;color:var(--ahb-ink);font-size:15px;font-weight:600}
.ahb-module-editor .ahb-config fieldset.ahb-field{margin:0;padding:0;border:0;min-width:0}
.ahb-module-editor .ahb-config fieldset.ahb-field legend{margin-bottom:8px}
.ahb-module-editor .ahb-config [role=radiogroup]{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.ahb-module-editor .ahb-config [role=radiogroup] label{display:inline-flex;align-items:center;gap:5px;min-height:32px;line-height:1.5}
.ahb-module-editor .ahb-config input[type=radio],.ahb-module-editor .ahb-config input[type=checkbox]{width:18px;height:18px;min-width:18px;flex:none;margin:0;padding:0}
.ahb-module-editor .ahb-config [role=tabpanel]>.ahb-products{margin-top:0;padding-top:0;border-top:0;min-width:0}
.ahb-module-editor .ahb-config [role=tabpanel]>.ahb-muted{margin:0}
@container(max-width:1100px){.ahb-module-editor .ahb-workbench{grid-template-columns:240px minmax(320px,1fr) minmax(320px,390px);gap:10px}}
@container(max-width:920px){.ahb-module-editor .ahb-workbench{grid-template-columns:230px minmax(0,1fr);height:auto}.ahb-module-editor .ahb-components-pane,.ahb-module-editor .ahb-preview-pane{height:600px}.ahb-module-editor .ahb-settings-pane{grid-column:1/-1;max-height:650px}}
@container(max-width:650px){.ahb-module-editor .ahb-workbench{grid-template-columns:minmax(0,1fr)}.ahb-module-editor .ahb-components-pane{height:320px}.ahb-module-editor .ahb-preview-pane{height:560px;padding-left:8px;padding-right:8px}.ahb-module-editor .ahb-settings-pane{grid-column:auto}.ahb-module-editor .ahb-config>[role=tablist] .btn{font-size:12px}}

/* Android custom module toolbar */
.ahb-root[data-ahb-module-editor]{padding-top:0}
.ahb-module-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:42px;padding:0 12px;background:#f0f6ff;border:0;box-shadow:inset 0 0 0 1px #dbe8fa;border-radius:8px}
.ahb-module-toolbar .ahb-status{flex:1 1 200px;min-width:0;padding:0;background:transparent;border:0;line-height:1}
.ahb-module-toolbar .ahb-actions{justify-content:flex-end;margin:0;flex:0 1 auto}
.ahb-module-toolbar .ahb-actions > .btn{min-height:0;padding:3px;line-height:1}

.ahb-root[data-ahb-module-editor] .ahb-components-heading{position:static}

/* Android module goods picker tiles. */
.ahb-module-modern-products{display:none}
.ahb-root[data-ahb-module-editor] .ahb-module-legacy-products{display:none}
.ahb-root[data-ahb-module-editor] .ahb-module-modern-products{display:block}
.ahb-root[data-ahb-module-editor] .ahb-selected-products{gap:10px;align-items:flex-start;margin-top:10px}
.ahb-root[data-ahb-module-editor] .ahb-selected-products > .ahb-module-add-tile,.ahb-root[data-ahb-module-editor] .ahb-selected-products > .ahb-module-product-tile{display:flex;flex:0 0 70px;box-sizing:border-box;width:70px;height:70px;max-width:100%;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #dbe4ef;border-radius:8px;padding:3px;background:#fff}
.ahb-root[data-ahb-module-editor] .ahb-selected-products > .ahb-module-add-tile{color:#63748b;border-style:dashed;background:#f8fafc}
.ahb-root[data-ahb-module-editor] .ahb-module-add-tile > span:first-child{font-size:24px;line-height:1;color:#8b9aad}
.ahb-root[data-ahb-module-editor] .ahb-module-add-tile > span:last-child{font-size:12px;line-height:1.2}
.ahb-root[data-ahb-module-editor] .ahb-module-product-picture{display:flex;width:100%;height:100%;flex:1 1 auto;align-items:center;justify-content:center;background:#f5f7fa;border-radius:5px;overflow:hidden}
.ahb-root[data-ahb-module-editor] .ahb-module-product-picture img{width:100%;height:100%;object-fit:contain}
.ahb-root[data-ahb-module-editor] .ahb-module-product-placeholder{color:#8090a3;font-size:12px}
.ahb-root[data-ahb-module-editor] .ahb-module-product-tile:focus-visible{outline:2px solid #1677ff;outline-offset:2px}
.ahb-root[data-ahb-module-editor] .ahb-module-product-tile{position:relative}
.ahb-root[data-ahb-module-editor] .ahb-module-product-remove{position:absolute;top:2px;right:2px;display:grid;place-items:center;width:24px;height:24px;min-height:0;padding:4px;border:0;border-radius:50%;background:#fff0f0;color:var(--danger,#dc2626);cursor:pointer;touch-action:manipulation}
.ahb-root[data-ahb-module-editor] .ahb-module-product-remove svg{width:16px;height:16px;pointer-events:none}
.ahb-root[data-ahb-module-editor] .ahb-module-product-remove:hover,.ahb-root[data-ahb-module-editor] .ahb-module-product-remove:active{background:#ffe0e0}
.ahb-root[data-ahb-module-editor] .ahb-module-product-remove:focus-visible{outline:2px solid #1677ff;outline-offset:2px}
.ahb-root[data-ahb-module-editor] .ahb-module-product-remove:disabled{opacity:.45;cursor:default}
@media(pointer:coarse){.ahb-root[data-ahb-module-editor] .ahb-module-product-remove{width:44px;height:44px;border:10px solid transparent;background-clip:padding-box;padding:0;box-sizing:border-box;top:0;right:0}}

/* Component icons in the Android editor palette */
.ahb-root[data-ahb-android-editor] .ahb-palette [data-ahb-add]{display:flex;align-items:center;justify-content:center;gap:6px}
.ahb-root .ahb-component-icon{display:block;flex:0 0 18px;width:18px;height:18px}

/* Fixed controls for the custom module editor. */
.ahb-module-toolbar{position:relative;height:45px;min-height:45px;flex-wrap:nowrap}
.ahb-module-toolbar .ahb-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahb-module-toolbar [data-ahb-delete-slot]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5}
.ahb-module-toolbar .ahb-fixed-delete{min-height:32px;padding:4px 12px;color:#fff;background:#ba302b;border-color:#ba302b}
.ahb-module-editor .ahb-canvas-tools button[aria-pressed=true],.ahb-module-editor .ahb-canvas-tools button[aria-pressed=true]:hover{color:#fff;background:#ba302b}
.ahb-module-editor .ahb-canvas-stage{margin-top:0}
@container(max-width:920px){.ahb-module-toolbar{height:auto;min-height:45px;flex-wrap:wrap}.ahb-module-toolbar .ahb-status{white-space:normal}}

.ahb-root[data-ahb-module-editor] .ahb-module-name{display:flex;align-items:center;gap:8px;margin:12px 0}.ahb-module-name-label{flex:none;white-space:nowrap}.ahb-module-name-label b{color:#e34b4b;font-weight:400}.ahb-module-name-input{position:relative;flex:1;min-width:0}.ahb-module-name-input input{padding-right:52px}.ahb-module-name-count{position:absolute;right:9px;top:50%;transform:translateY(-50%);color:#66758a;pointer-events:none;white-space:nowrap}

/* Keep the authoring status/actions visible while any editor pane scrolls. */
.ahb-module-toolbar.editor-bottom-bar{position:fixed;inset:auto 0 0 var(--editor-nav-width,0px);height:var(--editor-footer-height,45px);min-height:45px;border-radius:0;padding:5px 22px;box-shadow:0 -3px 12px #2432470a,inset 0 1px #dbe8fa;z-index:25}
.ahb-module-toolbar.editor-bottom-bar .ahb-status{line-height:1.5;max-height:100%;overflow:auto;white-space:normal}
.ahb-module-toolbar.editor-bottom-bar .ahb-actions{flex-shrink:0;flex-wrap:nowrap}
.ahb-module-toolbar.editor-bottom-bar .ahb-actions>.btn{padding:4px 8px;line-height:1.4;white-space:nowrap}
.ahb-module-toolbar.editor-bottom-bar [data-ahb-delete-slot]{position:static;transform:none}
.ahb-root:has(>.editor-bottom-bar)>.ahb-workbench{margin-top:0}
@media(max-width:1200px){.ahb-module-toolbar.editor-bottom-bar{flex-wrap:wrap;gap:4px 12px}.ahb-module-toolbar.editor-bottom-bar .ahb-status{flex-basis:100%;max-height:30px}.ahb-module-toolbar.editor-bottom-bar .ahb-actions{max-width:100%;overflow-x:auto;margin-left:auto;justify-content:flex-start}}
@media(max-width:980px){.ahb-module-toolbar.editor-bottom-bar{padding-inline:12px}}
.ahb-module-settings{display:grid;gap:24px;min-width:0}.ahb-module-settings h4{margin:0 0 16px}.ahb-module-style{display:grid;gap:14px}.ahb-module-style-row{margin:0;padding:0;border:0;min-width:0}.ahb-module-style-row legend{float:left;width:120px;padding:0;color:var(--ahb-muted);font-size:13px}.ahb-module-style-options{display:flex;flex-wrap:wrap;gap:10px}.ahb-module-style-option{position:relative;cursor:pointer}.ahb-module-style-option input{position:absolute;opacity:0}.ahb-module-style-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:86px;min-height:80px;padding:10px;border:1px solid var(--ahb-line);border-radius:6px;color:var(--ahb-muted);font-size:13px}.ahb-module-style-option input:checked+.ahb-module-style-tile{border-color:#1677ff;color:#1677ff;background:#f5f9ff}.ahb-module-style-option input:focus-visible+.ahb-module-style-tile{outline:3px solid #1677ff;outline-offset:2px}.ahb-module-style-option input:disabled+.ahb-module-style-tile{opacity:.55;cursor:not-allowed}.ahb-module-style-sample{font-size:11px;padding:2px 7px}.ahb-module-style-sample.line{border-bottom:2px solid currentColor}.ahb-module-style-sample.filled{color:white;background:#3078ed;border-radius:20px}.ahb-module-style>.ahb-field{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center}.ahb-module-style .ahb-color-row{display:flex;align-items:center;gap:8px}.ahb-module-style .ahb-color-row input[type=color]{width:40px;height:40px;flex:none}.ahb-module-style .ahb-color-row input[type=text]{width:108px;max-width:100%}.ahb-module-style .ahb-color-error{grid-column:2}.ahb-module-list-items{display:grid;gap:12px}.ahb-module-list-items .ahb-module-tab{display:grid;gap:10px;min-width:0;padding:14px;border:1px solid var(--ahb-line);border-radius:6px}.ahb-module-list-items .ahb-module-tab>.ahb-field{display:grid;grid-template-columns:100px minmax(0,1fr) auto;align-items:center;gap:8px}.ahb-module-list-items .ahb-module-choice{min-width:0;width:100%;text-align:left}.ahb-root .ahb-module-add{border:0;background:transparent;color:#167a3c;padding:8px 0;text-align:left}.ahb-module-list{min-width:0}@media(max-width:600px){.ahb-module-style-row legend{float:none;width:auto;margin-bottom:8px}.ahb-module-style>.ahb-field,.ahb-module-list-items .ahb-module-tab>.ahb-field{grid-template-columns:1fr}.ahb-module-style .ahb-color-error{grid-column:1}}

/* Added components keep a stable indicator independent of canvas selection. */
.ahb-root[data-ahb-android-editor] .ahb-palette .btn.added,.ahb-root[data-ahb-android-editor] .ahb-palette .btn.added:disabled{border:1px solid #1677ff;background:#fff;color:#1677ff;opacity:1;transition:none;animation:none}
.ahb-root[data-ahb-technician-editor] .ahb-components-pane>.ahb-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ahb-root[data-ahb-technician-editor] .ahb-components-pane>.ahb-palette>.btn{min-width:0;overflow-wrap:anywhere}

/* Align the technician settings with the admin content coordinate guide. */
@container (min-width:1477px){
  .ahb-root[data-ahb-technician-editor]>.ahb-workbench{grid-template-columns:270px 959px minmax(220px,1fr);gap:14px}
  @media (min-height:1001px){.ahb-root[data-ahb-technician-editor]>.ahb-workbench{height:813px}}
}

/* 600 CSS pixels are 1050 screen pixels at 175% display scaling. */
@container (min-width:1250px){.ahb-root[data-ahb-micro-page] .ahb-workbench{grid-template-columns:320px minmax(0,1fr) 600px}}

.ahb-root .ahb-nav-spacing{grid-template-columns:minmax(0,1fr) 76px;align-items:center;column-gap:12px;margin:12px 0}.ahb-nav-spacing>span{grid-column:1/-1}.ahb-root .ahb-nav-spacing input[type=range]{padding:0;border:0}.ahb-root .ahb-nav-spacing input[type=number]{width:100%}

.ahb-nav-style-row{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:10px;margin:18px 0;color:#52647a}.ahb-nav-style-row>div{display:flex;gap:20px;flex-wrap:wrap}.ahb-nav-style-row label{white-space:nowrap}.ahb-nav-style-row select{width:100%;height:40px;border:1px solid #dbe3ed;border-radius:6px;padding:0 8px;background:#fff}

.ahb-nav-style-tile{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:76px;height:76px;border:1px solid #dcdfe6;border-radius:4px;cursor:pointer}.ahb-nav-style-tile.selected{border-color:#409eff;color:#409eff}.ahb-nav-style-tile input{position:absolute;opacity:0}.ahb-nav-style-tile input:focus-visible+ b{outline:2px solid #1677ff}.ahb-nav-style-tile b{font-size:22px}

.ahb-root .ahb-nav-tabs{display:flex;justify-content:center;gap:24px;margin:14px 0 24px;border-bottom:1px solid #e3e6ed}.ahb-root .ahb-nav-tabs .btn{position:relative;min-width:90px;border:0;border-radius:0;background:transparent;color:#303133}.ahb-root .ahb-nav-tabs .btn.selected{color:#409eff}.ahb-root .ahb-nav-tabs .btn.selected:after{content:"";position:absolute;bottom:-1px;left:35%;width:30%;height:2px;background:#409eff}
.ahb-order-finance-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;text-align:center}.ahb-order-finance-row [data-order-finance-amount]{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}.ahb-order-finance-row [data-order-finance-label]{font-size:12px;white-space:nowrap;background:transparent;color:inherit;border-radius:0;padding:0}.ahb-order-finance-row [data-order-finance-value]{font-size:14px;font-weight:normal}

.ahb-nav-color>.ahb-field{grid-template-columns:120px minmax(0,1fr);align-items:center;margin:18px 0}.ahb-nav-color .ahb-color-error{grid-column:2}

.ahb-canvas-block.selected::after{content:"";position:absolute;inset:0;z-index:2;border:2px solid #1677ff;box-sizing:border-box;pointer-events:none}

.ahb-root .ahb-nav-spacing{grid-template-columns:minmax(88px,110px) minmax(0,1fr) 76px;align-items:center}.ahb-root .ahb-nav-spacing>span{grid-column:auto}

.title-editor-switch{appearance:none;display:inline-block;position:relative;width:40px;height:22px;border:0;border-radius:12px;background:#dcdfe6;vertical-align:middle;cursor:pointer}.title-editor-switch:checked{background:#409eff}.title-editor-switch::before{content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff}.title-editor-switch:checked::before{left:20px}.title-editor-switch:focus-visible{outline:2px solid #1677ff;outline-offset:2px}

/* Distinguish configuration section headings from field labels and component titles. */
.micro-prop-body h4,.micro-prop-body h5,.ahb-config > h4:not(:first-child),.ahb-config :not(.ahb-config) > h4,.ahb-config h5{box-sizing:border-box;min-height:32px;display:flex;align-items:center;border-left:4px solid #409eff;padding:0 0 0 12px;margin:16px 0 12px;color:#000;font-weight:700}

/* Configuration panels scroll independently of the simulator. */
.micro-editor .micro-props{max-height:max(220px,calc(100vh - 146px));overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;min-height:0}
.ahb-workbench .ahb-settings-pane{overflow-y:auto;overscroll-behavior-y:contain}
.ahb-user-info-row{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px;margin:12px 0}
.ahb-user-info-row>span{color:#909399}
.ahb-user-info-row>div{min-width:0}
.ahb-user-info-range{display:flex;align-items:center;gap:8px}
.ahb-user-info-range input[type=range]{flex:1;min-width:0}
.ahb-user-info-range input[type=number]{width:72px}

.ahb-finance-color{display:flex;align-items:center;gap:12px;min-width:0}.ahb-finance-color>span{flex:none;white-space:nowrap}.ahb-finance-color .ahb-color-row{display:flex;align-items:center;gap:8px;min-width:0}.ahb-finance-color .ahb-color-row details{flex:none}.ahb-finance-color .ahb-color-row>input{min-width:0;max-width:100%}

.ahb-order-finance-heading{align-items:center;flex-wrap:nowrap;gap:12px;overflow-x:auto;white-space:nowrap}.ahb-preview-entry .ahb-order-finance-heading [data-finance-header-entry]{padding:0;background:transparent;color:inherit;border-radius:0;font-size:12px;font-weight:normal;white-space:nowrap}

.ahb-finance-component-add{display:flex;align-items:center;gap:12px;margin-top:16px}

.ahb-preview-entry .ahb-order-finance-heading [data-finance-header-custom]{padding:0;background:transparent;color:inherit;border-radius:0;font-size:12px;font-weight:normal;white-space:nowrap}
.ahb-finance-entry-list>div{display:flex;align-items:center;gap:8px;margin-top:8px}.ahb-finance-entry-dialog{width:min(340px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;border:0;border-radius:8px;padding:16px;box-sizing:border-box}.ahb-finance-entry-dialog::backdrop{background:#0008}.ahb-finance-entry-dialog label{display:flex;flex-direction:column;gap:6px;margin:10px 0}.ahb-finance-entry-dialog input,.ahb-finance-entry-dialog select{width:100%;padding:8px;border:1px solid #d9dfe9;border-radius:4px}.ahb-finance-entry-dialog p{margin:10px 0;line-height:1.5}.ahb-finance-entry-actions{display:flex;justify-content:flex-end;gap:8px}

.ahb-finance-target-picker:not([open]){display:none}.ahb-finance-target-picker{width:min(1100px,90vw);max-height:85vh;border:0;box-sizing:border-box}.ahb-finance-target-picker::backdrop{background:#0008}.ahb-finance-target-picker .tp-choices{min-height:100px}

.ahb-finance-entry-card{position:relative;min-height:44px;padding:10px 38px 10px 12px;border:1px solid #409eff;border-radius:4px;box-sizing:border-box}.ahb-finance-entry-remove{position:absolute;right:6px;top:5px;width:28px;height:28px;border:0;border-radius:50%;background:#b9bec8;color:white;cursor:pointer}.ahb-finance-entry-remove:focus-visible{outline:2px solid #1677ff;outline-offset:2px}
.ahb-finance-entry-dialog input[type=radio]{width:auto;padding:0;margin:0;vertical-align:middle}

.ahb-canvas-block[data-rounded-component] > .ahb-canvas-content,.ahb-canvas-block[data-rounded-component].selected::after{border-radius:inherit}
