* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0b1020;
    color: #f5f7ff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: #111831;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 42px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #7b2cbf, #3fd0ff);
    font-weight: 900;
}

.brand span {
    display: block;
    color: #9aa8d4;
    font-size: .9rem;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    padding: 14px 16px;
    border-radius: 14px;
    color: #cbd5f5;
    font-weight: 700;
}

.nav a:hover,
.nav a.active {
    background: rgba(63,208,255,.13);
    color: #8fdfff;
}

.sidebar-footer {
    margin-top: auto;
    color: #9aa8d4;
    display: grid;
    gap: 8px;
}

.sidebar-footer a {
    color: #8fdfff;
    font-weight: 700;
}

.content {
    padding: 34px;
    min-width: 0;
}

.page-header {
    margin-bottom: 30px;
}

.eyebrow {
    color: #3fd0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-header p {
    color: #aeb9df;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card,
.quick-card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.stat-card span {
    color: #9aa8d4;
    display: block;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 2.4rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.quick-card {
    min-height: 190px;
    transition: .2s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: rgba(63,208,255,.4);
}

.quick-card div {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.quick-card h2 {
    margin: 0 0 10px;
}

.quick-card p {
    color: #aeb9df;
    margin: 0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(123,44,191,.28), transparent 34%),
        radial-gradient(circle at top right, rgba(63,208,255,.20), transparent 34%),
        #0b1020;
}

.login-card {
    width: min(430px, 100%);
    background: rgba(17,24,49,.94);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,.42);
}

.login-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #7b2cbf, #3fd0ff);
    font-weight: 900;
    margin-bottom: 18px;
}

.login-card p {
    color: #aeb9df;
}

.login-card label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 800;
}

.login-card input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
    color: #fff;
    font-size: 1rem;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    border: none;
    border-radius: 999px;
    padding: 15px;
    background: linear-gradient(135deg, #7b2cbf, #3fd0ff);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.error-box {
    background: rgba(255,77,109,.16);
    border: 1px solid rgba(255,77,109,.36);
    color: #ffd1da;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.info-card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.info-card.full {
    grid-column: 1 / -1;
}

.info-card h2 {
    margin: 0 0 18px;
}

.storage-main {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #7b2cbf, #3fd0ff);
}

.muted {
    color: #aeb9df;
    line-height: 1.6;
}

.mini-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #9aa8d4;
    font-size: .95rem;
}

.status-list {
    display: grid;
    gap: 14px;
    color: #dce5ff;
    font-weight: 700;
}

.dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 999px;
    margin-right: 10px;
}

.dot.ok {
    background: #35d07f;
}

.dot.warning {
    background: #f2c94c;
}

.dot.error {
    background: #ff4d6d;
}

.target-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.target-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.09);
    color: #dce5ff;
    font-weight: 800;
}

.target-pill.default {
    background: rgba(63,208,255,.13);
    border-color: rgba(63,208,255,.35);
    color: #8fdfff;
}

@media (max-width: 900px) {
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.admin-card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.admin-card h2 {
    margin: 0 0 18px;
}

.inline-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.inline-form input {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
    color: #fff;
    font-size: 1rem;
}

.inline-form button,
.row-actions button {
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(63,208,255,.16);
    color: #8fdfff;
    font-weight: 800;
    cursor: pointer;
}

.table-list {
    display: grid;
    gap: 12px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
}

.table-row.inactive {
    opacity: .45;
}

.table-row strong {
    display: block;
    margin-bottom: 5px;
}

.table-row span {
    color: #9aa8d4;
    font-size: .9rem;
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.row-actions form {
    margin: 0;
}

.row-actions button.danger {
    background: rgba(255,77,109,.16);
    color: #ffd1da;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .inline-form,
    .table-row {
        flex-direction: column;
        align-items: stretch;
    }
}
.media-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.media-toolbar input,
.media-toolbar select {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
    color: #fff;
    font-size: 1rem;
}

.media-toolbar input {
    min-width: min(420px, 100%);
    flex: 1;
}

.media-toolbar button,
.ghost-btn {
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    background: rgba(63,208,255,.16);
    color: #8fdfff;
    font-weight: 800;
    cursor: pointer;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
}

.empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    padding: 36px;
}

.empty-state div {
    font-size: 4rem;
}

.empty-state p {
    color: #aeb9df;
}

.empty-state a {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7b2cbf, #3fd0ff);
    font-weight: 900;
}

.photo-grid {
    columns: 5 210px;
    column-gap: 14px;
}

.photo-tile {
    position: relative;
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.photo-tile img,
.photo-tile video {
    width: 100%;
    display: block;
}

.tile-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.76));
    opacity: 0;
    transition: .2s ease;
}

