/* hc-cm.css keeps the desktop header fixed, so compact screens need an
   explicit single-row layout and matching content offset. */
@media (max-width: 1023px) {
    body {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .page > header {
        display: flex;
        height: 48px;
        align-items: center;
    }

    .page > header .m-menubar {
        width: 56px;
        flex: 0 0 56px;
    }

    .page > header .header-title {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        padding-left: 12px;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page > header .header-right {
        position: static;
        display: flex;
        width: auto;
        height: 48px;
        margin: 0 8px 0 0;
        flex: 0 0 auto;
        align-items: center;
    }

    .page > header .user-info {
        position: relative;
        display: block;
        width: 36px;
        height: 48px;
        margin: 0;
    }

    .page > header .user-info .info-area {
        display: flex;
        width: 36px;
        height: 48px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .page > header .user-info .user-name,
    .page > header .user-info .info-area > .material-symbols-outlined:last-child {
        display: none;
    }

    .page > header .menu-link {
        display: flex;
        width: auto;
        height: 48px;
        margin: 0;
        align-items: center;
    }

    .page > header .menu-link a {
        display: grid;
        width: 36px;
        height: 48px;
        place-items: center;
    }

    .page > .wrap {
        padding-top: 48px;
    }
}
