.user-select-none {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.no-cursor {
    cursor: default !important;
}

.auth-page {
    width: 100%;
    padding: 100px 20px;
}

.auth-container {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
}

.page-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 90rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 3vw, 2.5rem);
}

.page-shell > * {
    min-width: 0;
}

.auth-page {
    padding-block: clamp(2rem, 8vh, 6rem);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select:not(.select2-hidden-accessible) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background-color: #111111;
    color: #f5f5f5;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.5rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
select:not(.select2-hidden-accessible) {
    min-height: 2.875rem;
    padding: 0.625rem 0.875rem;
}

textarea {
    min-height: 7rem;
    padding: 0.75rem 0.875rem;
    resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
textarea:focus,
select:not(.select2-hidden-accessible):focus {
    border-color: #ef2929;
    background-color: #141414;
    box-shadow: 0 0 0 3px rgba(239, 41, 41, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #737373;
    opacity: 1;
}

select:not(.select2-hidden-accessible) {
    color-scheme: dark;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #ef2929;
}

input[type="file"]:not(.sr-only) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: #111111;
    padding: 0.5rem;
    color: #a3a3a3;
    font-size: 0.8125rem;
}

input[type="file"]:not(.sr-only)::file-selector-button {
    margin-right: 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.625rem 0.875rem;
    color: #f5f5f5;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease;
}

input[type="file"]:not(.sr-only)::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.publication-actions > summary::-webkit-details-marker {
    display: none;
}

.publication-actions > summary::marker {
    content: '';
}

.publication-card {
    overflow: visible;
}

.publication-card-image {
    border-radius: 1rem 1rem 0 0;
}

.publication-report-dialog {
    width: min(32rem, calc(100% - 2rem));
    max-width: 32rem;
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: #1b1b1b;
    color: #f5f5f5;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.publication-report-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.publication-modal {
    width: min(48rem, calc(100% - 1.5rem));
    max-width: 48rem;
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: #171717;
    color: #f5f5f5;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.publication-modal[open] {
    display: flex;
    flex-direction: column;
}

.publication-modal::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.publication-modal-panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 639px) {
    .publication-modal {
        width: calc(100% - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 1rem;
    }
}

