/* Buffalo Record v2.4.5 — compact, no-scroll dataset header */
        .topbar {
            gap: 12px;
        }

        .topbar-left {
            flex: 1 1 auto;
            min-width: 0;
        }

        .header-summary-row {
            display: flex;
            align-items: center;
            width: 100%;
            min-width: 0;
            overflow: hidden;
        }

        .header-overview-title {
            flex: 0 0 auto;
            min-width: 145px;
            padding-right: 14px;
        }

        .header-overview-title .eyebrow,
        .header-metric-label {
            display: block;
            margin-bottom: 6px;
            font-size: 10px;
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: .09em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .header-overview-title h1 {
            margin: 0;
            font-size: clamp(22px, 1.8vw, 30px);
            line-height: 1;
            white-space: nowrap;
        }

        .dataset-header-metrics {
            display: none;
            align-items: stretch;
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
        }

        body.buffalo-dataset-ready .dataset-header-metrics {
            display: flex;
        }

        .header-metric {
            display: flex;
            flex: 1 1 0;
            min-width: 0;
            flex-direction: column;
            justify-content: center;
            padding: 0 clamp(8px, 1vw, 16px);
        }

        .header-metric-label {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .header-metric-value {
            display: block;
            overflow: hidden;
            font-size: clamp(17px, 1.45vw, 23px);
            line-height: 1;
            font-weight: 800;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .topbar-actions {
            flex: 0 0 auto;
        }

        @media (max-width: 1100px) {
            .header-overview-title {
                min-width: 125px;
                padding-right: 10px;
            }

            .header-metric {
                padding-inline: 7px;
            }

            .header-overview-title .eyebrow,
            .header-metric-label {
                font-size: 9px;
                letter-spacing: .06em;
            }

            .header-metric-value {
                font-size: 17px;
            }
        }

        @media (max-width: 760px) {
            .topbar {
                flex-wrap: wrap;
            }

            .topbar-left,
            .header-summary-row {
                width: 100%;
            }

            .header-summary-row {
                overflow: hidden;
            }

            .header-overview-title {
                min-width: 115px;
            }

            .header-metric {
                padding-inline: 5px;
            }

            .header-metric-label {
                font-size: 8px;
            }

            .header-metric-value {
                font-size: 15px;
            }
        }
