#page-view {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 608px;
    margin: 0 auto;
    padding: 28px 40px;
}



#page-navigation {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 56px;
    width: 100%;
    background: white;
    z-index: 100;
}

#page-navigation .button-back {
    width: 28px;
    height: 28px;
    margin-left: 7px;
}

#page-navigation .button-open {
    width: 24px;
    height: 24px;
    margin: 2px 0 0 3px;
}

#page-navigation .title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

#page-navigation-center {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

#page-navigation.open .button-open {
    transform: rotateX(180deg);
}



#page-topic {
    display: none;
    position: fixed;
    top: 56px;
    width: 100%;
    padding: 0 16px 26px;
    background: white;
    z-index: 100;
}

#page-topic.open {
    display: block;
}

#page-topic .chapter {
    display: block;
}

#page-topic .chapter:first-child {
    border-top: 1px solid #E5E7EB;
    padding-top: 20px;
}

#page-topic .chapter:last-child {
    margin-bottom: 0;
}



#page-video {
    position: relative;
    width: 100%;
    height: 690px;
    margin-bottom: 24px;
}

#page-video video,
#page-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

#page-video-chapter {
    position: absolute;
    display: none;
    margin: 15px 0 0 17px;
    height: 42px;
    padding: 13px 16px 0;
    border-radius: 20px;
    background: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
}



#page-previous,
#page-next {
    position: absolute;
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    padding: 4px;
    margin-top: -63px;
    background: #F2F2F288;
    z-index: 10;
    cursor: pointer;
}

#page-previous:hover,
#page-next:hover {
    background: #F2F2F2;
}

#page-previous {
    left: 11px;
}

#page-next {
    right: 11px;
}



#page-top {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    grid-template-areas: "title title" "description description";
}

#page-title {
    grid-area: title;
    font-size: 19px;
    font-weight: 700;
    line-height: 24px;
    margin-right: auto;
}

#page-description {
    grid-area: description;
    margin-top: 11px;
    margin-bottom: 20px;
    width: 80%;
    font-size: 16px;
    line-height: 24px;
}

#page-up {
    display: none;
    grid-area: toggle;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#page-view.up #page-up {
    transform: rotate(180deg);
}



#page-statistics {
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 17px 20px 6px;
    margin-bottom: 30px;
}

#page-statistics .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    margin-bottom: 5px;
}

#page-statistics .content {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 9px;
}

#page-statistics .reference {
    font-size: 13px;
    line-height: 13px;
    color: #007AFF;
    margin-bottom: 19px;
    cursor: pointer;
}

#page-statistics .reference:hover {
    text-decoration: underline;
}



#page-actions {
    padding-bottom: 6px;
}

#page-actions .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    margin-bottom: 11px;
}

#page-actions .action {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 15px 21px 15px 19px;
    margin-bottom: 11px;
}

#page-actions .action .priority {
    display: flex;
    align-items: center;
}

#page-actions .action .priority img {
    width: 13px;
    height: 13px;
    margin: 0 4px 1px 0;
}

#page-actions .action .priority span {
    font-size: 13px;
    line-height: 28px;
    color: #909090;
}

#page-actions .action .content {
    font-size: 16px;
    line-height: 22px;
    padding: 0 0 5px 1px;
    margin-right: 35px;
}

#page-actions .action .submit {
    display: flex;
    align-items: center;
    height: 35px;
    width: fit-content;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid #D9D9D9;
    border-radius: 17.5px;
    cursor: pointer;
}

#page-actions .action .submit svg {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    color: #2D3648;
}

#page-actions .action .submit .value {
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    padding-bottom: 1px;
}

#page-actions .action .submit .value span {
    font-weight: 700;
}

#page-actions .action .submit:hover svg,
#page-actions .action .submit:hover .value {
    opacity: .3;
}

#page-actions .action.loading .submit {
    pointer-events: none;
    opacity: .5;
}

#page-actions .action.done .submit {
    pointer-events: none;
}

#page-actions .action.done .submit svg {
    color: #34C759;
}



#page-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 4px;
}

#page-tags .tag {
    height: 32px;
    width: fit-content;
    padding: 6px 16px 0;
    background: #F5F5F5;
    border-radius: 16px;
}



#page-references {
    margin-bottom: 30px;
}

#page-references .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    margin-bottom: 5px;
}

#page-references .reference {
    display: flex;
    align-items: start;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 11px;
}



@media only screen and (max-width: 720px) {

    #page-view {
        max-width: unset;
        padding: 56px 0 82px;
        height: 100%;
        overflow: scroll;
        overscroll-behavior: none;
    }

    #page-navigation {
        display: grid;
    }

    #page-video {
        top: 0;
        position: fixed;
        margin-top: 56px;
        height: 65vh;
        margin-bottom: 0;
    }

    #page-video video,
    #page-video iframe {
        border-radius: 0;
    }

    #page-video-chapter,
    #page-previous,
    #page-next {
        display: block;
    }

    #page-wrap {
        background: white;
        border-radius: 15px 15px 0 0;
        padding: 20px 16px;
        z-index: 10;
        margin-top: calc(65vh - 15px);
        transition: all .2s ease-out;
    }

    #page-wrap.up {
        margin-top: 20vh;
    }

    #page-wrap.up #page-up {
        transform: rotateX(180deg);
    }

    #page-top {
        grid-template-areas: "title toggle" "description description";
    }

    #page-up {
        display: block;
    }

    #page-description {
        padding-left: 1px;
        margin-bottom: 17px;
        width: 90%;
    }

    #page-statistics {
        margin-bottom: 17px;
    }

    #page-statistics .reference:hover {
        text-decoration: none;
    }

    #page-actions {
        margin-bottom: 0;
    }

    #page-actions .action {
        display: block;
        padding-bottom: 17px;
    }

    #page-actions .action .submit {
        margin: 11px 0 0;
    }

    #page-actions .action .submit:hover svg,
    #page-actions .action .submit:hover .value {
        opacity: 1;
    }

    #page-references {
        margin-bottom: 17px;
    }
}
