.mphb {
    position: relative;
    overflow: visible;
    border-radius: 8px;
    padding: 20px;
    background: var(--exn-surface, #ffffff);
    border: 1px solid var(--exn-line, #dbe3ef);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.mphb--card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mphb--compact {
    padding: 14px 16px;
}

.mphb__content {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mphb__left {
    min-width: 0;
    flex: 1 1 280px;
}

.mphb__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.mphb--card .mphb__right {
    margin-left: auto;
}

.mphb__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: var(--exn-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.mphb--card .mphb__badge {
    min-height: 24px;
    padding: 3px 8px;
    margin-bottom: 6px;
    font-size: 0.7rem;
}

.mphb__title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 850;
    color: var(--exn-ink, #0f172a);
    letter-spacing: 0;
}

.mphb--card .mphb__title {
    font-size: 1rem;
    line-height: 1.35;
}

.mphb__subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--exn-muted, #64748b);
}

.mphb--card .mphb__subtitle {
    margin-top: 4px;
    max-width: none;
    font-size: 0.84rem;
}

.mphb__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mphb__meta-item {
    min-width: 128px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--exn-line, #dbe3ef);
    background: var(--exn-soft, #f8fafc);
}

.mphb--card .mphb__meta-item {
    min-width: 112px;
    padding: 9px 10px;
}

.mphb__meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: var(--exn-muted, #64748b);
}

.mphb__meta-value {
    display: block;
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.4;
    font-weight: 850;
    color: var(--exn-ink, #0f172a);
    overflow-wrap: anywhere;
}

.mphb__graphics {
    display: none !important;
}

@media (max-width: 767.98px) {
    .mphb {
        padding: 16px;
    }

    .mphb__right {
        width: 100%;
        justify-content: flex-start;
    }

    .mphb--card .mphb__right {
        margin-left: 0;
    }

    .mphb__title {
        font-size: 1.25rem;
    }

    .mphb__subtitle {
        font-size: 0.86rem;
    }

    .mphb__meta {
        width: 100%;
    }

    .mphb__meta-item {
        flex: 1 1 140px;
        min-width: 0;
    }
}

[data-bs-theme="dark"] .mphb {
    background: var(--exn-surface, #111c2f);
    border-color: var(--exn-line, #314158);
    box-shadow: none;
}

[data-bs-theme="dark"] .mphb--card {
    background: transparent;
    border-color: transparent;
}

[data-bs-theme="dark"] .mphb__title,
[data-bs-theme="dark"] .mphb__meta-value {
    color: #f8fafc;
}

[data-bs-theme="dark"] .mphb__subtitle,
[data-bs-theme="dark"] .mphb__meta-label {
    color: #a7b4c7;
}

[data-bs-theme="dark"] .mphb__meta-item {
    background: #0f1a2c;
    border-color: #314158;
}

[data-bs-theme="dark"] .mphb__badge {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(147, 197, 253, 0.26);
}
