.app-page-title-panel {
    margin: 1rem 1rem 0 0.75rem;
    min-height: 5.25rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 6px;
    background: var(--rz-surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.app-page-title-panel h1 {
    margin: 0;
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--rz-text-color);
}

.app-page-help-button {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 50% !important;
}

/* Replace legacy page intro/header blocks with the central layout title. */
.app-page-shell > .rz-stack > .rz-card:first-child:has(.rz-text-h3),
.app-page-shell > .rz-stack > .app-callout-card:first-child,
.app-page-shell > .rz-stack > div:first-child:has(.app-page-intro),
.app-page-shell > div:first-child:has(> .app-page-intro) {
    display: none !important;
}

/* Keep content start stable across pages. */
.app-page-shell {
    padding-top: 1rem !important;
}

@media (max-width: 720px) {
    .app-page-title-panel {
        margin: 0.75rem 0.75rem 0 0.75rem;
        min-height: 4.5rem;
        padding: 0.85rem 1rem;
    }

    .app-page-title-panel h1 {
        font-size: 1.7rem;
    }
}
