:root {
    --ink: #f7fbff;
    --muted: #9db3c9;
    --panel: rgba(9, 14, 28, 0.82);
    --panel-strong: rgba(7, 11, 22, 0.96);
    --line: rgba(255, 255, 255, 0.14);
    --accent: #13b9ff;
    --accent-2: #34e7ad;
    --danger: #ff5470;
    --ok: #43d18c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    background: #070719;
}

a {
    color: inherit;
}

input,
textarea,
button {
    font: inherit;
}

.auth-screen,
.share-screen {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(24, 188, 255, 0.92) 0 3.8rem, transparent 3.9rem),
        radial-gradient(circle at 88% 82%, rgba(52, 231, 173, 0.46), transparent 11rem),
        linear-gradient(105deg, rgba(18, 194, 255, 0.92) 0 8%, transparent 8.2% 100%),
        linear-gradient(74deg, transparent 0 74%, rgba(18, 183, 255, 0.72) 74.2% 100%),
        radial-gradient(circle at 18% 42%, rgba(19, 185, 255, 0.38), transparent 20rem),
        radial-gradient(circle at 83% 35%, rgba(19, 185, 255, 0.28), transparent 23rem),
        #090821;
}

.auth-screen::before,
.share-screen::before {
    content: "";
    position: fixed;
    inset: auto auto -13rem -6rem;
    width: 34rem;
    height: 52rem;
    border-radius: 14rem;
    rotate: 15deg;
    background: linear-gradient(180deg, #18c8ff, #0787ce);
    box-shadow: 0 0 90px rgba(24, 200, 255, 0.5);
    pointer-events: none;
}

.auth-screen::after,
.share-screen::after {
    content: "";
    position: fixed;
    inset: 8rem -5rem auto auto;
    width: 28rem;
    height: 40rem;
    border-radius: 13rem;
    rotate: -18deg;
    background: linear-gradient(180deg, rgba(33, 211, 255, 0.86), rgba(6, 117, 180, 0.78));
    filter: saturate(1.08);
    pointer-events: none;
}

.auth-shell,
.share-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-card,
.upload-card,
.panel,
.hero-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.auth-card,
.upload-card {
    width: min(27rem, 100%);
    border-radius: 8px;
    padding: 1.35rem;
}

.setup-card {
    width: min(34rem, 100%);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    color: #03101d;
    font-weight: 900;
    background: linear-gradient(135deg, #34e7ad, #13b9ff 70%);
    box-shadow: 0 16px 40px rgba(19, 185, 255, 0.28);
}

.brand-mark.small {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.8rem;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 0.8rem;
}

.auth-card h1,
.upload-card h1 {
    font-size: 1.45rem;
    line-height: 1.15;
}

h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

p,
small,
.muted-link {
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 0.9rem;
}

.compact {
    gap: 0.65rem;
}

label {
    display: grid;
    gap: 0.35rem;
    color: #d9e7f5;
    font-size: 0.88rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    padding: 0.78rem 0.85rem;
    outline: none;
}

select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(2, 6, 14, 0.68);
    padding: 0.78rem 0.85rem;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(19, 185, 255, 0.18);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
}

.button.primary {
    border: 0;
    color: #03101d;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.button.ghost {
    min-height: 2.15rem;
    font-size: 0.86rem;
}

.button.danger {
    border-color: rgba(255, 84, 112, 0.36);
    color: #ffc4ce;
    background: rgba(255, 84, 112, 0.1);
}

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

.wide {
    width: 100%;
}

.muted-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
}

.flash {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(67, 209, 140, 0.35);
    background: rgba(67, 209, 140, 0.12);
}

.flash.error {
    border-color: rgba(255, 84, 112, 0.42);
    background: rgba(255, 84, 112, 0.12);
}

.dashboard-screen {
    background:
        radial-gradient(circle at 0 0, rgba(19, 185, 255, 0.3), transparent 22rem),
        radial-gradient(circle at 100% 25%, rgba(52, 231, 173, 0.18), transparent 20rem),
        #070719;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 7, 25, 0.78);
    backdrop-filter: blur(18px);
}

