/* Cowork Portal — inherit every color from the active tenant's original BBS theme. */
#bbs-m4-member-factor-options {max-width: 100%;margin-block: 1.5rem;}
#bbs-m4-member-factor-options > h3 {font-size: clamp(1.25rem,2vw,1.6rem);font-weight: 700;margin: 0 0 1rem;color: var(--bbs-text-main);}
#bbs-m4-member-factor-options .bbs-m4-method-choices {display:grid;grid-template-columns: repeat(2,minmax(0,1fr));gap: .85rem;}
#bbs-m4-member-factor-options .bbs-m4-method-choices button {display:flex;align-items:center;gap:.85rem;width:100%;min-width:0;min-height:108px;text-align:left;padding:1rem;border:1px solid var(--bbs-surface-border);border-radius:14px;background:var(--bbs-surface);color:var(--bbs-text-main);box-shadow:var(--bbs-shadow-sm);cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s;}
#bbs-m4-member-factor-options .bbs-m4-method-choices button:not([disabled]):hover {border-color:var(--bbs-primary);box-shadow:var(--bbs-shadow-md);transform:translateY(-1px);}
#bbs-m4-member-factor-options .bbs-m4-method-choices button:focus-visible {outline:2px solid var(--bbs-primary);outline-offset:3px;}
#bbs-m4-member-factor-options .bbs-m4-method-choices button[disabled] {cursor:not-allowed;opacity:.65;}
#bbs-m4-member-factor-options .bbs-m4-method-choices button[data-method="email"] {border-color:var(--bbs-primary);background:var(--bbs-primary-bg-soft);}
#bbs-m4-member-factor-options .bbs-m4-method-icon {display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--bbs-primary-bg-soft);color:var(--bbs-primary);font-size:20px;}
#bbs-m4-member-factor-options .bbs-m4-method-body {min-width:0;flex:1;}
#bbs-m4-member-factor-options .bbs-m4-method-body strong {display:block;font-size:15px;font-weight:700;color:var(--bbs-text-main);}
#bbs-m4-member-factor-options .bbs-m4-method-body small {display:block;margin-top:5px;font-size:12px;line-height:1.5;color:var(--bbs-text-muted);}
#bbs-m4-member-factor-options .bbs-m4-enroll-label:not([hidden]) {display:inline-flex;margin-top:7px;padding:3px 9px;border-radius:99px;background:var(--bbs-primary-bg-soft);color:var(--bbs-primary);font-size:12px;font-weight:700;}
#bbs-m4-member-factor-options .bbs-m4-method-end {color:var(--bbs-primary);font-size:18px;}
#bbs-m4-member-factor-options .bbs-m4-method-choices button[disabled] .bbs-m4-method-end {color:var(--bbs-text-muted);}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-snapshot {display:flex;flex-wrap:wrap;align-items:flex-start;gap:1.4rem;margin-bottom:1.25rem;padding:1.4rem;border:1px solid var(--bbs-surface-border);border-radius:16px;background:var(--bbs-surface);box-shadow:var(--bbs-shadow-sm);}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-avatar {display:grid;place-items:center;flex:none;width:100px;height:100px;border-radius:50%;overflow:hidden;background:var(--bbs-primary-bg-soft);color:var(--bbs-primary);font-size:62px;}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-avatar img {width:100%;height:100%;object-fit:cover;}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-details {flex:1;min-width:210px;}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-details dl {display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.9rem;margin:0 0 1rem;}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-details dt {font-size:12px;color:var(--bbs-text-muted);font-weight:500;}
.bbs-native-original-guest-dashboard .bbs-native-guest-profile-details dd {margin:3px 0 0;overflow-wrap:anywhere;font-weight:650;color:var(--bbs-text-main);}
.bbs-native-original-guest-dashboard .bbs-native-guest-avatar-form {display:flex;align-items:center;flex-wrap:wrap;gap:.7rem;}
.bbs-native-original-guest-dashboard .bbs-native-guest-avatar-form label {font-weight:600;color:var(--bbs-text-main);}
.bbs-native-original-guest-dashboard .bbs-native-guest-avatar-form input[type="file"] {max-width:220px;color:var(--bbs-text-muted);font-size:12px;}
.bbs-native-original-guest-dashboard .bbs-native-guest-avatar-form button {padding:.5rem .85rem;border:0;border-radius:8px;background:var(--bbs-primary);color:var(--bbs-text-inverse);font-weight:650;cursor:pointer;}
.bbs-native-original-guest-dashboard .bbs-native-guest-avatar-form button:hover {background:var(--bbs-primary-hover);}
.bbs-native-original-guest-dashboard .bbs-native-guest-avatar-status {flex-basis:100%;margin:0;color:var(--bbs-text-muted);font-size:13px;}
.bbs-native-member-security {padding:1.2rem;border:1px solid var(--bbs-surface-border);border-radius:14px;background:var(--bbs-surface);}
.bbs-native-member-security h3 {color:var(--bbs-text-main);}
.bbs-native-member-security p {color:var(--bbs-text-muted);}
.bbs-native-member-security__grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:.85rem;margin-top:1rem;}
.bbs-native-member-security__item {display:flex;flex-direction:column;gap:.4rem;padding:1rem;border:1px solid var(--bbs-surface-border);border-radius:12px;background:var(--bbs-surface-soft);}
.bbs-native-member-security__item > i {font-size:22px;color:var(--bbs-primary);}
.bbs-native-member-security__item strong {color:var(--bbs-text-main);}
.bbs-native-member-security__item span {font-size:12px;color:var(--bbs-text-muted);}
.bbs-native-member-security__item a {color:var(--bbs-primary);font-weight:700;text-decoration:underline;}
@media (max-width:640px){#bbs-m4-member-factor-options .bbs-m4-method-choices{grid-template-columns:1fr;} .bbs-native-original-guest-dashboard .bbs-native-guest-profile-snapshot{padding:1rem;}}

/* Theme-driven overrides for inline login controls inherited from the legacy shell. */
#bbs-m4-native-password .bbs-m4-password-toggle,
#bbs-m4-native-password .bbs-m4-remember {color:var(--bbs-text-muted);}
#bbs-m4-native-password .bbs-m4-password-toggle:hover {color:var(--bbs-text-main);}
#bbs-m4-native-password .bbs-m4-password-toggle:focus-visible {outline:2px solid var(--bbs-primary);}
#bbs-m4-native-password .bbs-m4-remember input {accent-color:var(--bbs-primary);}

/* Shared native profile: Home displays only a square photo; editing belongs to Profile. */
.bbs-native-original-guest-dashboard .bbs-native-profile-photo-display {width:min(300px,100%);height:auto;aspect-ratio:1;flex:0 0 min(300px,100%);display:grid;place-items:center;overflow:hidden;border:1px solid var(--bbs-surface-border);border-radius:12px;background:var(--bbs-primary-bg-soft);color:var(--bbs-primary);font-size:clamp(4rem,8vw,8rem);}
.bbs-native-original-guest-dashboard .bbs-native-profile-photo-display img {width:100%;height:100%;object-fit:cover;display:block;}
.bbs-native-profile-editor {padding:1.2rem;margin-bottom:1.25rem;border:1px solid var(--bbs-surface-border);border-radius:12px;background:var(--bbs-surface);color:var(--bbs-text-main);}
.bbs-native-profile-editor button {padding:.7rem 1.1rem;border:1px solid var(--bbs-primary);border-radius:8px;background:var(--bbs-primary);color:var(--bbs-text-inverse);cursor:pointer;}
.bbs-native-profile-editor button:hover {background:var(--bbs-primary-hover);}
.bbs-native-profile-editor button:focus-visible,.bbs-native-profile-editor input:focus-visible {outline:2px solid var(--bbs-primary);outline-offset:2px;}
.bbs-native-profile-editor .bbs-native-profile-cancel {background:var(--bbs-surface);color:var(--bbs-primary);}
.bbs-native-profile-form[hidden] {display:none!important;}
.bbs-native-profile-form {margin-top:1rem;}
.bbs-native-profile-form-grid {display:grid;grid-template-columns: minmax(180px,240px) minmax(220px,1fr);gap:1.25rem;align-items:start;}
.bbs-native-profile-form-grid label {display:block;margin:.7rem 0 .3rem;font-weight:600;}
.bbs-native-profile-form-grid input:not([type=file]) {display:block;max-width:100%;width:100%;box-sizing:border-box;padding:.7rem;border:1px solid var(--bbs-surface-border);border-radius:8px;background:var(--bbs-surface);color:var(--bbs-text-main);}
.bbs-native-profile-form-grid input[type=file] {max-width:100%;}
.bbs-native-profile-picture-field small {display:block;color:var(--bbs-text-muted);}
.bbs-native-profile-preview {width:160px;height:160px;object-fit:cover;border-radius:10px;display:block;}
.bbs-native-profile-actions {display:flex;flex-wrap:wrap;gap:.75rem;margin:.9rem 0;}
.bbs-native-profile-status {color:var(--bbs-text-muted);}
@media(max-width:620px){.bbs-native-profile-form-grid{grid-template-columns:1fr;}.bbs-native-original-guest-dashboard .bbs-native-profile-photo-display{width:min(300px,100%);}}

/* BBS-GUEST-25-75-V1 — original Guest Home, responsive layout only. */
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"].is-active {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,3fr);
    grid-template-areas:"photo identity" "photo activity" "quick quick";
    gap:1rem 1.25rem;
    align-items:stretch;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot {
    grid-area:photo;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:1rem;
    min-width:0;
    margin:0;
    padding:1.15rem;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot + .row {
    grid-area:identity;
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot + .row + .row {
    grid-area:activity;
    grid-template-columns:repeat(4,minmax(0,1fr));
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot + .row,
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot + .row + .row {
    display:grid;
    gap:1rem;
    margin:0!important;
    min-width:0;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .row > [class*="col-"] {
    width:auto!important;
    max-width:none;
    min-width:0;
    padding:0!important;
    flex:initial!important;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .row .card {
    height:100%;
    min-width:0;
    margin:0;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .card.shadow-sm {
    grid-area:quick;
    min-width:0;
    margin:0;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] .bbs-native-profile-photo-display {
    width:min(300px,100%);
    max-width:100%;
    flex:none;
    aspect-ratio:1;
    align-self:center;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] .bbs-native-guest-profile-details {
    width:100%;
    min-width:0;
}
.bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] .bbs-native-guest-profile-details dl {
    grid-template-columns:1fr;
    gap:.65rem;
    margin:0;
}
@media (max-width:950px) {
    .bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"].is-active {
        grid-template-columns:minmax(0,1fr);
        grid-template-areas:"photo" "identity" "activity" "quick";
    }
    .bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot {
        align-items:center;
    }
    .bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot + .row + .row {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width:520px) {
    .bbs-native-original-guest-dashboard .bbs-dashboard-tab-panel[data-panel="overview"] > .bbs-native-guest-profile-snapshot + .row {
        grid-template-columns:minmax(0,1fr);
    }
}

/* BBS-EMAIL-BUTTON-RADIUS-V1 */
.bbs-native-profile-editor .bbs-native-profile-email-button {
    border-radius: 8px !important;
}

/* BBS-PROFILE-CANCEL-HOVER-V1 */
.bbs-native-profile-editor button.bbs-native-profile-cancel:hover,
.bbs-native-profile-editor button.bbs-native-profile-cancel:focus-visible {
    color: var(--bbs-text-inverse) !important;
}