.photo-tile:hover .tile-info {
    opacity: 1;
}

.tile-info strong {
    display: block;
    font-size: .95rem;
}

.tile-info span {
    color: #cbd5f5;
    font-size: .8rem;
}

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.65);
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 900;
}

.media-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 10000;
    display: none;
    grid-template-columns: 1fr 380px;
}

.media-modal.is-open {
    display: grid;
}

.modal-media {
    display: grid;
    place-items: center;
    padding: 30px;
}

.modal-media img,
.modal-media video {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px;
}

.modal-info {
    background: #111831;
    padding: 28px;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.08);
}

.modal-info h2 {
    margin-top: 0;
}

.modal-info p {
    color: #cbd5f5;
    line-height: 1.6;
}

.meta-box {
    margin-top: 22px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.055);
}

.meta-box h3 {
    margin: 0 0 12px;
}

.meta-box span {
    display: block;
    color: #aeb9df;
    margin-bottom: 7px;
}

.modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10001;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.modal-actions a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 14px 18px;

    border-radius: 14px;

    background: #1d4d72;
    color: #fff;

    text-decoration: none;
    font-weight: 700;

    transition: .2s;
}

.modal-actions a:hover {
    background: #286a9d;
}

.modal-actions .danger {
    grid-column: 1 / -1;

    background: #7b2333;
}

.modal-actions .danger:hover {
    background: #a52d45;
}

@media (max-width: 900px) {
    .media-modal {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .modal-info {
        border-left: none;
    }
}
.upload-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(320px, .95fr) minmax(320px, .95fr);
    gap: 24px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.upload-preview-card,
.upload-form-card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.file-drop {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 2px dashed rgba(143,223,255,.35);
    border-radius: 22px;
    cursor: pointer;
    background: rgba(11,16,32,.55);
}

.file-drop input {
    display: none;
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.file-drop strong {
    display: block;
    font-size: 1.2rem;
}

.file-drop span {
    display: block;
    color: #aeb9df;
    margin-top: 8px;
}

.preview-media img,
.preview-media video {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: #050814;
}

.upload-form-card label {
    display: block;
    font-weight: 800;
    margin: 16px 0 8px;
}

.upload-form-card input,
.upload-form-card textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
    color: #fff;
    font-size: 1rem;
}

.upload-form-card textarea {
    min-height: 110px;
    resize: vertical;
}

.upload-form-card h2 {
    margin: 24px 0 12px;
    font-size: 1.15rem;
}

.ai-btn,
.submit-main {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: rgba(63,208,255,.16);
    color: #8fdfff;
    font-weight: 900;
    cursor: pointer;
}

.submit-main {
    margin-top: 28px;
    background: linear-gradient(135deg, #7b2cbf, #3fd0ff);
    color: white;
}

.check-grid {
    display: grid;
    gap: 10px;
}

.check-grid label {
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
}

.check-grid input {
    width: auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 1200px) {
    .upload-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}
.upload-map {
    width: 100%;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
}
.edit-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, .9fr) minmax(320px, .9fr);
    gap: 24px;
    align-items: start;
}