.topbar-title,
.topbar-actions,
.row-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dashboard {
    width: min(1180px, calc(100% - 2rem));
    margin: 1.2rem auto 3rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    align-items: end;
    border-radius: 8px;
    padding: clamp(1rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.eyebrow {
    margin-bottom: 0.45rem;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-grid,
.layout-grid,
.identity-grid {
    display: grid;
    gap: 1rem;
}

.stat-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stat-grid div {
    border-left: 2px solid var(--accent);
    padding-left: 0.8rem;
}

.stat-grid span {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
}

.layout-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
    margin-bottom: 1rem;
}

.identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    border-radius: 8px;
    padding: 1rem;
}

.share-list {
    display: grid;
    gap: 0.75rem;
}

.share-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.045);
}

.share-row small {
    display: block;
    overflow-wrap: anywhere;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.empty {
    color: var(--muted);
    text-align: center;
}

.share-brand {
    margin-bottom: 0.8rem;
    text-align: center;
}

.dropzone {
    min-height: 11rem;
    place-items: center;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(19, 185, 255, 0.08);
}

.dropzone input {
    border: 0;
    background: transparent;
    padding: 0;
}

.dropzone span {
    font-size: 1.05rem;
}

.upload-progress {
    display: grid;
    gap: 0.7rem;
}

.progress-row {
    display: grid;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.045);
}

.progress-row strong,
.progress-row small {
    display: block;
    overflow-wrap: anywhere;
}

progress {
    width: 100%;
    height: 0.65rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.12);
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.share-footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    translate: -50% 0;
    width: max-content;
    max-width: calc(100% - 2rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    color: var(--muted);
    background: var(--panel-strong);
    font-size: 0.78rem;
}

@media (max-width: 860px) {
    .hero-panel,
    .layout-grid,
    .share-row,
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .row-actions {
        flex-wrap: wrap;
    }
}

/* Bamberg24 Cloud redesign */
:root {
    --ink: #f8fbff;
    --muted: #a9b8c9;
    --panel: rgba(8, 14, 26, 0.78);
    --panel-strong: rgba(4, 8, 17, 0.95);
    --line: rgba(255, 255, 255, 0.16);
    --accent: #19c8ff;
    --accent-2: #ffffff;
    --brand-red: #e31236;
    --brand-red-soft: rgba(227, 18, 54, 0.22);
    --brand-blue-soft: rgba(25, 200, 255, 0.2);
}

.auth-screen,
.share-screen,
.dashboard-screen {
    background:
        linear-gradient(120deg, rgba(227, 18, 54, 0.22), transparent 22rem),
        linear-gradient(142deg, transparent 0 18%, rgba(25, 200, 255, 0.2) 18.2% 18.8%, transparent 19% 100%),
        linear-gradient(40deg, transparent 0 63%, rgba(227, 18, 54, 0.16) 63.2% 64%, transparent 64.2% 100%),
        linear-gradient(180deg, #081626 0%, #050815 54%, #02040a 100%);
}

.auth-screen::before,
.auth-screen::after,
.share-screen::before,
.share-screen::after {
    content: none;
}

.auth-screen body,
.share-screen body {
    min-height: 100vh;
}

.auth-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 27rem);
    gap: clamp(1rem, 4vw, 4rem);
}

.login-stage {
    min-height: 34rem;
    display: flex;
    align-items: center;
    border-left: 3px solid var(--brand-red);
    padding-left: clamp(1rem, 4vw, 2rem);
}

.login-copy {
    max-width: 43rem;
}

.login-copy h1 {
    max-width: 42rem;
    margin: 0.55rem 0 1rem;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: 0.92;
}

.login-copy p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 1.08rem;
}

.brand-logo {
    display: block;
    height: auto;
}

.brand-logo.jumbo {
    width: min(28rem, 90vw);
    margin-bottom: 2.2rem;
    filter: drop-shadow(0 24px 60px rgba(25, 200, 255, 0.22));
}

