/* Phông chữ và reset */
:root { --accent: #f39c12; --bg-bar: #111; --text: #fff; }
html { margin: 0; padding: 0; }
body { margin: 0; padding-top: 60px; font-family: 'Inter', sans-serif; background: #f0f2f5; box-sizing: border-box; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
body.admin-bar { --st-wp-admin-bar-height: 32px; padding-top: calc(var(--st-runtime-body-padding-top, 70px) + var(--st-wp-admin-bar-height)); }
body.admin-bar #st-menu { top: var(--st-wp-admin-bar-height, 32px) !important; }
@media screen and (max-width: 782px) {
    body.admin-bar { --st-wp-admin-bar-height: 46px; }
}

/* Thanh Vỉa Hè (Street Bar) */
#street-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 50px;
    background: var(--bg-bar); color: var(--text); z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; box-sizing: border-box; border-bottom: 2px solid var(--accent);
}

/* Hiệu ứng Vuốt (Swipe Animation) */
.page-transition {
    animation: fadeBlur 0.5s ease-out;
}
@keyframes fadeBlur {
    from { opacity: 0; filter: blur(5px); transform: scale(1.02); }
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* Nút bấm điều hướng */
.btn-next {
    background: var(--accent); color: #000; border: none;
    padding: 8px 16px; border-radius: 20px; cursor: pointer;
    font-weight: 600; text-transform: uppercase; font-size: 12px;
}

/* WP frontend builder (view + edit mode): prevent padding shift on #house-template */
.stb-builder-preview #house-template.st-page-surface,
.stb-builder-preview #house-template .st-page-surface {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

/* STREET_RUNTIME_EXTRACT_START */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Keep the global edit toolbar beneath popup menus and dropdown layers. */
#st-float-edit-container { z-index: 100000 !important; }
#st-float-toolbar { z-index: 100001 !important; }
/* The add-block submenus must escape the global toolbar stacking layer. */
#st-edit-row-add-dropdown,
#st-add-block-sub-dropdown,
#st-add-dropdown-menu,
#st-content-dropdown-menu { z-index: 100250 !important; }
        html { background: var(--st-runtime-root-bg, transparent); overflow-y: var(--st-runtime-html-overflow-y, auto); -webkit-overflow-scrolling: touch; }
        body {
            padding-top: var(--st-runtime-body-padding-top, 70px);
            background: var(--st-runtime-root-bg, transparent);
            -webkit-overflow-scrolling: touch;
        }
        #house-template {
            position: relative;
            z-index: 1;
        }
        /* Keep footer below the body surface so fixed blocks inside #house-template can float above it. */
        #st-footer-host {
            position: relative;
            z-index: 0;
        }
        .st-layout-shell {
            width: var(--st-layout-width, auto);
            max-width: var(--st-layout-max-width, none);
            margin-left: var(--st-layout-margin-left, 0);
            margin-right: var(--st-layout-margin-right, 0);
            margin-top: var(--st-layout-margin-top, 0);
            margin-bottom: var(--st-layout-margin-bottom, 0);
            padding-left: var(--st-layout-padding-left, 0);
            padding-right: var(--st-layout-padding-right, 0);
            box-sizing: border-box;
        }
        #st-menu.st-layout-shell-outer {
            width: 100%;
            max-width: none;
            margin-left: 0;
            margin-right: 0;
            box-sizing: border-box;
        }
        .st-page-surface {
            width: var(--st-layout-width, min(800px, calc(100% - 32px)));
            max-width: var(--st-layout-max-width, none);
            margin-left: var(--st-layout-margin-left, auto);
            margin-right: var(--st-layout-margin-right, auto);
            background: transparent;
            --st-body-block-gap: 15px;
            padding-bottom: 20px;
        }
        .st-page-surface > :is(.st-page-section-group-top, .st-page-section-group-body, .st-page-section-group-bottom) > :is(.st-section, .st-product-compact-grid, .st-product-medium-grid, .st-product-large-grid) + :is(.st-section, .st-product-compact-grid, .st-product-medium-grid, .st-product-large-grid) { margin-top: var(--st-body-block-gap, 15px) !important; }
        .st-page-surface > :is(.st-page-section-group-top, .st-page-section-group-body, .st-page-section-group-bottom) + :is(.st-page-section-group-top, .st-page-section-group-body, .st-page-section-group-bottom) { margin-top: var(--st-body-block-gap, 15px); }

        body.live-update-mode .st-page-surface > .st-page-section-group-top,
        body.live-edit-hover .st-page-surface > .st-page-section-group-top,
        body.live-update-mode .st-page-surface > .st-page-section-group-bottom,
        body.live-edit-hover .st-page-surface > .st-page-section-group-bottom {
            outline: 2px dashed #94a3b8;
            outline-offset: 5px;
            position: relative;
        }
        body.live-update-mode .st-page-surface > .st-page-section-group-top::before,
        body.live-edit-hover .st-page-surface > .st-page-section-group-top::before,
        body.live-update-mode .st-page-surface > .st-page-section-group-bottom::before,
        body.live-edit-hover .st-page-surface > .st-page-section-group-bottom::before {
            position: absolute;
            top: -11px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--st-page-bg, #fff);
            color: #94a3b8;
            font-size: 10px;
            font-weight: 700;
            padding: 0 8px;
            letter-spacing: 1px;
            z-index: 10;
            white-space: nowrap;
            line-height: 1;
            pointer-events: none;
        }
        body.live-update-mode .st-page-surface > .st-page-section-group-top::before,
        body.live-edit-hover .st-page-surface > .st-page-section-group-top::before {
            content: 'ĐẦU TRANG';
        }
        body.live-update-mode .st-page-surface > .st-page-section-group-bottom::before,
        body.live-edit-hover .st-page-surface > .st-page-section-group-bottom::before {
            content: 'CUỐI TRANG';
        }

        #street-bar {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            backface-visibility: hidden;
            will-change: transform, opacity;
        }
        @media (max-width: 767px) {
            #street-bar {
                will-change: auto;
                -webkit-transform: none;
                transform: none;
                backface-visibility: visible;
            }
            #st-menu {
                overflow-x: auto !important;
                overflow-y: hidden !important;
                overscroll-behavior-x: contain;
                -webkit-overflow-scrolling: touch;
            }
            #st-floating-mode-btn,
            #st-float-toolbar {
                -webkit-backdrop-filter: none;
                backdrop-filter: none;
            }
        }

        #street-bar { position: fixed; top: 0; left: 0; width: var(--st-layout-width, 100%); max-width: var(--st-layout-max-width, none); margin-left: var(--st-layout-margin-left, 0); margin-right: var(--st-layout-margin-right, 0); margin-top: var(--st-layout-margin-top, 0); margin-bottom: var(--st-layout-margin-bottom, 0); height: 70px; z-index: 900; font-family: sans-serif; color: #fff; box-sizing: border-box; }
        .st-bar-inner { width: var(--st-layout-width, 100%); max-width: var(--st-layout-max-width, none); height: 100%; margin-left: var(--st-layout-margin-left, auto); margin-right: var(--st-layout-margin-right, auto); margin-top: 0 !important; margin-bottom: 0 !important; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; padding-left: var(--st-layout-padding-left, 15px); padding-right: var(--st-layout-padding-right, 15px); box-sizing: border-box; }
        .st-store-info { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; flex: 1; min-width: 0; height: 100%; margin-left: 15px; }
        .st-house-name { font-size: 15px; font-weight: 600; display: inline-flex; padding: 2px 4px; border-radius: 6px; transition: all 0.18s ease; }
        .st-house-location { font-size: 10px; opacity: 0.7; margin-top: 4px; display: inline-flex; padding: 2px 4px; border-radius: 6px; transition: all 0.18s ease; }
        .st-house-location.editable { cursor: pointer; }
        .st-edit-mode-active .st-logo-img[data-default-logo="1"] { cursor: pointer; }
        .st-edit-mode-active .st-logo-img[data-default-logo="1"]:hover { opacity: 0.82; outline: 2px dashed rgba(37,99,235,0.75); outline-offset: 3px; border-radius: 10px; }
        .st-location-dropdown .st-location-option { padding: 10px 16px; white-space: nowrap; cursor: pointer; }
        .st-location-dropdown .st-location-option:hover { background: rgba(59, 130, 246, 0.08); }
        .st-page-title { display: block; padding: 2px 4px; border-radius: 6px; transition: all 0.18s ease; }
        .st-hero-avatar-frame { position: relative; display: block; border-radius: 999px; overflow: hidden; box-sizing: border-box; }
        .st-hero-avatar-frame .st-hero-avatar { max-width: none; object-fit: cover; display: block; }
        .st-hero-avatar { width: 100px; height: 100px; border-radius: 999px; object-fit: cover; display: block; margin: 0 auto 18px; }
        .st-hero-title { display: inline-block; padding: 2px 4px; border-radius: 6px; transition: all 0.18s ease; }
        .st-page-title.editable,
        .st-hero-title.editable { cursor: pointer; }
        .st-page-slogan { display: block; padding: 2px 4px; border-radius: 6px; transition: all 0.18s ease; margin-top: 6px; }
        .st-page-slogan.editable { cursor: pointer; }
        .st-region-edit-toggle { display: none; position: absolute; top: 8px; right: 10px; width: 28px; height: 26px; align-items: center; justify-content: center; padding: 0; border: 1px solid currentColor; border-radius: 5px; background: transparent; color: inherit; opacity: 0.78; box-shadow: none; line-height: 1; cursor: pointer; z-index: 6; }
        body.live-update-mode .st-region-edit-toggle { display: inline-flex; }
        .st-region-edit-toggle:hover { background: rgba(148,163,184,0.14); opacity: 1; }
        .st-region-edit-toggle svg { width: 15px; height: 15px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
        .st-region-edit-toggle[aria-expanded="true"] svg { width: 17px; height: 17px; }
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .editable,
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-logo-img[data-default-logo="1"] { cursor: default !important; outline: none !important; }
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-logo-img[data-default-logo="1"]:hover { opacity: 1 !important; }
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-header-live-actions,
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar #st-header-live-actions-wrapper { display: none !important; }
        body.live-update-mode:not(.st-region-edit-focus-footer) #st-footer-hover-toolbar,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-text-block-menu-badge,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-contact-field-menu-badge { display: none !important; }

        #st-region-edit-overlay { display: none; position: fixed; inset: 0; z-index: 100200; background: rgba(15,23,42,0.26); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); pointer-events: auto; }
        #st-region-edit-overlay.active { display: block; }
        body.live-update-mode.st-region-edit-focus-header #house-template,
        body.live-update-mode.st-region-edit-focus-header #st-footer-host,
        body.live-update-mode.st-region-edit-focus-footer #street-bar,
        body.live-update-mode.st-region-edit-focus-footer #st-menu,
        body.live-update-mode.st-region-edit-focus-footer #house-template { pointer-events: none; }
        body.live-update-mode.st-region-edit-focus-header #street-bar .st-region-edit-toggle,
        body.live-update-mode.st-region-edit-focus-footer #st-footer-host .st-region-edit-toggle { pointer-events: auto; }
        .st-page-header { padding: 15px 20px 5px; }
        body.live-update-mode .st-page-header { background: rgba(72, 187, 120, 0.08); }
        body.live-update-mode .st-page-header:hover { background: rgba(72, 187, 120, 0.12); }
            body.live-update-mode .st-section,
            body.live-update-mode .st-house-name,
            body.live-update-mode .st-house-location,
            body.live-update-mode .st-page-title { outline: none; }
            body.live-update-mode .st-house-name:hover,
            body.live-update-mode .st-house-name:focus,
            body.live-update-mode .st-house-name:focus-visible,
            body.live-update-mode .st-house-location:hover,
            body.live-update-mode .st-house-location:focus,
            body.live-update-mode .st-house-location:focus-visible,
            body.live-update-mode .st-page-title:hover,
            body.live-update-mode .st-page-title:focus,
            body.live-update-mode .st-page-title:focus-visible,
            body.live-update-mode .st-page-title:focus-within {
                outline: 1px dashed rgba(37, 99, 235, 0.95);
                outline-offset: 3px;
            }
        body.live-update-mode .st-page-title { background: transparent; }
        body.live-update-mode .st-section.st-hero .st-hero-title {
            outline: none !important;
                border-bottom: 1px dashed transparent;
            display: inline-block;
            padding-bottom: 1px;
            background: transparent;
            border-radius: 0;
        }
        body.live-update-mode .st-section.st-hero .st-page-slogan {
            outline: none !important;
            background: transparent;
            border-radius: 0;
                border-bottom: 1px dashed transparent;
        }
            body.live-update-mode .st-section.st-hero .st-hero-title:hover,
            body.live-update-mode .st-section.st-hero .st-hero-title:focus,
            body.live-update-mode .st-section.st-hero .st-hero-title:focus-visible,
            body.live-update-mode .st-section.st-hero .st-page-slogan:hover,
            body.live-update-mode .st-section.st-hero .st-page-slogan:focus,
            body.live-update-mode .st-section.st-hero .st-page-slogan:focus-visible {
                outline: none;
                border-bottom-color: rgba(148, 163, 184, 0.8);
            }
        body.live-update-mode .st-section.st-hero .st-page-slogan { margin-top: 6px; }
        body.live-update-mode .st-section.st-hero .st-page-slogan:empty {
            display: block;
        }
        body.live-update-mode .st-section.st-hero .st-page-slogan:empty::before {
            content: attr(data-placeholder);
            color: rgba(148, 163, 184, 0.8);
            display: inline-block;
        }
        .st-section.st-hero .st-page-slogan:empty { display: none; }
        .st-section.st-hero { isolation: isolate; }
        .st-hero-inner { width: 100%; max-width: 980px; margin: 0 auto; position: relative; }
        .st-hero-content { position: relative; z-index: 20; }
        .st-hero-inner.has-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 42%); gap: 28px; align-items: center; }
        .st-hero-inner.media-left { grid-template-columns: minmax(220px, 42%) minmax(0, 1fr); }
        .st-hero-media { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 14px 32px rgba(15,23,42,0.16); display: block; position: relative; z-index: 5; }
        .st-hero-media-frame { position: relative; overflow: hidden; box-sizing: border-box; z-index: 5; }
        .st-hero-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .st-hero-media-stack { position: relative; z-index: 5; box-sizing: border-box; }
        .st-hero-inner.media-right .st-hero-media-stack { justify-self: end; }
        .st-hero-inner.media-left .st-hero-media-stack { justify-self: start; }
        .st-hero-inner.media-left .st-hero-media-stack { grid-column: 1; grid-row: 1; }
        .st-hero-inner.media-bottom .st-hero-media-stack { margin: 22px auto 0; }
        .st-hero-media-stack .st-hero-media {
            grid-column: auto !important;
            grid-row: auto !important;
            justify-self: stretch !important;
            margin: 0 !important;
        }
        .st-hero-inner.media-right .st-hero-media { justify-self: end; }
        .st-hero-inner.media-left .st-hero-media { justify-self: start; }
        .st-hero-inner.media-left .st-hero-media { grid-column: 1; grid-row: 1; }
        .st-hero-inner.media-left .st-hero-content { grid-column: 2; grid-row: 1; }
        .st-hero-inner.media-bottom { display: block; }
        .st-hero-inner.media-bottom .st-hero-media { margin: 22px auto 0; }
        @media (max-width: 768px) {
            .st-section.st-hero.st-hero-has-media {
                height: auto !important;
                min-height: var(--st-hero-block-height, 0px) !important;
                overflow: visible !important;
            }
            .st-hero-inner.has-media,
            .st-hero-inner.media-left { display: block; }
            .st-hero-inner.media-left .st-hero-media,
            .st-hero-inner.media-left .st-hero-content { grid-column: auto; grid-row: auto; }
            .st-hero-media { margin: 22px auto 0; max-width: 100%; }
            .st-hero-media-stack { max-width: 100% !important; }
            .st-hero-inner.media-right .st-hero-media-stack { margin: 22px auto 0 0; }
            .st-hero-inner.media-left .st-hero-media-stack { margin: 22px 0 0 auto; }
            .st-hero-inner.media-bottom .st-hero-media-stack { margin: 22px auto 0; }
            .st-hero-inner.media-right .st-hero-media { margin: 22px auto 0 0; }
            .st-hero-inner.media-left .st-hero-media { margin: 22px 0 0 auto; }
            .st-hero-inner.media-bottom .st-hero-media { margin: 22px auto 0; }
        }
        body.live-update-mode .st-section.st-hero:hover { background: transparent; }
        body.st-ui-hovering.live-update-mode .st-section.st-hero:hover { background: transparent !important; }
        .st-house-name-input { font-size: 15px; font-weight: 600; color: #111; border: 1px solid rgba(255,255,255,0.85); border-radius: 8px; padding: 4px 8px; min-width: 120px; max-width: 260px; width: auto; background: rgba(255,255,255,0.98); }
        .st-live-login-modal { display:none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100300; justify-content: center; align-items: center; }
        .st-live-login-modal.active { display: flex; }
        .st-live-login-modal .modal-card { width:min(360px,92%); background:#fff; border-radius:14px; padding:18px; box-shadow:0 18px 45px rgba(0,0,0,0.18); position:relative; z-index: 100301; }
        .st-live-login-modal.st-login-menu-popover { background: transparent; justify-content: flex-start; align-items: flex-start; pointer-events: none; }
        .st-live-login-modal.st-login-menu-popover .modal-card { position: fixed !important; width:min(360px,calc(100vw - 16px)); pointer-events: auto; z-index: 100301; }
        .st-live-login-modal .modal-title { font-size:16px; margin-bottom:12px; font-weight:600; }
        .st-live-login-modal .modal-text { color:#475569; font-size:14px; line-height:1.5; margin-bottom:14px; }
        .st-live-login-modal .inline-modal-close { position:absolute !important; top:14px !important; right:14px !important; left:auto !important; width:32px !important; height:32px !important; border:none !important; background:transparent !important; color:#0f172a; font-size:16px; border-radius:50%; cursor:pointer; display:block !important; line-height:1; text-align:center; z-index:10; padding:0 !important; box-shadow:none; }
        .st-live-login-modal .inline-modal-close:hover { background:rgba(0,0,0,0.06) !important; }
        .st-live-login-modal .modal-field { margin-bottom:12px; }
        .st-live-login-modal .modal-field input { width:100%; padding:10px 12px; border-radius:10px; border:1px solid #d1d5db; font-size:14px; }
        .st-live-login-modal .modal-error { display:none; color:#b91c1c; font-size:13px; min-height:18px; margin-bottom:10px; }
        .st-live-login-modal .modal-error.show { display:block; }
        .st-live-login-modal .modal-actions { display:grid; gap:10px; }
        .st-live-login-modal .modal-actions button { border:none; border-radius:10px; padding:12px 14px; font-size:14px; font-weight:600; cursor:pointer; }
        .st-live-login-modal .modal-actions .primary { background:#2d8cff; color:#fff; }
        .st-live-login-modal .modal-actions .secondary { background:#f1f5f9; color:#334155; }
        @media (max-width: 767px) {
            .st-live-login-modal,
            .st-live-login-modal.st-login-menu-popover { align-items:flex-end; justify-content:center; background:rgba(0,0,0,0.45); padding:0; pointer-events:auto; }
            .st-live-login-modal .modal-card,
            .st-live-login-modal.st-login-menu-popover .modal-card { position:relative !important; left:auto !important; top:auto !important; right:auto !important; width:100% !important; max-width:none; max-height:calc(100dvh - 24px); overflow-y:auto; border-radius:18px 18px 0 0; padding:22px 18px max(18px, env(safe-area-inset-bottom)); box-sizing:border-box; }
            .st-live-login-modal .modal-field input { font-size:16px !important; }
        }
        .st-location { font-size: 10px; opacity: 0.7; }
        .st-btn { color: white; border: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 16px; cursor: pointer; }
        #st-user-button,
        #st-hamburger-toggle {
            width: auto;
            height: auto;
            min-width: 0;
            padding: 0 !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-sizing: border-box;
            border-radius: 0;
        }
        #st-hamburger-toggle {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            width: 34px !important;
            height: 34px !important;
            min-width: 34px !important;
            font-size: 20px !important;
            font-weight: 400 !important;
            color: inherit !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
        }
        #st-user-button {
            display: none !important;
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            z-index: 100150 !important;
            width: 46px !important;
            height: 36px !important;
            min-width: 46px !important;
            border-radius: 0 0 0 12px !important;
            box-shadow: none !important;
            background: rgba(37, 99, 235, 0.88) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-top: none !important;
            border-right: none !important;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            contain: paint;
            isolation: isolate;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        #st-user-button svg { width: 19px; height: 19px; flex: 0 0 auto; display: block; }
        #st-user-button:hover { background: rgba(29, 78, 216, 0.95) !important; transform: translate3d(0, 1px, 0); box-shadow: none !important; }
        /* Ensure pressed/open state uses gray color, default remains white */
        #st-user-button.is-menu-open, #st-user-button:active {
            color: rgba(148,163,184,0.98) !important;
        }
        #st-user-button { color: #fff !important; }
                /* Let JS compute the menu top so it sits flush to the header (no hard gap). */
                #st-menu { background: #fff; border-bottom: 1px solid #eee; overflow: visible; white-space: nowrap; position: fixed; top: 0; left: 0; width: 100%; max-width: none; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; z-index: 100150; scrollbar-width: none; height: var(--st-menu-height, 44px); box-sizing: border-box; }
                .st-menu-inner { width: var(--st-layout-width, 100%); max-width: var(--st-layout-max-width, none); height: 100%; margin-left: var(--st-layout-margin-left, auto); margin-right: var(--st-layout-margin-right, auto); padding: 0; padding-left: var(--st-layout-padding-left, 0); padding-right: var(--st-layout-padding-right, 0); box-sizing: border-box; display: flex; align-items: center; justify-content: flex-start; gap: 0; overflow-x: auto; overflow-y: hidden; }

        /* Floating Edit Container */
        #st-float-edit-container {
            position: fixed;
            bottom: 20px;
            right: calc(16px + env(safe-area-inset-right, 0px));
            z-index: 100200;
            display: none;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }

        #st-float-edit-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
        }

        #st-floating-mode-btn {
            width: 38px;
            height: 38px;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.72);
            color: #fff;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
            transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        #st-floating-mode-btn:hover {
            background: rgba(15, 23, 42, 0.9);
            transform: translateY(-1px);
        }
        #st-floating-mode-btn:active {
            transform: scale(0.96);
        }

        /* Main toggle button */
        #st-floating-edit-btn {
            width: 58px;
            height: 58px;
            border: none;
            border-radius: 50%;
            background: linear-gradient(135deg, #fb923c, #f97316);
            color: #fff;
            font-size: 34px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 26px rgba(249, 115, 22, 0.38);
            transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
            flex-shrink: 0;
            line-height: 1;
        }
        #st-floating-edit-btn:hover {
            background: linear-gradient(135deg, #fdba74, #ea580c);
            transform: scale(1.07);
        }
        #st-floating-edit-btn:active {
            transform: scale(0.95);
        }
        #st-float-edit-container.active #st-floating-mode-btn {
            background: #93c5fd;
            box-shadow: 0 6px 22px rgba(96, 165, 250, 0.55);
        }
        #st-float-edit-container.active #st-floating-mode-btn:hover {
            background: #60a5fa;
        }

        /* Floating Toolbar */
        #st-float-toolbar {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 3px;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(16px) saturate(1.2);
            -webkit-backdrop-filter: blur(16px) saturate(1.2);
            color: #f8fafc;
            border-radius: 6px;
            padding: 4px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            border: 1px solid rgba(255,255,255,0.08);
            width: fit-content;
            min-width: 0;
            transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
        }
        #st-float-toolbar:hover {
            background: rgba(0, 0, 0, 0.92);
            box-shadow: 0 10px 28px rgba(0,0,0,0.2);
        }
        #st-float-toolbar.compact {
            width: fit-content;
            padding: 5px 6px;
            gap: 4px;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(12px) saturate(1.1);
            -webkit-backdrop-filter: blur(12px) saturate(1.1);
            color: #f8fafc;
            border-radius: 6px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            border: 1px solid rgba(255,255,255,0.08);
        }
        #st-float-toolbar.compact:hover {
            background: rgba(0, 0, 0, 0.92);
            box-shadow: 0 10px 28px rgba(0,0,0,0.2);
        }

        /* When compact, hide all buttons except the resume button, settings button (the unified pair), and save-fab */
        #st-float-toolbar.compact > button:not(.resume-btn):not(.settings-btn):not(.st-toolbar-save-fab):not(.toolbar-drag-handle):not(#st-user-button):not(#st-global-command-btn) {
            display: none !important;
        }
        #st-float-toolbar.compact > .st-toolbar-save-fab.st-dirty {
            display: inline-flex !important;
            pointer-events: auto !important;
        }
        #st-float-toolbar.compact .resume-btn {
            display: inline-flex !important;
            position: relative;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: none;
            border-radius: 4px;
            min-width: 28px;
            height: 28px;
            padding: 0 8px;
            margin: 0;
            text-transform: none;
            font-size: 12px;
            font-weight: 600;
            line-height: 1;
            color: #f8fafc;
            gap: 4px;
        }
        #st-float-toolbar.compact .resume-btn {
            width: 28px;
            height: 28px;
            min-width: 28px;
            padding: 0;
            border-radius: 4px;
        }
        /* In edit mode (live-update-mode), use dark blue background for resume-btn */
        body.live-update-mode #st-float-toolbar.compact .resume-btn {
            background: #3b82f6;
            border: 1px solid rgba(96, 165, 250, 0.44);
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
        }
        /* Unified pair in compact bottom toolbar: "Chỉnh sửa" (lightly rounded rect) + settings (square) */
        #st-float-toolbar.compact .settings-btn {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            min-width: 28px;
            padding: 0;
            border-radius: 4px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            color: #f8fafc;
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
            margin-left: 4px;
        }
        #st-float-toolbar.compact .settings-btn:hover {
            background: rgba(255,255,255,0.2);
            box-shadow: 0 6px 18px rgba(0,0,0,0.22);
        }
        #st-float-toolbar.compact .settings-btn:active {
            transform: scale(0.95);
        }
        #st-float-toolbar.compact .resume-btn .resume-close {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
        }
        #st-float-toolbar.compact .resume-btn:hover {
            background: #3b82f6;
            box-shadow: 0 10px 26px rgba(59, 130, 246, 0.34);
        }
        #st-float-toolbar.compact .resume-btn:active { transform: scale(0.98); }
        /* Hide edit (pencil) button when in edit mode (not compact) */
        #st-float-toolbar:not(.compact) .resume-btn { display: none !important; }
        /* Show edit button in compact/view mode with very light blue background */
        #st-float-toolbar.compact .exit {
            display: inline-flex !important;
            background: rgba(59, 130, 246, 0.15);
            border: 1px solid rgba(96, 165, 250, 0.3);
            box-shadow: none;
        }
        #st-float-toolbar.compact .exit:hover {
            background: #3b82f6;
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
        }
        #st-float-toolbar.compact .exit:active { transform: scale(0.95); }
        /* In edit mode (live-update-mode), use dark blue background */
        body.live-update-mode #st-float-toolbar.compact .exit {
            background: #3b82f6;
            border: 1px solid rgba(96, 165, 250, 0.44);
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
        }
        body.live-update-mode #st-float-toolbar.compact .exit:hover {
            background: #2563eb;
            box-shadow: 0 10px 26px rgba(59, 130, 246, 0.34);
        }
        @media (min-width: 768px) {
            #st-float-toolbar {
                position: fixed;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                flex-direction: row;
                align-items: center;
                padding: 8px 12px;
                gap: 8px;
                background: rgba(0, 0, 0, 0.75);
                backdrop-filter: blur(12px) saturate(1.1);
                -webkit-backdrop-filter: blur(12px) saturate(1.1);
                border-radius: 12px 12px 0 0;
                border: 1px solid rgba(255,255,255,0.08);
                box-shadow: 0 12px 32px rgba(0,0,0,0.28);
                z-index: 100200;
                transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            }
            #st-float-toolbar:not(.compact) {
                gap: 4px;
                padding: 5px 6px;
            }
            #st-float-toolbar:hover {
                background: rgba(0, 0, 0, 0.92);
                box-shadow: 0 16px 38px rgba(0,0,0,0.38);
            }
            #st-float-toolbar button {
                min-width: 28px;
                width: 28px;
                height: 28px;
                padding: 0;
                border-radius: 4px;
            }
            #st-float-edit-container[data-toolbar-position="top"] #st-float-toolbar {
                top: 0;
                bottom: auto;
                right: 0;
                left: auto;
                transform: none;
                border-radius: 0 0 0 12px;
            }
            #st-float-edit-container[data-toolbar-position="bottom"] #st-float-toolbar,
            #st-float-edit-container:not([data-toolbar-position]) #st-float-toolbar {
                top: auto;
                bottom: 0;
                border-radius: 12px 12px 0 0;
            }
        }
        @media (max-width: 767px) {
            #st-float-toolbar {
                background: rgba(0, 0, 0, 0.75);
                backdrop-filter: blur(12px) saturate(1.1);
                -webkit-backdrop-filter: blur(12px) saturate(1.1);
                color: #f8fafc;
                border: 1px solid rgba(255,255,255,0.08);
                box-shadow: 0 12px 32px rgba(0,0,0,0.28);
            }
            #st-float-toolbar:hover {
                background: rgba(0, 0, 0, 0.92);
            }
            #st-float-toolbar.compact {
                background: rgba(0, 0, 0, 0.75);
                color: #f8fafc;
                border: 1px solid rgba(255,255,255,0.08);
            }
            #st-float-toolbar.compact:hover {
                background: rgba(0, 0, 0, 0.92);
            }
            #st-float-toolbar.compact .settings-btn {
                color: #f8fafc;
                background: rgba(255,255,255,0.1);
                border-color: rgba(255,255,255,0.15);
            }
            #st-float-toolbar.collapsed {
                background: rgba(0, 0, 0, 0.75);
                border: 1px solid rgba(255,255,255,0.08);
            }
            #st-float-toolbar button {
                color: #f8fafc;
                background: rgba(255,255,255,0.12);
                border-color: rgba(255,255,255,0.14);
            }
            #st-float-toolbar button svg {
                color: #f8fafc;
            }
        }
        #st-float-toolbar.collapsed button:not(.toolbar-collapse-btn):not(.settings-btn) {
            display: none !important;
        }
        #st-float-toolbar.collapsed {
            gap: 0;
            padding: 6px 10px;
            width: auto;
            min-width: 0;
            background: rgba(0, 0, 0, 0.28);
            border-radius: 12px 12px 0 0;
            border-width: 0;
            box-shadow: none;
            justify-content: flex-end;
        }
        #st-float-edit-container #st-float-toolbar.collapsed {
            position: fixed;
            left: auto !important;
            right: 12px !important;
            bottom: 0 !important;
            transform: none !important;
        }
        #st-float-edit-container[data-toolbar-position="top"] #st-float-toolbar.collapsed {
            top: 0 !important;
            bottom: auto !important;
            border-radius: 0 0 12px 12px;
        }
        #st-float-edit-container[data-toolbar-position="bottom"] #st-float-toolbar.collapsed,
        #st-float-edit-container:not([data-toolbar-position]) #st-float-toolbar.collapsed {
            top: auto !important;
            bottom: 0 !important;
            border-radius: 12px 12px 0 0;
        }
        #st-float-toolbar.collapsed button {
            min-width: auto;
            width: 24px;
            height: 24px;
            padding: 0;
        }
        #st-float-toolbar button {
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 4px;
            min-width: 28px;
            width: 28px;
            height: 28px;
            padding: 0;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            color: #f8fafc;
            text-align: center;
            background: rgba(255,255,255,0.12);
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
            transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        /* Settings icon button in full toolbar: square-ish with light rounding to match the pair aesthetic */
        #st-float-toolbar .settings-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            min-width: 28px;
            height: 28px;
            padding: 0;
            border-radius: 4px;
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.14);
            color: #f8fafc;
        }
        #st-float-toolbar .settings-btn svg {
            color: inherit;
            width: 15px;
            height: 15px;
        }
        #st-float-toolbar .settings-btn:hover {
            background: rgba(255,255,255,0.2);
        }
        #st-float-toolbar .compact-edit-btn {
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 4px;
            padding: 0;
            width: 28px;
            height: 28px;
            min-width: 28px;
            color: #f8fafc;
        }
        #st-float-toolbar button:active { transform: scale(0.95); }
        #st-float-toolbar .toolbar-collapse-btn {
            background: rgba(255,255,255,0.14);
            text-align: center;
            width: 12px;
            height: 24px;
            border-radius: 4px;
            line-height: 1;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
            border: 1px solid rgba(255,255,255,0.14);
            color: #f8fafc;
            cursor: grab;
        }
        #st-float-toolbar .toolbar-collapse-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
        #st-float-toolbar .toolbar-collapse-btn:active { cursor: grabbing; }
        #st-float-toolbar .toolbar-collapse-btn .toolbar-collapse-icon { display: none; }
        #st-float-toolbar.collapsed {
            padding: 6px 10px;
            gap: 0;
            background: rgba(0, 0, 0, 0.42);
            border-radius: 12px 12px 0 0;
            border-color: rgba(255,255,255,0.08);
            box-shadow: 0 10px 24px rgba(0,0,0,0.18);
        }
        #st-float-edit-container[data-toolbar-position="top"] #st-float-toolbar.collapsed {
            border-radius: 0 0 12px 12px;
        }
        #st-float-edit-container[data-toolbar-position="bottom"] #st-float-toolbar.collapsed,
        #st-float-edit-container:not([data-toolbar-position]) #st-float-toolbar.collapsed {
            border-radius: 12px 12px 0 0;
        }
        #st-float-toolbar.collapsed button {
            min-width: auto;
            width: 24px;
            height: 24px;
            padding: 0;
        }
        #st-float-toolbar.collapsed .settings-btn {
            display: inline-flex !important;
            width: 24px;
            height: 24px;
            min-width: 24px;
        }
        #st-float-toolbar.collapsed .toolbar-collapse-btn {
            width: 12px;
            height: 24px;
            border-radius: 4px;
        }
        #st-float-toolbar .add-btn { background: rgba(255,255,255,0.14); }
        #st-float-toolbar .add-btn:hover { background: rgba(255,255,255,0.22); }
        #st-float-toolbar .theme-btn, #st-float-toolbar .content-btn { background: rgba(255,255,255,0.14); }
        #st-float-toolbar .theme-btn:hover, #st-float-toolbar .content-btn:hover { background: rgba(255,255,255,0.22); }
        #st-float-toolbar:not(.compact) .st-toolbar-primary-btn {
            min-width: 28px;
            width: 28px;
            height: 28px;
            font-size: 14px;
            background: rgba(255,255,255,0.22);
            border-color: rgba(255,255,255,0.28);
            box-shadow: 0 6px 18px rgba(0,0,0,0.22);
        }
        #st-float-toolbar:not(.compact) .st-toolbar-primary-btn:hover {
            background: rgba(255,255,255,0.34);
            box-shadow: 0 8px 24px rgba(0,0,0,0.28);
            transform: scale(1.1);
        }
        #st-float-toolbar:not(.compact) .st-toolbar-primary-btn:active {
            transform: scale(0.95);
        }
        #st-float-toolbar:not(.compact) button:not(.st-toolbar-primary-btn):not(.toolbar-collapse-btn):not(.toolbar-drag-handle):hover {
            transform: scale(1.1);
        }
        #st-float-toolbar:not(.compact) button:not(.st-toolbar-primary-btn):not(.toolbar-collapse-btn):not(.toolbar-drag-handle):active {
            transform: scale(0.95);
        }
        #st-float-toolbar .save { background: rgba(255,255,255,0.14); opacity: 0.55; }
        #st-float-toolbar .save:hover { background: rgba(255,255,255,0.22); opacity: 0.8; }
        #st-float-toolbar:not(.compact) .save { opacity: 0.85; }
        #st-float-toolbar .save.st-dirty { background:#f97316; opacity:1; animation: st-save-pulse 1.6s ease-in-out infinite; border-color:#ea580c; color:#fff; box-shadow:0 8px 22px rgba(249,115,22,0.34); }
        #st-float-toolbar .save.st-dirty:hover { background:#ea580c; animation:none; }
        #st-float-toolbar.compact .save.st-dirty { background:#22c55e; border-color:#16a34a; box-shadow:0 8px 22px rgba(34,197,94,0.34); }
        #st-float-toolbar.compact .save.st-dirty:hover { background:#16a34a; }
        @keyframes st-save-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.32); } 50% { box-shadow: 0 0 0 5px rgba(0,0,0,0); } }
        #st-float-toolbar .exit { background: #3b82f6; border-color: rgba(96, 165, 250, 0.44); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28); }
        #st-float-toolbar .exit:hover { background: #2563eb; box-shadow: 0 6px 18px rgba(59, 130, 246, 0.34); }
        #st-float-toolbar .undo-btn,
        #st-float-toolbar .redo-btn { background: rgba(255,255,255,0.14); }
        #st-float-toolbar .undo-btn:hover:not(:disabled),
        #st-float-toolbar .redo-btn:hover:not(:disabled) { background: rgba(255,255,255,0.22); }
        #st-float-toolbar .history-btn { background: rgba(255,255,255,0.14); }
        #st-float-toolbar .history-btn:hover { background: rgba(255,255,255,0.22); }
        /* History group button + submenu */
        #st-float-toolbar .history-group-btn {
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 4px;
            padding: 0;
            color: #f8fafc;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        #st-float-toolbar .history-group-btn:hover { background: rgba(255,255,255,0.22); }
        #st-float-toolbar .history-group-btn:active { transform: scale(0.95); }
        .st-toolbar-submenu-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 4px 8px; border: none; }
        .st-toolbar-submenu {
            position: fixed;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px;
            box-shadow: 0 10px 32px rgba(0,0,0,0.4);
            padding: 4px;
            display: none;
            flex-direction: column;
            gap: 1px;
            z-index: 100250;
            min-width: 160px;
        }
        .st-toolbar-submenu.open { display: flex; }
        @keyframes st-submenu-slide-right {
            from { opacity: 0; transform: translateX(-100%); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes st-submenu-slide-left {
            from { opacity: 0; transform: translateX(100%); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes st-submenu-slide-up {
            from { opacity: 0; transform: translateY(100%); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes st-submenu-slide-down {
            from { opacity: 0; transform: translateY(-100%); }
            to { opacity: 1; transform: translateY(0); }
        }
        .st-toolbar-submenu.slide-right { animation: st-submenu-slide-right 0.18s ease-out; }
        .st-toolbar-submenu.slide-left { animation: st-submenu-slide-left 0.18s ease-out; }
        .st-toolbar-submenu.slide-up { animation: st-submenu-slide-up 0.18s ease-out; }
        .st-toolbar-submenu.slide-down { animation: st-submenu-slide-down 0.18s ease-out; }
        #st-edit-row-add-dropdown.slide-up { animation: st-submenu-slide-up 0.18s ease-out; }
        #st-edit-row-add-dropdown.slide-down { animation: st-submenu-slide-down 0.18s ease-out; }
        #st-edit-row-add-dropdown.slide-left { animation: st-submenu-slide-left 0.18s ease-out; }
        #st-edit-row-add-dropdown.slide-right { animation: st-submenu-slide-right 0.18s ease-out; }
        .st-toolbar-submenu-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            border: none;
            background: transparent;
            color: #e2e8f0;
            font-size: 12px;
            font-weight: 500;
            border-radius: 5px;
            cursor: pointer;
            text-align: left;
            width: 100%;
        }
        .st-toolbar-submenu-item:hover { background: rgba(255,255,255,0.1); }
        .st-toolbar-submenu-item:disabled { opacity: 0.4; cursor: not-allowed; }
        .st-toolbar-submenu-item:disabled:hover { background: transparent; }
        .st-toolbar-submenu-item .submenu-icon { width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .st-toolbar-submenu-item .submenu-label { flex: 1; }
        .st-toolbar-submenu-item .submenu-shortcut { font-size: 10px; color: rgba(255,255,255,0.4); }
        /* Align Globe/exit button correctly inside the toolbar */
        #st-float-toolbar .exit {
            transform: none;
            font-size: 14px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            width: 28px;
            min-width: 28px;
            height: 28px;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.14);
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
        }
        #st-float-toolbar .exit-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
            transform: translateY(0);
        }
        #st-float-toolbar .exit:active {
            transform: scale(0.95);
        }

        /* Mobile: horizontal toolbar. Keep every control available by scrolling sideways. */
        @media (max-width: 767px) {
            #st-float-edit-container {
                flex-direction: column;
                align-items: center;
                gap: 8px;
                left: 0;
                right: 0;
                top: auto;
                bottom: auto;
                width: 100%;
                transform: none;
                pointer-events: none;
            }
            #st-float-toolbar {
                position: fixed;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                flex-direction: row;
                align-items: center;
                min-width: unset;
                gap: 6px;
                padding: 6px 8px;
                border-radius: 12px;
                background: rgba(0, 0, 0, 0.62);
                backdrop-filter: blur(12px) saturate(1.1);
                -webkit-backdrop-filter: blur(12px) saturate(1.1);
                border: 1px solid rgba(255,255,255,0.08);
                box-shadow: 0 12px 32px rgba(0,0,0,0.28);
                pointer-events: auto;
                width: calc(100vw - 16px);
                max-width: calc(100vw - 16px);
                overflow-x: auto;
                overflow-y: hidden;
                flex-wrap: nowrap;
                touch-action: pan-x;
                overscroll-behavior-x: contain;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            #st-float-toolbar::-webkit-scrollbar {
                display: none;
            }
            #st-float-toolbar > * {
                flex: 0 0 auto;
            }
            #st-float-edit-container[data-toolbar-position="top"] #st-float-toolbar {
                top: calc(8px + env(safe-area-inset-top, 0px));
                bottom: auto;
                border-radius: 12px;
            }
            #st-float-edit-container[data-toolbar-position="bottom"] #st-float-toolbar,
            #st-float-edit-container:not([data-toolbar-position]) #st-float-toolbar {
                top: auto;
                bottom: calc(8px + env(safe-area-inset-bottom, 0px));
                border-radius: 12px;
            }
            #st-float-edit-container[data-toolbar-position="top"] #st-float-toolbar.collapsed {
                top: calc(8px + env(safe-area-inset-top, 0px)) !important;
                bottom: auto !important;
                border-radius: 12px;
            }
            #st-float-edit-container[data-toolbar-position="bottom"] #st-float-toolbar.collapsed,
            #st-float-edit-container:not([data-toolbar-position]) #st-float-toolbar.collapsed {
                top: auto !important;
                bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
                border-radius: 12px;
            }
            #st-float-edit-actions {
                gap: 6px;
            }
            #st-floating-mode-btn {
                width: 36px;
                height: 36px;
                padding: 0;
                font-size: 16px;
            }
            #st-float-toolbar .toolbar-collapse-btn {
                order: 99;
                align-self: center;
                width: 14px;
                height: 32px;
                padding: 0;
                border-radius: 4px;
            }
            #st-float-toolbar button:not(.toolbar-collapse-btn):not(.resume-btn) {
                border-radius: 50%;
            }
            #st-float-toolbar .toolbar-collapse-btn svg {
                width: 5px;
                height: 16px;
            }
            #st-float-toolbar button:not(.resume-btn) {
                width: 28px;
                height: 28px;
                font-size: 13px;
            }
            #st-float-toolbar:not(.compact) .st-toolbar-primary-btn {
                min-width: 32px;
                width: 32px;
                height: 32px;
                font-size: 15px;
            }
            #st-float-toolbar:not(.compact) .st-toolbar-primary-btn svg {
                width: 16px;
                height: 16px;
            }
            #st-float-toolbar .exit {
                width: 28px;
                min-width: 28px;
                height: 28px;
            }
            #st-float-toolbar .settings-btn {
                width: 28px;
                min-width: 28px;
                height: 28px;
            }
            #st-float-toolbar .settings-btn svg {
                width: 15px;
                height: 15px;
            }
            #st-float-toolbar .command-btn {
                width: 28px;
                min-width: 28px;
                height: 28px;
            }
            #st-float-toolbar .toolbar-collapse-btn {
                width: 12px;
                height: 28px;
            }
            #st-float-toolbar .resume-btn {
                width: auto;
                min-width: 96px;
                height: 36px;
                padding: 0 16px;
                font-size: 13px;
            }
            #st-floating-edit-btn {
                width: 54px;
                height: 54px;
                font-size: 32px;
            }
            #st-float-toolbar.compact {
                gap: 6px;
                padding: 6px 8px;
            }
            #st-float-toolbar.compact .resume-btn {
                width: 28px;
                height: 28px;
                min-width: 28px;
            }
            #st-float-toolbar.compact .settings-btn {
                width: 28px;
                height: 28px;
                min-width: 28px;
                margin-left: 0;
            }
            #st-float-toolbar.compact .exit {
                width: 28px;
                min-width: 28px;
                height: 28px;
            }
        }

        /* Draggable floating toolbar enhancements */
        #st-float-toolbar.user-positioned {
            left: auto !important;
            right: auto !important;
            transform: none !important;
            top: auto !important;
            bottom: auto !important;
        }
        #st-float-toolbar.user-positioned:not(.vertical):not([data-snap="top"]):not([data-snap="bottom"]):not(.corner-top):not(.corner-bottom):not(.corner-left):not(.corner-right) {
            border-radius: 6px !important;
        }
        #st-float-toolbar.user-positioned[data-snap="top"] {
            border-top-left-radius: 0 !important;
            border-top-right-radius: 0 !important;
        }
        #st-float-toolbar.user-positioned[data-snap="top"]:not(.corner-left):not(.corner-right) {
            border-bottom-left-radius: 6px !important;
            border-bottom-right-radius: 6px !important;
        }
        #st-float-toolbar.user-positioned[data-snap="top"].corner-left {
            border-bottom-right-radius: 6px !important;
        }
        #st-float-toolbar.user-positioned[data-snap="top"].corner-right {
            border-bottom-left-radius: 6px !important;
        }
        #st-float-toolbar.user-positioned[data-snap="bottom"] {
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }
        #st-float-toolbar.user-positioned[data-snap="bottom"]:not(.corner-left):not(.corner-right) {
            border-top-left-radius: 6px !important;
            border-top-right-radius: 6px !important;
        }
        #st-float-toolbar.user-positioned[data-snap="bottom"].corner-left {
            border-top-right-radius: 6px !important;
        }
        #st-float-toolbar.user-positioned[data-snap="bottom"].corner-right {
            border-top-left-radius: 6px !important;
        }
        #st-float-toolbar {
            -webkit-user-select: none !important;
            user-select: none !important;
        }
        #st-float-toolbar:not(.dragging) {
            transition: left 0.2s cubic-bezier(0.2,0,0.2,1), right 0.2s cubic-bezier(0.2,0,0.2,1), top 0.2s cubic-bezier(0.2,0,0.2,1), bottom 0.2s cubic-bezier(0.2,0,0.2,1);
        }
        #st-float-toolbar.dragging {
            transition: none !important;
            cursor: grabbing;
        }
        #st-float-toolbar.snap-anim {
            transition: left 0.15s ease-out, right 0.15s ease-out, top 0.15s ease-out, bottom 0.15s ease-out !important;
        }
        #st-float-toolbar.vertical {
            flex-direction: column !important;
            align-items: stretch !important;
            border-radius: 6px !important;
            padding: 5px 4px !important;
            gap: 4px !important;
        }
        #st-float-toolbar.vertical[data-snap="right"] {
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }
        #st-float-toolbar.vertical[data-snap="left"] {
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
        }
        #st-float-toolbar.corner-top {
            border-top-left-radius: 0 !important;
            border-top-right-radius: 0 !important;
        }
        #st-float-toolbar.corner-bottom {
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }
        #st-float-toolbar.corner-left {
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
        }
        #st-float-toolbar.corner-right {
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }
        #st-float-toolbar.vertical button {
            width: 28px !important;
            min-width: 28px !important;
            height: 28px !important;
            padding: 0 !important;
            border-radius: 4px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        #st-float-toolbar.vertical.compact .resume-btn,
        #st-float-toolbar.vertical.compact .settings-btn {
            width: 28px !important;
            min-width: 28px !important;
            height: 28px !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        #st-float-toolbar .toolbar-drag-handle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            min-width: 14px;
            height: 24px;
            padding: 0;
            margin: 0;
            border: none;
            border-radius: 0;
            background: transparent;
            color: rgba(255,255,255,0.45);
            cursor: grab;
            font-size: 12px;
            line-height: 1;
            letter-spacing: -1px;
        }
        #st-float-toolbar.vertical .toolbar-drag-handle {
            width: 24px !important;
            min-width: 24px !important;
            height: 14px !important;
            padding: 0 !important;
            margin: 0 0 4px 0 !important;
            align-self: center !important;
        }
        #st-float-toolbar.vertical .toolbar-drag-handle svg {
            transform: rotate(90deg);
        }
        #st-float-toolbar .toolbar-drag-handle:hover { background: transparent; color: rgba(255,255,255,0.8); }
        #st-float-toolbar .toolbar-drag-handle:active { cursor: grabbing; }
        #st-float-toolbar .toolbar-drag-handle svg { width: 12px; height: 12px; }
        #st-float-toolbar.collapsed .toolbar-drag-handle { display: none !important; }
        #st-float-toolbar.compact .toolbar-drag-handle {
            display: inline-flex !important;
            width: 14px;
            min-width: 14px;
            height: 24px;
            margin: 0;
            opacity: 0.5;
            color: #f8fafc !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }
        #st-float-toolbar.compact .toolbar-drag-handle:hover { opacity: 1; color: #f8fafc !important; background: transparent !important; }
        #st-float-toolbar-drag-guide {
            position: fixed;
            top: 0; bottom: 0;
            left: 50%;
            width: 2px;
            transform: translateX(-50%);
            background: hotpink;
            opacity: 0;
            pointer-events: none;
            z-index: 100200;
            transition: opacity 0.12s ease;
        }
        #st-float-toolbar-drag-guide.active { opacity: 0; }
        #st-float-toolbar .toolbar-drag-handle { touch-action: none; }
        #st-float-toolbar.dragging { touch-action: none; }

        /* Product detail fullscreen view */
        #st-product-detail-popup {
            display: none; position: fixed; inset: 0; z-index: 200950;
            background: #fff; overflow-y: auto;
            scrollbar-width: none; -ms-overflow-style: none;
        }
        #st-product-detail-popup::-webkit-scrollbar { display: none; }
        #st-product-detail-popup.active { display: block; }
        #st-product-detail-popup .st-pdp-card {
            background: #fff; width: min(var(--popup-card-w, 100%), 100%); margin: 0 auto;
            min-height: 100%; display: flex; flex-direction: column; position: relative;
        }
        #st-product-detail-popup .st-pdp-float-toolbar {
            position: absolute; top: 8px; right: 16px; z-index: 4;
            display: flex; align-items: center; padding: 4px;
            border: 1px solid #dbe3ef; border-radius: 10px;
            background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(15,23,42,.14);
            opacity: 0; transform: translateY(-7px); pointer-events: none;
            transition: opacity .16s ease, transform .16s ease;
        }
        #st-product-detail-popup .st-pdp-card:hover .st-pdp-float-toolbar,
        #st-product-detail-popup .st-pdp-card:focus-within .st-pdp-float-toolbar {
            opacity: 1; transform: translateY(0); pointer-events: auto;
        }
        #st-product-detail-popup .st-pdp-edit-btn {
            display: inline-flex; align-items: center; gap: 5px; border: 0;
            border-radius: 7px; padding: 6px 9px; color: #1d4ed8;
            background: #eff6ff; font: 600 12px/1.2 inherit; cursor: pointer;
        }
        #st-product-detail-popup .st-pdp-edit-btn:hover { background: #dbeafe; }
        #st-product-detail-popup .st-pdp-edit-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
        #st-product-detail-popup .st-pdp-back-bar {
            display: flex; align-items: center; gap: 8px;
            padding: 10px 16px; border-bottom: 1px solid #e5e7eb;
            position: sticky; top: 0; left: 0; right: 0; background: #fff; z-index: 2; box-sizing: border-box;
            transition: transform 0.3s ease;
        }
        #st-product-detail-popup .st-pdp-back-bar.hidden {
            transform: translateY(-100%);
        }
        #st-product-detail-popup .st-pdp-img {
            max-width: 800px; width: 100%; object-fit: contain;
            display: block; cursor: pointer; background: #f8fafc; margin: 0 auto;
        }
        #st-product-detail-popup .st-pdp-body { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; width: 100%; box-sizing: border-box; }
        #st-product-detail-popup .st-pdp-title { font-size: 1.15rem; font-weight: 600; color: #111827; margin: 0; }
        #st-product-detail-popup .st-pdp-price { font-size: 1.25rem; font-weight: 600; color: var(--accent, #f97316); }
        #st-product-detail-popup .st-pdp-desc { font-size: 0.93rem; color: #4b5563; line-height: 1.6; }
        #st-product-detail-popup .st-pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
        #st-product-detail-popup .st-pdp-close {
            border: none; background: transparent; color: #374151;
            font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 6px;
            padding: 6px 4px; border-radius: 8px; font-weight: 500; line-height: 1;
        }
        #st-product-detail-popup .st-pdp-close:hover { background: #f3f4f6; }
        .st-detail-close-x {
            margin-left: auto; border: none; background: transparent; color: #6b7280;
            font-size: 26px; cursor: pointer; line-height: 1; padding: 2px 8px;
            border-radius: 8px; font-weight: 400; flex: 0 0 auto;
        }
        .st-detail-close-x:hover { background: #f3f4f6; color: #1f2937; }
        .st-product-detail-link {
            display: inline-block; align-self: flex-start; margin-top: 0; font-size: 12px; font-weight: 400;
            color: #6b7280; text-decoration: underline; text-underline-offset: 2px;
            cursor: pointer; background: none; border: none; padding: 0; text-align: left;
        }
        .st-product-detail-link:hover { opacity: 0.75; }

        /* Article detail fullscreen view */
        #st-article-detail-popup {
            display: none; position: fixed; inset: 0; z-index: 200950;
            background: #fff; overflow-y: auto;
            scrollbar-width: none; -ms-overflow-style: none;
        }
        #st-article-detail-popup::-webkit-scrollbar { display: none; }
        #st-article-detail-popup.active { display: block; }
        #st-article-detail-popup .st-adp-card {
            background: #fff; width: min(var(--popup-card-w, 100%), 100%); margin: 0 auto;
            min-height: 100%; display: flex; flex-direction: column;
        }
        #st-article-detail-popup .st-adp-back-bar {
            display: flex; align-items: center; gap: 8px;
            padding: 10px 16px; border-bottom: 1px solid #e5e7eb;
            position: sticky; top: 0; background: #fff; z-index: 2;
        }
        #st-article-detail-popup .st-adp-img-wrap {
            width: 100%; aspect-ratio: 16/9; background: #f1f5f9;
            display: flex; align-items: center; justify-content: center; overflow: hidden;
        }
        #st-article-detail-popup .st-adp-img {
            width: 100%; height: 100%; object-fit: cover; display: block;
        }
        #st-article-detail-popup .st-adp-body {
            padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; max-width: 800px; margin: 0 auto; width: 100%; box-sizing: border-box;
        }
        #st-article-detail-popup .st-adp-meta {
            display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
        }
        #st-article-detail-popup .st-adp-cat {
            font-size: 12px; font-weight: 600; color: #3b82f6;
            background: #eff6ff; padding: 2px 10px; border-radius: 999px;
        }
        #st-article-detail-popup .st-adp-date { font-size: 12px; color: #94a3b8; }
        #st-article-detail-popup .st-adp-title {
            font-size: 1.2rem; font-weight: 700; color: #111827; margin: 0; line-height: 1.35;
        }
        #st-article-detail-popup .st-adp-excerpt {
            font-size: 0.95rem; color: #6b7280; line-height: 1.65; margin: 0;
            font-style: italic; border-left: 3px solid #e5e7eb; padding-left: 12px;
        }
        #st-article-detail-popup .st-adp-content {
            font-size: 0.93rem; color: #374151; line-height: 1.75;
        }
        #st-article-detail-popup .st-adp-close {
            border: none; background: transparent; color: #374151;
            font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 6px;
            padding: 6px 4px; border-radius: 8px; font-weight: 500; line-height: 1;
        }
        #st-article-detail-popup .st-adp-close:hover { background: #f3f4f6; }
        .st-article-detail-link {
            display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 400;
            color: #6b7280; text-decoration: underline; text-underline-offset: 2px;
            cursor: pointer; background: none; border: none; padding: 0; text-align: left;
        }
        .st-article-detail-link:hover { opacity: 0.75; }

        /* Framed mode: card fills the popup; back-bar + body get side padding */
        .st-detail-popup-framed .st-pdp-card,
        .st-detail-popup-framed .st-adp-card {
            width: 100% !important;
            margin: 0 !important;
        }
        .st-detail-popup-framed .st-pdp-body,
        .st-detail-popup-framed .st-adp-body    { max-width: none; }

        #st-menu.hidden { display: none !important; }
        #st-menu.align-center { justify-content: center; }
        #st-menu.align-right { justify-content: flex-end; }
        #st-menu.mode-stack { flex-direction: column; align-items: stretch; height: auto; white-space: normal; overflow-x: hidden; }
        #st-menu.mode-stack .st-menu-item { display: block; width: 100%; border-bottom: 1px solid #eee; text-align: center; }
        #st-menu.mode-stack .st-menu-item:last-child { border-bottom-color: transparent; }
        #st-menu::-webkit-scrollbar { display: none; }
        .st-menu-item { padding: 0 15px; margin: var(--st-menu-item-y-margin, 4px) 0; line-height: var(--st-menu-item-line-height, 36px); font-size: var(--st-menu-font-size, 11px); font-weight: var(--st-menu-font-weight, 600); color: var(--st-menu-text-color, #999); text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: transparent; text-underline-offset: 7px; cursor: pointer; border: 1px solid transparent; border-bottom: none; transition: color 0.2s ease, text-decoration-color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; display: inline-block; text-transform: var(--st-menu-text-transform, uppercase); touch-action: manipulation; }
        #st-menu .st-menu-item:hover { color: var(--st-menu-hover-color, #666); text-decoration-color: var(--st-menu-hover-color, #666); }
        .st-menu-item.active { color: var(--st-menu-active-color, #666); text-decoration-color: var(--st-menu-active-color, #666); font-weight: var(--st-menu-font-weight, 600); }
        .st-menu-item-group { position: relative; display: inline-flex; align-items: center; }
        .st-menu-parent-wrap { display: inline-flex; align-items: center; gap: 0; }
        .st-menu-submenu-toggle { appearance: none; border: none; background: transparent; color: var(--st-menu-text-color, #999); cursor: pointer; padding: 0 2px 0 0; margin: 2px 0 0 -11px; min-width: 19px; height: var(--st-menu-item-line-height, 36px); line-height: 1; font-size: calc(var(--st-menu-font-size, 11px) + 6px); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; touch-action: manipulation; position: relative; z-index: 2; -webkit-tap-highlight-color: transparent; }
        .st-menu-submenu-toggle:hover,
        .st-menu-item-group.active-branch > .st-menu-parent-wrap .st-menu-submenu-toggle { color: var(--st-menu-hover-color, #666); }
        .st-menu-item-group.active-branch > .st-menu-parent-wrap .st-menu-item { color: var(--st-menu-active-color, #666); text-decoration-color: var(--st-menu-active-color, #666); }
        .st-menu-subitem.active { color: var(--st-menu-submenu-active-color, var(--st-menu-active-color, #666)); text-decoration-color: var(--st-menu-submenu-active-color, var(--st-menu-active-color, #666)); }
        .st-menu-item-group { position: relative; }
        .st-menu-item-group:focus-within,
        .st-menu-item-group.open { z-index: 100155; }
        #st-menu:has(.st-menu-item-group:focus-within),
        #st-menu:has(.st-menu-item-group.open) { z-index: 100155 !important; }
        .st-menu-submenu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 180px; padding: 8px; background: #fff; border: 1px solid rgba(148,163,184,0.22); border-radius: 12px; box-shadow: 0 16px 36px rgba(15,23,42,0.16); display: none; flex-direction: column; gap: 4px; z-index: 100155; color: var(--st-menu-submenu-text-color, #0f172a); }
        .st-menu-item-group:focus-within .st-menu-submenu,
        .st-menu-item-group.open .st-menu-submenu { display: flex; }
        @media (hover: hover) {
            .st-menu-item-group:hover { z-index: 100155; }
            #st-menu:has(.st-menu-item-group:hover) { z-index: 100155 !important; }
            .st-menu-item-group:hover .st-menu-submenu { display: flex; }
        }
        .st-menu-subitem { display: block; padding: 9px 12px; border-radius: 8px; color: var(--st-menu-submenu-text-color, #0f172a); text-decoration: none; font-size: var(--st-menu-font-size, 11px); font-weight: 600; white-space: nowrap; text-transform: var(--st-menu-text-transform, uppercase); }
        .st-menu-subitem:hover { background: rgba(15,23,42,0.06); color: var(--st-menu-submenu-hover-color, var(--st-menu-hover-color, #666)); }
        .st-breadcrumb { display:flex;align-items:center;gap:6px;overflow-x:auto;padding:3px 0 9px;margin:-4px 0 22px;border-bottom:1px solid #dbe3ee;scrollbar-width:thin; }
        .st-breadcrumb-item { flex:0 0 auto;padding:6px 10px;color:#475569;text-decoration:none;font-size:calc(var(--st-menu-font-size, 11px) - 1px);font-weight:600;text-transform:var(--st-menu-text-transform, uppercase); }
        .st-breadcrumb-link { color:#475569;text-decoration:none; }
        .st-breadcrumb-link:hover { color:#0f172a;text-decoration:underline; }
        .st-breadcrumb-text { color:#64748b; }
        .st-breadcrumb-current { color:#0f172a;font-weight:700; }
        .st-breadcrumb-separator { color:#999;padding:0 2px; }
        #st-menu.mode-stack .st-menu-item-group { display: block; width: 100%; }
        #st-menu.mode-stack .st-menu-parent-wrap { display: flex; width: 100%; justify-content: center; gap: 1px; }
        #st-menu.mode-stack .st-menu-submenu-toggle { padding-right: 0; margin-left: 0; }
        #st-menu.mode-stack .st-menu-submenu { position: static; display: flex; min-width: 0; padding: 0 0 8px; border: none; box-shadow: none; background: transparent; gap: 0; }
        #st-menu.mode-stack .st-menu-subitem { text-align: center; border-bottom: 1px solid #f1f5f9; color: var(--st-menu-text-color, #999); }
        #st-menu.menu-style-pill { gap: 6px; padding-left: 8px; padding-right: 8px; }
        #st-menu.menu-style-pill .st-menu-item { line-height: var(--st-menu-pill-line-height, 28px); margin: var(--st-menu-pill-y-margin, 4px) 0; padding: 0 14px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
        #st-menu.menu-style-pill .st-menu-item:hover { background: color-mix(in srgb, var(--st-menu-hover-color, #666) 12%, transparent); }
        #st-menu.menu-style-pill .st-menu-item.active { background: color-mix(in srgb, var(--st-menu-active-color, #666) 16%, transparent); border-color: color-mix(in srgb, var(--st-menu-active-color, #666) 35%, transparent); }
        #st-menu.menu-style-tab { gap: 4px; padding-left: 8px; padding-right: 8px; align-items: flex-end; }
        #st-menu.menu-style-tab .st-menu-item { line-height: var(--st-menu-tab-line-height, 31px); margin: var(--st-menu-tab-y-margin, 4px) 0 0; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--st-menu-text-color, #999) 24%, transparent); border-bottom-color: transparent; border-radius: 8px 8px 0 0; text-decoration: none; background: color-mix(in srgb, var(--st-menu-text-color, #999) 5%, transparent); }
        #st-menu.menu-style-tab .st-menu-item:hover { border-color: color-mix(in srgb, var(--st-menu-hover-color, #666) 42%, transparent); border-bottom-color: transparent; background: color-mix(in srgb, var(--st-menu-hover-color, #666) 10%, transparent); }
        #st-menu.menu-style-tab .st-menu-item.active { border-color: color-mix(in srgb, var(--st-menu-active-color, #666) 60%, transparent); border-bottom-color: transparent; background: color-mix(in srgb, var(--st-menu-active-color, #666) 13%, transparent); }
        @media (max-width: 1225px) {
            #st-menu.menu-style-tab {
                padding-left: 28px !important;
            }
        }
        .st-menu-edit-btn { position: absolute; top: 4px; right: 10px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.4); background: #fff; color: #334155; font-size: 16px; cursor: pointer; display: none; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.08); transition: 0.18s ease; }
        body.live-update-mode .st-menu-edit-btn { display: grid; }
        .st-menu-edit-btn:hover { background: #f8fafc; border-color: rgba(148,163,184,0.75); }
        .st-edit-action-btn { display: none; align-items: center; justify-content: center; }
        body.live-update-mode .st-edit-action-btn { display: inline-flex; }

        #st-menu-panel-overlay { position: fixed; inset: 0; z-index: 200002; display: none; background: rgba(0,0,0,0.35); }
        #st-menu-panel { position: fixed; top: 0; left: 0; bottom: 0; width: min(280px, 85vw); max-width: 320px; background: #fff; z-index: 200003; box-shadow: none; transform: translateX(-100%); transition: transform 0.25s ease, box-shadow 0.25s ease, visibility 0s linear 0.25s; display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; pointer-events: none; }
        #st-menu-panel.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.18); visibility: visible; pointer-events: auto; transition: transform 0.25s ease, box-shadow 0.25s ease; }
        #st-menu-panel .panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #eee; }
        #st-menu-panel .panel-title { font-weight: 600; font-size: 14px; }
        #st-menu-panel .panel-close { border: none; background: #eee; width: 34px; height: 34px; border-radius: 8px; font-size: 18px; cursor: pointer; }
        #st-menu-panel-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
        #st-menu-panel-list .st-menu-item { display: block; padding: 12px 10px; border-bottom: 1px solid #f0f0f0; }
        .st-menu-panel-group { display: flex; flex-direction: column; border-bottom: 1px solid #f0f0f0; }
        .st-menu-panel-group .st-menu-item { border-bottom: none; }
        .st-menu-panel-children { display: flex; flex-direction: column; gap: 2px; padding: 0 0 8px 18px; }
        .st-menu-panel-children .st-menu-subitem { padding: 10px; border-radius: 10px; }
        #st-menu-panel .st-menu-panel-group { display: flex; flex-direction: column; width: 100%; }
        #st-menu-panel .st-menu-parent-wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        #st-menu-panel .st-menu-panel-group .st-menu-submenu { position: static; display: flex; min-width: 0; padding: 0 0 8px 18px; border: none; box-shadow: none; background: transparent; gap: 2px; }
        #st-menu-panel .st-menu-panel-group .st-menu-submenu-toggle { margin: 0; padding: 0; height: auto; }

        .st-section { position: relative; padding: 10px 0; background: transparent; }
        .st-section.st-container,
        .st-section.st-form { padding: 0; }
        .st-section.st-container-anchor-top,
        .st-section.st-container-anchor-bottom {
            position: fixed;
            left: 0;
            right: 0;
            z-index: 100130;
            padding: 0;
        }
        .st-section.st-container-anchor-top {
            top: 0;
        }
        .st-section.st-container-anchor-bottom {
            bottom: 0;
        }
        .st-section.st-container-split {
            position: relative;
            min-width: 0;
            min-height: 0;
        }
        .st-section.st-container-split {
            --st-split-padding: 0px;
        }
        .st-bg-slideshow {
            position: absolute;
            inset: 0;
            z-index: -1;
            overflow: hidden;
            border-radius: inherit;
            pointer-events: none;
        }
        .st-bg-slide {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            opacity: 0;
            transform: none;
            transition: opacity 1000ms ease, transform 1000ms ease;
            will-change: opacity, transform;
        }
        .st-bg-slide.st-bg-slide-active {
            opacity: 1;
        }
        .st-bg-pan .st-bg-slide {
            transition: none;
            transform: translate3d(0,0,0);
            will-change: transform;
        }
        .st-bg-effect-slide-left .st-bg-slide {
            transform: translateX(100%);
        }
        .st-bg-effect-slide-left .st-bg-slide.st-bg-slide-active {
            transform: translateX(0);
        }
        .st-bg-effect-slide-up .st-bg-slide {
            transform: translateY(100%);
        }
        .st-bg-effect-slide-up .st-bg-slide.st-bg-slide-active {
            transform: translateY(0);
        }
        .st-bg-effect-zoom .st-bg-slide {
            transform: scale(1.1);
        }
        .st-bg-effect-zoom .st-bg-slide.st-bg-slide-active {
            transform: scale(1);
        }
        .st-bg-effect-none .st-bg-slide {
            transition: none !important;
        }
        .st-bg-slide-overlay {
            position: absolute;
            inset: 0;
            z-index: 2;
            pointer-events: none;
        }
        .st-section.st-container-split > .st-container-split-track {
            display: flex;
            width: 100%;
            min-width: 0;
            min-height: 0;
            flex: 1 1 auto;
            align-self: stretch;
            align-items: stretch;
            justify-content: flex-start;
            gap: 0;
        }
        .st-section.st-container-split .st-container-split-track {
            display: flex;
            width: 100%;
            min-width: 0;
            min-height: 0;
            flex: 1 1 auto;
            align-items: stretch;
            justify-content: flex-start;
            gap: 0;
        }
        .st-section.st-container-split .st-container-split-track-column {
            flex-direction: column;
            height: 100%;
            min-height: 100px;
        }
        .st-section.st-container-split .st-container-split-track-row {
            display: flex;
            overflow: visible;
            height: auto;
            align-self: stretch;
        }
        .st-section.st-container-book .st-container-split-track {
            position: relative;
        }
        .st-book-stage {
            display: none;
            position: absolute;
            inset: 0;
            z-index: 5;
            pointer-events: none;
            perspective: 1600px;
        }
        .st-book-stage.st-book-active {
            display: block;
        }
        .st-book-reveal {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            overflow: hidden;
            background: #ffffff;
        }
        .st-book-reveal-left { left: 0; }
        .st-book-reveal-right { left: 50%; }
        .st-book-sheet {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 50%;
            transform-style: preserve-3d;
            transform-origin: left center;
            transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.35, 1);
            z-index: 6;
        }
        .st-book-face {
            position: absolute;
            inset: 0;
            overflow: hidden;
            background: #ffffff;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        .st-book-face-back {
            transform: rotateY(180deg);
        }
        .st-book-face-inner {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden auto;
        }
        .st-book-nav {
            position: absolute;
            left: 50%;
            bottom: 8px;
            transform: translateX(-50%);
            z-index: 7;
            display: flex;
            align-items: center;
            gap: 8px;
            pointer-events: auto;
        }
        .st-book-nav-btn {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 1px solid rgba(100, 116, 139, 0.4);
            background: rgba(255, 255, 255, 0.92);
            color: #334155;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
        }
        .st-book-nav-btn:disabled {
            opacity: 0.35;
            cursor: default;
        }
        .st-book-nav-info {
            font-size: 12px;
            color: #475569;
            background: rgba(255, 255, 255, 0.85);
            padding: 2px 8px;
            border-radius: 999px;
        }
        .st-section.st-container-split .st-container-split-track-row > .st-container-split-pane {
            float: none;
            height: 100%;
        }
        .st-section.st-container-split .st-container-split-track-row > .st-container-split-divider {
            float: none;
            height: 100%;
        }
        .st-section.st-container-split .st-container-split-pane {
            box-sizing: border-box;
            min-width: 0;
            min-height: 0;
            flex: 1 1 0;
        }
        body.live-update-mode .st-section.st-container:not(.st-position-fixed):not(.st-container-anchor-top):not(.st-container-anchor-bottom):has(.st-empty-cell-placeholder),
        body.live-edit-hover .st-section.st-container:not(.st-position-fixed):not(.st-container-anchor-top):not(.st-container-anchor-bottom):has(.st-empty-cell-placeholder),
        body.live-update-mode .st-section.st-form:has(.st-empty-cell-placeholder),
        body.live-edit-hover .st-section.st-form:has(.st-empty-cell-placeholder) {
            min-height: 100px !important;
        }
        .st-container-cell {
            position: relative;
        }
        .st-section.st-container-split .st-container-cell {
            align-self: stretch;
            min-height: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .st-cell-edit-badge {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 18px;
            height: 18px;
            background: #9ca3af;
            border: 1px solid #4b5563;
            box-sizing: border-box;
            border-radius: 0;
            color: #111827;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 20;
            pointer-events: auto;
            transition: background .15s ease, transform .12s ease;
        }
        .st-cell-edit-badge:hover {
            background: #2563eb;
            border-color: #93c5fd;
            color: #fff;
            transform: scale(1.12);
        }
        .st-cell-edit-badge.st-cell-badge-stacked-hidden {
            display: none !important;
        }
        .st-cell-badge-stack {
            position: fixed;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            padding: 0;
            background: #9ca3af;
            border: 1px solid #4b5563;
            box-sizing: border-box;
            border-radius: 0;
            color: #111827;
            font: 700 10px/1 Arial, sans-serif;
            cursor: pointer;
            z-index: 100200;
            pointer-events: auto;
            transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
        }
        .st-cell-badge-stack:hover {
            background: #2563eb;
            border-color: #93c5fd;
            color: #fff;
            transform: scale(1.12);
        }
        .st-cell-badge-stack-item {
            display: none !important;
            position: fixed !important;
            top: 0;
            left: 0;
            z-index: 100250 !important;
        }
        .st-cell-badge-stack-item.st-cell-badge-stack-child {
            z-index: 100302 !important;
        }
        .st-cell-badge-stack-item.st-cell-badge-stack-parent {
            z-index: 100301 !important;
        }
        body:not(.live-update-mode):not(.live-edit-hover) .st-cell-edit-badge,
        body:not(.live-update-mode):not(.live-edit-hover) .st-cell-badge-stack {
            display: none !important;
        }
        .st-cell-edit-badge svg {
            width: 15px;
            height: 15px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            pointer-events: none;
        }
        body.live-update-mode .st-container-cell:hover > .st-cell-edit-badge,
        body.live-edit-hover .st-container-cell:hover > .st-cell-edit-badge,
        body.live-update-mode .st-container-cell.st-container-cell-hover > .st-cell-edit-badge,
        body.live-edit-hover .st-container-cell.st-container-cell-hover > .st-cell-edit-badge,
        body.live-update-mode .st-container-cell:hover .st-cell-badge-stack,
        body.live-edit-hover .st-container-cell:hover .st-cell-badge-stack,
        body.live-update-mode .st-container-cell.st-container-cell-hover .st-cell-badge-stack,
        body.live-edit-hover .st-container-cell.st-container-cell-hover .st-cell-badge-stack,
        body.live-update-mode .st-container-cell:hover .st-cell-badge-stack-item,
        body.live-edit-hover .st-container-cell:hover .st-cell-badge-stack-item,
        body.live-update-mode .st-container-cell.st-container-cell-hover .st-cell-badge-stack-item,
        body.live-edit-hover .st-container-cell.st-container-cell-hover .st-cell-badge-stack-item {
            display: flex !important;
        }
        body.live-update-mode .st-container-cell .st-cell-edit-badge.st-cell-badge-stacked-hidden,
        body.live-edit-hover .st-container-cell .st-cell-edit-badge.st-cell-badge-stacked-hidden {
            display: none !important;
        }
        .st-container-cell.st-container-cell-toolbar-active .st-cell-edit-badge {
            display: none !important;
        }
        .st-section-menu-badge {
            display: none;
            position: absolute;
            top: 0;
            right: 0;
            width: 18px;
            height: 18px;
            background: #9ca3af;
            border: 1px solid #4b5563;
            box-sizing: border-box;
            border-radius: 0;
            color: #111827;
            align-items: center;
            justify-content: center;
            cursor: pointer !important;
            z-index: 20;
            pointer-events: auto;
            transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
             }
        .st-section-menu-badge,
        .st-section-menu-badge * {
            cursor: pointer !important;
        }
        .st-section-menu-badge:hover {
            background: #2563eb;
            border-color: #93c5fd;
            color: #fff;
            transform: scale(1.12);
        }
        body.live-update-mode .st-section .st-section-menu-badge,
        body.live-edit-hover .st-section .st-section-menu-badge {
            display: flex !important;
        }
        .st-section-menu-badge svg {
            width: 12px;
            height: 12px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            pointer-events: none;
        }
        .st-section-menu-badge.st-section-badge-cluster-hidden {
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        .st-section-badge-cluster {
            position: fixed;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: flex-end;
            gap: 0;
            width: 18px;
            z-index: 100320;
            pointer-events: auto;
        }
        .st-section-badge-cluster-marker,
        .st-section-badge-cluster .st-section-badge-cluster-item {
            position: relative !important;
            inset: auto !important;
            display: flex !important;
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }
        .st-section-badge-cluster .st-section-badge-cluster-item {
            z-index: calc(100330 - var(--st-badge-stack-index, 0)) !important;
            transform: translateX(calc(var(--st-badge-stack-index, 0) * -5px));
        }
        .st-section-badge-cluster .st-section-badge-cluster-item:not(:first-child) {
            margin-top: -13px;
        }
        .st-section-badge-cluster-count .st-section-badge-cluster-item:nth-child(2) {
            margin-top: 0;
        }
        .st-section-badge-cluster .st-section-badge-cluster-item:hover {
            transform: translateX(calc(var(--st-badge-stack-index, 0) * -5px)) scale(1.12);
        }
        .st-section-badge-cluster-marker {
            background: #9ca3af;
            border: 1px solid #4b5563;
            color: #111827;
            font: 700 10px/1 Arial, sans-serif;
            cursor: pointer;
        }
        .st-section-badge-cluster-marker:hover {
            background: #2563eb;
            border-color: #93c5fd;
            color: #fff;
        }
        .st-section-badge-cluster-count .st-section-badge-cluster-item {
            display: none !important;
        }
        .st-section-badge-cluster-count:hover .st-section-badge-cluster-marker {
            display: none !important;
        }
        .st-section-badge-cluster-count:hover .st-section-badge-cluster-item {
            display: flex !important;
        }
        body:not(.live-update-mode):not(.live-edit-hover) .st-section-badge-cluster {
            display: none !important;
        }
        body.live-update-mode .st-section.st-block-default-boundary {
            border: 1px dashed rgba(148, 163, 184, 0.72) !important;
            box-sizing: border-box;
        }
        /* Keep the fallback boundary only while the builder is in edit mode.
           View mode must not add a border to transparent text/heading blocks. */
        body.live-update-mode .st-section.st-text[style*="background:transparent"]:not([style*="border:"]),
        body.live-update-mode .st-section.st-heading[style*="background:transparent"]:not([style*="border:"]) {
            border: 1px dashed rgba(148, 163, 184, 0.72) !important;
            box-sizing: border-box;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell::after,
        body.live-edit-hover .st-section.st-container-split .st-container-cell::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(37, 99, 235, 0.08);
            opacity: 0;
            pointer-events: none;
            transition: opacity .16s ease;
            z-index: 1;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell,
        body.live-edit-hover .st-section.st-container-split .st-container-cell {
            outline: 1px dashed rgba(148, 163, 184, 0.4);
            outline-offset: -1px;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell[style*="background:transparent"],
        body.live-edit-hover .st-section.st-container-split .st-container-cell[style*="background:transparent"] {
            background-color: rgba(148, 163, 184, 0.08) !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell[style*="background:transparent"],
        body.live-edit-hover .st-section.st-container-split .st-container-cell[style*="background:transparent"] {
            background-color: rgba(148, 163, 184, 0.08) !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell:hover:not(:has(.st-container-cell:hover)),
        body.live-edit-hover .st-section.st-container-split .st-container-cell:hover:not(:has(.st-container-cell:hover)),
        .st-section.st-container-split .st-container-cell.st-container-cell-hover,
        .st-section.st-container-split .st-container-cell.st-structure-cell-selected {
            outline: 2px dashed #22c55e !important;
            outline-offset: -2px !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell.st-container-cell-context-menu-open,
        body.live-edit-hover .st-section.st-container-split .st-container-cell.st-container-cell-context-menu-open {
            outline: 2px solid #f472b6 !important;
            outline-offset: -2px !important;
        }
        body.live-update-mode .st-section:not(.st-page-header):not(.st-position-fixed):not(.st-container-anchor-top):not(.st-container-anchor-bottom):hover:not(:has(.st-section:hover)),
        body.live-edit-hover .st-section:not(.st-page-header):not(.st-position-fixed):not(.st-container-anchor-top):not(.st-container-anchor-bottom):hover:not(:has(.st-section:hover)) {
            outline: 2px solid #f472b6 !important;
            outline-offset: 0;
            box-shadow: inset 0 0 0 2px #f472b6 !important;
            position: relative !important;
            z-index: 10000 !important;
        }

        /* A hovered fixed container owns the edge under its footprint; do not let
           the block behind it display edit hover chrome through that edge. */
        body.live-update-mode:has(.st-section.st-position-fixed:hover, .st-section.st-container-anchor-top:hover, .st-section.st-container-anchor-bottom:hover) .st-section:not(.st-position-fixed):not(.st-container-anchor-top):not(.st-container-anchor-bottom),
        body.live-edit-hover:has(.st-section.st-position-fixed:hover, .st-section.st-container-anchor-top:hover, .st-section.st-container-anchor-bottom:hover) .st-section:not(.st-position-fixed):not(.st-container-anchor-top):not(.st-container-anchor-bottom) {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Fixed-position blocks must stay fixed in edit modes even when hovered/highlighted. */
        body.live-update-mode .st-section.st-position-fixed,
        body.live-edit-hover .st-section.st-position-fixed,
        body.live-update-mode .st-section.st-position-fixed:hover,
        body.live-edit-hover .st-section.st-position-fixed:hover,
        body.live-update-mode .st-section.st-position-fixed:focus-within,
        body.live-edit-hover .st-section.st-position-fixed:focus-within,
        body.live-update-mode .st-section.st-position-fixed.st-section-highlighted,
        body.live-edit-hover .st-section.st-position-fixed.st-section-highlighted,
        body.live-update-mode .st-section.st-position-fixed.st-section-menu-open,
        body.live-edit-hover .st-section.st-position-fixed.st-section-menu-open {
            position: fixed !important;
            z-index: 100130 !important;
        }
        body.live-update-mode .st-section.st-tree-list,
        body.live-edit-hover .st-section.st-tree-list,
        body.live-update-mode .st-section.st-tree-list:hover,
        body.live-edit-hover .st-section.st-tree-list:hover,
        body.live-update-mode .st-section.st-tree-list:focus-within,
        body.live-edit-hover .st-section.st-tree-list:focus-within {
            border: 1px dashed rgba(148, 163, 184, 0.72) !important;
            outline: none !important;
            outline-offset: 0 !important;
            box-shadow: none !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell.st-container-cell-hover::after,
        body.live-edit-hover .st-section.st-container-split .st-container-cell.st-container-cell-hover::after {
            opacity: 1;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content {
            box-sizing: border-box;
            width: 100%;
            min-width: 0;
            min-height: 0;
            height: 100%;
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            align-items: var(--st-container-align, stretch);
            justify-content: var(--st-container-justify, flex-start);
            position: relative;
            z-index: 2;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split {
            overflow: hidden;
            background: transparent;
        }
        .st-section.st-container-split .st-container-cell:has(> .st-cell-overflow-hidden) {
            overflow: hidden !important;
        }
        .st-section.st-container-split .st-container-cell:has(> .st-cell-overflow-scroll) {
            overflow: hidden !important;
        }
        .st-section.st-container-split .st-container-cell > .st-cell-overflow-scroll {
            overflow: auto !important;
            overscroll-behavior: contain;
        }
        .st-section.st-container-split:has(.st-cell-overflow-expand),
        .st-section.st-container-split .st-container-cell:has(.st-cell-overflow-expand),
        .st-section.st-container-split .st-container-split-track:has(.st-cell-overflow-expand) {
            height: auto !important;
            max-height: none !important;
        }
        .st-section.st-container-split .st-container-cell:has(> .st-cell-overflow-expand),
        .st-section.st-container-split .st-container-cell:has(.st-cell-overflow-expand) {
            overflow: visible !important;
        }
        .st-section.st-container-split .st-container-cell > .st-cell-overflow-expand,
        .st-section.st-container-split .st-container-cell:has(.st-cell-overflow-expand) > .st-container-cell-content {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
        }
        .st-section.st-container-split .st-container-split-track-column > .st-container-cell:has(> .st-cell-overflow-expand),
        .st-section.st-container-split .st-container-split-track-column > .st-container-cell:has(.st-cell-overflow-expand) {
            flex-basis: auto !important;
            height: auto !important;
            max-height: none !important;
        }
        .st-container-view-content {
            display: flex;
            flex-direction: column;
            align-items: var(--st-container-align, stretch);
            justify-content: var(--st-container-justify, flex-start);
            min-width: 0;
            min-height: 0;
            background: transparent;
            flex: 1 1 auto;
        }
        .st-section.st-container > .st-container-root-layer-content {
            display: flex;
            flex-direction: var(--st-container-direction, column);
            align-items: var(--st-container-align, stretch);
            justify-content: var(--st-container-justify, flex-start);
            flex-wrap: var(--st-container-wrap, nowrap);
            min-width: 0;
            min-height: 0;
        }
        /* Empty cell placeholder - only visible in edit mode */
        body.live-update-mode .st-empty-cell-placeholder,
        body.live-edit-hover .st-empty-cell-placeholder {
            display: flex !important;
        }
        body.live-update-mode .st-empty-cell-placeholder:hover,
        body.live-edit-hover .st-empty-cell-placeholder:hover {
            background: rgba(148, 163, 184, 0.08);
        }
        body.live-update-mode .st-empty-cell-placeholder:hover svg,
        body.live-edit-hover .st-empty-cell-placeholder:hover svg {
            color: rgba(37, 99, 235, 0.7) !important;
        }
        .st-section.st-container-root-viewmenu-left,
        .st-section.st-container-root-viewmenu-right {
            flex-direction: row !important;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-viewmenu-left,
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-viewmenu-right {
            flex-direction: row;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-view-menu-left ~ .st-container-view-content,
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-view-content:has(~ .st-container-view-menu-right) {
            flex: 1 1 auto;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track {
            width: 100%;
            min-width: 0;
            min-height: 0;
            height: 100%;
            flex: 1 1 auto;
            align-self: stretch;
        }
        /* A nested split must be allowed to shrink with its parent pane. A
           minimum track height here makes a bottom pane keep its old content
           height when the horizontal divider is dragged down. That expands
           the flex track (and feeds the larger height back through its
           ResizeObserver), so the bottom row ends up below the container. */
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-column,
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-row {
            min-height: 0;
        }
        /* Empty placeholders are absolutely positioned, so they do not give a
           newly nested horizontal split any intrinsic height. In edit mode
           keep that track tall enough to expose its panes and hover outlines.
           This stays scoped to empty nested splits so populated/resizable
           vertical layouts can still shrink to zero when requested. */
        body.live-update-mode .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-row:has(.st-empty-cell-placeholder),
        body.live-edit-hover .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-row:has(.st-empty-cell-placeholder) {
            min-height: 48px;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-row > .st-container-cell,
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-column > .st-container-cell {
            min-height: 0;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content.st-container-cell-content-split > .st-container-split-track-column {
            height: 100%;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track-column {
            min-height: 48px;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track-column > .st-container-cell {
            min-height: 24px;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track-row {
            min-height: 48px;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track-row > .st-container-cell {
            min-height: 48px;
        }
        .st-section.st-container-split .st-container-split-track-row > .st-container-cell {
            min-height: 48px;
        }
        .st-section.st-container-split .st-container-split-track-column > .st-container-cell {
            min-height: 24px;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track > .st-container-split-divider {
            background: rgba(148, 163, 184, 0.85);
        }
        body.live-update-mode .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track > .st-container-split-divider,
        body.live-edit-hover .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-container-split-track > .st-container-split-divider {
            background: rgba(37, 99, 235, 0.9);
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-section {
            width: 100%;
            min-width: 0;
            min-height: 0;
            flex: 0 0 auto;
            align-self: flex-start;
            position: relative;
            z-index: 2;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-section[data-section-type="image"] {
            flex: 1 1 auto;
            align-self: stretch;
            min-height: 0;
        }
        .st-section.st-container-split .st-container-cell > .st-container-cell-content > .st-section.st-container-split {
            height: 100%;
            align-self: stretch;
        }
        .st-section.st-container-split .st-container-split-divider {
            flex: 0 0 auto;
            background: var(--st-split-divider-color, rgba(148, 163, 184, 0.85));
            pointer-events: auto;
            user-select: none;
            z-index: 5;
        }
        .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="1"] {
            position: relative;
            z-index: 10000;
            pointer-events: auto !important;
            touch-action: none;
        }
        .st-section.st-container-split .st-container-split-divider-row[data-st-divider-draggable="1"]::before,
        .st-section.st-container-split .st-container-split-divider-column[data-st-divider-draggable="1"]::before {
            content: '';
            position: absolute;
            z-index: 1;
            pointer-events: auto;
        }
        .st-section.st-container-split .st-container-split-divider-row[data-st-divider-draggable="1"]::before {
            top: 0;
            bottom: 0;
            left: 50%;
            width: 18px;
            transform: translateX(-50%);
            cursor: col-resize;
        }
        .st-section.st-container-split .st-container-split-divider-column[data-st-divider-draggable="1"]::before {
            left: 0;
            right: 0;
            top: 50%;
            height: 18px;
            transform: translateY(-50%);
            cursor: row-resize;
        }
        .st-container-view-menu {
            display: flex;
            gap: 0;
            z-index: 3;
            flex-shrink: 0;
            background: rgba(241, 245, 249, 0.95);
            border-bottom: 1px solid #e2e8f0;
        }
        .st-container-view-menu-top {
            flex-direction: row;
            width: 100%;
            border-bottom: 1px solid #e2e8f0;
        }
        .st-container-view-menu-bottom {
            flex-direction: row;
            width: 100%;
            border-top: 1px solid #e2e8f0;
            border-bottom: none;
        }
        .st-container-view-menu-left {
            flex-direction: column;
            height: 100%;
            border-right: 1px solid #e2e8f0;
            border-bottom: none;
        }
        .st-container-view-menu-right {
            flex-direction: column;
            height: 100%;
            border-left: 1px solid #e2e8f0;
            border-bottom: none;
        }
        .st-container-view-tab {
            border: none;
            background: transparent;
            padding: 8px 14px;
            font-size: 13px;
            color: #64748b;
            cursor: pointer;
            white-space: nowrap;
            border-bottom: 2px solid transparent;
            transition: color .15s ease, border-color .15s ease, background .15s ease;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .st-container-view-tab-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
        }
        .st-container-view-tab-icon svg {
            width: 18px;
            height: 18px;
        }
        .st-container-view-tab-label {
            display: inline;
        }
        .st-container-view-tab-vertical .st-container-view-tab-label {
            writing-mode: vertical-rl;
            text-orientation: mixed;
        }
        .st-container-view-tab-vertical {
            flex-direction: column;
            gap: 4px;
        }
        .st-container-view-menu-left .st-container-view-tab-vertical {
            flex-direction: column-reverse;
        }
        .st-container-view-menu-left .st-container-view-tab-vertical .st-container-view-tab-label {
            writing-mode: vertical-rl;
            transform: rotate(180deg);
        }
        .st-container-view-menu-left .st-container-view-tab-vertical .st-container-view-tab-icon {
            transform: rotate(270deg);
        }
        .st-container-view-menu-right .st-container-view-tab-vertical .st-container-view-tab-icon {
            transform: rotate(90deg);
        }
        .st-container-view-menu-left .st-container-view-tab-vertical,
        .st-container-view-menu-right .st-container-view-tab-vertical {
            justify-content: center;
            align-items: center;
            padding: 10px 6px;
        }
        .st-container-view-menu-left .st-container-view-tab,
        .st-container-view-menu-right .st-container-view-tab {
            border-bottom: none;
            text-align: left;
            width: 100%;
        }
        .st-container-view-menu-left .st-container-view-tab {
            border-left: none;
            border-right: 2px solid transparent;
        }
        .st-container-view-menu-right .st-container-view-tab {
            border-right: none;
            border-left: 2px solid transparent;
            text-align: right;
        }
        .st-container-view-tab:hover {
            color: #1e293b;
            background: rgba(255, 255, 255, 0.6);
        }
        .st-container-view-tab-active {
            color: #2563eb;
            border-bottom-color: #2563eb;
            font-weight: 600;
        }
        .st-container-view-menu-left .st-container-view-tab-active {
            border-right-color: #2563eb;
            background: rgba(37, 99, 235, 0.06);
        }
        .st-container-view-menu-right .st-container-view-tab-active {
            border-left-color: #2563eb;
            background: rgba(37, 99, 235, 0.06);
        }
        .st-container-view-menu-bottom .st-container-view-tab {
            border-bottom: none;
            border-top: 2px solid transparent;
        }
        .st-container-view-menu-bottom .st-container-view-tab-active {
            border-top-color: #2563eb;
            background: rgba(37, 99, 235, 0.06);
        }
        .st-container-view-menu-bottom .st-container-view-tab-vertical .st-container-view-tab-label {
            writing-mode: vertical-rl;
            transform: rotate(180deg);
        }
        /* ── Layer Carousel ── */
        .st-section.st-container-root-layermenu-top,
        .st-section.st-container-root-layermenu-bottom {
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        .st-section.st-container-root-layermenu-top > .st-container-view-content,
        .st-section.st-container-root-layermenu-bottom > .st-container-view-content {
            flex: 1 1 auto;
            min-height: 0;
        }
        /* The root layer menu also wraps split/grid containers. Keep the
           content track in normal flow so the editable outline grows with
           the menu instead of clipping it inside the container height. */
        .st-section.st-container-root-layermenu-top > .st-container-split-track,
        .st-section.st-container-root-layermenu-bottom > .st-container-split-track,
        .st-section.st-container-root-layermenu-float > .st-container-split-track,
        .st-section.st-container-root-layermenu-float-bottom > .st-container-split-track,
        .st-section.st-container-root-layermenu-float-top > .st-container-split-track {
            height: auto;
            min-height: 0;
            flex: 1 1 auto;
        }
        .st-container-layer-float-name {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            box-sizing: border-box;
            flex: 0 0 auto;
            min-height: 22px;
            height: 22px;
            padding: 3px 12px 5px;
            color: #475569;
            font-size: 12px;
            line-height: 1.2;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            background: rgba(248, 250, 252, 0.9);
            border-top: 1px solid rgba(226, 232, 240, 0.85);
            pointer-events: none;
        }
        .st-section.st-container-has-floating-layer-name {
            height: auto !important;
        }
        .st-section.st-container-root-layermenu-float[data-st-layout-type="grid"] > .st-container-layer-float-name,
        .st-section.st-container-root-layermenu-float-bottom[data-st-layout-type="grid"] > .st-container-layer-float-name,
        .st-section.st-container-root-layermenu-float-top[data-st-layout-type="grid"] > .st-container-layer-float-name {
            grid-column: 1 / -1;
        }
        .st-section.st-container-root-layermenu-top > .st-grid-resize-overlay,
        .st-section.st-container-root-layermenu-bottom > .st-grid-resize-overlay {
            grid-column: 1 / -1;
        }
        .st-section.st-container-root-layermenu-top[data-st-layout-type="grid"] > .st-container-layer-menu,
        .st-section.st-container-root-layermenu-bottom[data-st-layout-type="grid"] > .st-container-layer-menu {
            grid-column: 1 / -1;
        }
        .st-container-layer-menu {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 6px 12px;
            background: rgba(248, 250, 252, 0.95);
            border-bottom: 1px solid #e2e8f0;
            font-size: 13px;
            user-select: none;
            flex-shrink: 0;
        }
        .st-container-layer-menu-top {
            order: -1;
            align-self: stretch;
        }
        .st-container-layer-menu-bottom {
            order: 999;
            border-bottom: none;
            border-top: 1px solid #e2e8f0;
            align-self: stretch;
        }
        .st-container-layer-menu.st-container-layer-menu-float,
        .st-container-layer-menu.st-container-layer-menu-float-bottom,
        .st-container-layer-menu.st-container-layer-menu-float-top {
            position: absolute;
            left: 0;
            z-index: 20;
            width: 100%;
            max-width: none;
            height: 54px;
            padding: 0;
            box-sizing: border-box;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            pointer-events: none;
            justify-content: space-between;
            align-items: flex-start;
        }
        .st-container-layer-menu.st-container-layer-menu-float {
            top: 0;
            bottom: 0;
            height: auto;
            transform: none;
        }
        .st-container-layer-menu.st-container-layer-menu-float.st-container-layer-menu-has-flow-name {
            bottom: 22px;
        }
        .st-container-layer-menu.st-container-layer-menu-float-bottom {
            bottom: 0;
            height: 28px;
        }
        .st-container-layer-menu.st-container-layer-menu-float-bottom.st-container-layer-menu-has-flow-name {
            bottom: 22px;
        }
        .st-container-layer-menu.st-container-layer-menu-float-top {
            top: 0;
            height: 28px;
        }
        .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-nav,
        .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-nav,
        .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-nav {
            position: absolute;
            top: 0;
            z-index: 1;
            pointer-events: auto;
        }
        .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-prev,
        .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-prev,
        .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-prev {
            left: 0;
        }
        .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-next,
        .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-next,
        .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-next {
            right: 0;
        }
        .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-info,
        .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-info,
        .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-info {
            position: absolute;
            left: 50%;
            bottom: 0;
            max-width: calc(100% - 72px);
            transform: translateX(-50%);
            pointer-events: none;
            justify-content: center;
        }
        .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-info {
            top: calc(100% + 4px);
            bottom: auto;
        }
        .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-nav {
            top: 50%;
            transform: translateY(-50%);
        }
        .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-info {
            top: calc(100% + 4px);
            bottom: auto;
        }
        .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-info {
            top: calc(100% + 4px);
            bottom: auto;
        }
        .st-container-cell:has(> .st-container-layer-menu.st-container-layer-menu-float),
        .st-container-cell:has(> .st-container-layer-menu.st-container-layer-menu-float-bottom),
        .st-container-cell:has(> .st-container-layer-menu.st-container-layer-menu-float-top) {
            overflow: visible !important;
        }
        .st-container-layer-menu-left {
            position: relative;
            left: auto;
            top: auto;
            bottom: auto;
            right: auto;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-bottom: none;
            border-right: 1px solid #e2e8f0;
            padding: 10px 4px;
            min-width: 44px;
            z-index: 2;
            align-self: stretch;
            flex: 0 0 auto;
            box-sizing: border-box;
        }
        .st-container-layer-menu-right {
            position: relative;
            left: auto;
            top: auto;
            bottom: auto;
            right: auto;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-bottom: none;
            border-left: 1px solid #e2e8f0;
            padding: 10px 4px;
            min-width: 44px;
            z-index: 2;
            align-self: stretch;
            flex: 0 0 auto;
            box-sizing: border-box;
        }
        .st-container-layer-nav {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 0;
            background: rgba(15, 23, 42, 0.78);
            color: #f8fafc;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            line-height: 1;
            padding: 1px 2px;
            transition: background .15s ease, color .15s ease;
        }
        .st-container-layer-nav:hover {
            background: rgba(15, 23, 42, 0.94);
            color: #ffffff;
        }
        .st-container-layer-nav:active {
            background: #e2e8f0;
        }
        .st-container-layer-info {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }
        .st-container-layer-name {
            color: #0f172a;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 120px;
        }
        .st-container-layer-index {
            color: #64748b;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
        }
        .st-container-layer-menu-left .st-container-layer-nav,
        .st-container-layer-menu-right .st-container-layer-nav {
            width: 24px;
            height: 24px;
            font-size: 14px;
        }
        .st-container-layer-menu-left .st-container-layer-info,
        .st-container-layer-menu-right .st-container-layer-info {
            flex-direction: column;
            gap: 2px;
            align-items: center;
            justify-content: center;
        }
        .st-container-layer-menu-left .st-container-layer-info {
            flex-direction: column-reverse;
        }
        .st-container-layer-menu-left .st-container-layer-name,
        .st-container-layer-menu-right .st-container-layer-name {
            max-width: none;
            max-height: 80px;
        }
        .st-container-layer-menu-left .st-container-layer-name,
        .st-container-layer-menu-left .st-container-layer-index {
            writing-mode: vertical-lr;
            text-orientation: mixed;
            transform: rotate(180deg);
            transform-origin: center;
            display: inline-block;
        }
        .st-container-layer-menu-right .st-container-layer-name,
        .st-container-layer-menu-right .st-container-layer-index {
            writing-mode: vertical-lr;
            text-orientation: mixed;
        }
        .st-container-layer-menu-left .st-container-layer-nav {
            transform: rotate(90deg);
            transform-origin: center;
        }
        .st-container-layer-menu-right .st-container-layer-nav {
            transform: rotate(90deg);
            transform-origin: center;
        }
        .st-container-layer-menu-float .st-container-layer-info,
        .st-container-layer-menu-float-bottom .st-container-layer-info {
            min-width: 0;
        }
        .st-section.st-container-root-layermenu-left,
        .st-section.st-container-root-layermenu-right {
            display: flex;
            flex-direction: row;
            align-items: stretch;
            justify-content: flex-start;
            min-width: 0;
        }
        .st-section.st-container-root-layermenu-left > .st-container-root-layer-content,
        .st-section.st-container-root-layermenu-right > .st-container-root-layer-content {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
        }
        .st-section.st-container-root-layermenu-left > .st-container-layer-menu-left,
        .st-section.st-container-root-layermenu-right > .st-container-layer-menu-right {
            align-self: stretch;
        }
        /* Layer deck mode (builder only) */
        .st-container-layer-deck {
            position: absolute;
            top: 4px;
            right: 4px;
            z-index: 100;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.12);
            padding: 4px 8px;
        }
        /* ── Layer Layout Variants ── */
        /* Dots */
        .st-container-layer-menu-dots {
            gap: 6px;
            align-self: center;
        }
        .st-container-layer-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #cbd5e1;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: background .2s ease, transform .2s ease;
        }
        .st-container-layer-dot:hover {
            background: #94a3b8;
            transform: scale(1.2);
        }
        .st-container-layer-dot-active {
            background: #2563eb;
            transform: scale(1.2);
        }
        /* Tabs */
        .st-container-layer-menu-tabs {
            gap: 0;
            padding: 0;
            background: transparent;
            border: none;
        }
        .st-container-layer-tab {
            padding: 6px 14px;
            border: none;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: #64748b;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all .15s ease;
            white-space: nowrap;
        }
        .st-container-layer-tab:hover {
            color: #334155;
            background: rgba(148, 163, 184, 0.08);
        }
        .st-container-layer-tab-active {
            color: #2563eb;
            border-bottom-color: #2563eb;
            background: rgba(37, 99, 235, 0.04);
        }
        /* Pills */
        .st-container-layer-menu-pills {
            gap: 4px;
            padding: 4px;
            background: #f1f5f9;
            border-radius: 8px;
            border: none;
        }
        .st-container-layer-pill {
            padding: 4px 12px;
            border-radius: 6px;
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all .15s ease;
            white-space: nowrap;
        }
        .st-container-layer-pill:hover {
            color: #334155;
            background: rgba(255,255,255,0.5);
        }
        .st-container-layer-pill-active {
            color: #0f172a;
            background: #fff;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        /* Slider (progress bar style) */
        .st-container-layer-menu-slider {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            gap: 14px;
            padding: 8px 12px;
            background: transparent;
            border: none;
            width: min(100%, 420px);
            min-width: 0;
            max-width: 420px;
            align-self: center;
            box-sizing: border-box;
            margin: 0 auto;
            white-space: nowrap;
        }
        .st-container-layer-slider-track {
            flex: 1 1 auto;
            min-width: 0;
            height: 28px;
            position: relative;
            cursor: pointer;
            margin: 0;
            overflow: visible;
            touch-action: none;
        }
        .st-container-layer-slider-line {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 4px;
            background: #e2e8f0;
            border-radius: 999px;
        }
        .st-container-layer-slider-fill {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 4px;
            background: #2563eb;
            border-radius: 999px;
            transition: width .2s ease;
            pointer-events: none;
            z-index: 1;
        }
        .st-container-layer-slider-node {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #94a3b8;
            background: #fff;
            box-shadow: 0 0 0 2px #fff;
            padding: 0;
            margin: 0;
            display: block;
            box-sizing: border-box;
            appearance: none;
            -webkit-appearance: none;
            line-height: 0;
            cursor: pointer;
            z-index: 2;
            transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
        }
        .st-container-layer-slider-node:hover {
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
        }
        .st-container-layer-slider-node-active {
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), 0 0 0 4px #fff;
        }
        .st-container-layer-slider-thumb {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 22px;
            height: 22px;
            background: #2563eb;
            border-radius: 50%;
            border: 3px solid #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,0.22);
            transition: left .15s ease, transform .15s ease;
            z-index: 3;
            cursor: grab;
            touch-action: none;
            padding: 0;
            display: block;
            box-sizing: border-box;
            appearance: none;
            -webkit-appearance: none;
            line-height: 0;
        }
        .st-container-layer-slider-thumb:active {
            cursor: grabbing;
        }
        body.st-container-layer-slider-dragging,
        body.st-container-layer-slider-dragging * {
            cursor: grabbing !important;
            user-select: none !important;
        }
        body.st-container-layer-slider-dragging .st-container-layer-slider-fill,
        body.st-container-layer-slider-dragging .st-container-layer-slider-thumb,
        body.st-container-layer-slider-dragging .st-container-layer-slider-node {
            transition: none !important;
        }
        body.live-update-mode .st-container-layer-slider-track > .st-container-layer-slider-line,
        body.live-update-mode .st-container-layer-slider-track > .st-container-layer-slider-fill,
        body.live-update-mode .st-container-layer-slider-track > .st-container-layer-slider-node,
        body.live-update-mode .st-container-layer-slider-track > .st-container-layer-slider-thumb {
            position: absolute !important;
        }
        .st-container-layer-slider-nav {
            width: 30px;
            height: 30px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            background: #fff;
            color: #64748b;
            font-size: 16px;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            position: relative;
            z-index: 4;
        }
        .st-container-layer-slider-nav:hover {
            color: #334155;
            border-color: #94a3b8;
            background: #f8fafc;
        }
        .st-section.st-container-split .st-container-split-divider-row {
            align-self: stretch;
            cursor: col-resize;
            transform: scaleX(0.5);
            transform-origin: center;
        }
        .st-section.st-container-split .st-container-split-divider-column {
            width: 100%;
            cursor: row-resize;
            transform: scaleY(0.5);
            transform-origin: center;
        }
        body.live-update-mode .st-section.st-container-split .st-container-split-divider {
            background: var(--st-split-divider-color, rgba(37, 99, 235, 0.9));
        }
        /* Divider ẩn (opacity:0): trong edit mode hiện màu xanh nhạt để kéo thả */
        body.live-update-mode .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="1"],
        body.live-edit-hover .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="1"] {
            opacity: 1 !important;
            background: rgba(37, 99, 235, 0.15) !important;
            cursor: col-resize !important;
            pointer-events: auto !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="0"],
        body.live-edit-hover .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="0"] {
            opacity: 1 !important;
            background: rgba(37, 99, 235, 0.15) !important;
            pointer-events: auto !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="1"]:hover,
        body.live-edit-hover .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="1"]:hover {
            background: rgba(37, 99, 235, 0.35) !important;
        }
        body.live-update-mode .st-section.st-container-split .st-container-split-divider-column[data-st-divider-draggable="1"],
        body.live-edit-hover .st-section.st-container-split .st-container-split-divider-column[data-st-divider-draggable="1"] {
            cursor: row-resize !important;
        }
        /* Divider ẩn trong view mode: không kéo thả được */
        body:not(.live-update-mode):not(.live-edit-hover) .st-section.st-container-split .st-container-split-divider[data-st-divider-draggable="0"] {
            pointer-events: none !important;
        }
        .st-section.st-container { position: relative; }
        .st-container-height-handle {
            position: absolute !important;
            left: 0;
            right: 0;
            height: 6px;
            cursor: ns-resize;
            z-index: 100100;
            touch-action: none;
            background: transparent;
            transition: background .15s ease;
        }
        .st-container-height-handle-top { top: -3px; }
        .st-container-height-handle-bottom { bottom: -3px; }
        .st-container-height-handle:hover,
        body.live-edit-hover .st-section.st-container:hover > .st-container-height-handle {
            background: rgba(37, 99, 235, 0.35);
        }
        body.live-edit-hover .st-container-height-handle {
            background: rgba(37, 99, 235, 0.12);
        }
        body.live-edit-hover .st-container-height-handle:hover {
            background: rgba(37, 99, 235, 0.5);
        }
        body.live-update-mode .st-container-height-handle,
        body.live-update-mode .st-container-height-handle:hover,
        body:not(.live-edit-hover):not(.live-update-mode) .st-container-height-handle,
        body:not(.live-edit-hover):not(.live-update-mode) .st-container-height-handle:hover {
            background: transparent !important;
        }
        body.st-container-height-resizing * { cursor: ns-resize !important; user-select: none !important; }
        .st-container-width-handle {
            position: absolute !important;
            top: 0;
            bottom: 0;
            width: 8px;
            cursor: ew-resize;
            z-index: 100100;
            touch-action: none;
            background: transparent;
            transition: background .15s ease;
        }
        .st-container-width-handle-left { left: -4px; }
        .st-container-width-handle-right { right: -4px; }
        .st-container-width-handle:hover,
        body.live-edit-hover .st-section.st-container:hover > .st-container-width-handle {
            background: rgba(37, 99, 235, 0.18);
        }
        body.live-edit-hover .st-container-width-handle:hover {
            background: rgba(37, 99, 235, 0.5);
        }
        body.live-update-mode .st-container-width-handle,
        body.live-update-mode .st-container-width-handle:hover,
        body:not(.live-edit-hover):not(.live-update-mode) .st-container-width-handle,
        body:not(.live-edit-hover):not(.live-update-mode) .st-container-width-handle:hover {
            background: transparent !important;
        }
        body.st-container-width-resizing * { cursor: ew-resize !important; user-select: none !important; }
        .st-block-resize-handle {
            position: absolute !important;
            top: 0;
            bottom: 0;
            width: 12px;
            z-index: 100104;
            touch-action: none;
            pointer-events: auto;
            display: none;
            background: transparent;
        }
        .st-block-resize-handle-left { left: -6px; cursor: ew-resize; }
        .st-block-resize-handle-right { right: -6px; cursor: ew-resize; }
        .st-block-resize-handle-top {
            top: -6px;
            left: 0;
            right: 0;
            bottom: auto;
            width: auto;
            height: 12px;
            cursor: ns-resize;
        }
        .st-block-resize-handle-bottom {
            bottom: -6px;
            left: 0;
            right: 0;
            top: auto;
            width: auto;
            height: 12px;
            cursor: ns-resize;
        }
        .st-block-resize-handle-tl { top: -6px; left: -6px; bottom: auto; width: 12px; height: 12px; cursor: nwse-resize; }
        .st-block-resize-handle-tr { top: -6px; right: -6px; bottom: auto; left: auto; width: 12px; height: 12px; cursor: nesw-resize; }
        .st-block-resize-handle-bl { bottom: -6px; left: -6px; top: auto; width: 12px; height: 12px; cursor: nesw-resize; }
        .st-block-resize-handle-br { bottom: -6px; right: -6px; top: auto; left: auto; width: 12px; height: 12px; cursor: nwse-resize; }
        body.live-update-mode .st-block-resize-handle,
        body.live-edit-hover .st-block-resize-handle {
            display: block;
            cursor: ew-resize !important;
            background: transparent;
            border: 0;
            box-sizing: border-box;
        }
        body.live-update-mode .st-block-resize-handle-top,
        body.live-update-mode .st-block-resize-handle-bottom,
        body.live-edit-hover .st-block-resize-handle-top,
        body.live-edit-hover .st-block-resize-handle-bottom {
            cursor: ns-resize !important;
        }
        body.live-update-mode .st-block-resize-handle-tl,
        body.live-update-mode .st-block-resize-handle-br,
        body.live-edit-hover .st-block-resize-handle-tl,
        body.live-edit-hover .st-block-resize-handle-br {
            cursor: nwse-resize !important;
        }
        body.live-update-mode .st-block-resize-handle-tr,
        body.live-update-mode .st-block-resize-handle-bl,
        body.live-edit-hover .st-block-resize-handle-tr,
        body.live-edit-hover .st-block-resize-handle-bl {
            cursor: nesw-resize !important;
        }
        body.live-update-mode .st-block-resize-handle:hover,
        body.live-edit-hover .st-block-resize-handle:hover {
            background: transparent;
        }
        body.st-block-resizing * { cursor: ew-resize !important; user-select: none !important; }
        body.st-block-resizing-vertical * { cursor: ns-resize !important; }
        .st-section.st-text { padding: 15px 0; background: transparent; }
        /* Defense-in-depth: if a section (incl. text blocks) has no explicit background in its inline style
           (e.g. legacy static HTML, old snapshots, or partial inserts), force transparent so page/section
           backgrounds show through. User-set backgrounds live in the style attr and are protected by the :not(). */
        .st-section:not([style*="background"]) { background: transparent !important; }
        .st-section.st-text:not([style*="background"]) { background: transparent !important; }
        /* Ensure text block internal areas have no fill by default; only the root .st-section carries any user background.
           This prevents any residual white or inherited fill on the title/content containers inside a text block. */
        .st-section.st-text .st-text-content {
            background: transparent;
        }
        .st-section.st-text.st-text-flow-shape {
            position: relative;
            overflow: hidden;
        }
        .st-section.st-text.st-text-flow-shape .st-text-shape-flow {
            position: absolute;
            inset: 0;
            z-index: 1;
            overflow: hidden;
            pointer-events: auto;
            user-select: text;
        }
        .st-section.st-text.st-text-flow-shape.st-text-shape-ready > .st-text-content {
            opacity: 0;
            pointer-events: none;
        }
        .st-section.st-text.st-text-flow-shape.st-section-editing > .st-text-content {
            opacity: 1;
            pointer-events: auto;
        }
        .st-section.st-text.st-text-flow-shape.st-section-editing > .st-text-shape-flow {
            display: none;
        }
        .st-text-shape-line {
            position: absolute;
            margin: 0;
            padding: 0;
            white-space: nowrap;
        }
        body.live-update-mode .st-section {
            outline: none;
            transition: box-shadow 0.18s ease, background-color 0.18s ease, border-left-width 0.18s ease, border-left-color 0.18s ease;
        }
        body.live-update-mode .st-section::before,
        body.live-update-mode .st-section::after {
            display: none !important;
        }
        body.live-update-mode .st-section:hover:not(.st-product-list),
        body.live-update-mode .st-section.st-section-highlighted:not(.st-product-list),
        body.live-update-mode .st-section:focus-within:not(.st-product-list) {
            background: rgba(72, 187, 120, 0.06);
        }
        body.st-ui-hovering.live-update-mode .st-section:hover:not(.st-product-list) {
            background: transparent !important;
        }
        body.st-ui-hovering.live-update-mode .st-section[style*="border:"][style*="solid"]:hover {
            border-color: initial !important;
        }
        body.st-ui-hovering.live-update-mode .st-section[data-section-type="image"]:hover::after {
            display: none !important;
        }
        /* Preserve borders for blocks that have them in edit mode.
           Match shorthand border: ... solid ... regardless of spaces or !important. */
        body.live-update-mode .st-section[style*="border:"][style*="solid"] {
            border-style: solid !important;
        }
        /* Blue border on hover for blocks with borders */
        body.live-update-mode .st-section[style*="border:"][style*="solid"]:hover {
            border-color: #3b82f6 !important;
        }
        body.live-update-mode .st-section * { position: relative; }
        body.live-update-mode .st-section .st-bg-slideshow,
        body.live-edit-hover .st-section .st-bg-slideshow {
            position: absolute !important;
            inset: 0 !important;
            z-index: 0 !important;
        }
        body.live-update-mode .st-section .st-bg-slideshow .st-bg-slide,
        body.live-edit-hover .st-section .st-bg-slideshow .st-bg-slide,
        body.live-update-mode .st-section .st-bg-slideshow .st-bg-slide-overlay,
        body.live-edit-hover .st-section .st-bg-slideshow .st-bg-slide-overlay {
            position: absolute !important;
            inset: 0 !important;
        }
        /* Builder edit-mode makes every descendant relative for editing
           handles. Floating layer menus must remain out of the flex/grid
           flow or they create an empty column and push the container aside. */
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float-bottom,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float-top,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float-bottom,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float-top {
            position: absolute !important;
        }
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-nav,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-nav,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-nav,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-nav,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-nav,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-nav,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-info,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-info,
        body.live-update-mode .st-section .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-info,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float .st-container-layer-info,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float-bottom .st-container-layer-info,
        body.live-edit-hover .st-section .st-container-layer-menu.st-container-layer-menu-float-top .st-container-layer-info {
            position: absolute !important;
        }
        body.live-update-mode .st-section .st-cell-edit-badge,
        body.live-update-mode .st-section .st-section-menu-badge,
        body.live-update-mode .st-section .st-imgblk-nav,
        body.live-update-mode .st-section .st-imgblk-counter { position: absolute; }
        .st-cell-input-badge { display: none; }
        body.live-update-mode .st-cell-input-badge { display: flex !important; }
        body.live-update-mode .st-section[data-st-app-block="1"] .st-cell-input-badge,
        body.live-edit-hover .st-section[data-st-app-block="1"] .st-cell-input-badge {
            display: none !important;
        }
        .st-section[data-st-app-block="1"] .st-app-block-overlay {
            display: none;
        }
        body.live-update-mode .st-section[data-st-app-block="1"] .st-app-block-overlay,
        body.live-edit-hover .st-section[data-st-app-block="1"] .st-app-block-overlay {
            position: absolute;
            inset: 0;
            z-index: 100060;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            border: 0;
            background: rgba(255,255,255,0.42);
            backdrop-filter: blur(1px);
            cursor: not-allowed;
        }
        .st-section[data-st-app-block="1"] .st-app-block-notice {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 7px;
            padding: 12px 14px;
            border-radius: 12px;
            background: rgba(15,23,42,0.9);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 10px 24px rgba(15,23,42,0.22);
        }
        .st-section[data-st-app-block="1"] .st-app-block-description {
            font-size: 11px;
            font-weight: 500;
            color: #cbd5e1;
        }
        .st-section[data-st-app-block="1"] .st-app-block-open-page {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 6px 10px;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 7px;
            background: #2563eb;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            cursor: pointer;
        }
        .st-section[data-st-app-block="1"] .st-app-block-open-page svg {
            width: 15px;
            height: 15px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex: 0 0 auto;
        }
        .st-section .st-cell-input-button button:hover,
        body.live-update-mode .st-section .st-cell-input-button button:hover,
        body.live-edit-hover .st-section .st-cell-input-button button:hover {
            background: #1e40af !important;
        }
        .st-section .st-cell-input-button button:active,
        body.live-update-mode .st-section .st-cell-input-button button:active,
        body.live-edit-hover .st-section .st-cell-input-button button:active {
            background: #172554 !important;
            transform: translateY(1px);
        }
        body.live-update-mode .st-section.st-table .st-cell-input input,
        body.live-update-mode .st-section.st-table .st-cell-input textarea,
        body.live-update-mode .st-section.st-table .st-cell-input select,
        body.live-update-mode .st-section.st-table .st-cell-input button,
        body.live-edit-hover .st-section.st-table .st-cell-input input,
        body.live-edit-hover .st-section.st-table .st-cell-input textarea,
        body.live-edit-hover .st-section.st-table .st-cell-input select,
        body.live-edit-hover .st-section.st-table .st-cell-input button {
            pointer-events: none !important;
        }
        body.live-update-mode .st-section .st-cell-input-date:hover .st-cell-input-badge,
        body.live-update-mode .st-section .st-cell-input-time:hover .st-cell-input-badge,
        body.live-edit-hover .st-section .st-cell-input-date:hover .st-cell-input-badge,
        body.live-edit-hover .st-section .st-cell-input-time:hover .st-cell-input-badge {
            background: #5b21b6 !important;
        }
        .st-section .st-cell-picker-wrap { position: relative; width: 100%; height: 100%; display: block; }
        .st-section .st-cell-picker-input {
            width: 100%;
            height: 100%;
            padding: 0 36px 0 8px;
            margin: 0;
            border: none;
            border-radius: 0;
            font-size: 13px;
            box-sizing: border-box;
            background: transparent;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
        }
        .st-section .st-cell-picker-input::-webkit-calendar-picker-indicator {
            opacity: 0;
        }
        .st-section .st-cell-picker-button {
            position: absolute;
            top: 50%;
            right: 5px;
            width: 24px;
            height: 24px;
            margin: 0;
            border: none;
            border-radius: 6px;
            background: #e5e7eb;
            color: #374151;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transform: translateY(-50%);
            cursor: pointer;
            transition: background 0.12s ease, transform 0.12s ease;
            padding: 0;
        }
        .st-section .st-cell-picker-button:hover { background: #d1d5db; color: #111827; }
        .st-section .st-cell-picker-button:active { background: #cbd5e1; transform: translateY(-50%) scale(0.96); }
        .st-section .st-cell-picker-button svg { width: 16px; height: 16px; display: block; }
        .st-text { line-height: 1.5; color: #444; font-size: 14px; }
        .st-text .st-text-content.st-text-content-empty { position: relative; min-height: 1.4rem; }
        body.live-update-mode .st-text .st-text-content.st-text-content-empty::after {
            content: attr(data-placeholder);
            color: #64748b;
            display: block;
            white-space: pre-wrap;
        }
        .st-text .st-text-content > :first-child { margin-top: 0; }
        .st-text.st-text-empty { border: 1px dashed #cbd5e1; }
        /* View mode: empty/default text and layout blocks are borderless unless
           their own inline style explicitly configures a border. */
        body:not(.live-update-mode):not(.live-edit-hover) .st-section.st-text:not([style*="border"]),
        body:not(.live-update-mode):not(.live-edit-hover) .st-section.st-heading:not([style*="border"]),
        body:not(.live-update-mode):not(.live-edit-hover) .st-section.st-container:not([style*="border"]) {
            border: none !important;
        }
        .st-section.st-heading.st-heading-empty .st-heading-text {
            min-height: 1.35em;
        }
        body.live-update-mode .st-section.st-heading.st-heading-empty .st-heading-text:empty::before,
        body.live-edit-hover .st-section.st-heading.st-heading-empty .st-heading-text:empty::before {
            content: attr(data-placeholder);
            display: inline-block;
            color: #64748b;
            font-weight: 500;
        }
        .st-image { max-width: 100%; width: auto; height: auto; display: block; margin: 0 auto; border-radius: 6px; }
        .st-product-gallery-trigger {
            position: relative;
            display: block;
            width: 100%;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }
        .st-product-gallery-trigger img { width: 100%; height: auto; display: block; border-radius: 0; object-fit: cover; }
        .st-section.st-product.st-product-layout-banner .st-product-layout-shell,
        .st-section.st-product.st-product-layout-banner .st-product-layout-media {
            background: transparent !important;
        }
        .st-section.st-product.st-product-layout-banner .st-product-layout-media {
            width: 100%;
            max-height: 350px;
            overflow: hidden;
        }
        .st-section.st-product.st-product-layout-banner .st-product-layout-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        @media (max-width: 768px) {
            .st-section.st-banner img,
            .st-section.st-product.st-product-layout-banner .st-product-layout-media {
                max-height: 200px;
            }
        }
        .st-product-gallery-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 200800;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 23, 42, 0.72);
            backdrop-filter: blur(8px);
        }
        .st-product-gallery-modal.active { display: flex; }
        .st-product-gallery-backdrop { position: absolute; inset: 0; }
        .st-product-gallery-card {
            position: relative;
            width: 100vw;
            height: 100vh;
            max-width: none;
            max-height: none;
            overflow: hidden;
            border-radius: 0;
            background: #fff;
            box-shadow: 0 24px 80px rgba(0,0,0,0.28);
            padding: 20px;
            z-index: 1;
            display: flex;
            flex-direction: column;
        }
        .st-product-gallery-card.edit-mode { padding: 20px 20px 88px; }
        .st-product-gallery-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background: #f8fafc;
            color: #0f172a;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            z-index: 2;
        }
        .st-product-gallery-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; background: #f8fafc; border-radius: 18px; padding: 12px; }
        .st-product-gallery-main { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; display: block; background: #fff; }
        .st-product-gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 42px;
            height: 42px;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,0.95);
            color: #0f172a;
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 10px 25px rgba(15,23,42,0.12);
            z-index: 2;
        }
        .st-product-gallery-nav.prev { left: 12px; }
        .st-product-gallery-nav.next { right: 12px; }
        .st-product-gallery-nav:disabled { opacity: 0.35; cursor: default; }
        .st-product-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin-top: 14px; }
        .st-product-gallery-thumb {
            position: relative;
            border: 2px solid transparent;
            border-radius: 14px;
            padding: 0;
            background: #f8fafc;
            overflow: hidden;
            cursor: pointer;
            touch-action: none;
            user-select: none;
        }
        .st-product-gallery-thumb.active { border-color: #2563eb; }
        .st-product-gallery-modal.dragging .st-product-gallery-thumb { cursor: grabbing; }
        .st-product-gallery-thumb.dragging {
            opacity: 0.55;
            transform: scale(0.98);
            border-color: #93c5fd;
        }
        .st-product-gallery-thumb.drop-target {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
        }
        .st-product-gallery-thumb img { width: 100%; height: 92px; object-fit: cover; display: block; }
        .st-product-gallery-drag-handle {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: rgba(15,23,42,0.74);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 1px;
            pointer-events: none;
        }
        .st-product-gallery-thumb-actions { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 6px; pointer-events: none; }
        .st-product-gallery-thumb-action {
            pointer-events: auto;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background: rgba(15,23,42,0.78);
            color: #fff;
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            line-height: 1;
        }
        .st-product-gallery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
        .st-product-gallery-action-btn {
            border: none;
            border-radius: 12px;
            padding: 10px 14px;
            background: #eff6ff;
            color: #2563eb;
            font-weight: 600;
            cursor: pointer;
        }
        .st-product-gallery-action-btn.danger { background: #fef2f2; color: #b91c1c; }
        .st-product-gallery-action-btn:disabled,
        .st-product-gallery-thumb-action:disabled { opacity: 0.4; cursor: default; }
        .st-product-gallery-upload-btn { position: absolute; right: 20px; bottom: 20px; z-index: 3; width: 52px; height: 52px; border: none; border-radius: 16px; background: #2563eb; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 16px 32px rgba(37,99,235,0.24); cursor: pointer; }
        .st-product-gallery-upload-btn svg { width: 22px; height: 22px; display: block; }
        .st-product-gallery-upload-btn:hover { background: #1d4ed8; }
        .st-product-gallery-floating-actions {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 3;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: min(100%, 320px);
        }
        .st-product-gallery-floating-actions .st-product-gallery-action-btn {
            padding: 8px 12px;
            font-size: 13px;
            box-shadow: 0 10px 20px rgba(15,23,42,0.10);
            background: rgba(255,255,255,0.95);
        }
        .st-product-gallery-floating-actions .st-product-gallery-action-btn.danger { background: rgba(254,242,242,0.98); }

        .st-product-layout-shell {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            align-items: stretch;
            justify-content: space-between;
        }
        .st-product-layout-media {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }
        .st-product-compact-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            align-items: stretch;
            padding: 12px;
            box-sizing: border-box;
            background: #fff;
            border: 1px solid rgba(226,232,240,0.95);
            border-radius: 18px;
            box-shadow: 0 8px 20px rgba(15,23,42,0.07);
        }
        .st-product-medium-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            width: 100%;
            align-items: start;
        }
        .st-product-large-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
            width: 100%;
            align-items: start;
        }
        .st-product-compact-grid .st-section.st-product-layout-compact.st-product-compact-grouped {
            display: flex;
            flex-direction: column;
        }
        .st-product-medium-grid .st-section.st-product-layout-horizontal.st-product-medium-grouped {
            display: block;
            align-self: start;
        }
        .st-product-large-grid .st-section.st-product-layout-large.st-product-large-grouped {
            display: block;
            align-self: start;
        }
        .st-product-compact-grid .st-section.st-product-layout-compact {
            height: 100%;
        }
        .st-product-medium-grid .st-section.st-product-layout-horizontal {
            height: auto;
        }
        .st-product-large-grid .st-section.st-product-layout-large {
            height: auto;
        }
        .st-product-layout-media img {
            width: auto !important;
            height: auto !important;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
            border-radius: inherit;
        }
        .st-product-layout-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
        }
        .st-product-layout-head {
            display: grid;
            gap: 8px;
        }
        .st-product-title {
            margin: 0;
            font-size: 1rem;
            color: #111827;
            line-height: 1.22;
            letter-spacing: -0.01em;
        }
        .st-product-layout-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: auto;
        }
        .st-product-layout-actions .st-btn-link {
            min-width: 140px;
            justify-content: center;
        }
        .st-product-layout-horizontal,
        .st-product-layout-highlight {
            width: 100%;
        }
        .st-product-layout-reversed {
            width: 100%;
        }
        .st-product-layout-compact {
            width: 100%;
        }
        .st-product-layout-reversed .st-product-layout-shell {
            flex-direction: row-reverse;
        }
        .st-product-layout-reversed .st-product-layout-media {
            flex: 1.15 1 360px;
            min-width: 280px;
        }
        .st-product-layout-reversed .st-product-layout-content {
            flex: 0.95 1 320px;
            min-width: 240px;
            padding-top: 4px;
        }
        .st-product-layout-horizontal .st-product-layout-media {
            flex: 1.15 1 360px;
            min-width: 280px;
        }
        .st-product-medium-grouped .st-product-layout-shell {
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 12px;
            height: auto !important;
            justify-content: flex-start;
        }
        .st-product-medium-grouped .st-product-layout-media {
            width: 100%;
            flex: 0 0 auto;
            min-width: 0;
            max-width: none;
            aspect-ratio: 40 / 21;
        }
        .st-product-medium-grouped .st-product-layout-media img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain;
        }
        .st-product-layout-horizontal.st-product-medium-grouped .st-product-layout-content {
            flex: 0 1 auto !important;
            min-width: 0;
            gap: 10px;
            justify-content: flex-start;
            padding-top: 0;
        }
        .st-product-medium-grouped .st-product-layout-actions {
            margin-top: 0 !important;
        }
        .st-product-medium-grouped .st-product-detail-link {
            margin-top: 0 !important;
        }
        .st-product-medium-grouped .st-product-description {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .st-product-large-grouped .st-product-layout-shell {
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 13px;
            height: auto !important;
            justify-content: flex-start;
        }
        .st-product-large-grouped .st-product-layout-media {
            width: 100%;
            flex: 0 0 auto;
            min-width: 0;
            max-width: none;
            aspect-ratio: 400 / 273;
        }
        .st-product-large-grouped .st-product-layout-media img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain;
        }
        .st-product-layout-large.st-product-large-grouped .st-product-layout-content {
            flex: 0 1 auto !important;
            min-width: 0;
            gap: 11px;
            justify-content: flex-start;
            padding-top: 0;
        }
        .st-product-large-grouped .st-product-layout-actions,
        .st-product-large-grouped .st-product-detail-link {
            margin-top: 0 !important;
        }
        .st-product-large-grouped .st-product-description {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .st-product-layout-horizontal .st-product-layout-content {
            flex: 0.95 1 320px;
            min-width: 240px;
            padding-top: 4px;
        }
        .st-product-layout-horizontal:not(.st-product-medium-grouped) .st-product-description {
            display: -webkit-box;
            -webkit-line-clamp: 6;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .st-product-layout-compact .st-product-layout-media {
            flex: 0 0 152px;
            width: 152px;
            min-width: 120px;
            max-width: 152px;
        }
        .st-product-compact-grouped .st-product-layout-shell {
            flex-direction: row;
            align-items: center;
            gap: 10px;
            height: 100%;
        }
        .st-product-compact-grouped .st-product-layout-media {
            width: 92px;
            height: 92px;
            flex: 0 0 92px;
            min-width: 92px;
            max-width: 92px;
            aspect-ratio: 1 / 1;
        }
        .st-product-compact-grouped .st-product-layout-media img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain;
        }
        .st-product-compact-grouped .st-product-layout-content {
            flex: 1 1 auto;
            min-width: 0;
            gap: 6px;
        }
        .st-product-compact-grouped .st-product-title {
            font-size: 0.92rem;
            line-height: 1.25;
        }
        .st-product-compact-grouped .st-product-price {
            font-size: 0.96rem;
        }
        .st-product-compact-grouped .st-product-description {
            display: none !important;
        }
        .st-product-layout-compact .st-product-layout-shell {
            width: 100%;
        }
        .st-product-layout-compact .st-product-layout-content {
            gap: 8px;
            justify-content: center;
        }
        .st-product-layout-compact .st-product-description,
        .st-product-layout-compact .st-product-layout-actions {
            display: none !important;
        }
        .st-product-layout-highlight .st-product-layout-media {
            flex: 1.25 1 440px;
            min-width: 300px;
        }
        .st-product-layout-highlight .st-product-layout-content {
            flex: 0.9 1 320px;
            min-width: 250px;
            gap: 16px;
            padding-top: 4px;
        }
        .st-product-layout-highlight .st-product-title {
            font-size: 1.6rem;
            line-height: 1.12;
            letter-spacing: -0.02em;
        }
        .st-product-layout-highlight .st-product-price {
            font-size: 1.3rem;
            font-weight: 600;
        }
        .st-product-layout-minimal {
            width: min(100%, 760px);
        }
        .st-product-layout-minimal .st-product-layout-media {
            flex: 0 0 84px;
            width: 84px;
            height: 84px;
        }
        .st-product-layout-minimal .st-product-layout-content {
            flex: 1 1 220px;
            gap: 6px;
        }
        .st-product-layout-minimal .st-product-description,
        .st-product-layout-minimal .st-product-layout-actions {
            display: none !important;
        }
        .st-product-layout-minimal .st-product-title {
            font-size: 1rem;
            line-height: 1.28;
        }
        .st-product-description {
            font-size: 14px;
            line-height: 1.7;
            color: #475569;
        }
        .st-product-layout-minimal .st-product-price {
            font-size: 1.05rem;
            font-weight: 600;
        }
        @media (max-width: 768px) {
            .st-product-layout-shell {
                flex-direction: column;
                gap: 14px;
            }
            .st-product-layout-horizontal,
            .st-product-layout-highlight,
            .st-product-layout-reversed,
            .st-product-layout-compact,
            .st-product-layout-minimal {
                width: 100%;
            }
            .st-product-compact-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                width: 100%;
                max-width: 100%;
                gap: 12px;
            }
            .st-product-medium-grid,
            .st-product-large-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .st-product-layout-horizontal .st-product-layout-media,
            .st-product-layout-large .st-product-layout-media,
            .st-product-layout-highlight .st-product-layout-media,
            .st-product-layout-reversed .st-product-layout-media,
            .st-product-layout-compact .st-product-layout-media,
            .st-product-layout-minimal .st-product-layout-media {
                width: 100%;
                min-width: 0;
                flex-basis: auto;
            }
            .st-product-layout-minimal .st-product-layout-media {
                aspect-ratio: 1 / 1;
                max-width: 132px;
            }
            .st-product-layout-horizontal .st-product-layout-content,
            .st-product-layout-highlight .st-product-layout-content,
            .st-product-layout-reversed .st-product-layout-content,
            .st-product-layout-compact .st-product-layout-content,
            .st-product-layout-minimal .st-product-layout-content {
                width: 100%;
                min-width: 0;
            }
            .st-product-layout-compact .st-product-layout-shell {
                flex-direction: column;
                width: 100%;
                gap: 12px;
            }
            .st-product-layout-compact .st-product-layout-media {
                width: 100%;
                max-width: none;
                min-width: 0;
                flex-basis: auto;
                aspect-ratio: 4 / 3;
            }
            .st-product-compact-grouped .st-product-layout-media {
                width: 100%;
                height: auto;
                max-width: none;
                min-width: 0;
                flex-basis: auto;
                aspect-ratio: 1 / 1;
                padding: 8px;
                background: #f1f5f9;
                justify-content: flex-start;
            }
            .st-product-compact-grouped .st-product-layout-media img {
                width: 100% !important;
                height: 100% !important;
                object-fit: contain !important;
                object-position: left center;
            }
            .st-product-compact-grouped .st-product-layout-shell {
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                gap: 10px;
                text-align: left;
            }
            .st-product-compact-grouped .st-product-layout-content {
                align-items: flex-start;
                justify-content: flex-start;
                text-align: left;
                width: 100%;
                padding: 0 8px 2px;
                box-sizing: border-box;
            }
            .st-product-compact-grouped .st-product-layout-head {
                justify-items: start;
                text-align: left;
                width: 100%;
            }
            .st-product-compact-grouped .st-product-title {
                font-size: 0.84rem;
            }
            .st-product-compact-grouped .st-product-price {
                font-size: 0.88rem;
            }
            .st-product-compact-grouped .st-product-detail-link {
                align-self: flex-start;
                text-align: left;
            }
            .st-product-compact-odd-last {
                grid-column: 1 / -1;
                justify-self: stretch;
            }
            .st-product-compact-odd-last .st-product-layout-shell {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                align-items: center;
                justify-content: flex-start;
                gap: 10px;
                max-width: none;
                margin: 0;
                text-align: left;
            }
            .st-product-compact-odd-last .st-product-layout-media {
                width: 92px;
                height: 92px;
                flex: 0 0 92px;
                max-width: 92px;
                padding: 0;
            }
            .st-product-compact-odd-last .st-product-layout-content {
                flex: 1 1 auto;
                min-width: 0;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                text-align: left;
                padding: 0 8px 2px;
                justify-content: center;
            }
            .st-product-compact-odd-last .st-product-layout-head {
                justify-items: start;
                text-align: left;
                width: 100%;
            }
            .st-product-compact-odd-last .st-product-detail-link {
                align-self: flex-start;
                text-align: left;
            }
            .st-product-layout-horizontal .st-product-title,
            .st-product-layout-highlight .st-product-title,
            .st-product-layout-reversed .st-product-title,
            .st-product-layout-compact .st-product-title,
            .st-product-layout-minimal .st-product-title {
                font-size: 1.02rem;
            }
            .st-product-layout-highlight .st-product-title {
                font-size: 1.22rem;
            }
            .st-product-layout-horizontal .st-product-layout-actions,
            .st-product-layout-highlight .st-product-layout-actions,
            .st-product-layout-reversed .st-product-layout-actions {
                gap: 8px;
            }
            .st-product-layout-horizontal .st-btn-link,
            .st-product-layout-highlight .st-btn-link,
            .st-product-layout-reversed .st-btn-link {
                width: 100%;
                min-width: 0;
            }
        }
        @media (min-width: 501px) and (max-width: 768px) {
            .st-product-compact-grid {
                grid-template-columns: repeat(2, minmax(0, 250px));
                justify-content: center;
            }
        }

        /* Button Link Style */
        .st-btn-link {
            display: block; width: 100%; padding: 14px;
            text-align: center; text-decoration: none;
            color: #fff !important; font-weight: 600;
            border-radius: 10px; font-size: 15px;
            transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .st-section.st-hero .st-hero-cta:hover {
            background: #e2e8f0 !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 6px 14px rgba(15,23,42,0.14), inset 0 1px 0 rgba(255,255,255,0.9) !important;
            transform: translateY(-1px);
            cursor: pointer;
        }
        .st-btn-link:active { transform: scale(0.97); opacity: 0.9; }

        .st-btn-group { display: flex; align-items: center; gap: 8px; }
        .st-bar-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

        .st-action-menu { display: flex; align-items: center; gap: 8px; }
        .st-action-menu-item { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; border-radius: 8px; background: transparent; cursor: pointer; transition: background 0.15s ease, opacity 0.15s ease; padding: 0; flex-shrink: 0; }
        .st-action-menu-item:hover { background: rgba(255,255,255,0.18); }
        .st-action-menu-item svg { width: 18px; height: 18px; display: block; }
        .st-action-menu-dropdown { position: relative; display: none; }
        .st-action-menu-dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; border-radius: 8px; background: transparent; cursor: pointer; padding: 0; }
        .st-action-menu-dropdown-toggle:hover { background: rgba(255,255,255,0.18); }
        .st-action-menu-dropdown-toggle svg { width: 18px; height: 18px; display: block; }
        .st-action-menu-dropdown-bridge { position: absolute; top: 100%; right: 0; display: none; background: transparent; pointer-events: auto; z-index: 100199; }
        .st-action-menu-dropdown-menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 160px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,0.18); padding: 4px; z-index: 100200; display: none; flex-direction: column; gap: 2px; }
        .st-action-menu-dropdown-menu.open { display: flex; }
        .st-action-menu-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: none; border-radius: 8px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: #0f172a; text-align: left; width: 100%; }
        .st-action-menu-dropdown-item:hover { background: #f1f5f9; }
        .st-action-menu-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: #334155; }
        @media (max-width: 767px) {
            .st-action-menu-dropdown.has-overflow { display: block; }
        }

        .st-footer {
            position: relative;
            display: block;
            width: 100%;
            max-width: none;
            background: transparent;
            color: #475569;
            font-size: 14px;
            line-height: 1.7;
        }
        .st-footer-bg {
            width: 100%;
            background: transparent;
            border-top: none;
            padding: 0;
        }
        .st-footer-bg-layer {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: min(100%, 800px);
            height: 100%;
            z-index: 0;
            pointer-events: none;
            background: transparent;
        }
        .st-footer-inner {
            position: relative;
            z-index: 1;
            max-width: var(--st-layout-max-width, none);
            width: var(--st-layout-width, 100%);
            margin-left: var(--st-layout-margin-left, auto);
            margin-right: var(--st-layout-margin-right, auto);
            padding: 20px 24px;
            padding-left: var(--st-layout-padding-left, 24px);
            padding-right: var(--st-layout-padding-right, 24px);
            box-sizing: border-box;
        }
        .st-footer-content {
            display: grid;
            gap: 20px;
        }
        .st-footer-layout-1 {
            grid-template-columns: minmax(0, 1fr);
        }
        .st-footer-layout-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .st-footer-layout-3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        .st-footer-column {
            display: grid;
            gap: 16px;
            align-content: start;
            min-width: 0;
        }
        .st-footer-block {
            display: grid;
            gap: 10px;
            min-width: 0;
            padding: 14px;
            box-sizing: border-box;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block {
            border: 1px dashed transparent;
            border-radius: 12px;
            transition: border-color 0.18s ease, background-color 0.18s ease;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block:hover,
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block:focus-within,
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block.st-footer-block-badge-active,
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block.st-footer-inline-editing {
            border-color: rgba(148, 163, 184, 0.9);
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block:hover {
            border-color: #fb7185;
            background: rgba(251, 113, 133, 0.08);
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer {
            transition: outline 0.18s ease, outline-color 0.18s ease;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer:hover,
        body.live-update-mode.st-region-edit-focus-footer .st-footer:focus-within {
            outline: 2px dashed rgba(148, 163, 184, 0.9);
            outline-offset: -3px;
        }
        .st-footer-block-title {
            font-size: 13px;
            font-weight: 600;
            color: #0f172a;
            letter-spacing: 0.01em;
        }
        .st-footer-brand {
            font-weight: 600;
            color: #0f172a;
        }
        .st-footer-text {
            color: inherit;
            white-space: pre-wrap;
        }
        .st-footer-contact {
            display: grid;
            gap: 8px;
        }
        .st-footer-contact-item {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block-contact .st-footer-contact-item[data-footer-contact-field] {
            position: relative;
            min-height: 28px;
            padding: 5px 34px 5px 6px;
            border: 1px dashed transparent;
            border-radius: 8px;
            transition: border-color 0.18s ease, background-color 0.18s ease;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block-contact .st-footer-contact-item[data-footer-contact-field]:hover,
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block-contact .st-footer-contact-item[data-footer-contact-field]:focus-within,
        body.live-update-mode.st-region-edit-focus-footer .st-footer-block-contact .st-footer-contact-item.st-footer-contact-field-active {
            border-color: #64748b;
            background: rgba(148, 163, 184, 0.12);
        }
        .st-footer-contact-item span {
            min-width: 0;
        }
        .st-footer-contact-item b {
            min-width: 24px;
            font-weight: 600;
            color: #334155;
        }
        .st-contact-body {
            display: grid;
            gap: 10px;
        }
        .st-contact-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        .st-contact-icon {
            font-size: 18px;
            line-height: 1.4;
            flex-shrink: 0;
        }
        .st-contact-links {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }
        .st-contact-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 999px;
            background: #f8fafc;
            color: #0f172a;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: background .2s ease;
            white-space: nowrap;
        }
        .st-contact-link:hover {
            background: #e2e8f0;
        }
        .st-contact-link-zalo {
            background: #e8f0fe;
            color: #1a56db;
            border-color: #bfdbfe;
        }
        .st-contact-link-zalo:hover {
            background: #dbeafe;
        }
        .st-contact-link-copy {
            font-family: inherit;
        }
        .st-contact-phone-num,
        .st-contact-address-text {
            font-size: 13px;
            color: #64748b;
            line-height: 1.4;
        }
        .st-footer-links {
            display: grid;
            gap: 8px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .st-footer-link-item {
            margin: 0;
            padding: 0;
        }
        .st-footer-link {
            color: #475569;
            text-decoration: none;
            transition: color 0.18s ease;
            word-break: break-word;
        }
        .st-footer-link:hover {
            color: var(--accent, #2563eb);
        }
        .st-footer-empty {
            color: #94a3b8;
            font-size: 13px;
        }
        .st-second-footer {
            width: 100%;
        }
        .st-second-footer-inner {
            width: var(--st-layout-width, min(800px, calc(100% - 32px)));
            max-width: var(--st-layout-max-width, 100%);
            margin-left: var(--st-layout-margin-left, auto);
            margin-right: var(--st-layout-margin-right, auto);
            padding: var(--sf-pad-y, 20px) 24px var(--sf-pad-y, 20px) 24px;
            padding-left: var(--st-layout-padding-left, 24px);
            padding-right: var(--st-layout-padding-right, 24px);
            box-sizing: border-box;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 0;
        }
        .st-second-footer-block {
            min-width: 0;
            width: auto;
            padding: 0;
            color: #94a3b8;
            font-size: 13px;
            white-space: pre-wrap;
            word-break: break-word;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            gap: 0 10px;
            min-height: 40px;
        }
        .st-second-footer-block-copyright {
            padding-left: 14px;
        }
        .st-copy-btn {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            opacity: 0.4;
            color: inherit;
            transition: opacity 0.15s ease, color 0.15s ease;
        }
        .st-copy-btn:hover { opacity: 0.9; color: var(--accent, #2563eb); }
        .st-copy-btn.st-copy-done { opacity: 1; color: #22c55e; }
        .st-copy-check { display: none; }
        .st-copy-done .st-copy-icon { display: none; }
        .st-copy-done .st-copy-check { display: inline; }
        .st-second-footer-block-menu {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px 14px;
        }
        .st-second-footer-block-copyright {
            flex: 1 1 260px;
        }
        .st-second-footer-block-login {
            margin-left: auto;
            margin-right: 14px;
            position: relative;
            z-index: 2;
        }
        .st-second-footer-link {
            color: inherit;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            line-height: 1.45;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block-login .st-second-footer-link {
            position: relative;
            z-index: 3;
        }
        .st-second-footer-link .st-footer-login-icon {
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            flex: 0 0 auto;
        }
        .st-second-footer-link .st-footer-login-icon svg { width: 18px; height: 18px; display: block; }
        .st-second-footer-link:hover {
            color: var(--accent, #2563eb);
        }
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block {
            padding: 8px 10px;
            border: 1px dashed transparent;
            border-radius: 8px;
            transition: border-color 0.18s ease, background-color 0.18s ease;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block-copyright {
            padding: 0 14px;
            border-width: 0;
            outline: 1px dashed transparent;
            outline-offset: -1px;
        }
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block:hover,
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block:focus-within,
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block.st-footer-inline-editing {
            border-color: #64748b;
            background: rgba(148, 163, 184, 0.08);
        }
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block-copyright:hover,
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block-copyright:focus-within,
        body.live-update-mode.st-region-edit-focus-footer .st-second-footer-block-copyright.st-footer-inline-editing {
            border-color: transparent;
            outline-color: #64748b;
            background: rgba(148, 163, 184, 0.08);
        }
        body.live-update-mode.st-region-edit-focus-footer .st-footer-bg {
            margin-bottom: 96px;
        }
        .st-footer-copy {
            color: #94a3b8;
            font-size: 13px;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .st-footer-draft-notice {
            margin-top: 8px;
            color: rgba(148, 163, 184, 0.9);
            font-size: 12px;
            line-height: 1.4;
            text-align: center;
        }

        /* Mobile Bottom Actions Bar */
        #st-actions {
            display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 48px;
            background: #f8f9fa; border-top: 1px solid #eee; z-index: 99998;
            justify-content: space-around; align-items: center; gap: 4px; padding: 0 6px;
            box-shadow: 0 -5px 18px rgba(0,0,0,0.08);
        }
        .st-action-btn {
            flex: 1; height: 36px; border: 1px solid #ddd; border-radius: 8px;
            background: #fff; color: #51606f; font-size: 10px; font-weight: 600;
            cursor: pointer; transition: 0.2s; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 2px; padding: 0;
        }
        .st-action-btn:hover { background: #f1f3f5; border-color: #ccc; }
        .st-action-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
        .st-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .st-section.st-new-section:not(.st-product) { outline: none; cursor: pointer; }
        .st-section.st-new-section.st-product { outline: none; }
        .st-section.st-new-section:not(.st-product):hover { outline: none; }
        body.live-update-mode .st-section.st-text,
        body.live-update-mode .st-section.st-text:hover,
        body.live-update-mode .st-section.st-text *,
        body.live-update-mode .st-section.st-text *:hover { cursor: default !important; }
        body.live-update-mode .st-section.st-text .st-block-resize-handle,
        body.live-update-mode .st-section.st-text .st-block-resize-handle:hover,
        body.live-edit-hover .st-section.st-text .st-block-resize-handle,
        body.live-edit-hover .st-section.st-text .st-block-resize-handle:hover {
            cursor: ew-resize !important;
        }
        body.live-update-mode .st-section.st-text .st-block-resize-handle-top,
        body.live-update-mode .st-section.st-text .st-block-resize-handle-top:hover,
        body.live-edit-hover .st-section.st-text .st-block-resize-handle-top,
        body.live-edit-hover .st-section.st-text .st-block-resize-handle-top:hover {
            cursor: ns-resize !important;
        }
        body.live-update-mode .st-section.st-text .st-block-resize-handle-bottom,
        body.live-update-mode .st-section.st-text .st-block-resize-handle-bottom:hover,
        body.live-edit-hover .st-section.st-text .st-block-resize-handle-bottom,
        body.live-edit-hover .st-section.st-text .st-block-resize-handle-bottom:hover,
        body.live-update-mode .st-section.st-heading .st-block-resize-handle-bottom,
        body.live-update-mode .st-section.st-heading .st-block-resize-handle-bottom:hover,
        body.live-edit-hover .st-section.st-heading .st-block-resize-handle-bottom,
        body.live-edit-hover .st-section.st-heading .st-block-resize-handle-bottom:hover {
            cursor: ns-resize !important;
        }
        @keyframes st-text-effect-unit {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes st-text-effect-rise-track {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .st-section.st-text[data-text-effect="rise"] > .st-text-content {
            overflow: hidden;
        }
        .st-section.st-text[data-text-effect="rise"] > .st-text-content > .st-text-effect-track {
            animation: st-text-effect-rise-track var(--st-text-effect-duration, 2000ms) cubic-bezier(.22,1,.36,1) var(--st-text-effect-iterations, 1) var(--st-text-effect-direction, normal) both;
        }
        .st-section.st-text[data-text-effect="char"] .st-text-effect-unit,
        .st-section.st-text[data-text-effect="word"] .st-text-effect-unit,
        .st-section.st-text[data-text-effect="line"] .st-text-effect-unit,
        .st-section.st-text[data-text-effect="sentence"] .st-text-effect-unit {
            display: inline-block;
            animation: st-text-effect-unit 520ms cubic-bezier(.22,1,.36,1) both;
        }
        .st-section.st-text[data-text-effect="char"] .st-text-effect-word-group {
            white-space: nowrap;
        }
        .st-section.st-section-editing { background: rgba(219, 234, 254, 0.6); }

        /* Block visibility: hide on mobile / desktop */
        @media (max-width: 768px) {
            .st-section.st-hide-mobile { display: none !important; }
        }
        @media (min-width: 769px) {
            .st-section.st-hide-desktop { display: none !important; }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            body { padding-bottom: 0 !important; }
            #st-actions { display: none !important; }
            #st-menu { top: 70px; }
            .st-footer-content {
                grid-template-columns: minmax(0, 1fr) !important;
            }
            /* When footer columns stack on small screens, add separators between them
               Use same style as copyright divider (.st-footer-copy border-top) */
            .st-footer-column {
                padding-bottom: 16px;
            }
            .st-footer-column:not(:last-child) {
                border-bottom: 1px solid #e2e8f0;
                margin-bottom: 20px;
                padding-bottom: 16px;
            }
            .st-second-footer-block-login {
                margin-right: 16px;
            }
        }
        /* Non-WP mobile: container padding + auto height + image no-crop */
        @media (max-width: 768px) {
            body.st-non-wp .st-section.st-container {
                padding-left: 15px !important;
                padding-right: 15px !important;
                height: auto !important;
                min-height: 0 !important;
            }
            body.st-non-wp .st-section[data-section-type="image"] {
                height: auto !important;
            }
            body.st-non-wp .st-section[data-section-type="image"] .st-imgblk-wrap {
                height: auto !important;
                overflow: hidden !important;
            }
            body.st-non-wp .st-section[data-section-type="image"] .st-imgblk-frame {
                height: auto !important;
                overflow: hidden !important;
            }
            body.st-non-wp .st-section[data-section-type="image"] .st-imgblk-img {
                height: auto !important;
                object-fit: contain !important;
                width: 100% !important;
                transform: none !important;
            }
            body.st-non-wp .st-section[data-section-type="image"] .st-imgblk-wrap[data-imgblk-fit="original"] .st-imgblk-img {
                width: auto !important;
                max-width: 100% !important;
            }
        }
        /* ── Image Block Slider ── */
        .st-imgblk-wrap { width: 100%; height: auto; box-sizing: border-box; flex: 0 0 auto; min-height: 0; }
        .st-imgblk-img { max-width: 100%; width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 0; cursor: pointer; opacity: 0; transition: opacity 0.35s ease; }
        .st-imgblk-img.st-imgblk-loaded { opacity: 1; }
        .st-imgblk-frame { position: relative; width: 100%; height: auto; box-sizing: border-box; transition: box-shadow 0.16s ease; background: #e2e8f0; flex: 0 0 auto; min-height: 0; }
        .st-imgblk-frame::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
            background-size: 200% 100%;
            animation: st-imgblk-shimmer 1.4s infinite;
            pointer-events: none;
        }
        .st-imgblk-frame::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            width: 28px;
            height: 28px;
            border: 3px solid #cbd5e1;
            border-top-color: #2563eb;
            border-radius: 50%;
            animation: st-imgblk-spin 0.8s linear infinite;
            pointer-events: none;
        }
        .st-imgblk-frame:has(.st-imgblk-loaded)::before,
        .st-imgblk-frame:has(.st-imgblk-loaded)::after,
        .st-imgblk-frame:has(.st-imgblk-img[src=''])::before,
        .st-imgblk-frame:has(.st-imgblk-img[src=''])::after,
        .st-imgblk-frame:has(.st-imgblk-img:not([src]))::before,
        .st-imgblk-frame:has(.st-imgblk-img:not([src]))::after { display: none; }
        @keyframes st-imgblk-shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        @keyframes st-imgblk-spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        .st-imgblk-frame .st-imgblk-img { max-width: 100%; width: 100%; height: auto; margin: 0 auto; position: relative; z-index: 2; }
        .st-section[data-section-type="image"] { width: 100%; height: auto; box-sizing: border-box; display: flex; flex-direction: column; }
        .st-section[data-section-type="image"] .st-image-upload-wrapper { width: 100%; height: 180px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f1f5f9; }
        .st-section[data-section-type="image"] .st-image-upload-wrapper img { width: 100%; height: 100%; display: block; object-fit: contain !important; }
        body.live-update-mode .st-section[data-section-type="image"] { position: relative; isolation: isolate; }
        body.live-update-mode .st-section[data-section-type="image"]:hover,
        body.live-update-mode .st-section[data-section-type="image"].st-section-highlighted { outline: none; }
        body.live-update-mode .st-section[data-section-type="image"]:hover::after,
        body.live-update-mode .st-section[data-section-type="image"].st-section-highlighted::after {
            content: "";
            position: absolute;
            left: -3px;
            top: -3px;
            right: -3px;
            bottom: -3px;
            width: auto;
            height: auto;
            z-index: 100032;
            pointer-events: none;
            border: 2px solid #ffb6c1;
            box-sizing: border-box;
            background: none;
            opacity: 1;
        }
        .st-imgblk-caption { box-sizing: border-box; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
        .st-imgblk-caption-below { width: 100%; margin: 0 auto; color: #334155; text-align: center; }
        .st-imgblk-caption-overlay {
            position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
            padding: 12px 14px; color: #fff; text-align: center;
            background: rgba(15,23,42,0.72);
            pointer-events: none;
        }
        .st-imgblk-nav {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 36px; height: 36px; border: none; border-radius: 50%;
            background: rgba(255,255,255,0.92); color: #0f172a; font-size: 22px; line-height: 1;
            cursor: pointer; box-shadow: 0 4px 14px rgba(15,23,42,0.14); z-index: 2;
            display: inline-flex; align-items: center; justify-content: center; padding: 0;
            transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
        }
        .st-imgblk-nav:not(:disabled):not(.st-imgblk-nav-disabled):hover {
            background: rgba(15,23,42,0.74);
            color: #fff;
            box-shadow: 0 8px 20px rgba(15,23,42,0.22);
        }
        .st-imgblk-nav:disabled,
        .st-imgblk-nav-disabled {
            background: rgba(15,23,42,0.22);
            color: rgba(255,255,255,0.72);
            cursor: default;
            box-shadow: none;
            opacity: 0.62;
        }
        .st-imgblk-prev { left: 10px; }
        .st-imgblk-next { right: 10px; }
        .st-imgblk-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
        .st-imgblk-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; transition: background 0.18s, transform 0.18s; display: inline-block; border: none; padding: 0; cursor: pointer; }
        .st-imgblk-dot:hover { transform: scale(1.18); }
        .st-imgblk-dot-active { background: #2563eb; }
        .st-imgblk-nav-row {
            display: flex; align-items: center; justify-content: center; gap: 14px;
            width: 100%; box-sizing: border-box; padding: 8px 0;
        }
        .st-imgblk-nav-row-btn {
            flex: 0 0 auto; width: 32px; height: 32px; border: none; border-radius: 50%;
            background: rgba(15,23,42,0.06); color: #0f172a; cursor: pointer; padding: 0;
            display: inline-flex; align-items: center; justify-content: center;
            transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
        }
        .st-imgblk-nav-row-btn:hover:not(:disabled) { background: rgba(15,23,42,0.12); }
        .st-imgblk-nav-row-btn:disabled { opacity: 0.35; cursor: default; }
        .st-imgblk-nav-row-count { min-width: 46px; text-align: center; color: #334155; font-size: 13px; font-weight: 600; }
        .st-imgblk-nav-dots { display: flex; align-items: center; gap: 6px; }
        .st-imgblk-nav-dot {
            width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; border: none; padding: 0;
            cursor: pointer; transition: background-color 0.18s ease, transform 0.18s ease;
        }
        .st-imgblk-nav-dot:hover { transform: scale(1.2); }
        .st-imgblk-nav-dot-active { background: #2563eb; }
        .st-section[data-section-type="image"] .st-imgblk-nav-row[data-imgblk-nav-row="top"] { order: -1; }
        .st-imgblk-counter {
            position: absolute; right: 10px; bottom: 10px; z-index: 2;
            padding: 3px 8px; border-radius: 999px; background: rgba(15,23,42,0.55);
            color: #fff; font-size: 11px; font-weight: 600; pointer-events: none;
        }
        @media (max-width: 640px) {
            body.st-mobile-image-bleed-enabled .st-page-surface > .st-section[data-section-type="image"] {
                width: calc(100% + var(--st-mobile-image-bleed-left, 0px) + var(--st-mobile-image-bleed-right, 0px));
                margin-left: calc(-1 * var(--st-mobile-image-bleed-left, 0px)) !important;
                margin-right: calc(-1 * var(--st-mobile-image-bleed-right, 0px)) !important;
                border-radius: 0 !important;
            }
            body.st-mobile-image-bleed-enabled .st-page-surface > .st-section[data-section-type="image"] .st-imgblk-frame {
                border-radius: 0 !important;
            }
            .st-section[data-section-type="image"] {
                overflow-x: hidden;
                padding: 0 !important;
            }
            .st-section[data-section-type="image"] .st-imgblk-wrap {
                width: 100% !important;
                height: auto !important;
                overflow: hidden;
                text-align: left;
                position: relative;
            }
            .st-section[data-section-type="image"] .st-imgblk-frame {
                width: 100% !important;
                height: auto !important;
                max-width: 100% !important;
                margin: 0 !important;
                transform: none !important;
                position: relative;
                overflow: hidden !important;
            }
            .st-section[data-section-type="image"] .st-imgblk-img {
                transform: none !important;
            }
            /* Keep SVG icon images centered inside narrow mobile split cells. */
            .st-section[data-section-type="image"] .st-imgblk-wrap:has(.st-imgblk-img[src^="data:image/svg+xml"]) {
                text-align: center !important;
            }
            .st-section[data-section-type="image"] .st-imgblk-frame:has(.st-imgblk-img[src^="data:image/svg+xml"]) {
                width: auto !important;
                margin-left: auto !important;
                margin-right: auto !important;
            }
            .st-section[data-section-type="image"] .st-imgblk-frame:has(.st-imgblk-img[src^="data:image/svg+xml"]) .st-imgblk-img {
                width: auto !important;
                max-width: 100% !important;
                margin-left: auto !important;
                margin-right: auto !important;
                object-fit: contain !important;
            }
            .st-section[data-section-type="image"] .st-imgblk-caption-below {
                width: 100% !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                padding-left: 12px;
                padding-right: 12px;
            }
        }
        /* ── Image Block Gallery Lightbox ── */
        .st-imgblk-gallery {
            display: none; position: fixed; inset: 0; z-index: 10000021;
            align-items: center; justify-content: center; background: rgba(0,0,0,0.92);
        }
        .st-imgblk-gallery.active { display: flex; }
        .st-imgblk-gallery-card {
            position: relative; display: flex; flex-direction: column;
            width: 100vw; height: 100vh; background: transparent; overflow: hidden; z-index: 1;
        }
        .st-imgblk-gallery-close {
            position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 10000022;
            width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
            background: rgba(0,0,0,0.45); color: #fff; font-size: 24px; cursor: pointer;
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 10px 28px rgba(0,0,0,0.35);
        }
        .st-imgblk-gallery-stage {
            flex: 1 1 auto; min-height: 0; position: relative;
            display: flex; align-items: center; justify-content: center;
            background: transparent; padding: 0; touch-action: pan-y;
        }
        .st-imgblk-gallery-main {
            max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); object-fit: contain; border-radius: 12px; display: block;
            background: transparent;
        }
        .st-imgblk-gallery-nav {
            position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
            width: 48px; height: 48px; border: none; border-radius: 50%;
            background: rgba(255,255,255,0.88); color: #0f172a; font-size: 26px; line-height: 1;
            cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
            display: inline-flex; align-items: center; justify-content: center; padding: 0;
            transition: background .15s ease, opacity .15s ease;
        }
        .st-imgblk-gallery-nav:hover { background: #fff; }
        .st-imgblk-gallery-nav:disabled { opacity: 0.3; cursor: default; }
        .st-imgblk-gallery-prev { left: 16px; }
        .st-imgblk-gallery-next { right: 16px; }
        .st-imgblk-gallery-thumbs {
            position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
            display: flex; gap: 8px; padding: 12px 16px;
            overflow-x: auto; justify-content: safe center;
            background: rgba(0,0,0,0.45);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            scrollbar-width: thin;
        }
        .st-imgblk-gallery-thumb {
            flex-shrink: 0; border: 2px solid rgba(255,255,255,0.35); border-radius: 10px;
            padding: 0; background: rgba(0,0,0,0.3); cursor: pointer; overflow: hidden; transition: border-color .12s, transform .12s;
        }
        .st-imgblk-gallery-thumb:hover { transform: scale(1.04); }
        .st-imgblk-gallery-thumb.active { border-color: #38bdf8; }
        .st-imgblk-gallery-thumb img { width: 72px; height: 72px; object-fit: cover; display: block; }
        .st-imgblk-gallery-main { cursor: zoom-in; }
        .st-imgblk-gallery-single .st-imgblk-gallery-stage { padding: 0; }
        .st-imgblk-gallery-single .st-imgblk-gallery-main {
            max-width: 100vw; max-height: 100vh; border-radius: 0; cursor: zoom-out;
        }
        .st-imgblk-gallery-single .st-imgblk-gallery-nav,
        .st-imgblk-gallery-single .st-imgblk-gallery-thumbs,
        .st-imgblk-gallery-single .st-imgblk-gallery-close { display: none !important; }
        @media (max-width: 640px) {
            .st-imgblk-gallery-main {
                width: 100vw; max-width: 100vw; max-height: calc(100vh - 24px);
                border-radius: 0;
            }
            .st-imgblk-gallery-close {
                top: max(10px, env(safe-area-inset-top));
                right: max(10px, env(safe-area-inset-right));
                width: 38px; height: 38px; font-size: 22px;
            }
            .st-imgblk-gallery-nav { width: 40px; height: 40px; font-size: 22px; }
            .st-imgblk-gallery-prev { left: 8px; }
            .st-imgblk-gallery-next { right: 8px; }
            .st-imgblk-gallery-thumbs { padding: 8px 12px max(8px, env(safe-area-inset-bottom)); gap: 6px; }
            .st-imgblk-gallery-thumb img { width: 56px; height: 56px; }
        }
        /* Header/footer keep view styling until their own edit icon is activated. */
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-house-name:hover,
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-house-name:focus,
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-house-location:hover,
        body.live-update-mode:not(.st-region-edit-focus-header) #street-bar .st-house-location:focus { outline: none !important; }
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-block[data-footer-col][data-footer-block]:hover,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-block[data-footer-col][data-footer-block]:focus-within,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-block[data-footer-col][data-footer-block].st-footer-block-badge-active { outline: none !important; }
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-block,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-block-contact .st-footer-contact-item[data-footer-contact-field] { cursor: default !important; }
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer:hover,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer:focus-within { outline: none !important; }
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-footer-block:hover { border-color: transparent !important; background: transparent !important; }
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-second-footer-block:hover,
        body.live-update-mode:not(.st-region-edit-focus-footer) .st-second-footer-block:focus-within { border-color: transparent !important; background: transparent !important; }
/* STREET_RUNTIME_EXTRACT_END */
        /* Keep the account/manage control inside the draggable global toolbar. */
        #st-float-toolbar #st-user-button {
            position: static !important;
            top: auto !important;
            right: auto !important;
            bottom: auto !important;
            left: auto !important;
            z-index: auto !important;
            width: 28px !important;
            height: 28px !important;
            min-width: 28px !important;
            padding: 0 !important;
            border-radius: 4px !important;
            background: rgba(255,255,255,0.14) !important;
            border: 1px solid rgba(255,255,255,0.14) !important;
            color: #f8fafc !important;
            box-shadow: none !important;
            transform: none !important;
        }
        #st-float-toolbar #st-user-button:hover,
        #st-float-toolbar #st-user-button.is-menu-open {
            background: rgba(255,255,255,0.24) !important;
            color: #fff !important;
            transform: scale(1.08) !important;
        }
        #st-float-toolbar.compact > #st-user-button {
            display: inline-flex !important;
            width: 28px !important;
            height: 28px !important;
            min-width: 28px !important;
        }
