/* =========================================================
   BB ACCOUNT — MANAGE ACCOUNT
   One canonical, isolated stylesheet for /manage-account/*.
   Responsive contract: mobile base + tablet + desktop only.
   ========================================================= */

.bb-account-module[data-bb-account-route^="manage-account"] {
    --bb-manage-accent: var(--button-bg, #008888);
    --bb-manage-accent-hover: var(--button-bg-hover, #007c7c);
    --bb-manage-page: var(--page-bg, #fff);
    --bb-manage-surface: var(--bb-surface, #f5f5f7);
    --bb-manage-surface-strong: var(--input-bg, #fff);
    --bb-manage-text: var(--text-primary, #1d1d1f);
    --bb-manage-muted: var(--text-secondary, #6e6e73);
    --bb-manage-line: var(--bb-line, #d2d2d7);
    --bb-manage-danger: var(--error-red, #d70015);
    --bb-manage-radius: 18px;
    --bb-manage-control-radius: 12px;
    --bb-manage-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.04);
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    align-self: start;
    overflow: visible;
    box-sizing: border-box;
}

.bb-account-module[data-bb-account-route^="manage-account"] *,
.bb-account-module[data-bb-account-route^="manage-account"] *::before,
.bb-account-module[data-bb-account-route^="manage-account"] *::after {
    box-sizing: border-box;
}

.bb-account-module[data-bb-account-route^="manage-account"] > .bb-manage-account {
    pointer-events: auto;
}

.bb-account-module[data-bb-account-route^="manage-account"] > .bb-account-shared-logo {
    pointer-events: none;
}

.bb-manage-account {
    width: min(100%, 1120px);
    margin: 0 auto;
    color: var(--bb-manage-text);
    min-width: 0;
}

.bb-manage-account :is(button,input,textarea,select,a,summary) {
    font: inherit;
}

.bb-manage-account :is(a,button,input,textarea,select):focus-visible {
    outline: 2px solid var(--bb-manage-accent);
    outline-offset: 3px;
}

/* ---------- Header ---------- */
.bb-manage-common-header {
    margin: 0 auto 20px;
    padding: 0 16px;
    text-align: center;
}

.bb-manage-common-header .bb-account-title {
    margin: 0;
    color: var(--bb-manage-text);
}

.bb-manage-common-header .bb-account-subtitle {
    margin-top: 5px;
    color: var(--bb-manage-muted);
}

/* ---------- Layout ---------- */
.bb-manage-shell {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.bb-manage-main,
.bb-manage-panels,
.bb-manage-panel-view {
    min-width: 0;
    width: 100%;
}

.bb-manage-panel-view[hidden] { display: none !important; }
.bb-manage-panel-view.is-active { display: block; }

/* ---------- Account section navigator: mobile base ---------- */
.bb-manage-section-nav {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) 36px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 0 10px;
}

.bb-manage-section-viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: auto;
    touch-action: pan-x pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.bb-manage-section-viewport.is-dragging { cursor: grabbing; }
.bb-manage-section-viewport::-webkit-scrollbar { display: none; }

.bb-manage-section-list {
    display: flex;
    align-items: stretch;
    gap: 4px;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0 4px;
    white-space: nowrap;
}

.bb-manage-section-link,
.bb-manage-section-link.f14r {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--bb-manage-muted) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: center;
    font-family: "BB Text" !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    letter-spacing: -0.016em !important;
    line-height: 1.428571431 !important;
    white-space: nowrap;
    transition: color .18s ease, opacity .18s ease;
}

.bb-manage-section-link:hover,
.bb-manage-section-link:focus-visible {
    color: var(--bb-manage-text) !important;
}

.bb-manage-section-link.is-current {
    color: var(--bb-manage-accent) !important;
    font-weight: 400 !important;
}

.bb-manage-section-link.is-current::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: currentColor;
}

.bb-manage-section-divider {
    flex: 0 0 1px;
    width: 1px;
    align-self: center;
    height: 20px;
    margin: 0 5px;
    background: var(--bb-manage-line);
}

.bb-manage-section-signout,
.bb-manage-section-signout.f14r { color: var(--bb-manage-danger) !important; }

.bb-manage-section-control {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
    z-index: 2;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--bb-manage-line) !important;
    border-radius: 10px !important;
    background: var(--bb-manage-surface-strong) !important;
    background-image: none !important;
    color: var(--bb-manage-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}
.bb-manage-section-control:hover:not(:disabled) {
    background: var(--bb-manage-surface) !important;
    border-color: color-mix(in srgb, var(--bb-manage-text) 25%, var(--bb-manage-line)) !important;
}
.bb-manage-section-control:active:not(:disabled) { transform: scale(.95); }
.bb-manage-section-control:disabled { opacity: .22; cursor: default; }
.bb-manage-section-control svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    overflow: visible;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* ---------- Panels / cards ---------- */
.bb-manage-panel-view {
    padding: 0 16px 24px;
}

.bb-manage-panel,
.bb-manage-form,
.bb-order-card,
.bb-download-card,
.bb-profile-progress,
.bb-manage-suggestions,
.bb-store-grid > *,
.bb-stat-grid > *,
.bb-manage-row-link,
.bb-activity-row,
.bb-avatar-history,
.bb-manage-subsection,
.bb-empty {
    border: 1px solid color-mix(in srgb, var(--bb-manage-line) 85%, transparent);
    border-radius: var(--bb-manage-radius);
    background: var(--bb-manage-surface-strong);
    box-shadow: var(--bb-manage-shadow);
}

.bb-manage-list {
    display: grid;
    gap: 12px;
}

.bb-manage-form {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.bb-form-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
}

.bb-manage-form label,
.bb-manage-inline-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--bb-manage-muted);
}

.bb-manage-form :is(input,textarea,select),
.bb-manage-inline-form input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--bb-manage-line);
    border-radius: var(--bb-manage-control-radius);
    background: var(--bb-manage-page);
    color: var(--bb-manage-text);
    box-shadow: none;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.bb-manage-form textarea { min-height: 120px; resize: vertical; }
.bb-manage-form input[readonly] { opacity: .66; cursor: default; }
.bb-manage-form :is(input,textarea,select):focus {
    border-color: var(--bb-manage-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bb-manage-accent) 16%, transparent);
}

.bb-manage-account .bb-account-primary-button--compact,
.bb-manage-account .bb-manage-form button[type="submit"],
.bb-manage-inline-form button {
    justify-self: start;
    min-height: 40px;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--bb-manage-accent);
    color: #fff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s ease, opacity .16s ease;
}

.bb-manage-account .bb-account-primary-button--compact:hover,
.bb-manage-account .bb-manage-form button[type="submit"]:hover,
.bb-manage-inline-form button:hover { background: var(--bb-manage-accent-hover); }

.bb-manage-account .bb-account-primary-button--compact:active,
.bb-manage-account .bb-manage-form button[type="submit"]:active,
.bb-manage-inline-form button:active { transform: scale(.98); }

.bb-manage-account button:disabled { opacity: .5; cursor: default; }

.bb-manage-secondary-action,
.bb-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--bb-manage-line);
    border-radius: 999px;
    background: transparent;
    color: var(--bb-manage-text);
    text-decoration: none;
    cursor: pointer;
}