.brand-logo.compact-logo {
    width: min(16rem, 100%);
    margin-bottom: 1rem;
}

.brand-logo.nav-logo {
    width: 13.5rem;
}

.brand-logo.share-logo {
    width: min(19rem, 88vw);
    margin: 0 auto;
    filter: drop-shadow(0 18px 44px rgba(25, 200, 255, 0.24));
}

.auth-card.elevated,
.auth-card,
.upload-card,
.panel,
.hero-panel {
    border-color: rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        rgba(5, 10, 20, 0.82);
}

.auth-card.elevated {
    position: relative;
}

.auth-shell > .setup-card {
    grid-column: 1 / -1;
    justify-self: center;
}

.auth-card.elevated::before,
.hero-panel::before,
.upload-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 2px solid rgba(25, 200, 255, 0.45);
    pointer-events: none;
}

.auth-card,
.upload-card,
.panel,
.hero-panel {
    position: relative;
}

.auth-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
}

.eyebrow {
    color: #8fe6ff;
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), #ff5f74 52%, var(--accent));
    box-shadow: 0 16px 36px rgba(227, 18, 54, 0.26);
}

.button.primary:hover,
.button.ghost:hover {
    transform: translateY(-1px);
}

.button {
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.075);
}

input,
textarea {
    background: rgba(2, 6, 14, 0.68);
}

.topbar {
    min-height: 4.5rem;
    background: rgba(3, 7, 15, 0.82);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.topbar-actions span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.48rem 0.8rem;
    color: #dfeeff;
    background: rgba(255, 255, 255, 0.06);
}

.dashboard {
    margin-top: 1.6rem;
}

.hero-panel {
    min-height: 18rem;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(227, 18, 54, 0.18), transparent 28rem),
        linear-gradient(145deg, rgba(25, 200, 255, 0.2), transparent 24rem),
        rgba(5, 10, 20, 0.85);
}

.hero-panel::after {
    content: "B24";
    position: absolute;
    right: clamp(1rem, 5vw, 4rem);
    bottom: -1.5rem;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(6rem, 18vw, 16rem);
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.hero-panel h1 {
    max-width: 44rem;
}

.hero-panel p:not(.eyebrow) {
    max-width: 34rem;
}

.stat-grid {
    position: relative;
    z-index: 1;
}

.stat-grid div {
    min-height: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--brand-red);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.stat-grid span {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        rgba(5, 10, 20, 0.8);
}

.panel h2 {
    color: #ffffff;
}

.share-row {
    border-left: 3px solid var(--accent);
    background:
        linear-gradient(90deg, rgba(25, 200, 255, 0.09), transparent),
        rgba(255, 255, 255, 0.045);
}

.share-screen .share-shell {
    align-content: center;
    padding-block: 3.5rem 5rem;
}

.upload-card {
    width: min(42rem, 100%);
    padding: clamp(1rem, 4vw, 2rem);
}

.upload-card h1 {
    font-size: clamp(2rem, 6vw, 3.7rem);
    line-height: 0.98;
}

.dropzone {
    min-height: 13.5rem;
    border: 2px dashed rgba(25, 200, 255, 0.45);
    background:
        linear-gradient(135deg, rgba(25, 200, 255, 0.16), rgba(227, 18, 54, 0.1)),
        rgba(255, 255, 255, 0.045);
}

.dropzone span {
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 900;
}

.dropzone small {
    max-width: 25rem;
}

.progress-row {
    border-left: 3px solid var(--brand-red);
}

.share-footer {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(3, 7, 15, 0.88);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        place-items: stretch;
        padding-block: 2rem;
    }

    .login-stage {
        min-height: auto;
    }

    .auth-card {
        width: 100%;
    }

    .brand-logo.nav-logo {
        width: 11rem;
    }
}

.pro-dashboard-screen {
    min-height: 100vh;
}

.admin-app {
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(227, 18, 54, 0.15), transparent 16rem),
        rgba(2, 6, 14, 0.84);
    backdrop-filter: blur(20px);
}

.admin-sidebar .nav-logo {
    width: 14.5rem;
}

