body {
    touch-action: pan-x pan-y;
}
.messages-root {
    position: fixed;
    left: 0;
    top: 64px;
    width: 380px;
    height: calc(100vh - 64px);
    border-right: 1px solid #eee;
    transition: left 200ms;
    z-index: 2;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.messages-root .conversation {
    border-bottom: 1px solid #e7e7e7;
    width: calc(100% - 4px);
    border-left: 4px solid #fff;
    padding: 0;
    position: relative;
    height: 80px;
    cursor: pointer;
}
.messages-root .conversation:hover {
    border-left: 4px solid #f7f7f7;
    background: #f6f6f6;
}
.messages-root .conversation.selected {
    border-left: 4px solid var(--accent);
    width: calc(100% - 4px);
    background: #f6f6f6;
}
.messages-root .conversation img {
    background: #fff;
    position: absolute;
    top: 16px;
    border-radius: 24px;
    border: 1px solid #EFEFEF;
    left: 4px;
    height: 48px;
    padding: 0;
}
.messages-root .conversation .title {
    position: absolute;
    top: 22px;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
    width: calc(100% - 140px);
    font-size: 16px;
    left: 62px;
    color: #171717;
    overflow: hidden;
}
.messages-root .conversation.unread .title {
    font-weight: 700;
}
.messages-root .conversation .subtitle {
    text-overflow: ellipsis;
    overflow-x: hidden;
    width: calc(100% - 96px);
    top: 44px;
    text-align: left;
    position: absolute;
    white-space: nowrap;
    font-weight: 400;
    font-size: 14px;
    left: 62px;
    color: #797979;
    overflow: hidden;
}
.messages-root .conversation .time {
    position: absolute;
    right: 16px;
    top: 25px;
    color: #888;
    font-size: 12px;
}
.messages-root .messages-empty {
    border-bottom: 1px solid #e7e7e7;
    padding: 18px;
    text-align: center;
}
.conversation-container {
    position: fixed;
    left: 380px;
    top: 64px;
    width: calc(100vw - 380px);
    height: calc(100vh - 64px);
    z-index: 1;
}
.conversation-container .no-applications {
    position: absolute;
    width: calc(100% - 32px);
    top: calc(50% - 24px);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.no-applications img {
    width: 80%;
    max-width: 240px;
}
.no-applications .title {
    font-size: 28px;
    font-weight: 500;
    padding: 16px 0;
}
.no-applications .inline-link {
    color: #00667b;
    text-decoration: none;
    cursor: pointer;
}
.no-applications .subtitle {
    font-weight: 400;
}
.conversation-header {
    border-bottom: 1px solid #e2e2e2;
    height: 168px;
    position: absolute;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 2;
}
.conversation-header > img {
    position: absolute;
    width: 96px;
    height: 96px;
    top: 36px;
    padding: 0;
    left: 60px;
    border: 1px solid #EFEFEF;
    border-radius: 48px;
}
.conversation-header .title {
    position: absolute;
    top: 32px;
    left: 190px;
    font-size: 20px;
    font-weight: 500;
    width: calc(100% - 240px);
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
}
.conversation-header .subtitle {
    position: absolute;
    top: 64px;
    left: 190px;
    font-size: 16px;
    color: #797979;
    width: calc(100% - 200px);
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
}
.conversation-header .label {
    position: absolute;
    top: 100px;
    left: 190px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.conversation-header .application-deadline {
    position: absolute;
    top: 120px;
    left: 190px;
}
.conversation-header .back-button {
    height: 32px;
    color: #171717;
    padding: 0;
    margin: 8px 12px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 22px;
    left: 8px;
    display: none;
}
.conversation-header .back-button img {
    height: 24px;
}
.content-container {
    position: absolute;
    left: 0;
    top: 160px;
    width: 100%;
    height: calc(100% - 208px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.message-container {
    position: relative;
    padding: 4px;
}
.message-container.self {
    text-align: right;
}
.message-container.other {
    text-align: left;
    padding-left: 48px;
    min-height: 26px;
}
.message-container > img {
    position: absolute;
    bottom: 8px;
    left: 8px;
    border: 1px solid #eee;
    border-radius: 20px;
    width: 32px;
    height: 32px;
}
.message-container .typing img {
    width: 40px;
    transform: translateY(10px);
}
.message-container .author {
    position: absolute;
    top: 0;
    left: 56px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}
.message-container .subtitle {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #555;
}
.message-container .timestamp {
    position: absolute;
    color: #777;
    font-size: 12px;
}
.message-container.self .timestamp {
    right: 40px;
    top: 0;
}
.message-container.other .timestamp {
    right: calc(100% - 460px);
    top: 42px;
}
.message-container .message {
    position: relative;
    display: inline-block;
    padding: 10px 48px 10px 10px;
    margin: 2px 2px 2px 0;
    border-radius: 8px;
    text-align: left;
    word-break: break-word;
}
.new-message {
    animation: new-message-keyframes 200ms forwards ease-out;
}
@keyframes new-message-keyframes {
    0% {opacity: 0; transform: translateY(10px);}
    100% {opacity: 1; transform: translateY(0);}
}
.message-container.self .message {
    background: #f6f6f6;
    margin-left: calc(100% - 500px);
}
.message-container.other .message {
    background: var(--accent);
    margin-right: calc(100% - 500px);
}
.message-container .message .message-timestamp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 12px;
    color: var(--stub);
}
.message-container.other .message .message-timestamp {
    color: var(--text-light);
}
.response-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 48px;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 290px;
    /*height: 100%;*/
    overflow-y: auto;
}
.response-container .no-response-container {
    height: 32px;
    line-height: 32px;
    padding: 8px 16px;
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    color: #797979;
    background: #EEEEEC;
}
.response-container .single-choice-container, .response-container .multi-choice-container {
    white-space: nowrap;
    padding: 10px 100px 0 10px;
    overflow-x: hidden;
    overflow-y: auto;
}
.response-container .single-choice, .response-container .multi-choice {
    display: block;
    width: max-content;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e2e2;
    background: #f6f6f6;
    border-radius: 16px;
    cursor: pointer;
    white-space: initial;
    max-width: calc(100% - 40px);
    height: auto;
    overflow-wrap: break-word;
    padding: 8px 12px;
    margin: 6px 5px 8px 0;
    line-height: 14px;
}
.response-container .multi-choice.selected, .response-container .single-choice.selected {
    border: 1px solid var(--accent);
    background: var(--accent);
}
.multiple-choice-check-container {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 17px;
}
.multiple-choice-check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.multiple-choice-checkmark {
    top: -1px;
    left: -1px;
    height: 15px;
    width: 15px;
    background-color: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    display: inline-block;
    vertical-align: top;
}
.multiple-choice-check-container input:checked ~ .multiple-choice-checkmark {
    border: 1px solid var(--accent);
}
.multiple-choice-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.multiple-choice-check-container input:checked ~ .multiple-choice-checkmark:after {
    display: block;
}
.multiple-choice-check-container {
    cursor: pointer;
    vertical-align: top;
}
.multiple-choice-check-container .multiple-choice-checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 1px 1px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.multi-choice-fadeout {
    position: absolute;
    text-align: center;
    right: 0;
    top: 0;
    height: 48px;
    width: 110px;
    background: linear-gradient(to right, #fff0 0%, #ffff 15%);
}
.chat-end {
    height: 0;
    display: block;
}
@media screen and (max-width: 1200px) {
    .message-container .message {
        max-width: 70%;
    }
    .message-container.other .timestamp {
        right: calc(50vw - 240px);
    }
}
.send-button {
    position: fixed;
    text-align: center;
    right: 8px;
    bottom: 8px;
    height: 32px;
    width: 80px;
    line-height: 32px;
    border-radius: 4px;
    background: var(--accent);
    background-size: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
@media screen and (max-width: 800px) {
}
@media screen and (max-width: 640px) {
    .send-button {
        bottom: 8px;
    }
}
.message-input {
    border: none;
    margin-top: 8px;
    vertical-align: bottom;
    margin-bottom: 8px;
    resize: none;
    background: #fff;
    width: calc(100% - 96px);
    font-size: 16px;
    padding: 6px 0 6px 16px;
    height: 48px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 32px;
}
.message-input:focus {
    border: none;
}
.student-event {

}
@media screen and (max-width: 800px) {
    .response-container .no-response-container {
        width: calc(100vw - 380px);
        line-height: 16px;
        display: table-cell;
        vertical-align: middle;
    }
    .conversation-options-popup {
        width: calc(100vw - 380px) !important;
        left: 380px !important;
    }
}
@media screen and (max-width: 800px) {
    .conversation-container, .messages-root {
        top: 0;
    }
    .messages-root {
        width: calc(50vw - 20px);
    }
    .conversation-container {
        left: calc(50vw - 20px);
        width: calc(50vw + 20px);
    }
    .desktop-only {
        display: none;
    }
    .message-container.other .timestamp {
        display: none;
    }
    .conversation-options-popup {
        width: calc(50vw + 20px) !important;
        left: calc(50vw - 20px) !important;
    }
}
@media screen and (max-width: 800px){
    .messages-root {
        width: 100vw;
    }
    .conversation-container {
        left: 0;
        width: 100vw;
        overflow-y: hidden;
    }
    .no-mobile-header {
        overflow-y: hidden;
    }
    .conversation-header {
        height: 80px;
    }
    .conversation-header .back-button {
        display: block;
    }
    .messages-root.detail-focused {
        left: -100vw;
    }
    .student-header.detail-focused {
        bottom: -64px !important;
    }
    .conversation-header > img {
        width: 32px;
        height: 32px;
        padding: 4px;
        border-radius: 20px;
        top: 20px;
        left: 50px;
    }
    .conversation-header .title {
        left: 100px;
        top: 24px;
        font-size: 16px;
        width: calc(100% - 162px);
        overflow-y: hidden;
    }
    .conversation-header .subtitle {
        left: 100px;
        top: 42px;
        font-size: 16px;
        width: calc(100% - 148px);
    }
    .conversation-header .label, .conversation-header .application-deadline {
        display: none;
    }
    .content-container {
        top: 80px;
        height: 100%;
    }
    .message-container .message {
        margin-right: 1px;
    }
    .message-container.other .timestamp {
        right: calc(20% + 10px);
        display: block;
    }
    .response-container {
        position: fixed;
        bottom: 0;
    }
    .response-container .no-response-container {
        width: 100vw;
    }
    .chat-end {
        height: 80px;
    }
    .conversation-options-popup {
        width: 100vw !important;
        left: 0 !important;
    }
}
@media only screen and (min-device-width : 375px) and (max-device-width : 812px) and (-webkit-device-pixel-ratio : 3) and (orientation : portrait) {
    .chat-end {
        height: 180px;
    }
}
.chat-ui-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin: 8px;
}
.chat-ui-profile {
    font-size: 12px;
    font-weight: 700;
    color: #00667B;
    line-height: 28px;
    text-decoration: none;
}
.chat-ui-profile-img {
    height: 12px;
    opacity: 0.6;
    margin-bottom: -1px;
}
.message-container .message.typing {
    background: none;
    width: 32px;
    margin-top: -20px;
    margin-bottom: -4px;
}
.option-message-student {
    z-index: 99;
    position: absolute;
    height: 32px;
    cursor: pointer;
    transition: transform 200ms;
    margin: 0;
    padding: 0;
    top: 26px;
    right: 0;
}
.option-message-student:hover {
    transform: scale(1.05);
}
#student_event_options_container {
    right: -14px;
    top: 64px;
}
.button {
    display: inline-block;
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 12px 24px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    cursor: pointer;
}
.button.accent {
    background: var(--accent);
    border: none;
}
.button.accent:hover {
    background: var(--accent-hover);
}
.interest {
    background: #f6f6f6;
    color: #171717;
    font-weight: 500;
    font-size: 12px;
    border-radius: 20px;
    line-height: 32px;
    padding: 0 20px;
    display: inline-block;
    margin: 4px;
    position: relative;
}
.user-profile .category-exit {
    display: none;
    height: 24px;
    width: 24px;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}
@media screen and (max-width: 800px) {
    .user-profile .category-exit {
        display: block;
    }
    .user-profile .category-label {
        margin-top: 64px;
        font-weight: 700 !important;
        font-size: 12px;
        letter-spacing: 1px;
        margin-left: 16px;
        margin-bottom: 12px;
        color: #171717 !important;
    }
    .user-profile .link {
        font-weight: 400;
        font-size: 12px;
        letter-spacing: 1px;
        color: #000;
        margin-left: 20px;
        line-height: 8px;
    }
    /*.send-button {*/
    /*    bottom: 74px;*/
    /*}*/
}
@media screen and (max-width: 640px) {
    .send-button {
        bottom: 8px;
    }
}
@media screen and (min-width: 1050px) {
    .response-container .single-choice, .response-container .multi-choice {
        max-width: 500px;
    }
}