@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Dark mode (default) */
:root {
    --gold: #d4a017;
    --gold-light: #3d3211;
    --gold-glow: rgb(212, 160, 23, 0.3);
    --dark: #0b0f19;
    --dark-soft: #151b2b;
    --bg: #111827;
    --card: #1f2937;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #374151;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgb(0,0,0,0.2);
    --shadow: 0 1px 3px rgb(0,0,0,0.3), 0 1px 2px rgb(0,0,0,0.2);
    --shadow-lg: 0 10px 40px rgb(0,0,0,0.4);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode */
[data-theme="light"] {
    --gold-light: #f5e6b8;
    --gold-glow: rgb(212, 160, 23, 0.35);
    --dark: #111827;
    --dark-soft: #1f2937;
    --bg: #f8f9fb;
    --card: #fff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgb(0,0,0,0.05);
    --shadow: 0 1px 3px rgb(0,0,0,0.07), 0 1px 2px rgb(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgb(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */

header {
    background: var(--dark);
    color: #fff;
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgb(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: inherit;
    text-decoration: none;
    color: var(--gold);
}

.header-logo {
    height: 1.6em;
    width: auto;
    border-radius: 4px;
}

#auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

#auth-logged-in {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#user-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.user-link {
    text-decoration: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0;
    cursor: pointer;
}

.user-link:hover {
    color: var(--gold);
}

/* ---------- Main layout ---------- */

main {
    padding: 2rem;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    height: calc(100vh - 64px);
    overflow: hidden;
}

/* ---------- Sidebar ---------- */

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: calc(100vh - 64px - 4rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.sidebar-nav h2 {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
}

.nav-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-btn:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--text);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

#events {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 0.5rem;
}

#events li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

#events li:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold-glow);
    transform: translateX(2px);
}

#events li.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--card), var(--gold-light));
    box-shadow: 0 0 0 2px var(--gold-glow);
}

.event-preview {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.event-info {
    min-width: 0;
}

.event-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Content area ---------- */

.content {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
    padding: 0.25rem 0 0.75rem;
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

#upload-section {
    display: none;
}

#upload-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

#upload-form input[type="text"] {
    padding: 0.4rem 0.7rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    width: 120px;
    transition: border-color var(--transition);
}

#upload-form input[type="text"]:focus {
    border-color: var(--gold);
}

#upload-form label {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

#upload-form label.upload-primary {
    background: var(--gold);
    color: var(--dark);
    border: none;
    box-shadow: var(--shadow-sm);
}

#upload-form label.upload-primary:hover {
    background: #c49515;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

#upload-form label.upload-secondary {
    background: var(--card);
    border: 1.5px dashed var(--border);
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.4rem 1rem;
}

#upload-form label.upload-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

#upload-form input[type="file"] {
    display: none;
}

#upload-form button {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

#upload-form button:hover {
    background: #c49515;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.upload-hidden {
    display: none !important;
}

/* ---------- Picture grid ---------- */

#pictures {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

#pictures li:not(.empty-state) {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

#pictures li:not(.empty-state):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

#pictures li.own-picture {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgb(96, 165, 250, 0.25), var(--shadow);
}

#pictures li.own-picture .picture-uploader {
    color: #3b82f6;
    font-weight: 500;
    font-style: normal;
}

#pictures li.own-picture .picture-uploader::before {
    content: '\270E ';
}

#pictures li.voted-picture {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-glow), var(--shadow);
}

#pictures li.voted-picture::after {
    content: '\2665';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f5d742, #e2b714, #f5d742);
    background-size: 200% 200%;
    color: var(--dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: none;
    box-shadow:
        0 0 8px rgb(212, 160, 23, 0.6),
        0 0 20px rgb(212, 160, 23, 0.3),
        0 2px 6px rgb(0,0,0,0.2);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        box-shadow:
            0 0 8px rgb(212, 160, 23, 0.6),
            0 0 20px rgb(212, 160, 23, 0.3),
            0 2px 6px rgb(0,0,0,0.2);
        background-position: 0 50%;
        transform: scale(1);
    }

    50% {
        box-shadow:
            0 0 14px rgb(245, 215, 66, 0.8),
            0 0 30px rgb(212, 160, 23, 0.5),
            0 2px 6px rgb(0,0,0,0.2);
        background-position: 100% 50%;
        transform: scale(1.1);
    }
}

