@media screen and (max-width: 899px) {
    html,
    body {
        min-width: 0;
        min-height: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    .search-page,
    .sites-page {
        width: 100%;
        min-height: 100svh;
    }

    .search-main,
    .sites-main {
        width: 100%;
        min-height: calc(100svh - 45px);
        overflow-x: hidden;
        overflow-y: auto;
        background-position: center bottom;
        background-size: 100% auto;
    }

    .search-panel {
        width: 100%;
        max-width: 420px;
        padding: 92px 20px 80px;
    }

    .brand {
        margin-bottom: 27px;
        font-size: 40px;
    }

    .search-links {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 4px;
        margin-bottom: 16px;
        white-space: normal;
        text-align: center;
    }

    .search-links a {
        font-size: 14px;
        white-space: nowrap;
    }

    .search-form {
        width: 100%;
    }

    .search-form > input {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }

    .captcha-row {
        width: 210px;
        height: auto;
        margin-top: 12px;
        align-items: center;
        flex-direction: column;
        gap: 8px;
        overflow: visible;
        background: rgba(251, 251, 251, .76);
    }

    .captcha-row img {
        flex: 0 0 auto;
    }

    .captcha-row input {
        flex: 0 0 auto;
        width: 200px;
        text-align: left;
    }

    .search-form button {
        margin-top: 20px;
    }

    .page-footer {
        flex-basis: 45px;
        height: 45px;
        line-height: 45px;
    }

    .sites-panel {
        width: 100%;
        padding: 24px 12px 70px;
    }

    .welcome {
        font-size: 13px;
    }

    .brand-small {
        margin-bottom: 26px;
        font-size: 30px;
    }

    .list-heading {
        margin-bottom: 12px;
    }

    .site-table-wrap {
        width: 100%;
    }

    .site-table {
        table-layout: fixed;
    }

    .site-table th,
    .site-table td {
        height: auto;
        min-height: 46px;
        padding: 12px 8px;
        font-size: 12px;
        line-height: 1.5;
        vertical-align: middle;
    }

    .site-table th:nth-child(1),
    .site-table td:nth-child(1) {
        width: 25%;
    }

    .site-table th:nth-child(2),
    .site-table td:nth-child(2) {
        width: auto;
        word-break: break-all;
    }

    .site-table th:nth-child(3),
    .site-table td:nth-child(3) {
        width: 72px;
    }

    .primary-link {
        width: 180px;
        margin-top: 24px;
    }
}

@media screen and (max-width: 359px) {
    .search-panel {
        padding-right: 14px;
        padding-left: 14px;
    }

    .search-links {
        column-gap: 0;
    }

    .search-links a {
        font-size: 13px;
    }

    .site-table th,
    .site-table td {
        padding-right: 5px;
        padding-left: 5px;
    }
}
