.page.four {
    align-items: center;
}

.page.four .page-toggle-control {
    width: 100%;
    display: flex;
    gap: 0.5em;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5em 0 1em;
    border-bottom: 1px solid;
    position: relative;
}

.page.four .page-toggle-control .button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.35em;
    text-transform: uppercase;
    font-weight: 400;
    z-index: 1000;
}

.page.four .page-toggle-control .button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border: 0.25px solid #aaaaaa;
    border-radius: 50%;
}

.page.four .page-toggle-control .button .icon svg {
    scale: 85%;
}

.page.four .page-toggle-control .button:hover {
}

.page.four .page-toggle-control .agent-icon {
    position: absolute;
    left: calc(50% - 1em);
    bottom: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0.25px solid #aaaaaa;
    width: 2em;
    height: 2em;
    border-radius: 50%;
}

.page.four .page-toggle-control .agent-icon .shape-avatar-preview {
    position: relative;
/*    translate: -50% -50%;*/
    border-radius: 50%;
/*    overflow: hidden;*/
    width: 100%;
    height: 100%;
/*    scale: 50%;*/
}

.page.four .page-toggle-control .agent-icon .shape-avatar-preview .card-backgrounds {
    filter: blur(0.25em);
    width: 100%;
    height: 100%;
}

.page.four .page-toggle-control .agent-icon .shape-avatar-preview .constructed-shape {
    position: relative;
    width: 100%;
    height: 100%;
}
/*.page.four .page-toggle-control .agent-icon .shape-avatar-preview .constructed-shape svg {*/
/*    transform-origin: top left;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    scale: 8%;*/
/*}*/

.page.four .page-toggle-control .button.selected {
    background-color: #000000;
    color: #ffffff;
    stroke: #ffffff;
}

.page.four .conversation-interface {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.page.four .conversation-interface .message-scroll-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    overflow-x: hidden;
    overflow-y: scroll;
    flex-grow: 2;
    z-index: 500;
    scroll-behavior: smooth;
}

.page.four .conversation-interface .message-scroll-area .message {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1em;
/*    font-size: 0.75em;*/
    font-weight: 500;
}

.page.four .conversation-interface .message-scroll-area .message.user {
    align-items: center;
    justify-content: center;
    font-family: "DM Serif Display", serif;
    text-align: center;
}

.page.four .conversation-interface .message-scroll-area .message.user::before {
    width: 100%;
    padding-bottom: 1em;
    border-bottom: 0.5px solid;
}

.page.four .conversation-interface .message-scroll-area .message.user:nth-child(2)::before {
    content: "I";
}

.page.four .conversation-interface .message-scroll-area .message.user:nth-child(4)::before {
    content: "II";
}

.page.four .conversation-interface .message-scroll-area .message.user:nth-child(6)::before {
    content: "III";
}

.page.four .conversation-interface .message-scroll-area .message.user:nth-child(8)::before {
    content: "IV";
}
.page.four .conversation-interface .message-scroll-area.regenerating::after {
    width: 24px;
    height: 24px;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg%20id='spinner'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z'%20transform='translate(12,%2012)%20scale(0)'%3e%3canimateTransform%20attributeName='transform'%20calcMode='spline'%20type='translate'%20dur='1.2s'%20values='12%2012;0%200'%20keySplines='.52,.6,.25,.99'%20repeatCount='indefinite'/%3e%3canimateTransform%20attributeName='transform'%20calcMode='spline'%20additive='sum'%20type='scale'%20dur='1.2s'%20values='0;1'%20keySplines='.52,.6,.25,.99'%20repeatCount='indefinite'/%3e%3canimate%20attributeName='opacity'%20calcMode='spline'%20dur='1.2s'%20values='1;0'%20keySplines='.52,.6,.25,.99'%20repeatCount='indefinite'/%3e%3c/path%3e%3c/svg%3e");
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75em;
}

.page.four .conversation-interface .input-area {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.page.four .conversation-interface .input-area .preselected-input-messages {
    position: relative;
    width: 100%;
    opacity: 1;
}

.page.four .conversation-interface .input-area .preselected-input-messages.hidden {
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
}

.page.four .conversation-interface .input-area .message {
    position: absolute;
    top: 0;
/*    left: calc(50% - 10dvw);*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid;
    padding: 0 1em;
    border-radius: 0.5em;
    font-family: "DM Serif Display", serif;
    transition: all 0.5s;
}

.page.four .conversation-interface .input-area .message.selected {
    pointer-events: none;
    transform: unset;
    z-index: 100;
}

.page.four .conversation-interface .input-area .message::before {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #000000;
    content: "";
    top: 0.5em;
    left: 0.5em;
}

.page.four .conversation-interface .input-area .message::after {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #000000;
    content: "";
    bottom: 0.5em;
    right: 0.5em;
}

.page.four .conversation-interface .input-area .custom-input-field {
    display: flex;
    gap: 0.5em;
    align-items: center;
    justify-content: space-between;
    border: 0.25px solid;
    padding: 0.5em;
    border-radius: 0.5em;
    transition: opacity 0.5s;
}

.page.four .conversation-interface .input-area .custom-input-field.disabled {
    border: none;
    opacity: 0.25;
    pointer-events: none;
}

.page.four .conversation-interface .input-area .custom-input-field.disabled:before {
    content: "";
    font-size: 0.75em;
    color: #424242;
}

.page.four .conversation-interface .input-area .custom-input-field.disabled input {
    display: none;
}

.page.four .conversation-interface .input-area .custom-input-field input {
    font-family: Montserrat, monospace;
    text-align: unset;
    background: none;
    width: 100%;
    border: none;
    outline: none;
}
.page.four .conversation-interface .input-area .custom-input-field input::placeholder {
    color: #424242;
}

.page.four .conversation-interface .input-area .custom-input-field:not(.active) {
    border: none;
}

.page.four .conversation-interface .input-area .custom-input-field:not(.active) input {
    text-align: center;
}

.page.four .conversation-interface .input-area .custom-input-field .send-button {
    display: flex;
    align-items: center;
    justify-content: center;
}