html body[data-view="system-uploads"],
html body[data-view="system-uploads"] #main-view-container,
#system-uploads-view {
    min-height: 100%;
    background: #f6f6f6 !important;
    color: #17191b;
}

html body[data-view="system-uploads"] #system-uploads-view.system-uploads-shell {
    width: 100%;
    margin: 0;
    padding: 64px 60px 48px;
    box-sizing: border-box;
    color: #17191b;
}

html body[data-view="system-uploads"] #system-uploads-view .system-uploads-heading {
    display: flex;
    min-height: 0;
    margin: 0 0 44px;
    padding: 8px 28px 0;
    box-sizing: border-box;
}

html body[data-view="system-uploads"] #system-uploads-view .system-uploads-heading h1 {
    margin: 0;
    color: #111111;
    font-family: inherit;
    font-size: clamp(38px, 3.1vw, 48px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.03em;
}

html body[data-view="system-uploads"] #system-uploads-view .system-uploads-heading p {
    margin: 10px 0 0;
    color: #5e6368;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

html body[data-view="system-uploads"] #system-uploads-view .system-uploads-heading p strong {
    color: #202428;
    font-weight: 850;
}

.system-uploads-heading-icon,
.system-upload-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #d5d9dc;
    background: #ffffff;
    color: #25292d;
    box-shadow: 0 7px 18px rgba(20, 24, 28, 0.08);
}

.system-uploads-heading-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.system-uploads-heading-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-uploads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1480px, 100%);
    margin: 0 auto;
}

.system-upload-category {
    position: relative;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #d0d4d7;
    border-radius: 20px;
    background:
        linear-gradient(145deg, transparent 0 58%, rgba(90, 96, 102, 0.04) 59% 60%, transparent 61%),
        repeating-linear-gradient(145deg, transparent 0 18px, rgba(90, 96, 102, 0.026) 19px 20px),
        linear-gradient(145deg, #ffffff 0%, #fafafb 100%);
    box-shadow: 0 14px 32px rgba(20, 24, 28, 0.10), inset 0 1px 0 rgba(255,255,255,.95);
}

.system-upload-category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--hq-accent-bright, #c51024), var(--hq-accent-dark, #75111d) 68%, var(--hq-accent-hover, #75111d));
}

.system-upload-category-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.system-upload-category-head h2 {
    margin: 0;
    color: #202428;
    font-size: 20px;
    font-weight: 900;
}

.system-upload-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #9da7b2;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.system-upload-info-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-upload-info-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, #ffffff 0%, #e8edf2 24%, #b9c2cc 63%, #edf1f5 100%);
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
    border-color: #858f9b;
    color: #15181c;
}

.system-upload-info-button:focus-visible {
    outline: 3px solid var(--hq-accent-ring, rgba(164, 10, 28, .20));
    outline-offset: 2px;
}

.system-upload-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.system-upload-category-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-upload-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 184px;
    padding: 20px;
    border: 1px solid #dde0e2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .70);
    box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(20, 24, 28, .045);
    backdrop-filter: blur(2px);
}

.system-upload-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.system-upload-card-head > div { min-width: 0; }
.system-upload-card-head .system-upload-info-button { flex: 0 0 38px;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
    border: 1px solid #9da7b2;
}

.system-upload-card span {
    color: #73797f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-upload-card h3 {
    margin: 7px 0 0;
    color: #15181b;
    font-size: 22px;
    line-height: 1.2;
}

.system-upload-action {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.system-upload-action button {
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid #9da7b2;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
}

.system-upload-action button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
    background: linear-gradient(145deg, #ffffff 0%, #e8edf2 24%, #b9c2cc 63%, #edf1f5 100%);
    border-color: #858f9b;
    color: #15181c;
}

.system-upload-action button:focus-visible {
    outline: 3px solid var(--hq-accent-ring, rgba(164, 10, 28, .20));
    outline-offset: 2px;
}

.system-upload-action small {
    min-height: 18px;
    color: #73797f;
    font-size: 12px;
    line-height: 1.45;
}

.system-upload-last-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    min-height: 43px;
    margin-top: 13px;
    padding: 10px 12px 0;
    border-top: 1px solid rgba(110, 119, 126, .20);
    color: #666d73;
    font-size: 11.5px;
    line-height: 1.35;
}

