
:root{
    --bbu-blue:#0674ff;
    --bbu-text:#101828;
    --bbu-muted:#667085;
    --bbu-line:#dfe7f1;
    --bbu-soft:#f6f9fd;
}

.bbu-card{
    width:min(100%,880px);
    margin:0 auto;
    padding:22px;
    border:1px solid var(--bbu-line);
    border-radius:18px;
    background:#fff;
    color:var(--bbu-text);
    box-shadow:0 8px 28px rgba(16,24,40,.05);
}

.bbu-card *{
    box-sizing:border-box;
    min-width:0;
}

.bbu-card h2{
    margin:0;
    font-size:clamp(24px,4vw,34px);
    line-height:1.08;
    overflow-wrap:anywhere;
}

.bbu-sub{
    margin:6px 0 18px;
    color:var(--bbu-muted);
}

.bbu-notice{
    margin:0 0 16px;
    padding:12px 14px;
    border:1px solid #f4c7c3;
    border-radius:11px;
    background:#fff7f6;
    color:#b42318;
    font-size:13px;
}

.bbu-notice-success{
    border-color:#b7e3c7;
    background:#f2fbf5;
    color:#08783e;
}

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

.bbu-full{
    grid-column:1/-1;
}

.bbu-field{
    display:grid;
    gap:6px;
}

.bbu-field>span:first-child,
.bbu-account-type legend{
    color:#344054;
    font-size:12px;
    font-weight:850;
}

.bbu-field input,
.bbu-field textarea{
    width:100%;
    min-height:46px;
    max-width:100%;
    padding:10px 12px;
    border:1px solid #d7e2ef;
    border-radius:11px;
    background:#fff;
    font:inherit;
}

.bbu-field textarea{
    resize:vertical;
}

.bbu-field input[type="file"]{
    padding:5px;
    overflow:hidden;
}

.bbu-field input[type="file"]::file-selector-button{
    min-height:36px;
    margin-right:10px;
    padding:7px 11px;
    border:0;
    border-radius:8px;
    background:#edf5ff;
    color:var(--bbu-blue);
    font-weight:900;
}

.bbu-username-input{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    overflow:hidden;
    border:1px solid #d7e2ef;
    border-radius:11px;
    background:#fff;
}

.bbu-username-input>b{
    padding-left:12px;
    color:#667085;
}

.bbu-username-input input{
    border:0;
    border-radius:0;
    box-shadow:none;
}

.bbu-button{
    display:inline-flex;
    min-height:46px;
    max-width:100%;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    border:0;
    border-radius:11px;
    background:var(--bbu-blue);
    color:#fff!important;
    text-decoration:none!important;
    font:inherit;
    font-weight:900;
    line-height:1.2;
    text-align:center;
    white-space:normal;
    cursor:pointer;
}

.bbu-account-type{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:0;
    padding:0;
    border:0;
}

.bbu-account-type legend{
    grid-column:1/-1;
    margin-bottom:2px;
}

.bbu-account-type label{
    position:relative;
    display:block;
}

.bbu-account-type input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.bbu-account-type label>span{
    display:block;
    min-height:76px;
    padding:13px;
    border:1px solid var(--bbu-line);
    border-radius:13px;
    background:#fff;
    cursor:pointer;
}

.bbu-account-type input:checked+span{
    border-color:var(--bbu-blue);
    background:#f2f7ff;
}

.bbu-account-type strong,
.bbu-account-type small{
    display:block;
}

.bbu-account-type small{
    margin-top:4px;
    color:var(--bbu-muted);
}

.bbu-auth-card{
    max-width:620px;
}

.bbu-auth-card .bbu-button{
    width:100%;
    margin-top:16px;
}

.bbu-auth-footer{
    margin:16px 0 0;
    color:var(--bbu-muted);
    text-align:center;
}

.bbu-auth-footer a{
    color:var(--bbu-blue);
    font-weight:850;
}

.bbu-avatar{
    display:block;
    flex:0 0 auto;
    object-fit:cover;
    border-radius:50%;
}

.bbu-avatar-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eaf3ff;
    color:var(--bbu-blue);
    font-size:22px;
    font-weight:900;
}

.bbu-profile-head,
.bbu-profile-public-main{
    display:flex;
    gap:15px;
    align-items:center;
}

.bbu-profile-head{
    margin-bottom:20px;
}

.bbu-profile-head p,
.bbu-profile-head small{
    display:block;
    margin:4px 0 0;
    color:var(--bbu-muted);
}

.bbu-settings-actions{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
    margin-top:16px;
}

.bbu-settings-actions a{
    color:var(--bbu-blue);
    font-weight:850;
    text-decoration:none;
}

.bbu-profile-public-main{
    align-items:flex-start;
    margin-bottom:20px;
}

.bbu-profile-public-main>div{
    width:100%;
}

.bbu-profile-public-main strong{
    display:block;
    margin-top:4px;
    color:var(--bbu-muted);
    overflow-wrap:anywhere;
}

.bbu-profile-public-main p{
    max-width:650px;
    margin:13px 0 0;
    color:#475467;
    line-height:1.6;
}

@media(max-width:760px){
    .bbu-card{
        width:100%;
        padding:16px;
        border-radius:16px;
    }

    .bbu-form-grid,
    .bbu-account-type{
        grid-template-columns:minmax(0,1fr);
    }

    .bbu-full,
    .bbu-account-type legend{
        grid-column:auto;
    }

    .bbu-field input,
    .bbu-field textarea{
        min-height:48px;
        font-size:16px;
    }
}

@media(max-width:430px){
    .bbu-profile-head,
    .bbu-profile-public-main{
        align-items:flex-start;
        flex-direction:column;
    }

    .bbu-settings-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .bbu-settings-actions .bbu-button,
    .bbu-settings-actions a{
        width:100%;
        text-align:center;
    }
}
