body {
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "ELGR" 1, "ELSH" 2;
    background: var(--bg) !important;
    color: #e6e6e6;
    min-height: 100vh;
    margin: 0;
}


.container {
    max-width: 100%;
    padding: 16px 24px 0 24px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}


body.has-current .container {
    justify-content: center;
    padding-top: 0;
}

.upload-grid {
    width: 100%;
    max-width: 1200px;
    margin: 12px auto 0 auto;
    box-sizing: border-box;
}

.card {
    background: #171a1f;
    border-radius: 18px;
}


.combined-wrapper {
    position: relative;
    margin-top: 8px;
}

.combined-wrapper .bg-layer {
    position: absolute;
    border-radius: 18px;
    pointer-events: none;
}


.combined-wrapper .bg0 {
    background: #424242;
    top: -9px;
    left: 48px;
    right: 48px;
    bottom: 6px;
    z-index: 0;
}


.combined-wrapper .bg1 {
    background: #424242;
    top: -15px;
    left: 12px;
    right: 12px;
    bottom: 0;
    z-index: 0;
}


.combined-wrapper .bg2 {
    background: #616161;
    top: -27px;
    left: 44px;
    right: 44px;
    bottom: 9px;
    z-index: 0;
    filter: brightness(0.95);
}

.combined-wrapper .combined-card {
    position: relative;
    z-index: 1;
}

.combined-card {
    padding: 0;
    overflow: hidden;
    border: 2px solid #515151;
    border-radius: 18px;
    background: #262626;
}

.combined-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.left-pane {
    padding: 24px;
    background: transparent;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.right-pane {
    padding: 24px;
    background: transparent;
    box-sizing: border-box;
}


.drop-card {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height .25s ease;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

body.has-current .drop-card {
    height: 300px;
}

.drop-inner {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px dashed #464848;
    background: #181a1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-inner.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    background: #2a2a2a;
}

.drop-inner.disabled .drop-title {
    color: #999;
}

.drop-inner.disabled .choose-btn {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
}

.drop-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.9;
}

.drop-title {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
    color: #cfcfcf;
    letter-spacing: 0.5px;
}

.drop-sub {
    margin-top: 10px;
    font-size: 14px;
    color: #7d7d7d;
}

.choose-btn {
    margin-top: 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.choose-btn:hover {
    filter: brightness(1.05);
    outline: none;
    box-shadow: none;
}

.choose-btn:focus,
.choose-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.choose-btn::-moz-focus-inner {
    border: 0;
}


.form-card {
    padding: 24px;
}

.row {
    margin-bottom: 18px;
}

.row.flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.not-for-stream-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: #989898;
    position: relative;
    outline: none;
    cursor: pointer;
    border: 1px solid #464848;
}

.toggle:checked {
    background: var(--accent);
}

.toggle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0e1116;
    transform: translateY(-50%);
    transition: transform .18s ease, background-color .18s ease;
}

.toggle:checked:before {
    transform: translate(14px, -50%);
    background: #ffffff;
}

label.small {
    color: #a0a0a0;
    font-size: 16px;
    margin: 0px 5px 0px 0px;
}

.input,
.textarea {
    width: 100%;
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 700;
    background: #181A1B;
    border: 1px solid #464848;
    color: #fff;
    border-radius: 10px;
    padding: 12px 24px 12px 14px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
}

.input:focus,
.textarea:focus {
    border-color: var(--accent);
}

.textarea {
    min-height: 180px;
    resize: none;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #b7c2cf;
}

.radio-row label {
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.radio-row input {
    vertical-align: middle;
}

.radio-row input {
    accent-color: var(--accent);
    margin: 5px;
    transform: scale(1.5);
}

.primary-btn {
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.primary-btn:hover {
    filter: brightness(1.05);
}

@media (max-width: 900px) {
    .combined-grid {
        grid-template-columns: 1fr;
    }

    .left-pane {
        padding: 16px;
    }

    .right-pane {
        padding: 16px;
    }

    .drop-card {
        height: 320px;
    }

    body.has-current .drop-card {
        height: 220px;
    }

    .current-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px 96px 12px;
    }

    .combined-card {
        border-width: 1px;
    }

    .bg2 {
        left: 20px;
        right: 20px;
    }

    .bg0 {
        left: 24px;
        right: 24px;
    }

    .bg1 {
        left: 8px;
        right: 8px;
    }

    .drop-card {
        height: 260px;
    }

    .drop-inner {
        padding: 10px;
        box-sizing: border-box;
    }

    .drop-title {
        font-size: 16px;
        text-align: center;
    }

    .drop-sub {
        font-size: 11px;
        text-align: center;
    }

    .choose-btn {
        padding: 10px 14px;
    }

    .textarea {
        min-height: 140px;
    }

    .current-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .current-item {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}


.current-section {
    margin-top: 16px;
    width: 100%;
}

.current-image-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(90%);
}


body.has-current .current-section {
    min-height: 300px;
}

.current-title {
    color: #e6e6e6;
    font-weight: 700;
    margin: 0 0 12px 6px;
}

.current-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.current-item {
    background: #181a1b;
    border: 1px solid #464848;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    box-sizing: border-box;
    overflow: hidden;
}

.current-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b7c2cf;
    font-size: 13px;
    min-width: 0;
}

.current-badge {
    background: #464848;
    color: #cfcfcf;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
}

.current-audio-icon,
.current-image-icon,
.current-video-icon,
.current-file-icon {
    width: 30px;
    height: 30px;
    display: block;
}

.current-meta {
    color: #8f8f8f;
    font-size: 12px;
    white-space: nowrap;
}

.current-left>div {
    overflow: hidden;
}

.current-left>div>div:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.current-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.current-remove {
    display: inline-block;
    padding: 12px;
    margin: 0;
    border: 1px solid #464848;
    background: transparent;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    line-height: 0;
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.current-remove:focus {
    outline: none;
    box-shadow: none;
}

.current-remove img {
    display: block;
    width: 16px;
    height: 16px;
    transform: none;
    transition: transform .12s ease;
}

.current-remove:hover img {
    transform: scale(1.06);
}

.current-remove:hover {
    outline: none;
    box-shadow: none;
}