.system-upload-last-meta > :last-child {
    grid-column: 2;
}

.system-upload-last-label {
    grid-row: 1 / span 2;
    align-self: center;
    color: #30363b;
    font-weight: 850;
}

.system-upload-last-empty {
    grid-column: 1 / -1 !important;
    align-self: center;
}

body.system-upload-guide-open {
    overflow: hidden;
}

.system-upload-guide-modal[hidden] {
    display: none !important;
}

.system-upload-guide-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.system-upload-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 28, .55);
    backdrop-filter: blur(5px);
}

.system-upload-guide-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(980px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid #cbd2d6;
    border-radius: 22px;
    background:
        linear-gradient(145deg, transparent 0 62%, rgba(90, 96, 102, .035) 63% 64%, transparent 65%),
        repeating-linear-gradient(145deg, transparent 0 18px, rgba(90, 96, 102, .02) 19px 20px),
        #fafafb;
    box-shadow: 0 30px 80px rgba(64, 58, 64, .32);
}

.system-upload-guide-dialog::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 20px auto 20px 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--hq-accent-bright, #c51024), var(--hq-accent-dark, #75111d) 68%, var(--hq-accent-hover, #75111d));
}

.system-upload-guide-header,
.system-upload-guide-content {
    position: relative;
    z-index: 2;
}

.system-upload-guide-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    border-bottom: 1px solid #d8dde0;
    background: rgba(255,255,255,.74);
}

.system-upload-guide-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(164, 10, 28, .28);
    border-radius: 14px;
    background: var(--hq-accent-soft, #fafafb);
    color: var(--hq-accent-dark, #a40a1c);
}

.system-upload-guide-header-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.system-upload-guide-header span {
    color: #747b80;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.system-upload-guide-header h2 {
    margin: 3px 0 0;
    color: #171a1d;
    font-size: clamp(20px, 3vw, 27px);
    line-height: 1.1;
}

.system-upload-guide-close {
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0 0 3px;
    border: 1px solid #9da7b2;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    font: 400 29px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
}

.system-upload-guide-content {
    overflow: auto;
    padding: 22px;
}

.system-upload-guide-list {
    display: grid;
    gap: 16px;
}

.system-upload-guide-document {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #d4dade;
    border-radius: 16px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 8px 22px rgba(20, 24, 28, .055), inset 0 1px 0 #fff;
}

.system-upload-guide-document-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 62px;
    border: 1px solid #df5965;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f8f8f9);
    color: #a40a1c;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .05em;
    box-shadow: 0 6px 14px rgba(164, 10, 28, .12);
}