.bb-manage-secondary-action:hover,
.bb-button-secondary:hover { background: var(--bb-manage-surface); }

.bb-manage-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
}
.bb-manage-notice--success { background: color-mix(in srgb, var(--bb-manage-accent) 12%, transparent); color: var(--bb-manage-accent); }
.bb-manage-notice--error { background: color-mix(in srgb, var(--bb-manage-danger) 11%, transparent); color: var(--bb-manage-danger); }

.bb-manage-ajax-status { min-height: 18px; color: var(--bb-manage-muted); }
.bb-manage-ajax-status.is-success { color: var(--bb-manage-accent); }
.bb-manage-ajax-status.is-error { color: var(--bb-manage-danger); }

/* ---------- Dashboard ---------- */
.bb-profile-progress,
.bb-manage-suggestions { padding: 16px; margin-bottom: 12px; }

.bb-profile-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bb-progress-track {
    height: 7px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bb-manage-surface);
}
.bb-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--bb-manage-accent); }

.bb-manage-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.bb-manage-suggestions strong { flex: 1 0 100%; font-weight: 400; }
.bb-manage-suggestions button {
    padding: 7px 11px;
    border: 1px solid var(--bb-manage-line);
    border-radius: 999px;
    background: transparent;
    color: var(--bb-manage-text);
    cursor: pointer;
}

