#search {
    max-width: 720px;
    margin: 0 auto;
}

#search form {
    position: relative;
    border: 1px solid #e5edf5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

#search-text {
    width: 100%;
    height: 52px;
    padding: 0 72px 0 18px;
    font-size: 14px;
    border: 0;
    background: transparent;
    color: #1f2937;
    transition: box-shadow .2s ease, background-color .2s ease;
}

#search-text:focus {
    box-shadow: inset 0 0 0 1px #cfe0f3;
    background: rgba(248, 250, 252, 0.78);
}

#search button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #2f3a48;
    transition: background-color .2s ease, transform .2s ease;
}

#search button:hover {
    background: #111827;
    transform: translateY(-1px);
    cursor: pointer;
}

#search button i {
    color: #fff;
    font-size: 16px;
}

#search-list {
    position: relative;
    margin: 0 auto 10px;
    padding-left: 70px;
}

.s-type {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 64px;
}

.s-type > span {
    display: block;
    width: 64px;
    height: 30px;
}

.s-type-list {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    min-width: 76px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e6edf5;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.s-type:hover .s-type-list {
    display: block;
}

.s-type-list:before {
    position: absolute;
    top: -14px;
    left: 18px;
    content: '';
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.98);
}

.s-type-list label {
    display: block;
    padding: 6px 12px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.s-type-list label:hover {
    background: #f8fafc;
    color: #1f2937;
}

.type-text {
    position: absolute;
    left: 0;
    width: 64px;
    padding-left: 6px;
    font-size: 12px;
    line-height: 30px;
    color: #94a3b8;
}

.type-text:after {
    content: "\f107";
    font-family: FontAwesome;
    margin-left: 10px;
}

.search-group {
    display: none;
}

.s-current {
    display: block;
}

.search-type {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow-x: auto;
}

.search-type li {
    list-style: none;
    display: inline-block;
}

.search-type label {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    margin: 0 4px 0 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #8b9aaf;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.search-type input:checked + label,
.search-type input:hover + label {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e2e8f0;
    color: #1f2937;
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.14);
}

.hide-type-list .search-group {
    min-height: 30px;
}

.set-check {
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

.set-check input {
    margin-right: 6px;
    vertical-align: middle;
}

.main-content > .top-search-wrap,
.main-content > .top-quick-links,
.main-content > .top-runtime-note {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.main-content > .top-search-wrap {
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 767px) {
    #search-list {
        padding-left: 0;
        margin-bottom: 12px;
    }

    .s-type {
        position: static;
        width: 100%;
        margin-bottom: 10px;
    }

    .s-type > span,
    .type-text {
        display: none;
    }

    .s-type-list {
        display: block;
        position: static;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .s-type-list:before {
        display: none;
    }

    .s-type-list label {
        display: inline-flex;
        margin: 0 6px 6px 0;
        padding: 6px 10px;
        border: 1px solid #dbe4f3;
        border-radius: 999px;
        background: #fff;
    }

    #search form {
        border-radius: 16px;
    }

    #search-text {
        height: 48px;
        padding-right: 62px;
    }
}
