/* Page title row and header action clusters */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    flex-shrink: 0;
    /* Fixed band: one .btn row (see tokens.css); title is single-line (rules below). */
    height: var(--page-header-row-height);
}

/* Page chrome titles — Inter (inherited from body), slate-900, semibold, tight tracking. */
.main h1,
.page-header h1 {
    font-family: inherit;
    font-size: 1.375rem;
    line-height: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--page-title-fg);
}

.page-header h1 {
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Breadcrumb title: keep crumb + chevron; truncate the leaf when space is tight. */
.page-header h1.record-title {
    flex-wrap: nowrap;
}

.page-header h1.record-title .record-title__leaf {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}

.page-header__actions > .btn {
    white-space: nowrap;
}

.page-header__related {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}