.side-nav {
    display: grid;
    gap: 0.45rem;
}

.side-nav a {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.78rem 0.85rem;
    color: #dbeaf9;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
}

.side-nav a:hover {
    border-color: rgba(25, 200, 255, 0.28);
    background: linear-gradient(90deg, rgba(25, 200, 255, 0.16), rgba(227, 18, 54, 0.1));
}

.sidebar-card {
    display: grid;
    gap: 0.55rem;
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.055);
}

.sidebar-card strong {
    color: #fff;
}

.admin-main {
    width: min(1440px, calc(100% - 2rem));
}

.admin-hero .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.35fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title h2,
.section-title p {
    margin-bottom: 0;
}

.folder-panel,
.uploads-panel {
    overflow: hidden;
}

.folder-grid,
.invite-list,
.upload-grid,
.user-grid,
.access-table,
.system-list {
    display: grid;
    gap: 0.8rem;
}

.folder-card {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.9rem;
    background:
        linear-gradient(90deg, rgba(25, 200, 255, 0.1), transparent),
        rgba(255, 255, 255, 0.045);
}

.folder-icon {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand-red), var(--accent));
}

.folder-card strong,
.invite-row strong,
.upload-tile strong {
    display: block;
    color: #fff;
    overflow-wrap: anywhere;
}

.copy-line {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.users-grid {
    grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.45fr);
}

.invite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.045);
}

.user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-red);
    border-radius: 8px;
    padding: 0.9rem;
    background:
        linear-gradient(90deg, rgba(227, 18, 54, 0.1), transparent),
        rgba(255, 255, 255, 0.045);
}

.system-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-red);
    border-radius: 8px;
    padding: 0.9rem;
    background:
        linear-gradient(90deg, rgba(25, 200, 255, 0.08), transparent),
        rgba(255, 255, 255, 0.045);
}

.system-card strong {
    display: block;
    color: #fff;
    overflow-wrap: anywhere;
}

.access-panel,
.access-matrix {
    margin-bottom: 1rem;
}

.access-row {
    border-left: 3px solid var(--accent);
}

.access-folder {
    display: grid;
    grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.045);
}

.access-folder > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.access-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.07);
}

.access-pill.active {
    border-color: rgba(25, 200, 255, 0.35);
    background: rgba(25, 200, 255, 0.15);
}

.access-pill.paused {
    border-color: rgba(227, 18, 54, 0.35);
    color: #ffc2cb;
    background: rgba(227, 18, 54, 0.12);
}

.upload-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.upload-tile {
    display: grid;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        rgba(4, 8, 17, 0.64);
}

.preview-frame {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 950;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(227, 18, 54, 0.22), rgba(25, 200, 255, 0.18)),
        rgba(255, 255, 255, 0.04);
}

.preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-meta {
    display: grid;
    gap: 0.18rem;
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.file-kind {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    border: 1px solid rgba(25, 200, 255, 0.3);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    color: #8fe6ff;
    font-size: 0.78rem;
    font-weight: 950;
    background: rgba(25, 200, 255, 0.1);
}

@media (max-width: 1080px) {
    .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .side-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .side-nav {
        grid-template-columns: 1fr 1fr;
    }

    .folder-card,
    .user-card,
    .system-card,
    .access-folder,
    .invite-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .folder-icon {
        display: none;
    }
}

/* Bamberg24 Admin Console v2 */
.console-screen {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(227, 18, 54, 0.18), transparent 28rem),
        linear-gradient(140deg, transparent 0 20%, rgba(25, 200, 255, 0.12) 20.2% 20.7%, transparent 21% 100%),
        linear-gradient(180deg, #06101d 0%, #050815 52%, #02040a 100%);
}

.console-app {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    min-height: 100vh;
}

.console-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(227, 18, 54, 0.16), transparent 16rem),
        rgba(2, 6, 14, 0.88);
    backdrop-filter: blur(24px);
}

.console-sidebar .nav-logo {
    width: 14.5rem;
}

.console-nav {
    display: grid;
    gap: 0.45rem;
}