.bb-stat-grid,
.bb-store-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}
.bb-stat-grid > *,
.bb-store-grid > * {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 16px;
    border-color: var(--bb-manage-line);
    color: var(--bb-manage-text);
    text-align: left;
    text-decoration: none;
}
.bb-stat-grid button { cursor: pointer; }
.bb-stat-grid strong,
.bb-store-grid strong { font-weight: 400; }
.bb-stat-grid span,
.bb-store-grid span { color: var(--bb-manage-muted); }

/* ---------- Orders / downloads ---------- */
.bb-order-card,
.bb-download-card { padding: 16px; }
.bb-order-top,
.bb-download-card,
.bb-order-items > div,
.bb-order-actions,
.bb-order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bb-order-top > div:first-child,
.bb-download-card > div:first-child { display: grid; gap: 3px; }
.bb-order-meta { margin-top: 8px; flex-wrap: wrap; color: var(--bb-manage-muted); }
.bb-order-card details { margin-top: 12px; }
.bb-order-card summary { cursor: pointer; color: var(--bb-manage-accent); }
.bb-order-items { display: grid; gap: 8px; margin-top: 10px; }
.bb-order-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; }
.bb-order-actions a,
.bb-download-card > a { color: var(--bb-manage-accent); text-decoration: none; }

/* ---------- Address tabs ---------- */
.bb-address-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 12px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bb-manage-surface);
}
.bb-address-tabs button {
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--bb-manage-muted);
    cursor: pointer;
}
.bb-address-tabs button.is-active { background: var(--bb-manage-page); color: var(--bb-manage-text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- Switches ---------- */
.bb-switch-form > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bb-manage-line);
}
.bb-switch-form > label:last-of-type { border-bottom: 0; }
.bb-switch-form > label > span { display: grid; gap: 3px; }
.bb-switch-form small { color: var(--bb-manage-muted); }
.bb-switch-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    min-height: 26px;
    padding: 2px;
    border: 0;
    border-radius: 999px;
    background: #b8b8bd;
    cursor: pointer;
    transition: background-color .18s ease;
}
.bb-switch-form input[type="checkbox"]::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.22);
    transition: transform .18s ease;
}
.bb-switch-form input[type="checkbox"]:checked { background: var(--bb-manage-accent); }
.bb-switch-form input[type="checkbox"]:checked::before { transform: translateX(18px); }

/* ---------- Activity / rows / chips ---------- */
.bb-activity-list { display: grid; gap: 10px; }
.bb-activity-row,
.bb-manage-row-link { padding: 14px 16px; }
.bb-activity-row { display: grid; gap: 8px; }
.bb-activity-row > div { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.bb-activity-row small { color: var(--bb-manage-muted); }
.bb-activity-row a,
.bb-manage-links a,
.bb-author-link-actions a { color: var(--bb-manage-accent); text-decoration: none; }
.bb-manage-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.bb-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chip-list span { padding: 6px 10px; border-radius: 999px; background: var(--bb-manage-surface); }
.bb-manage-subsection { margin-top: 14px; padding: 16px; }
.bb-empty { padding: 24px 16px; color: var(--bb-manage-muted); text-align: center; }

/* ---------- Author / profile ---------- */
.bb-author-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.bb-author-stats > * { padding: 12px; border-radius: 14px; background: var(--bb-manage-surface); }
.bb-author-link-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.bb-avatar-history { margin-top: 14px; padding: 16px; }
.bb-avatar-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.bb-avatar-history-item {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    grid-template-areas: "thumb meta" "actions actions";
    gap: 10px 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--bb-manage-line);
    border-radius: 14px;
    background: var(--bb-manage-page);
}
.bb-avatar-history-item.is-current {
    border-color: color-mix(in srgb, var(--bb-manage-accent) 42%, var(--bb-manage-line));
}
.bb-avatar-history-thumb {
    grid-area: thumb;
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--bb-manage-line);
    border-radius: 12px !important;
    background: var(--bb-manage-surface);
    object-fit: cover !important;
    object-position: center !important;
}
.bb-avatar-history-meta { grid-area: meta; display: grid; gap: 3px; min-width: 0; }
.bb-avatar-history-meta strong, .bb-avatar-history-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-avatar-history-meta small { color: var(--bb-manage-muted); }
.bb-avatar-history-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bb-avatar-history-actions button {
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid var(--bb-manage-line) !important;
    border-radius: 999px !important;
    background: var(--bb-manage-surface) !important;
    color: var(--bb-manage-text) !important;
    box-shadow: none !important;
    cursor: pointer;
}
.bb-avatar-history-actions button:hover { border-color: var(--bb-manage-accent) !important; color: var(--bb-manage-accent) !important; }
.bb-avatar-history-state { color: var(--bb-manage-muted); }

