/* Registration confirmation overlays the home page without reducing grid space. */
.registration-confirmation-overlay {
    position: fixed;
    inset: 0;
    width: min(960px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: auto;
}

.registration-confirmation-overlay::backdrop {
    background: rgba(255, 255, 255, 0.7);
}

.registration-confirmation-overlay .maintenanceBanner {
    width: 100%;
    margin: 0;
    line-height: 1.3;
}

/* Index mobile-only visual tuning; desktop remains unchanged. */

@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    .myHomePage {
        background: #ffffff;
    }

    .myHomePage .top-header-bar {
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.35rem 0.5rem 0.2rem;
    }

    .myHomePage .top-header-logo img {
        width: min(198px, 50vw);
    }

    .myHomePage .top-header-controls {
        margin-left: auto;
    }

    .myHomePage .top-header-identity {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 0.08rem;
    }

    .myHomePage .top-identity-bar {
        max-width: calc(100vw - 22px);
        padding: 0.26rem 0.58rem;
        font-size: 0.84rem;
        border-radius: 999px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13);
    }

    .myHomePage .index-search-strip {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin: 0.25rem auto 0.35rem;
        text-align: center;
    }

    .myHomePage .index-search-label {
        font-size: 0.82rem;
        line-height: 1.2;
        color: #4a4a4a;
    }

    .myHomePage .index-search-controls {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .myHomePage .index-search-controls input[type='text'] {
        width: min(170px, 42vw);
        height: 24px;
        border: 1px solid #8f8f8f;
        border-radius: 4px;
        padding: 2px 6px;
        font-size: 0.8rem;
    }

    .myHomePage .index-search-controls button[type='submit'] {
        border-radius: 4px;
        width: 34px;
        height: 24px;
        min-height: 24px;
        padding: 0;
        margin: 0;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .myHomePage .index-search-controls button[type='submit'] .searchButtonThinIcon {
        width: 14px;
        height: 14px;
        line-height: 1;
    }

    .myHomePage .helpicon {
        margin-left: 2px;
        width: 14px;
        height: 14px;
        line-height: 14px;
        font-size: 9px;
    }

    .myHomePage .page-stack {
        overflow: visible;
    }

    .myHomePage .grid {
        padding: 6px 9px 8px;
        row-gap: 10px;
    }

    .myHomePage .block,
    .myHomePage form.block {
        min-height: 52px;
        border-radius: 24px;
        border: 0;
        box-shadow: none;
        font-size: clamp(1.55rem, 4.65vw, 2rem);
        font-weight: 500;
        letter-spacing: 0.015em;
        color: rgba(255, 255, 255, 0.96);
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
        padding: 0.48rem 0.9rem;
    }

    .myHomePage .block:hover,
    .myHomePage form.block:hover {
        transform: none;
        box-shadow: none;
    }

    .myHomePage .block button,
    .myHomePage form.block button {
        padding: 0.28rem 0.7rem;
        line-height: 1.08;
    }

    .myHomePage .index-actions-alert {
        margin-top: 0.35rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (orientation: landscape) and (max-width: 767px) and (hover: none) and (pointer: coarse) {
    .myHomePage .top-header-logo img {
        width: min(170px, 34vw);
    }

    .myHomePage .index-search-strip {
        margin-top: 0.18rem;
        margin-bottom: 0.3rem;
    }

    .myHomePage .grid {
        row-gap: 8px;
    }

    .myHomePage .block,
    .myHomePage form.block {
        min-height: 46px;
        border-radius: 20px;
        font-size: clamp(1.3rem, 3.1vw, 1.7rem);
    }
}

@media (orientation: portrait) and (max-width: 767px) and (hover: none) and (pointer: coarse) {
    .myHomePage .top-header-bar {
        padding: 0.28rem 0.5rem 0.14rem;
    }

    .myHomePage .top-header-logo img {
        width: min(188px, 48vw);
    }

    .myHomePage .index-search-strip {
        margin-top: 0.2rem;
        margin-bottom: 0.28rem;
    }

    .myHomePage .grid {
        padding: 5px 9px 7px;
        row-gap: 9px;
    }

    .myHomePage .block,
    .myHomePage form.block {
        min-height: 50px;
        border-radius: 22px;
        font-size: clamp(1.45rem, 4.3vw, 1.85rem);
        padding: 0.42rem 0.86rem;
    }
}