.console-nav a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    color: #dcecff;
    font-weight: 850;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
}

.console-nav a:hover {
    border-color: rgba(25, 200, 255, 0.32);
    background:
        linear-gradient(90deg, rgba(25, 200, 255, 0.16), rgba(227, 18, 54, 0.08)),
        rgba(255, 255, 255, 0.055);
}

.console-nav a.active {
    border-color: rgba(25, 200, 255, 0.45);
    background:
        linear-gradient(90deg, rgba(227, 18, 54, 0.22), rgba(25, 200, 255, 0.16)),
        rgba(255, 255, 255, 0.075);
}

.console-profile {
    display: grid;
    gap: 0.65rem;
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.055);
}

.console-profile strong {
    color: #fff;
}

.console-main {
    width: min(1500px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 3rem;
}

.console-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 21, 0.82);
    backdrop-filter: blur(18px);
}

.console-topbar h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.console-search {
    width: min(24rem, 32vw);
    min-height: 2.55rem;
}

.command-hero,
.console-panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.command-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
    gap: 1.2rem;
    align-items: center;
    min-height: 20rem;
    padding: clamp(1rem, 4vw, 2rem);
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(227, 18, 54, 0.2), transparent 30rem),
        linear-gradient(145deg, rgba(25, 200, 255, 0.22), transparent 26rem),
        rgba(5, 10, 20, 0.86);
}

.command-hero::after {
    content: "B24";
    position: absolute;
    right: clamp(1rem, 5vw, 4rem);
    bottom: -1.4rem;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(7rem, 18vw, 17rem);
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-copy h2 {
    max-width: 46rem;
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 0.96;
}

.hero-copy p:not(.eyebrow) {
    max-width: 35rem;
}

.hero-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-metrics article,
.settings-grid article {
    min-height: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--brand-red);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.065);
}

.hero-metrics span,
.settings-grid strong {
    display: block;
    color: #fff;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.quick-action {
    display: grid;
    gap: 0.3rem;
    min-height: 6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(25, 200, 255, 0.12), rgba(227, 18, 54, 0.08)),
        rgba(255, 255, 255, 0.045);
}

.quick-action strong {
    color: #fff;
}

.console-grid {
    display: grid;
    grid-template-columns: minmax(22rem, 0.9fr) minmax(0, 1.35fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.65fr);
}

.console-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        rgba(5, 10, 20, 0.82);
}

.console-panel h2 {
    margin-bottom: 0;
    color: #fff;
}

.activity-list,
.rank-list,
.folder-table,
.user-management,
.rights-list,
.system-list,
.access-board {
    display: grid;
    gap: 0.75rem;
}

.activity-row,
.rank-row,
.folder-line,
.user-line,
.rights-row,
.system-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.activity-row,
.rank-row,
.rights-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem;
    color: inherit;
    text-decoration: none;
}

.file-dot,
.folder-badge {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand-red), var(--accent));
}

.upload-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.65fr);
    gap: 1rem;
}

.upload-list {
    display: grid;
    gap: 0.75rem;
    max-height: 48rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.upload-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.045);
}

.upload-thumb,
.detail-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(227, 18, 54, 0.22), rgba(25, 200, 255, 0.18)),
        rgba(255, 255, 255, 0.04);
}

button.upload-thumb {
    width: 100%;
    cursor: pointer;
    padding: 0;
}

.upload-thumb {
    aspect-ratio: 1.35 / 1;
}

.upload-thumb img,
.detail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-row-main {
    display: grid;
    gap: 0.16rem;
}

.upload-row-main strong,
.folder-line strong,
.user-line strong,
.rights-row strong,
.activity-row strong,
.rank-row strong {
    display: block;
    color: #fff;
    overflow-wrap: anywhere;
}

.upload-row-actions,
.line-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.05rem;
    min-height: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.075);
}

.icon-button.danger {
    border-color: rgba(255, 84, 112, 0.36);
    color: #ffc4ce;
    background: rgba(255, 84, 112, 0.1);
}

.upload-detail {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.045);
}

