/* Shared floating form actions. Geometry is independent of page and theme. */
html body .shared-action-source.shared-action-source.shared-action-source[hidden] { display: none !important; }
html body .ab-bar.ab-bar.ab-bar {
    position: fixed !important; left: 50% !important; right: auto !important;
    top: auto !important; bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 4003; display: flex; flex-direction: row !important; align-items: center;
    justify-content: center; flex-wrap: nowrap !important; gap: 10px !important;
    width: max-content !important; max-width: calc(100vw - 32px) !important;
    margin: 0 !important; padding: 10px 16px !important; box-sizing: border-box;
    transform: translateX(-50%) !important; border-radius: var(--look-card-radius, var(--mc-radius, 18px)) !important;
    border: 1px solid var(--mc-border, #ded7ec) !important;
    background: color-mix(in srgb, var(--mc-accent, #8b6dd6) 6%, var(--mc-surface, #fff)) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.15) !important;
    font-family: inherit; color: var(--mc-text, #252037);
}
html body .ab-bar.ab-bar.ab-bar[hidden] { display: none !important; }
html body .ab-bar.ab-bar.ab-bar.ab-suppressed { display: none !important; }
html body .ab-bar.ab-bar.ab-bar[data-ab="clean"] { display: none !important; }
html body .ab-bar.ab-bar.ab-bar .ab-tag { display: none !important; }
html body .ab-bar.ab-bar.ab-bar[data-ab="dirty"] .ab-tag.d,
html body .ab-bar.ab-bar.ab-bar[data-ab="applied"] .ab-tag.a { display: inline !important; }
html body .ab-bar.ab-bar.ab-bar[data-ab="dirty"] [data-ab-act="cancel"],
html body .ab-bar.ab-bar.ab-bar[data-ab]:not([data-ab="dirty"]) [data-ab-act="apply"] { display: none !important; }
html body .ab-bar.ab-bar.ab-bar[data-ab="dirty"] [data-ab-act="apply"],
html body .ab-bar.ab-bar.ab-bar[data-ab="applied"] [data-ab-act="cancel"] { display: inline-flex !important; }
html body .ab-bar.ab-bar.ab-bar[data-save-only] [data-ab-act="apply"] { display: none !important; }
html body .ab-bar.ab-bar.ab-bar[data-save-only][data-ab="dirty"] [data-ab-act="cancel"] { display: inline-flex !important; }
html body .ab-bar.ab-bar.ab-bar > .ab-tag {
    position: static; margin: 0 6px; padding: 0; border: 0; background: none;
    color: var(--mc-accent, #8b6dd6) !important; font-size: 13px; font-weight: 700; white-space: nowrap;
}
html body .ab-bar.ab-bar.ab-bar :is(button, a.pg-btn) {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    flex: 0 0 124px !important; width: 124px !important; min-width: 0 !important;
    height: 46px !important; margin: 0 !important; padding: 0 16px !important;
    border-radius: var(--look-control-radius, var(--mc-radius-sm, 14px)) !important; clip-path: var(--look-control-clip, none); box-sizing: border-box; font: inherit;
    font-size: 13px !important; font-weight: 700 !important; text-decoration: none;
    background: var(--mc-surface, #fff) !important; color: var(--mc-text, #252037) !important;
    border: 1px solid var(--mc-border, #ded7ec) !important; cursor: pointer;
}
html body .ab-bar.ab-bar.ab-bar [data-ab-act="apply"] { color: var(--mc-accent, #8b6dd6) !important; }
/* Match the base button rule's type specificity so Save wins its cascade. */
html body .ab-bar.ab-bar.ab-bar :is(button, a):is([data-ab-act="save"], .pri, .sx-bar-ok) {
    flex-basis: 214px !important; width: 214px !important;
    background: var(--bq-grad, var(--grad, var(--mc-accent, #8b6dd6))) !important; color: var(--mc-accent-text, #fff) !important;
    background-origin: border-box !important; background-repeat: no-repeat !important;
    border-color: transparent !important; box-shadow: 0 7px 18px color-mix(in srgb, var(--mc-accent, #8b6dd6) 30%, transparent);
}
html body .ab-bar.ab-bar.ab-bar :is(button, a):focus-visible { outline: 3px solid var(--mc-accent, #8b6dd6); outline-offset: 3px; }
html body .ab-bar.ab-bar.ab-bar :disabled { opacity: .45; box-shadow: none; cursor: default; }
html body .ab-bar.ab-bar.ab-bar.ab-bar-mobile { display: none; }
@media (max-width: 767px) {
    html body .ab-bar.ab-bar.ab-bar {
        left: 10px !important; right: 10px !important;
        bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important; max-width: none !important; transform: none !important;
    }
    html body .ab-bar.ab-bar.ab-bar.ab-bar-mobile { display: flex; }
    html body .ab-bar.ab-bar.ab-bar :is(button, a.pg-btn) { flex: 1 1 0 !important; width: auto !important; }
    html body .ab-bar.ab-bar.ab-bar :is(button, a):is([data-ab-act="save"], .pri, .sx-bar-ok) { flex: 2 1 0 !important; width: auto !important; }
    html body .ab-bar.ab-bar.ab-bar > .ab-tag {
        position: absolute; left: 14px; top: -26px; padding: 2px 10px; margin: 0;
        font-size: 11.5px; border-radius: 99px; border: 1px solid var(--mc-border, #ded7ec);
        background: var(--mc-surface, #fff); max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis;
    }
    body:has(.ab-bar:not([hidden])) .et-b { display: none; }
}