#pictures li.reported-picture {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgb(239, 68, 68, 0.25), var(--shadow);
}

#pictures img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#pictures li:hover img {
    transform: scale(1.03);
}

.picture-caption {
    padding: 0.85rem 1rem;
}

.picture-description {
    font-size: 0.78rem;
    color: var(--text);
    margin-top: 4px;
    font-weight: 500;
}

.picture-uploader {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: italic;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Popup ---------- */

#popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0, 0, 0, 0.65);
    z-index: 9998;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}

#popup {
    display: none;
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    background: var(--card);
    border-radius: 16px;
    padding: 0;
    z-index: 9999;
    box-shadow: 0 25px 60px rgb(0, 0, 0, 0.35);
    max-width: 640px;
    width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.popup-image {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
    background: #0a0a0a;
    cursor: zoom-in;
}

.popup-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.popup-uploader {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.popup-actions {
    display: flex;
    gap: 0.6rem;
}

.popup-actions button {
    padding: 0.6rem 1.6rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    flex: 1;
}

#popup-vote {
    background: var(--gold);
    color: var(--dark);
}

#popup-vote:hover {
    background: #c49515;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gold-glow);
}

#popup-report {
    background: var(--bg);
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    flex: 0;
    white-space: nowrap;
}

#popup-report:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fef2f2;
}

#popup-report.reported {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

#popup-report.reported:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

#popup-vote.disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

#popup-vote.disabled:hover {
    transform: none;
    box-shadow: none;
    background: var(--border);
}

.login-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ---------- Header auth buttons ---------- */

.header-btn {
    background: rgb(255,255,255,0.08);
    border: 1px solid rgb(255,255,255,0.2);
    color: #fff;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    transition: background var(--transition);
}

.header-btn:hover {
    background: rgb(255,255,255,0.15);
}

/* ---------- Auth modal ---------- */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0,0,0,0.4);
    z-index: 10000;
}

.modal {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 340px;
    max-width: 92vw;
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    z-index: 10001;
    box-shadow: 0 10px 40px rgb(0,0,0,0.3);
    animation: fadeIn 0.15s ease;
}

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border);
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: all var(--transition);
}

.modal-tab.active {
    color: var(--text);
    border-bottom-color: var(--gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form input {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.auth-form input:focus {
    border-color: var(--gold);
}

.password-wrapper {
    position: relative;
    display: flex;
}

.password-wrapper input {
    flex: 1;
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--border);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
}

.password-toggle:hover {
    background: var(--gold);
    color: var(--dark);
}

.auth-submit {
    padding: 0.65rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
}

.auth-submit:hover {
    background: #c49515;
}

.auth-error {
    font-size: 0.8rem;
    color: #e74c3c;
    min-height: 1.2em;
}

/* ---------- Crop modal ---------- */

#crop-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0, 0, 0, 0.7);
    z-index: 15000;
    backdrop-filter: blur(6px);
}

#crop-modal {
    display: none;
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-width: 700px;
    width: 92vw;
    max-height: 85vh;
    background: var(--card);
    border-radius: 16px;
    z-index: 15001;
    box-shadow: 0 25px 60px rgb(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.crop-container {
    max-height: 60vh;
    overflow: hidden;
    background: #0a0a0a;
}

.crop-container img {
    display: block;
    max-width: 100%;
}

/* Bigger Cropper.js resize handles */
.crop-container .cropper-point {
    width: 14px;
    height: 14px;
    opacity: 1;
    background-color: var(--gold);
    border-radius: 50%;
}

.crop-container .cropper-point.point-nw {
    top: -7px;
    left: -7px;
}

.crop-container .cropper-point.point-ne {
    top: -7px;
    right: -7px;
}

.crop-container .cropper-point.point-sw {
    bottom: -7px;
    left: -7px;
}

.crop-container .cropper-point.point-se {
    bottom: -7px;
    right: -7px;
    width: 14px;
    height: 14px;
}

.crop-container .cropper-point.point-n,
.crop-container .cropper-point.point-s {
    width: 28px;
    left: 50%;
    margin-left: -14px;
}

.crop-container .cropper-point.point-e,
.crop-container .cropper-point.point-w {
    height: 28px;
    top: 50%;
    margin-top: -14px;
}

.crop-container .cropper-line {
    background-color: var(--gold);
    opacity: 0.3;
}

.crop-footer {
    padding: 1rem 1.25rem;
}

.crop-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.crop-description label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.crop-description input {
    flex: 1;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition);
}

.crop-description input:focus {
    border-color: var(--gold);
}

.crop-description input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgb(239, 68, 68, 0.25);
}