/* ---------- Inline forms ---------- */
.bb-manage-inline-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; align-items: end; margin-top: 12px; }
.bb-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bb-span-2 { grid-column: 1 / -1; }
.bb-location-readout { color: var(--bb-manage-muted); }

/* ---------- Loading ---------- */
.bb-manage-main { position: relative; transition: opacity .16s ease; }
.bb-manage-main.is-switching > .bb-manage-panels { opacity: .38; pointer-events: none; }
.bb-manage-main-preloader {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: start center;
    padding-top: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, visibility .12s ease;
}
.bb-manage-main-preloader.is-active { opacity: 1; visibility: visible; }
.bb-manage-qxspin { position: relative; width: 28px; height: 28px; }
.bb-manage-qxbar { position: absolute; left: 13px; top: 2px; width: 2px; height: 7px; border-radius: 2px; background: var(--bb-manage-muted); transform-origin: 1px 12px; transform: rotate(calc(var(--i) * 45deg)); opacity: calc(.22 + (var(--i) * .08)); animation: bb-manage-spin-fade .8s linear infinite; animation-delay: calc(var(--i) * -.1s); }
@keyframes bb-manage-spin-fade { 0%,100%{opacity:.18} 50%{opacity:1} }

/* ---------- Auth fallback ---------- */
.bb-manage-auth { width: min(100% - 32px, 460px); margin: 0 auto; text-align: center; }

/* =========================================================
   RESPONSIVE LAYOUT BY COMPONENT WIDTH
   These classes are applied from the actual rendered width of
   .bb-manage-account, so desktop responsive previews behave
   exactly like real tablet/mobile widths.
   ========================================================= */