.edit-preview-card,
.edit-form-card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.edit-preview-card img,
.edit-preview-card video {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 18px;
    background: #050814;
}

.edit-form-card label {
    display: block;
    font-weight: 800;
    margin: 16px 0 8px;
}

.edit-form-card input,
.edit-form-card textarea,
.edit-form-card select {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
    color: #fff;
    font-size: 1rem;
}

.edit-form-card textarea {
    min-height: 110px;
    resize: vertical;
}

.cancel-btn {
    display: inline-block;
    margin-top: 14px;
    text-align: center;
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #cbd5f5;
    font-weight: 900;
}

@media (max-width: 1200px) {
    .edit-layout {
        grid-template-columns: 1fr;
    }
}
.tag-grid small {
    margin-left: auto;
    color: #9aa8d4;
    font-size: .8rem;
}
.tag-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(63,208,255,.13);
    color: #8fdfff;
    font-weight: 800;
    font-size: .9rem;
}

.tag-pill-small em {
    font-style: normal;
    color: #9aa8d4;
    font-size: .75rem;
}
.tag-details {
    margin-top: 10px;
}

.tag-details summary {
    cursor: pointer;
    padding: 14px;
    border-radius: 14px;
    background: rgba(63,208,255,.13);
    color: #8fdfff;
    font-weight: 900;
}

.compact-tags {
    margin-top: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.compact-tags label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.compact-tags small {
    color: #9aa8d4;
    font-size: .75rem;
}
.edit-layout-clean {
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr) minmax(360px, 1fr);
}

.compact-checks label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.compact-checks input,
.compact-tags input {
    width: auto;
}

@media (max-width: 1200px) {
    .edit-layout-clean {
        grid-template-columns: 1fr;
    }
}
.media-filter-panel {
    align-items: flex-start;
    flex-wrap: wrap;
}

.tag-filter-box {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.tag-filter-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 12px;
}

.tag-filter-head label {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.tag-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.tag-check {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    cursor: pointer;
    font-size: 14px;
}

.tag-check input {
    accent-color: #6ea8ff;
}

.tag-check em {
    opacity: 0.65;
    font-style: normal;
}

.result-info {
    margin: 12px 0 18px;
    opacity: 0.75;
    font-size: 14px;
}
.tag-filter-box input[type="checkbox"],
.tag-filter-box input[type="radio"] {
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.tag-filter-head {
    width: 100%;
    display: flex;
    gap: 18px;
    align-items: center;
}

.tag-filter-head strong {
    margin-right: 12px;
}

.tag-filter-head label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tag-checkbox-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
}

.tag-check span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.tag-check em {
    opacity: .65;
    font-style: normal;
}
.tag-group{
    margin-top:15px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    overflow:hidden;
}

.tag-group summary{

    padding:12px 16px;

    cursor:pointer;

    font-weight:700;

    background:rgba(255,255,255,.05);

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.tag-group summary:hover{

    background:rgba(63,208,255,.08);

}

.tag-group .tag-checkbox-list{

    padding:14px;

}

#tagSearch{

    width:100%;

    margin-top:10px;

    margin-bottom:10px;

}
.favorite-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
}

.favorite-check input {
    width: auto;
}
.tile-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    font-size: 1rem;
}

.tile-badges {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    pointer-events: none;
}

.tile-stars,
.tile-workflow {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    font-size: .78rem;
    font-weight: 800;
}

.tile-stars {
    color: #ffd166;
    letter-spacing: 1px;
}

.workflow-neu {
    color: #8fdfff;
}

.workflow-bearbeiten {
    color: #ffd166;
}

.workflow-fertig {
    color: #35d07f;
}

.workflow-veröffentlicht {
    color: #9bffb5;
}

.workflow-archiv {
    color: #cbd5f5;
}
.upload-form-card select {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1020;
    color: #fff;
    font-size: 1rem;
}

