.conf-ended-state[hidden],
#confActiveInfo[hidden],
#confControls[hidden] {
display: none !important;
}

.conf-status--permission-warning {
display: inline-block;
max-width: 270px;
padding: 9px 13px;
box-sizing: border-box;
background: #c62828;
color: #fff;
line-height: 1.4;
margin: 0 20px;
}

.conf-microphone-help[hidden] {
display: none !important;
}

.conf-microphone-help {
display: block;
max-width: 270px;
margin: 12px 14px 4px;
border-radius: 10px;
object-fit: contain;
background: #313746;
}

#confControls {
display: flex;
    width: -webkit-fill-available;
    max-width: calc(100vw - 24px);
    padding: 4px;
    z-index: 1;
    justify-content: center;
    gap: 3px;
    margin: 0;
    border-radius: 0;
    background: #121212;
}

#confControls .call-control-button {
width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    height: 45px;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    background: #282b33;
    color: #fff;
    cursor: pointer;
}

#confControls .call-control-button:hover {
transform: translateY(-2px);
}

#confControls .call-control-button:active {
transform: translateY(0);
}

#confControls .call-control-button img {
width: 24px;
}

#confControls #confEndBtn {
font-size: 11px;
line-height: 1.05;
background-color: #ff2312;
}

#confControls #confEndBtn:hover {
background-color: #d32f2f;
}

#confControls #confEndBtn img {
display: block;
margin: 0 auto;
padding: 0;
transform: rotate(105deg);
}

#confControls #confMuteBtn.active {
border: 0;
background: #1c1e25;
box-shadow: none;
}

#confControls #confMuteBtn.active img {
opacity: 0.1;
}

#confControls #confMuteBtn.muted {
background-color: #0000001a;
}

#confContent {
width: min(500px, calc(100vw - 16px));
}

#confActiveInfo {
width: 100%;
}

#confContent .invite-username {
font-size: 18px;
line-height: 1.25;
margin: 11px 45px 1px;
color: #f5f5f7;
}

#confContent .invite-timer {
font-size: 50px;
line-height: 1.05;
margin: 16px 0 0;
font-variant-numeric: tabular-nums;
}

#confContent #confStatus {
margin: 10px 15px 21px;
line-height: 1.2;
}

.conf-participants {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

.conf-participant-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0px;
}

.conf-participant-slot {
min-width: 0;
}

.conf-participant-media {
position: relative;
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
box-sizing: border-box;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 0px;
}

.conf-participant-slot--empty .conf-participant-media {
border-color: rgb(255 255 255 / 3%);
}

.conf-participant-invite {
display: none;
}

.conf-participant-slot--empty:not(.conf-participant-slot--occupied) .conf-participant-invite {
position: absolute;
inset: 0;
display: grid;
place-items: center;
align-content: center;
gap: 8px;
width: 100%;
height: 100%;
padding: 0;
border: 0;
background: transparent;
color: rgb(255 255 255 / 31%);
cursor: pointer;
FONT-WEIGHT: 500;
font-family: auto;
}

.conf-participant-invite__plus {
font-size: 65px;
line-height: 0.72;
}

.conf-participant-invite__label {
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: 13px;
font-weight: 500;
line-height: 1.2;
}

.conf-participant-slot--empty:not(.conf-participant-slot--occupied) .conf-participant-invite:hover,
.conf-participant-slot--empty:not(.conf-participant-slot--occupied) .conf-participant-invite:focus-visible {
background: rgba(255, 255, 255, 0.06);
color: #fff;
outline: none;
}

.conf-participant-avatar,
.conf-participant-video {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}

.conf-participant-avatar[hidden],
.conf-participant-video[hidden],
.conf-participant-fullscreen[hidden] {
display: none;
}

.conf-participant-slot--local .conf-participant-video {
transform: scaleX(-1);
}

.conf-participant-slot--local.conf-participant-slot--screen .conf-participant-video {
transform: none;
}

.conf-participant-slot--screen .conf-participant-video {
object-fit: contain;
background: #000;
}

.conf-participant-fullscreen {
position: absolute;
right: 7px;
bottom: 7px;
display: grid;
place-items: center;
width: 31px;
height: 31px;
padding: 0;
border: 0;
border-radius: 7px;
background: rgba(0, 0, 0, 0.78);
color: #fff;
font-size: 21px;
line-height: 1;
cursor: pointer;
z-index: 2;
}

.conf-participant-meter {
position: absolute;
left: 7px;
bottom: 7px;
width: 25px;
height: 25px;
pointer-events: none;
z-index: 2;
}

.conf-participant-meter__fill {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background: #00ee62;
opacity: 0;
transform: scale(0);
transform-origin: center;
transition: transform 90ms linear, opacity 90ms linear;
}

.conf-participant-name {
position: absolute;
left: 39px;
bottom: 8px;
z-index: 2;
max-width: calc(100% - 82px);
overflow: hidden;
color: #fff;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: 12px;
font-weight: 600;
line-height: 1.2;
text-overflow: ellipsis;
text-shadow: 0 1px 4px #000, 0 0 8px #000;
white-space: nowrap;
pointer-events: none;
}

.conf-participant-name[hidden] {
display: none;
}

.conf-participant-slot:fullscreen {
display: grid;
place-items: center;
width: 100vw;
height: 100vh;
padding: 0;
background: #000;
}

.conf-participant-slot:fullscreen .conf-participant-media {
width: 100vw;
height: 100vh;
aspect-ratio: auto;
border: 0;
border-radius: 0;
}

.conf-participant-slot:fullscreen .conf-participant-video {
object-fit: contain;
transform: none;
}

.conf-participant-slot:fullscreen .conf-participant-meter {
display: none;
}