.bb-manage-account.bb-manage-tablet-up .bb-manage-section-nav { padding-inline: 16px; }
.bb-manage-account.bb-manage-tablet-up .bb-manage-section-list { gap: 6px; }
.bb-manage-account.bb-manage-tablet-up .bb-manage-section-link,
.bb-manage-account.bb-manage-tablet-up .bb-manage-section-link.f14r { min-height: 44px; padding-inline: 14px; }
.bb-manage-account.bb-manage-tablet-up .bb-avatar-manager__top { grid-template-columns: 96px minmax(0,1fr); gap: 18px; }
.bb-manage-account.bb-manage-tablet-up button.bb-avatar-manager__preview,
.bb-manage-account.bb-manage-tablet-up .bb-avatar-manager__image {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
}
.bb-manage-account.bb-manage-tablet-up .bb-manage-common-header { padding-inline: 24px; }
.bb-manage-account.bb-manage-tablet-up .bb-manage-panel-view { padding-inline: 24px; }
.bb-manage-account.bb-manage-tablet-up .bb-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bb-manage-account.bb-manage-tablet-up .bb-stat-grid,
.bb-manage-account.bb-manage-tablet-up .bb-store-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bb-manage-account.bb-manage-tablet-up .bb-author-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bb-manage-account.bb-manage-tablet-up .bb-manage-inline-form { grid-template-columns: minmax(0,1fr) auto; }
.bb-manage-account.bb-manage-tablet-up .bb-avatar-history-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.bb-manage-account.bb-manage-desktop .bb-manage-section-nav {
    position: sticky;
    top: calc(var(--bb-account-nav-offset, 0px) + 18px);
    display: block;
    padding: 0;
}
.bb-manage-account.bb-manage-desktop .bb-manage-section-control { display: none !important; }
.bb-manage-account.bb-manage-desktop .bb-manage-section-viewport { overflow: visible; }
.bb-manage-account.bb-manage-desktop .bb-manage-section-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    min-width: 0;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--bb-manage-line) 82%, transparent);
    border-radius: 14px;
    background: var(--bb-manage-surface-strong);
    box-shadow: var(--bb-manage-shadow);
    white-space: normal;
}
.bb-manage-account.bb-manage-desktop .bb-manage-section-link,
.bb-manage-account.bb-manage-desktop .bb-manage-section-link.f14r {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0 12px 0 14px;
    border-radius: 9px !important;
    text-align: left;
}
.bb-manage-account.bb-manage-desktop .bb-manage-section-link:hover,
.bb-manage-account.bb-manage-desktop .bb-manage-section-link:focus-visible { background: var(--bb-manage-surface) !important; }
.bb-manage-account.bb-manage-desktop .bb-manage-section-link.is-current {
    background: color-mix(in srgb, var(--bb-manage-accent) 9%, transparent) !important;
    color: var(--bb-manage-accent) !important;
}
.bb-manage-account.bb-manage-desktop .bb-manage-section-link.is-current::after {
    left: 4px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    border-radius: 2px;
}
.bb-manage-account.bb-manage-desktop .bb-manage-section-divider { width: auto; height: 1px; margin: 5px 7px; }
.bb-manage-account.bb-manage-desktop .bb-manage-common-header { margin-bottom: 28px; padding-inline: 0; text-align: left; }
.bb-manage-account.bb-manage-desktop .bb-manage-shell { grid-template-columns: 210px minmax(0,1fr); gap: 28px; align-items: start; }
.bb-manage-account.bb-manage-desktop .bb-manage-panel-view { padding: 0 0 32px; }
.bb-manage-account.bb-manage-desktop .bb-manage-form { padding: 22px; }

/* =========================================================
   MANAGE ACCOUNT — CONFLICT SHIELD + FINAL COMPONENT LAYER
   Keeps Elementor/theme global button rules out of this module.
   ========================================================= */
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account button,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account [type="button"],
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account [type="submit"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: "BB Text", sans-serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: -0.016em !important;
    text-shadow: none !important;
    box-shadow: none;
}

/* Billing / Shipping segmented tabs — eliminate the two-button Elementor conflict. */
.bb-account-module[data-bb-account-route^="manage-account"] .bb-address-tabs {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--bb-manage-line) 72%, transparent);
    border-radius: 999px;
    background: var(--bb-manage-surface) !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-address-tabs > button.f14r {
    min-width: 92px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--bb-manage-muted) !important;
    box-shadow: none !important;
    line-height: 20px !important;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-address-tabs > button.f14r:hover {
    color: var(--bb-manage-text) !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-address-tabs > button.f14r.is-active {
    background: var(--bb-manage-page) !important;
    color: var(--bb-manage-text) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.10) !important;
}