.upload-form-card select option {
    background: #0b1020;
    color: #fff;
}

/* Mobile Handy-Upload */
.source-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.source-btn {
    min-height: 145px;
    border: 1px solid rgba(143,223,255,.25);
    border-radius: 20px;
    padding: 18px 14px;
    background: rgba(11,16,32,.72);
    color: #fff;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
}

.source-btn span,
.source-btn strong,
.source-btn small,
.empty-preview strong,
.empty-preview span,
.selected-media-info strong,
.selected-media-info span {
    display: block;
}

.source-btn span {
    font-size: 2.2rem;
    margin-bottom: 9px;
}

.source-btn strong {
    font-size: 1.05rem;
}

.source-btn small,
.selected-media-info span {
    margin-top: 6px;
    color: #aeb9df;
}

.source-camera {
    background: linear-gradient(145deg, rgba(123,44,191,.30), rgba(11,16,32,.75));
}

.source-gallery {
    background: linear-gradient(145deg, rgba(0,180,216,.24), rgba(11,16,32,.75));
}

.empty-preview {
    min-height: 220px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 2px dashed rgba(143,223,255,.28);
    border-radius: 20px;
    padding: 24px;
    color: #aeb9df;
}

.empty-preview[hidden],
.upload-progress[hidden] {
    display: none;
}

.empty-preview strong {
    color: #fff;
    margin-bottom: 7px;
}

.preview-list {
    display: grid;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.selected-media-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: #080d1a;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.selected-media-card img,
.selected-media-card video {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    background: #03050b;
}

.selected-media-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    min-width: 0;
}

.selected-media-info > div {
    min-width: 0;
    max-width: 100%;
}

.selected-media-info strong {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.remove-media {
    flex: 0 0 auto;
    border: 1px solid rgba(255,144,144,.3);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255,77,109,.12);
    color: #ffb0bd;
    font-weight: 800;
    cursor: pointer;
}

.section-hint,
.form-status {
    color: #bfc8e6;
    line-height: 1.45;
}

.form-status {
    min-height: 1.3em;
    margin: .65rem 0;
}

.form-status.is-error {
    color: #ff9090 !important;
}

.exif-details {
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 18px;
}

.exif-details summary {
    cursor: pointer;
    font-weight: 900;
    color: #8fdfff;
    padding: 8px 0;
}

.upload-progress {
    margin-top: 22px;
}

.upload-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: #dce8ff;
}

.upload-progress-track {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}

.upload-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7b2cbf, #3fd0ff);
    transition: width .2s ease;
}

.submit-main:disabled,
.ai-btn:disabled {
    opacity: .58;
    cursor: wait;
}

@media (max-width: 700px) {
    .content {
        width: 100%;
        min-width: 0;
        padding: 18px 12px 36px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    h1 {
        font-size: clamp(1.75rem, 9vw, 2.35rem);
    }

    .upload-layout {
        gap: 16px;
        width: 100%;
        min-width: 0;
    }

    .upload-preview-card,
    .upload-form-card {
        padding: 14px;
        border-radius: 18px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .source-actions {
        grid-template-columns: 1fr;
    }

    .source-btn {
        min-height: 92px;
        display: grid;
        grid-template-columns: 48px 1fr;
        align-content: center;
        text-align: left;
    }

    .source-btn span {
        grid-row: 1 / 3;
        margin: 0;
        align-self: center;
    }

    .source-btn small {
        margin-top: 4px;
    }

    .selected-media-info {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .selected-media-card img,
    .selected-media-card video {
        width: 100%;
        height: min(300px, 42vh);
        max-height: 300px;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .remove-media {
        width: 100%;
    }

    .technical-fields {
        grid-template-columns: 1fr 1fr;
    }

    .upload-form-card input,
    .upload-form-card textarea,
    .upload-form-card select {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: 16px;
    }

    .submit-main,
    .ai-btn {
        min-height: 50px;
    }
}