.detail-preview {
    aspect-ratio: 16 / 10;
    margin-bottom: 0.9rem;
}

.upload-detail h3 {
    margin: 0 0 0.8rem;
    color: #fff;
    overflow-wrap: anywhere;
}

.detail-list {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.detail-list div {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.6rem;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.filter-row select {
    min-width: 14rem;
}

.folder-line,
.user-line,
.system-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem;
}

.folder-line code {
    display: block;
    color: #8fe6ff;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.status-pill.is-active {
    border-color: rgba(25, 200, 255, 0.35);
    color: #9be9ff;
    background: rgba(25, 200, 255, 0.12);
}

.status-pill.is-paused {
    border-color: rgba(255, 84, 112, 0.35);
    color: #ffc4ce;
    background: rgba(255, 84, 112, 0.1);
}

.access-board {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    margin-bottom: 1rem;
}

.access-card {
    display: grid;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.045);
}

.access-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.role-overview {
    margin-bottom: 1rem;
}

.role-matrix {
    display: grid;
    gap: 0.9rem;
}

.role-access-card {
    display: grid;
    gap: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background:
        linear-gradient(90deg, rgba(25, 200, 255, 0.08), rgba(227, 18, 54, 0.06)),
        rgba(255, 255, 255, 0.04);
}

.role-access-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.role-access-head strong {
    display: block;
    color: #fff;
}

.role-folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.role-folder-toggle {
    margin: 0;
}

.role-folder-toggle button {
    cursor: pointer;
}

.preview-modal[hidden] {
    display: none;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
}

.preview-dialog {
    width: min(1100px, 100%);
    height: min(760px, calc(100vh - 2rem));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        #050815;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

.preview-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.preview-dialog strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.preview-dialog iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #02040a;
}

@media (max-width: 1180px) {
    .console-app,
    .command-hero,
    .console-grid,
    .upload-split {
        grid-template-columns: 1fr;
    }

    .console-sidebar,
    .upload-detail {
        position: static;
        height: auto;
    }

    .console-nav,
    .quick-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .console-topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.8rem;
    }

    .console-search {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .console-main {
        width: min(100% - 1rem, 1500px);
    }

    .topbar-tools,
    .quick-grid,
    .hero-metrics,
    .console-nav,
    .settings-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .upload-row,
    .folder-line,
    .user-line,
    .system-card {
        grid-template-columns: 1fr;
    }

    .upload-row-actions,
    .line-actions {
        justify-content: flex-start;
    }
}

/* Bamberg24 Upload Portal v2 */
.share-portal-screen {
    background:
        linear-gradient(120deg, rgba(227, 18, 54, 0.22), transparent 28rem),
        linear-gradient(150deg, transparent 0 18%, rgba(25, 200, 255, 0.16) 18.2% 18.8%, transparent 19% 100%),
        linear-gradient(180deg, #06101d 0%, #050815 56%, #02040a 100%);
}

.share-portal {
    width: min(1180px, calc(100% - 2rem));
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 1rem;
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.portal-hero,
.portal-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.portal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
    gap: 1rem;
    overflow: hidden;
    padding: clamp(1rem, 4vw, 2rem);
    background:
        linear-gradient(110deg, rgba(227, 18, 54, 0.18), transparent 30rem),
        linear-gradient(145deg, rgba(25, 200, 255, 0.2), transparent 24rem),
        rgba(5, 10, 20, 0.82);
}

.portal-hero::after {
    content: "UPLOAD";
    position: absolute;
    right: 1rem;
    bottom: -0.8rem;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.portal-brand,
.portal-copy {
    position: relative;
    z-index: 1;
}

.portal-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-copy h1 {
    max-width: 46rem;
    margin-bottom: 0.9rem;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 0.94;
}

.portal-copy p:not(.eyebrow) {
    max-width: 39rem;
    font-size: 1.03rem;
}

.trust-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
}

.trust-grid article {
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.055);
}

.trust-grid strong {
    display: block;
    color: #fff;
}

.portal-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 4vw, 1.5rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        rgba(5, 10, 20, 0.84);
}