/* Canonical primary / secondary buttons inside Manage Account. */
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account :is(.bb-account-primary-button--compact, .bb-avatar-manager__save, .bb-manage-form button[type="submit"], .bb-manage-inline-form button[type="submit"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 16px !important;
    border: 1px solid var(--bb-manage-accent) !important;
    border-radius: 999px !important;
    background: var(--bb-manage-accent) !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account :is(.bb-account-primary-button--compact, .bb-avatar-manager__save, .bb-manage-form button[type="submit"], .bb-manage-inline-form button[type="submit"]):hover {
    border-color: var(--bb-manage-accent-hover) !important;
    background: var(--bb-manage-accent-hover) !important;
    color: #fff !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account :is(.bb-manage-secondary-action, .bb-button-secondary, .bb-author-link-actions button, .bb-manage-suggestions button) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 1px solid var(--bb-manage-line) !important;
    border-radius: 999px !important;
    background: var(--bb-manage-page) !important;
    background-image: none !important;
    color: var(--bb-manage-text) !important;
    box-shadow: none !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-manage-account :is(.bb-manage-secondary-action, .bb-button-secondary, .bb-author-link-actions button, .bb-manage-suggestions button):hover {
    border-color: color-mix(in srgb, var(--bb-manage-accent) 35%, var(--bb-manage-line)) !important;
    background: var(--bb-manage-surface) !important;
    color: var(--bb-manage-accent) !important;
}

/* Profile photo manager — intentionally compact and fully styled. */
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager {
    width: 100%;
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--bb-manage-line) 85%, transparent);
    border-radius: var(--bb-manage-radius);
    background: var(--bb-manage-surface-strong);
    box-shadow: var(--bb-manage-shadow);
    overflow: hidden;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__top {
    display: grid;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 18px;
    align-items: center;
}
.bb-account-module[data-bb-account-route^="manage-account"] button.bb-avatar-manager__preview {
    position: relative;
    display: block !important;
    width: 76px !important;
    min-width: 76px !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--bb-manage-line) 78%, transparent) !important;
    border-radius: 50% !important;
    background: var(--bb-manage-surface) !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 76px !important;
    max-height: 76px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__change {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 8px;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__preview:hover .bb-avatar-manager__change,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__preview:focus-visible .bb-avatar-manager__change {
    opacity: 1;
    transform: translateY(0);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__summary {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__summary > span {
    color: var(--bb-manage-text);
    font-weight: 600 !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__summary p {
    margin: 0;
    color: var(--bb-manage-muted);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editor-actions,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editorbar > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar {
    margin-top: 5px;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar > button,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editorbar button,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editor-actions > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 13px !important;
    border: 1px solid var(--bb-manage-line) !important;
    border-radius: 999px !important;
    background: var(--bb-manage-page) !important;
    background-image: none !important;
    color: var(--bb-manage-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar > button:hover,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editorbar button:hover,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editor-actions > button:hover {
    border-color: color-mix(in srgb, var(--bb-manage-accent) 40%, var(--bb-manage-line)) !important;
    background: var(--bb-manage-surface) !important;
    color: var(--bb-manage-accent) !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar > button[data-avatar-action="upload"] {
    border-color: var(--bb-manage-accent) !important;
    background: var(--bb-manage-accent) !important;
    color: #fff !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar > button[data-avatar-action="upload"]:hover {
    border-color: var(--bb-manage-accent-hover) !important;
    background: var(--bb-manage-accent-hover) !important;
    color: #fff !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar > button.bb-avatar-manager__danger {
    border-color: color-mix(in srgb, var(--bb-manage-danger) 26%, var(--bb-manage-line)) !important;
    color: var(--bb-manage-danger) !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__toolbar > button.bb-avatar-manager__danger:hover {
    background: color-mix(in srgb, var(--bb-manage-danger) 8%, var(--bb-manage-page)) !important;
    border-color: color-mix(in srgb, var(--bb-manage-danger) 55%, var(--bb-manage-line)) !important;
    color: var(--bb-manage-danger) !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__more {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bb-manage-line);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__sound {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bb-manage-muted);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__drop {
    margin-top: 16px;
    padding: 18px;
    border: 1px dashed color-mix(in srgb, var(--bb-manage-accent) 45%, var(--bb-manage-line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--bb-manage-accent) 4%, var(--bb-manage-page));
    color: var(--bb-manage-muted);
    text-align: center;
    cursor: pointer;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__drop:hover,
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__drop:focus-visible {
    border-color: var(--bb-manage-accent);
    color: var(--bb-manage-accent);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editor {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bb-manage-line);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editorbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__cropbox {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 260px;
    max-height: 460px;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__cropbox img {
    display: block;
    max-width: 100% !important;
    max-height: 460px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editor-actions {
    justify-content: flex-end;
    margin-top: 12px;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__editor-actions > button.bb-avatar-manager__save {
    border-color: var(--bb-manage-accent) !important;
    background: var(--bb-manage-accent) !important;
    color: #fff !important;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bb-manage-surface);
    color: var(--bb-manage-text);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__status-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__status-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__status-detail {
    color: var(--bb-manage-muted);
    font-size: 12px;
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__progress {
    height: 4px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bb-manage-line) 60%, transparent);
}
.bb-account-module[data-bb-account-route^="manage-account"] .bb-avatar-manager__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--bb-manage-accent);
    transition: width .2s ease;
}




