.mphb {
    position: relative;
    padding: 1rem 1.125rem;
    border: 1px solid var(--ui-border, #e5e7eb);
    border-radius: var(--ui-radius, 8px);
    background: var(--ui-surface, #fff);
    box-shadow: var(--ui-shadow, 0 1px 2px rgba(15, 23, 42, 0.04));
    overflow: visible;
}

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

.mphb--compact {
    padding: 0.85rem 1rem;
}

.mphb__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.mphb__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.mphb__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 18%, var(--ui-border, #e5e7eb));
    border-radius: var(--ui-radius-sm, 6px);
    background: color-mix(in srgb, var(--bs-primary) 8%, var(--ui-surface, #fff));
    color: var(--bs-primary);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.mphb__title {
    margin: 0;
    color: var(--ui-text, #111827);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.mphb--card .mphb__title {
    font-size: 0.98rem;
}

.mphb__subtitle {
    max-width: 760px;
    margin: 0.35rem 0 0;
    color: var(--ui-muted, #6b7280);
    font-size: 0.86rem;
    line-height: 1.5;
}

.mphb--card .mphb__subtitle {
    margin-top: 0.25rem;
    max-width: none;
    font-size: 0.82rem;
}

.mphb__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.mphb__meta-item {
    min-width: 120px;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--ui-border, #e5e7eb);
    border-radius: var(--ui-radius-sm, 6px);
    background: var(--ui-surface-muted, #f8fafc);
    box-shadow: none;
}

.mphb__meta-label {
    display: block;
    color: var(--ui-muted, #6b7280);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.mphb__meta-value {
    display: block;
    margin-top: 0.28rem;
    color: var(--ui-text, #111827);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.mphb__graphics,
.mphb__orb,
.mphb__ring,
.mphb__grid,
.mphb__panel,
.mphb__dots,
.mphb__ribbon {
    display: none;
}

[data-bs-theme="dark"] .mphb {
    background: var(--ui-surface, #111827);
    border-color: var(--ui-border, #273244);
    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: var(--ui-text, #f8fafc);
}

[data-bs-theme="dark"] .mphb__subtitle,
[data-bs-theme="dark"] .mphb__meta-label {
    color: var(--ui-muted, #94a3b8);
}

[data-bs-theme="dark"] .mphb__badge {
    background: color-mix(in srgb, var(--bs-primary) 16%, var(--ui-surface, #111827));
    border-color: color-mix(in srgb, var(--bs-primary) 28%, var(--ui-border, #273244));
}

[data-bs-theme="dark"] .mphb__meta-item {
    background: var(--ui-surface-muted, #0f172a);
    border-color: var(--ui-border, #273244);
}

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

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

    .mphb__title {
        font-size: 1.08rem;
    }

    .mphb__subtitle {
        font-size: 0.82rem;
    }

    .mphb__meta {
        width: 100%;
    }

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