.mb-access {
    width: 100%;
    margin: 0;
}

.mb-access__container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mb-access__title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    line-height: 1.1;
}

.mb-access__intro {
    margin: 0 0 22px 0;
    color: #475569;
    font-size: 1rem;
}

.mb-access__help {
    margin: 18px 0 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.mb-access__footer {
    margin-top: 8px;
    padding-top: 4px;
}

.mb-access__footer a {
    font-weight: 600;
    text-decoration: none;
}

.mb-access__footer a:hover {
    text-decoration: underline;
}

.mb-stack p {
    margin: 0 0 10px 0;
}

.mb-stack p:last-child {
    margin-bottom: 0;
}

.mb-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 18px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mb-card__title {
    margin: 0 0 14px 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.mb-card--quota {
    position: relative;
    overflow: hidden;
}

.mb-card--quota.is-ok {
    border-color: #b7dfc2;
    background: linear-gradient(180deg, #eefaf1 0%, #e7f6ec 100%);
}

.mb-card--quota.is-missing {
    border-color: #f2b8b5;
    background: linear-gradient(180deg, #fef1f1 0%, #fdecec 100%);
}

.mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mb-badge--is-ok {
    border-color: #b7dfc2;
    color: #166534;
}

.mb-badge--is-missing {
    border-color: #f2b8b5;
    color: #991b1b;
}

.mb-quota__title {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.mb-card--quota.is-ok .mb-quota__title {
    color: #166534;
}

.mb-card--quota.is-missing .mb-quota__title {
    color: #991b1b;
}

.mb-quota__subtitle {
    margin: 0 0 16px 0;
    color: #334155;
    line-height: 1.5;
}

.mb-meta p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.mb-meta p:last-child {
    margin-bottom: 0;
}

.mb-form {
    margin-top: 18px;
}

.mb-form__field {
    margin-bottom: 16px;
}

.mb-form__label {
    display: block;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #0f172a;
}

.mb-form__input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mb-form__input:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.mb-form__actions {
    margin-bottom: 16px;
}

.mb-button {
    display: inline-block;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.05s ease, opacity 0.15s ease;
}

.mb-button:hover {
    opacity: 0.95;
}

.mb-button:active {
    transform: translateY(1px);
}

.mb-button--primary {
    background: #0f172a;
    color: #ffffff;
}

.mb-alert {
    margin: 0 0 16px 0;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    line-height: 1.4;
}

.mb-alert--error {
    border-color: #f2b8b5;
    background: #fdecec;
    color: #9f1d1d;
}

.mb-list {
    margin: 0;
    padding-left: 20px;
}

.mb-list__item {
    margin-bottom: 8px;
    line-height: 1.5;
}

.mb-list__item:last-child {
    margin-bottom: 0;
}

.mb-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-history__item {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mb-history__item:first-child {
    padding-top: 0;
}

.mb-history__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mb-history__date {
    margin: 0 0 6px 0;
    font-weight: 700;
    color: #0f172a;
}

.mb-history__meta {
    margin: 0 0 4px 0;
    color: #475569;
    line-height: 1.45;
}

.mb-history__meta:last-child {
    margin-bottom: 0;
}

.mb-empty-state {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.mb-avisos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mb-aviso-item {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mb-aviso-item:first-child {
    padding-top: 0;
}

.mb-aviso-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mb-aviso-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mb-aviso-item__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: #0f172a;
}

.mb-aviso-item__message {
    margin: 0 0 8px 0;
    color: #334155;
    line-height: 1.55;
}

.mb-aviso-item__date {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
}

.mb-aviso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #334155;
}

.mb-aviso-badge--alta {
    border-color: #f2b8b5;
    background: #fdecec;
    color: #9f1d1d;
}

.mb-aviso-badge--normal {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.mb-aviso-badge--baixa {
    border-color: #dbe4ea;
    background: #f8fafc;
    color: #64748b;
}

@media (max-width: 640px) {
    .mb-access__container {
        padding: 18px;
        border-radius: 14px;
    }

    .mb-access__title {
        font-size: 1.8rem;
    }

    .mb-access__intro {
        margin-bottom: 18px;
    }

    .mb-card {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .mb-card__title {
        font-size: 1.15rem;
    }

    .mb-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .mb-aviso-item__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .mb-form__input,
    .mb-button {
        font-size: 16px;
    }
}