.unlock-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.65fr);
    align-items: center;
}

.portal-card h2 {
    margin-bottom: 0.45rem;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    line-height: 1.02;
}

.portal-form {
    display: grid;
    gap: 0.9rem;
}

.password-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.uploader-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.portal-dropzone {
    min-height: 18rem;
    place-items: center;
    text-align: center;
    border: 2px dashed rgba(25, 200, 255, 0.42);
    border-radius: 8px;
    padding: 1.2rem;
    background:
        linear-gradient(135deg, rgba(25, 200, 255, 0.16), rgba(227, 18, 54, 0.1)),
        rgba(255, 255, 255, 0.045);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.portal-dropzone.is-dragging {
    border-color: rgba(255, 255, 255, 0.82);
    transform: translateY(-2px);
    background:
        linear-gradient(135deg, rgba(25, 200, 255, 0.26), rgba(227, 18, 54, 0.18)),
        rgba(255, 255, 255, 0.07);
}

.portal-dropzone input {
    max-width: 24rem;
    border: 0;
    background: transparent;
}

.portal-dropzone span {
    color: #fff;
    font-size: clamp(1.35rem, 4vw, 2.2rem);
    font-weight: 950;
}

.portal-dropzone small {
    max-width: 26rem;
}

.selected-files,
.success-list {
    display: grid;
    gap: 0.65rem;
}

.selected-file {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.045);
}

.selected-file span {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand-red), var(--accent));
}

.selected-file strong {
    display: block;
    color: #fff;
    overflow-wrap: anywhere;
}

.total-progress {
    display: grid;
    gap: 0.5rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-red);
    border-radius: 8px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.045);
}

.total-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.locked-card {
    border-left: 3px solid var(--danger);
}

.uploader-card[hidden] {
    display: none;
}

@media (max-width: 880px) {
    .portal-hero,
    .unlock-card {
        grid-template-columns: 1fr;
    }

    .portal-brand,
    .uploader-head,
    .total-progress > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .password-wrap {
        grid-template-columns: 1fr;
    }
}

/* Command Center Erweiterungen */
.quick-action.hot {
    border-color: rgba(227, 18, 54, 0.42);
    background:
        linear-gradient(135deg, rgba(227, 18, 54, 0.18), rgba(25, 200, 255, 0.08)),
        rgba(255, 255, 255, 0.055);
}

.activity-button {
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.file-stat-grid,
.timeline-list,
.trash-list {
    display: grid;
    gap: 0.75rem;
}

.file-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-stat-grid article,
.trash-row,
.timeline-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.045);
}

.file-stat-grid strong,
.file-stat-grid span,
.trash-row strong,
.timeline-row strong {
    display: block;
    color: #fff;
}

.file-stat-grid span {
    margin: 0.2rem 0;
    font-size: 2rem;
    font-weight: 950;
}

.timeline-row {
    display: grid;
    grid-template-columns: 0.8rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.timeline-row > span {
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-red), var(--accent));
}

.bulk-toolbar,
.trash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bulk-toolbar {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.045);
}

.bulk-check {
    display: grid;
    place-items: center;
}

.upload-row {
    grid-template-columns: 1.6rem 5.5rem minmax(0, 1fr) auto;
}

.inline-role-form {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) auto;
    gap: 0.45rem;
}

.portal-meta-strip,
.upload-rules,
.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.portal-meta-strip {
    margin-top: 1rem;
}

.portal-meta-strip span,
.upload-rules article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.055);
}

.portal-meta-strip span {
    color: #fff;
    font-weight: 850;
}

.upload-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-rules strong {
    display: block;
    color: #fff;
}

.upload-actions .button.primary {
    flex: 1 1 18rem;
}

.upload-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (max-width: 760px) {
    .file-stat-grid,
    .upload-rules {
        grid-template-columns: 1fr;
    }

    .bulk-toolbar,
    .trash-row,
    .upload-error {
        align-items: stretch;
        flex-direction: column;
    }

    .upload-row {
        grid-template-columns: 1fr;
    }
}