.system-upload-guide-document-info {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.system-upload-guide-document-info strong {
    overflow: hidden;
    color: #202428;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-upload-guide-document-info span {
    color: #70777c;
    font-size: 12px;
}

.system-upload-guide-document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.system-upload-guide-document-actions button {
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid #9da7b2;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
}

.system-upload-guide-document-actions button:hover {
    background: linear-gradient(145deg, #ffffff 0%, #e8edf2 24%, #b9c2cc 63%, #edf1f5 100%);
    border-color: #858f9b;
    color: #15181c;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
}

.system-upload-guide-document-actions button.is-delete {
    border-color: #aab1b9;
    color: #15181c;
}

.system-upload-guide-item {
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(260px, 1.05fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid #d8dde0;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 8px 22px rgba(20,24,28,.055);
}

.system-upload-guide-image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid #cfd5d8;
    border-radius: 12px;
    background: #edf1f3;
}

.system-upload-guide-image-wrap img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    background: #fff;
}

.system-upload-guide-image-wrap.is-error::after {
    content: "Screenshot nicht verfügbar";
    color: #737a80;
    font-size: 13px;
}

.system-upload-guide-image-wrap.is-error img {
    display: none;
}

.system-upload-guide-step {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: var(--hq-accent-dark, #75111d);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(164, 10, 28, .25);
}

.system-upload-guide-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 5px;
}

.system-upload-guide-copy p {
    margin: 0;
    color: #202428;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.system-upload-guide-copy small {
    margin-top: 13px;
    color: #747b80;
    font-size: 11.5px;
}

.system-upload-guide-delete {
    margin-top: auto;
    padding: 9px 12px;
    border: 1px solid #9da7b2;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
}

.system-upload-guide-empty,
.system-upload-guide-loading {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 150px;
    place-content: center;
    padding: 22px;
    border: 1px dashed #c9d0d4;
    border-radius: 15px;
    background: rgba(255,255,255,.62);
    color: #737a80;
    text-align: center;
}

.system-upload-guide-empty strong {
    color: #30363b;
}

.system-upload-guide-loading {
    grid-template-columns: auto auto;
    min-height: 210px;
}

.system-upload-guide-loading > span {
    width: 20px;
    height: 20px;
    border: 3px solid #ccd5d8;
    border-top-color: var(--hq-accent-dark, #a40a1c);
    border-radius: 50%;
    animation: system-upload-guide-spin .75s linear infinite;
}

@keyframes system-upload-guide-spin { to { transform: rotate(360deg); } }

.system-upload-guide-upload {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 20px;
    padding: 17px;
    border: 1px solid #cfd7da;
    border-radius: 16px;
    background: rgba(250, 250, 251, .72);
}

.system-upload-guide-upload > div,
.system-upload-guide-upload label {
    display: grid;
    gap: 6px;
}

.system-upload-guide-upload > div > span,
.system-upload-guide-upload label > span {
    color: #606970;
    font-size: 11.5px;
    font-weight: 750;
}

.system-upload-guide-upload input,
.system-upload-guide-upload textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c8d0d4;
    border-radius: 10px;
    background: #fff;
    color: #202428;
    font: inherit;
}

.system-upload-guide-upload input { padding: 9px; }
.system-upload-guide-upload textarea { min-height: 72px; padding: 10px 12px; resize: vertical; }

.system-upload-guide-upload button {
    min-height: 43px;
    padding: 0 16px;
    border: 1px solid #9da7b2;
    border-radius: 11px;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
}

.system-upload-guide-upload button:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 1080px) {
    .system-uploads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    html body[data-view="system-uploads"] #system-uploads-view.system-uploads-shell {
        padding: 44px 28px 40px;
    }
}

@media (max-width: 720px) {
    html body[data-view="system-uploads"] #system-uploads-view.system-uploads-shell {
        width: 100%;
        padding: 24px 16px 36px;
    }

    html body[data-view="system-uploads"] #system-uploads-view .system-uploads-heading {
        margin-bottom: 26px;
        padding: 0;
    }

    html body[data-view="system-uploads"] #system-uploads-view .system-uploads-heading h1 {
        font-size: 34px;
    }

    .system-uploads-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .system-upload-guide-modal { padding: 10px; }
    .system-upload-guide-dialog { max-height: calc(100vh - 20px); border-radius: 17px; }
    .system-upload-guide-header, .system-upload-guide-content { padding: 16px; }
    .system-upload-guide-item { grid-template-columns: 1fr; }
    .system-upload-guide-upload { grid-template-columns: 1fr; }
    .system-upload-guide-document { grid-template-columns: 54px minmax(0, 1fr); }
    .system-upload-guide-document-actions { grid-column: 1 / -1; justify-content: stretch; }
    .system-upload-guide-document-actions button { flex: 1 1 auto;
    background: linear-gradient(145deg, #ffffff 0%, #eef0f3 25%, #cbd1d8 57%, #f4f6f8 79%, #c6cdd5 100%);
    color: #15181c;
    box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(36, 43, 51, .14);
    border: 1px solid #9da7b2;
}
}
