#graypage .member-wrap {
    min-height: calc(100vh - 180px);
}

#graypage .member-wrap .container.white_pal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 72px;
}

#graypage .commlist_row,
#graypage .input_row {
    float: none;
    box-sizing: border-box;
    width: auto;
    padding: 0;
}

#graypage .commlist_row {
    grid-column: 1;
    grid-row: 1;
}

#graypage .input_row {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 92px;
}

#graypage .commlist_row .pannel,
#graypage .input_row .pannel {
    box-sizing: border-box;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--tpl-border-soft);
    border-radius: 16px;
    background: var(--tpl-bg-muted) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.gbook_form_head {
    margin-bottom: 16px;
}

.gbook_form_head h2 {
    margin: 0;
    color: var(--tpl-text-strong);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

#graypage .gbook_form textarea.gbook_content {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    resize: vertical;
    border: 1px solid var(--tpl-border-soft);
    border-radius: 12px;
    background: var(--tpl-bg-base) !important;
    color: var(--tpl-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.7;
    transition: border-color .2s, box-shadow .2s;
}

#graypage .gbook_form textarea.gbook_content:focus {
    outline: none;
    border-color: var(--tpl-accent);
    box-shadow: 0 0 0 3px var(--tpl-accent-muted);
}

#graypage .gbook_form textarea.gbook_content::placeholder,
#graypage .msg_code .verify::placeholder {
    color: var(--tpl-text-subtle);
}

#graypage .msg_code {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 0 0;
}

#graypage .msg_code .remaining_w {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--tpl-text-muted);
    font-size: 13px;
    line-height: 20px;
}

#graypage .msg_code .gbook_remaining {
    color: var(--tpl-accent);
    font-weight: 700;
}

#graypage .msg_code .verify,
#graypage .msg_code .verify:focus {
    flex: 1 1 120px;
    box-sizing: border-box;
    width: auto !important;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--tpl-border-soft);
    border-radius: 10px;
    background: var(--tpl-bg-base) !important;
    color: var(--tpl-text);
    font-size: 14px;
    line-height: 44px;
}

#graypage .msg_code .verify:focus {
    outline: none;
    border-color: var(--tpl-accent);
    box-shadow: 0 0 0 3px var(--tpl-accent-muted);
}

#graypage .msg_code .comm-code {
    flex: 0 0 118px;
    box-sizing: border-box;
    width: 118px;
    height: 44px;
    margin: 0;
    object-fit: cover;
    border: 1px solid var(--tpl-border-soft);
    border-radius: 10px;
    background: #f5fbff;
}

#graypage .msg_code .gbook_submit {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 108px;
    height: 44px;
    margin-left: auto;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--tpl-accent);
    color: var(--tpl-text-on-inverse);
    font-size: 14px;
    font-weight: 700;
    line-height: 44px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#graypage .msg_code .gbook_submit:hover {
    background: var(--tpl-accent-hover);
    transform: translateY(-1px);
}

#graypage .comm_list .pannel_head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tpl-border-soft);
}

#graypage .comm_list .pannel_head .title {
    order: 1;
    margin: 0;
    color: var(--tpl-text-strong);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

#graypage .comm_list .pannel_head .pull_right {
    order: 2;
    float: none;
    color: var(--tpl-text-muted);
    font-size: 13px;
    line-height: 20px;
}

#graypage .comm_list .part_rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

#graypage .comm_list .comm_each {
    margin: 0;
    padding: 20px 0;
    border-top: 0;
    border-bottom: 1px solid var(--tpl-border-soft);
}

#graypage .comm_list .comm_each:last-child {
    border-bottom: 0;
}

#graypage .gbook-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 210px;
    margin: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--tpl-text-muted) !important;
    font-size: 14px;
}

.zishu {
    position: absolute;
    right: .5rem;
    top: 2rem;
}

@media (max-width: 900px) {
    #graypage .member-wrap .container.white_pal {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 76px 14px 48px;
    }

    #graypage .input_row,
    #graypage .commlist_row {
        position: static;
        width: 100%;
    }

    #graypage .input_row {
        order: 1;
    }

    #graypage .commlist_row {
        order: 2;
    }

    #graypage .commlist_row .pannel,
    #graypage .input_row .pannel {
        padding: 18px;
        border-radius: 14px;
    }

    #graypage .gbook_form textarea.gbook_content {
        min-height: 130px;
    }
}

@media (max-width: 520px) {
    #graypage .msg_code .verify,
    #graypage .msg_code .verify:focus {
        flex-basis: calc(100% - 128px);
    }

    #graypage .msg_code .gbook_submit {
        flex-basis: 100%;
        margin-left: 0;
    }

    #graypage .comm_list .pannel_head .pull_right {
        width: 100%;
    }
}
