.input--error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

.resend-link {
    color: #e53e3e;
    cursor: pointer;
    text-decoration: underline;
    user-select: none;
}

.resend-link:focus {
    outline: 2px solid #3182ce;
}

.prose :where(li):not(:where([class~=not-prose] *)) {
    color: var(--color-slate-500);
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.avatar-uploader__preview {
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

html {
    scroll-behavior: smooth;
}

.scroll-target {
    scroll-margin-top: 110px;
}

.select[required] {
    display: block;
    height: 0;
    border: 1px solid transparent;
    margin-bottom: -2px;
}

.button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hover-text-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    cursor: pointer;
}

.hover-text-switch .default-text,
.hover-text-switch .hover-text {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.hover-text-switch .hover-text {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    bottom: 0;
    width: 100%;
}

.hover-text-switch:hover .default-text {
    opacity: 0;
}

.hover-text-switch:hover .hover-text {
    opacity: 1;
}

.button-disabled-hover:hover {
    background-color: #62748e;
}

.img-element--placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #F5F5F5;
    background-image: url('/img/placeholder-img/img-placeholder.svg');
    background-size: 40% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.avatar-element--placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #F5F5F5;
    background-image: url('/img/placeholder-img/user-placeholder.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.modal__step {
    transition: opacity 0.3s ease;
}

.modal__step--hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.modal__step--visible {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: all;
}

.modal__steps-container {
    position: relative;
    min-height: 300px;
}

.modal.modal--topmost {
    z-index: 9999 !important;
}

.video-player-svg {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: indigo;
    background-image: url('/img/placeholder-img/user-placeholder.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.speaker-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.speaker-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-upload__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.speaker-upload__button--disabled {
    pointer-events: none;
}

.speaker-upload__filename {
    color: #62748e;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.speaker-upload__status {
    color: #62748e;
    font-size: 13px;
    line-height: 1.4;
}

.stream-upload-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    z-index: 10;
    pointer-events: all;
}

.stream-upload-spinner__icon {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: stream-spin 0.7s linear infinite;
}

.stream-upload-spinner__text {
    font-size: 14px;
    color: #62748e;
    font-weight: 500;
}

@keyframes stream-spin {
    to { transform: rotate(360deg); }
}