.conf-participant-slot:fullscreen .conf-participant-name {
left: 18px;
bottom: 18px;
max-width: calc(100% - 90px);
font-size: 15px;
}

.conf-participant-slot:fullscreen .conf-participant-fullscreen {
position: fixed;
right: 18px;
bottom: 18px;
width: 42px;
height: 42px;
}

.conf-chat[hidden],
.conf-chat-composer[hidden],
.conf-chat-send-button[hidden],
.conf-chat-composer__error[hidden] {
display: none !important;
}

.conf-chat {
display: block;
width: -webkit-fill-available;
height: 78px;
box-sizing: border-box;
text-align: left;
}

.conf-chat-messages {
height: 100%;
padding: 6px;
overflow-x: hidden;
overflow-y: auto;
box-sizing: border-box;
background: #191a20;
scrollbar-width: thin;
scrollbar-color: #4a4d58 #191a20;
}

.conf-chat-messages:empty::before {
content: "Сообщений пока нет";
display: block;
padding-top: 22px;
color: rgba(255, 255, 255, 0.36);
font-size: 17px;
text-align: center;
}

.conf-chat-message {
display: flex;
align-items: flex-end;
gap: 7px;
margin-bottom: 5px;
}

.conf-chat-message:last-child {
margin-bottom: 0;
}

.conf-chat-message--own {
flex-direction: row-reverse;
}

.conf-chat-message__avatar {
flex: 0 0 20px;
width: 26px;
height: 26px;
border-radius: 50%;
object-fit: cover;
background: #30323a;
}

.conf-chat-message__bubble {
max-width: calc(100% - 30px);
padding: 4px 11px;
border-radius: 8px 8px 8px 2px;
box-sizing: border-box;
background: #2c2f38;
color: #f4f4f5;
font-size: 15px;
line-height: 1.3;
white-space: pre-wrap;
overflow-wrap: anywhere;
}

.conf-chat-message--own .conf-chat-message__bubble {
border-radius: 8px 8px 2px 8px;
background: #353743;
}

.conf-chat-message__bubble a {
color: #86bdff;
text-decoration: underline;
text-underline-offset: 2px;
}

#confControls .conf-chat-open-button img {
display: block;
width: 23px;
height: 23px;
object-fit: contain;
}

.conf-chat-composer {
position: absolute;
inset: 0;
display: grid;
place-items: center;
z-index: 20;
border-radius: inherit;
background: rgba(10, 11, 14, 0.74);
backdrop-filter: blur(5px);
}

.conf-chat-composer__dialog {
position: relative;
width: 90%;
height: 70%;
overflow: hidden;
box-sizing: border-box;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 14px;
background: #202127;
box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.conf-chat-composer__textarea {
display: block;
width: 100%;
height: 100%;
padding: 19px 42px 52px 20px;
resize: none;
outline: none;
box-sizing: border-box;
border: 0;
background: transparent;
color: #ffffffe8;
font: inherit;
font-size: 17px;
line-height: 1.45;
}

.conf-chat-composer__textarea::placeholder {
color: rgba(255, 255, 255, 0.38);
}

.conf-chat-composer__close {
position: absolute;
top: 6px;
right: 6px;
display: grid;
place-items: center;
width: 30px;
height: 30px;
padding: 0;
border: 0;
border-radius: 8px;
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-size: 23px;
line-height: 1;
cursor: pointer;
z-index: 2;
}

.conf-chat-send-button {
position: absolute;
right: 10px;
bottom: 10px;
display: grid;
place-items: center;
width: 38px;
height: 38px;
padding: 0 2px 1px 0;
border: 0;
border-radius: 50%;
background: #16b957;
color: #fff;
font-size: 20px;
line-height: 1;
cursor: pointer;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.conf-chat-send-button:disabled {
opacity: 0.55;
cursor: wait;
}

.conf-chat-composer__error {
position: absolute;
left: 10px;
right: 55px;
bottom: 10px;
margin: 0;
padding: 5px 7px;
border-radius: 6px;
background: #b51f1f;
color: #fff;
font-size: 10px;
line-height: 1.2;
text-align: left;
}

@media (max-width: 319px) {
#confControls {
--conf-control-width: 64px;
}
}

.conf-ended-state {
width: min(100%, 540px);
margin: auto;
padding: 36px 24px 28px;
box-sizing: border-box;
text-align: center;
color: #fff;
}

.conf-ended-state__icon {
display: grid;
place-items: center;
width: 58px;
height: 58px;
margin: 0 auto 20px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
font-size: 29px;
line-height: 1;
}

.conf-ended-state h2 {
margin: 0 0 12px;
font-size: clamp(25px, 5vw, 34px);
line-height: 1.2;
}

.conf-ended-state p {
margin: 0 auto;
max-width: 460px;
color: rgba(255, 255, 255, 0.78);
font-size: 16px;
line-height: 1.55;
}

.conf-ended-state__actions {
display: flex;
justify-content: center;
gap: 12px;
margin-top: 28px;
}

.conf-ended-state__actions button, .conf-ended-state__actions a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
box-sizing: border-box;
color: #fff;
font: inherit;
font-weight: 600;
text-decoration: none;
cursor: pointer;
}

.conf-ended-state__actions button {
border-color: #4f8cff;
background: #3478f6;
}

.conf-ended-state__actions a {
background: rgba(255, 255, 255, 0.1);
}

.conf-ended-state__actions button:hover {
background: #2468e8;
}

.conf-ended-state__actions a:hover {
background: rgba(255, 255, 255, 0.17);
}

@media (max-width: 560px) {
.conf-ended-state {
padding: 30px 16px 22px;
}

.conf-ended-state__actions {
flex-direction: column;
}

.conf-ended-state__actions button, .conf-ended-state__actions a {
width: 100%;
}
}