.crop-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

#crop-confirm {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

#crop-confirm:hover {
    background: #c49515;
}

.crop-actions .header-btn {
    color: var(--text-muted);
    border-color: var(--border);
}

/* ---------- Lightbox ---------- */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgb(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
    animation: fadeIn 0.15s ease;
}

#lightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ---------- Body scroll lock ---------- */

body.modal-open {
    overflow: hidden;
}

/* ---------- Animations ---------- */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (width <= 768px) {
    header {
        padding: 0 1rem;
        height: 52px;
    }

    header h1 {
        font-size: 1.15rem;
    }

    .header-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }

    #auth-section {
        gap: 0.5rem;
    }

    #auth-logged-in {
        gap: 0.5rem;
    }

    .user-link {
        font-size: 0.78rem;
    }

    /* --- Layout --- */

    main {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
        min-height: auto;
        height: auto;
        overflow: hidden auto;
    }

    .sidebar {
        position: static;
        overflow: hidden;
    }

    .sidebar-nav {
        margin-bottom: 0.5rem;
    }

    /* --- Events: compact horizontal scroll --- */

    #events {
        flex-direction: row;
        overflow: auto hidden;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        max-width: 100%;
    }

    #events li {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        scroll-snap-align: start;
        min-width: 0;
    }

    .event-preview {
        width: 36px;
        height: 36px;
        border-radius: 4px;
    }

    .event-name {
        font-size: 0.8rem;
    }

    .event-meta {
        font-size: 0.68rem;
    }

    /* --- Content --- */

    .content {
        min-height: 200px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
        position: sticky;
        top: 0;
        background: var(--bg);
        z-index: 10;
        padding: 0.25rem 0 0.5rem;
    }

    .content-header h2 {
        font-size: 1.2rem;
    }

    /* --- Upload form: stack vertically --- */

    #upload-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    #upload-form input[type="text"] {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    #upload-form label {
        text-align: center;
        padding: 0.5rem;
    }

    #upload-form button {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* --- Picture grid: 3 columns --- */

    #pictures {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    #pictures li {
        border-radius: var(--radius-sm);
    }

    #pictures li:hover {
        transform: none;
    }

    .picture-caption {
        padding: 0.3rem 0.4rem;
    }

    .picture-uploader {
        font-size: 0.65rem;
    }

    #pictures li.voted-picture::after {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        top: 6px;
        right: 6px;
    }

    /* --- Popup: full-width bottom sheet style --- */

    #popup {
        width: 100vw;
        max-width: 100vw;
        max-height: 85vh;
        top: auto;
        border-radius: 16px 16px 0 0;
        animation: slideUp 0.25s ease;
        overflow-y: auto;
    }

    .popup-image {
        max-height: 40vh;
    }

    .popup-body {
        padding: 1rem;
    }

    .popup-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .popup-actions button {
        padding: 0.7rem;
        font-size: 0.9rem;
        flex: none;
    }

    /* --- Crop modal --- */

    #crop-modal {
        max-height: 90vh;
    }

    .crop-container {
        max-height: 55vh;
    }

    .crop-actions {
        padding: 0.75rem 1rem;
    }

    /* --- Auth modal --- */

    .modal {
        width: 92vw;
        right: -0.5rem;
    }

    /* --- Empty state --- */

    .empty-state {
        padding: 2.5rem 1rem;
        font-size: 0.85rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
