:root {
    color-scheme: dark;
    --bg: #050812;
    --panel: rgba(8, 15, 29, 0.95);
    --panel-soft: rgba(11, 20, 36, 0.9);
    --text: #edf4fb;
    --muted: #94a6b3;
    --paper-blue: #6f95e8;
    --graphite: #8793a3;
    --acid: #abc95d;
    --danger: #ff4f6d;
    --shadow: rgba(0, 0, 0, 0.46);
    --radius: 8px;
    font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 78px;
    color: var(--text);
    background:
        linear-gradient(rgba(111, 149, 232, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(171, 201, 93, 0.018) 1px, transparent 1px),
        linear-gradient(135deg, rgba(111, 149, 232, 0.045), transparent 34%),
        linear-gradient(315deg, rgba(171, 201, 93, 0.04), transparent 38%),
        var(--bg);
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
    line-height: 1.5;
}

a {
    color: var(--paper-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.app-header {
    border-bottom: 1px solid rgba(111, 149, 232, 0.18);
    background: linear-gradient(90deg, rgba(111, 149, 232, 0.055), rgba(171, 201, 93, 0.035)), rgba(5, 8, 18, 0.94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.app-header__content {
    width: min(1080px, calc(100% - 32px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

h1,
h2 {
    margin: 0;
    font-family: "Cascadia Mono", "Segoe UI", monospace;
    line-height: 1.05;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(1.55rem, 4vw, 2.65rem);
    text-shadow: 0 0 12px rgba(111, 149, 232, 0.12);
}

h2 {
    font-size: 1.05rem;
}

h1 a,
h1 a:hover {
    color: inherit;
    text-decoration: none;
}

.header-tagline.is-typing {
    min-width: var(--typing-width, auto);
}

.header-tagline.is-typing::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 4px;
    vertical-align: -2px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    animation: cursor-blink 800ms steps(2, start) infinite;
}

.header-tagline {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.hub-link,
.button-primary,
.button-danger,
.button-secondary,
.file-picker {
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
}

.hub-link {
    min-height: 42px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #061016;
    border: 1px solid rgba(111, 149, 232, 0.28);
    background: linear-gradient(120deg, var(--paper-blue), var(--graphite), var(--acid), var(--paper-blue));
    background-size: 260% 260%;
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 5px 0 rgba(0, 0, 0, 0.34),
        0 0 8px rgba(111, 149, 232, 0.08);
    animation: hub-link-flow 5s ease-in-out infinite;
}

.hub-link:hover {
    color: #061016;
    text-decoration: none;
    animation-duration: 1.8s;
}

.hub-link:active,
.button-primary:active,
.button-danger:active,
.button-secondary:active,
.file-picker:active {
    box-shadow:
        inset 0 5px 12px rgba(0, 0, 0, 0.38),
        0 1px 0 rgba(0, 0, 0, 0.34),
        0 0 6px rgba(111, 149, 232, 0.08);
    transform: scaleY(0.92);
    transform-origin: bottom;
}

.button-primary,
.button-danger,
.button-secondary {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(111, 149, 232, 0.24);
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 5px 0 rgba(0, 0, 0, 0.34),
        0 10px 20px rgba(0, 0, 0, 0.22);
}

.icon-only-button {
    width: 44px;
    min-width: 44px;
    padding: 10px;
}

.button-primary {
    color: #061016;
    background: linear-gradient(135deg, var(--paper-blue), var(--graphite));
}

.button-secondary {
    color: var(--text);
    background: rgba(40, 104, 255, 0.28);
}

.button-danger {
    color: #ffe7ec;
    border-color: rgba(255, 79, 109, 0.36);
    background: rgba(255, 79, 109, 0.14);
}

.button-primary:disabled {
    opacity: 0.55;
    cursor: wait;
}

.combiner-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 30px auto 56px;
    display: grid;
    gap: 18px;
}

.combiner-panel,
.result-panel,
.info-panel {
    border: 1px solid rgba(111, 149, 232, 0.18);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow:
        0 0 8px rgba(111, 149, 232, 0.035),
        0 12px 28px rgba(0, 0, 0, 0.34);
}

.combiner-panel,
.info-panel {
    padding: clamp(18px, 4vw, 30px);
}

.combiner-panel {
    display: grid;
    gap: 18px;
}

.input-row,
.action-row,
.result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.input-row {
    justify-content: space-between;
}

.action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
}

.action-row #combineButton {
    grid-column: 2;
}

.action-row .status {
    grid-column: 3;
    justify-self: end;
}

input[type="file"] {
    display: none;
    cursor: pointer;
}

.file-picker {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(111, 149, 232, 0.24);
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 5px 0 rgba(0, 0, 0, 0.34),
        0 10px 20px rgba(0, 0, 0, 0.22);
}

.file-picker {
    color: #061016;
    background: linear-gradient(135deg, var(--paper-blue), var(--graphite));
}

.file-picker__text {
    white-space: nowrap;
}

.file-list {
    max-height: 240px;
    overflow: auto;
    border: 1px solid rgba(111, 149, 232, 0.2);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.24);
}

.file-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.file-list li {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.file-list li:first-child {
    border-top: 0;
}

.file-list li.is-dragging {
    opacity: 0.54;
}

.file-list li.is-drop-target {
    background: rgba(171, 201, 93, 0.055);
    box-shadow: inset 3px 0 0 var(--acid);
}

.file-order {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #061016;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--paper-blue), var(--graphite));
    font-size: 0.78rem;
}

.drag-handle {
    width: 28px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--muted);
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.file-list span:not(.file-actions):not(.drag-handle),
.file-name {
    overflow-wrap: anywhere;
}

.file-name {
    width: fit-content;
    max-width: 100%;
    padding: 0;
    cursor: pointer;
    color: var(--text);
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
}

.file-name:hover,
.file-name:focus-visible {
    color: #f4fdff;
    text-decoration: underline;
    text-decoration-color: rgba(111, 149, 232, 0.42);
    text-underline-offset: 3px;
}

.edited-badge {
    margin-left: 6px;
    padding: 2px 6px;
    display: inline-flex;
    color: #031c24;
    border-radius: 999px;
    background: #0dcaf0;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.file-list small {
    color: var(--muted);
}

.file-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.file-icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    color: var(--text);
    border: 1px solid rgba(111, 149, 232, 0.22);
    border-radius: 6px;
    background: rgba(40, 86, 170, 0.14);
    transition:
        color 150ms ease,
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.file-icon-button:not(:disabled):hover {
    color: #eefcff;
    border-color: rgba(111, 149, 232, 0.38);
    background: rgba(40, 86, 170, 0.2);
    box-shadow: none;
}

.file-icon-button:not(:disabled):active {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28);
    transform: scale(0.94);
}

.file-icon-button--danger {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: var(--danger);
}

.file-icon-button--danger:not(:disabled):hover {
    border-color: rgba(255, 255, 255, 0.86);
    background: #d83f5a;
    box-shadow: 0 0 12px rgba(255, 79, 109, 0.14);
}

.file-icon-button:disabled {
    opacity: 0.36;
    cursor: not-allowed;
}

.file-icon-button .bi,
.drag-handle .bi {
    font-size: 1rem;
    line-height: 1;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--paper-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

input[type="text"],
select,
textarea {
    width: 100%;
    color: var(--text);
    border: 1px solid rgba(111, 149, 232, 0.24);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    outline: none;
}

input[type="text"] {
    min-height: 48px;
    padding: 10px 12px;
}

select {
    min-height: 44px;
    padding: 10px 12px;
    cursor: pointer;
}

select option {
    color: var(--text);
    background-color: #101a2a;
}

textarea {
    min-height: 255px;
    padding: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--paper-blue);
    box-shadow: 0 0 0 3px rgba(111, 149, 232, 0.11);
}

.encoding-field {
    width: min(280px, 100%);
    margin-left: auto;
}

.encoding-help {
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.file-labels-panel {
    padding: 14px;
    border: 1px solid rgba(111, 149, 232, 0.22);
    border-radius: var(--radius);
    background: rgba(25, 38, 64, 0.58);
    transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.file-labels-panel.is-disabled {
    opacity: 0.58;
    background: rgba(0, 0, 0, 0.18);
}

.file-labels-panel__header,
.file-labels-panel__body,
.numbering-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.file-labels-panel__header {
    justify-content: space-between;
}

.file-labels-panel h3,
.file-labels-panel p {
    margin: 0;
}

.file-labels-panel h3 {
    color: var(--paper-blue);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.file-labels-panel p {
    color: var(--muted);
    font-size: 0.86rem;
}

.file-labels-panel__body {
    margin-top: 12px;
    justify-content: space-between;
}

.switch-control,
.numbering-field label,
.tag-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.switch-control {
    gap: 8px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.switch-control input,
.numbering-field input {
    accent-color: var(--paper-blue);
    cursor: pointer;
}

.numbering-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.numbering-field legend {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.numbering-field label {
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(111, 149, 232, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    min-height: 30px;
    padding: 5px 8px;
    color: #d9efff;
    border: 1px solid rgba(111, 149, 232, 0.24);
    border-radius: 6px;
    background: rgba(111, 149, 232, 0.12);
    font-family: var(--font-data), "Cascadia Mono", "Segoe UI", monospace;
    font-size: 0.78rem;
    font-weight: 800;
}

.label-preview {
    margin-top: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(246, 184, 79, 0.24);
    border-radius: 6px;
    background: rgba(246, 184, 79, 0.08);
}

.label-preview strong {
    color: #ffd27a;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.label-preview code {
    color: #f4fdff;
    font-family: var(--font-data), "Cascadia Mono", "Segoe UI", monospace;
    font-size: 0.86rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

input[type="text"].is-invalid {
    border-color: var(--danger);
}

.status {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
}

.status.is-success {
    color: #9bdc9b;
}

.status.is-error {
    color: #ff8fa0;
}

.result-panel {
    overflow: hidden;
}

.result-header,
.result-actions {
    padding: 14px 16px;
    background: rgba(40, 86, 170, 0.11);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(111, 149, 232, 0.2);
}

#fileSize {
    padding: 5px 8px;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    border: 1px solid rgba(224, 176, 93, 0.28);
    border-radius: 6px;
    background: rgba(224, 176, 93, 0.1);
    font-family: "Cascadia Mono", "Segoe UI", monospace;
    font-weight: 900;
}

.file-size-value {
    color: #ffd27a;
}

.file-size-unit {
    color: #a8d8a2;
    font-size: 0.78em;
    letter-spacing: 0.06em;
}

#resultPreview {
    max-height: 460px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    color: var(--text);
    background: rgba(0, 0, 0, 0.22);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.result-actions {
    border-top: 1px solid rgba(111, 149, 232, 0.2);
    justify-content: space-between;
}

.result-action-status {
    margin-right: auto;
    color: var(--paper-blue);
    font-weight: 900;
    text-align: left;
}

.result-icon-button {
    width: 44px;
    min-width: 44px;
    padding: 10px;
}

#copyButton {
    color: #e9f7ff;
    border-color: rgba(44, 120, 133, 0.42);
    background: linear-gradient(135deg, #2c7885, #173f4d);
}

#copyButton.is-copied {
    color: #071017;
    border-color: rgba(155, 220, 155, 0.46);
    background: linear-gradient(135deg, #9bdc9b, #77ddb9);
}

#prepareDownloadButton {
    color: #061016;
    border-color: rgba(178, 226, 93, 0.44);
    background: linear-gradient(135deg, #b2e25d, #6fb66d);
}

.result-view-button {
    width: 44px;
    min-width: 44px;
    padding: 10px;
    color: #140c04;
    border-color: rgba(246, 184, 79, 0.46);
    background: linear-gradient(135deg, #f6b84f, #c87824);
}

.result-download-group {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.info-panel h2 {
    color: var(--paper-blue);
}

.info-panel p {
    margin: 12px 0 0;
    color: var(--muted);
}

.privacy-note {
    padding: 10px 12px;
    border-left: 3px solid var(--paper-blue);
    background: rgba(111, 149, 232, 0.04);
    border-radius: 6px;
}

.combiner-dialog {
    width: min(480px, calc(100% - 32px));
    padding: 0;
    color: var(--text);
    border: 1px solid rgba(111, 149, 232, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(111, 149, 232, 0.07), rgba(171, 201, 93, 0.04)),
        var(--panel);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.54);
}

.combiner-dialog::backdrop {
    background: rgba(2, 5, 12, 0.72);
    backdrop-filter: blur(6px);
}

.combiner-dialog__panel {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.combiner-dialog__header,
.combiner-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.combiner-dialog h2 {
    margin: 0;
    color: var(--paper-blue);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.combiner-dialog.is-error h2,
.combiner-dialog.is-confirmation h2 {
    color: #ff7a70;
}

.combiner-dialog p {
    margin: 0;
    color: var(--muted);
    white-space: pre-line;
}

.combiner-dialog__close {
    width: 34px;
    height: 34px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 6px;
    background: #b9344c;
    font-weight: 900;
}

.combiner-dialog__close:active {
    filter: brightness(0.92);
    transform: scale(0.97);
}

.combiner-dialog__actions .button-danger {
    color: #ffe7ec;
    border-color: rgba(255, 79, 109, 0.34);
    background: linear-gradient(135deg, rgba(255, 79, 109, 0.24), rgba(160, 43, 61, 0.22));
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.22),
        0 4px 0 rgba(54, 14, 22, 0.46);
}

.combiner-dialog__actions .button-danger:hover {
    border-color: rgba(255, 79, 109, 0.48);
    background: linear-gradient(135deg, rgba(255, 79, 109, 0.3), rgba(160, 43, 61, 0.26));
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.22),
        0 4px 0 rgba(54, 14, 22, 0.5);
}

.combiner-dialog__actions .button-danger:active {
    box-shadow:
        inset 0 -1px 0 rgba(0, 0, 0, 0.24),
        0 2px 0 rgba(54, 14, 22, 0.46);
    transform: translateY(2px);
}

.combiner-dialog__actions {
    justify-content: flex-end;
}

.combiner-dialog__actions button[hidden] {
    display: none;
}

.editor-dialog,
.preview-dialog {
    width: min(860px, calc(100% - 32px));
    padding: 0;
    color: var(--text);
    border: 1px solid rgba(111, 149, 232, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(111, 149, 232, 0.07), rgba(171, 201, 93, 0.04)),
        var(--panel);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.54);
}

.preview-dialog {
    width: min(1280px, calc(100% - 16px));
    max-height: calc(100vh - 16px);
}

.editor-dialog::backdrop,
.preview-dialog::backdrop {
    background: rgba(2, 5, 12, 0.72);
    backdrop-filter: blur(6px);
}

.editor-dialog__panel,
.preview-dialog__panel {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.editor-dialog__header,
.editor-dialog__actions,
.preview-dialog__header,
.preview-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.editor-dialog h2,
.preview-dialog h2 {
    margin: 0;
    color: var(--paper-blue);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editor-dialog p,
.preview-dialog p {
    margin: 6px 0 0;
    color: var(--muted);
}

#fileEditorContent,
#combinedPreviewContent {
    min-height: 420px;
    max-height: min(58vh, 620px);
    font-family: "Cascadia Mono", "Segoe UI Mono", monospace;
    line-height: 1.55;
    resize: vertical;
}

#combinedPreviewContent {
    min-height: min(78vh, 820px);
    resize: none;
}

.editor-dialog__hint {
    padding: 10px 12px;
    border-left: 3px solid var(--paper-blue);
    background: rgba(111, 149, 232, 0.04);
    border-radius: 6px;
}

.editor-dialog__close,
.preview-dialog__close {
    width: 34px;
    height: 34px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 6px;
    background: #b9344c;
    font-weight: 900;
}

.editor-dialog__close:active,
.preview-dialog__close:active {
    filter: brightness(0.92);
    transform: scale(0.97);
}

.editor-dialog__actions,
.preview-dialog__actions {
    justify-content: flex-end;
}

.noscript-alert {
    width: min(1080px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 12px 14px;
    color: #ffe1e8;
    border: 1px solid rgba(255, 116, 137, 0.36);
    border-radius: var(--radius);
    background: rgba(255, 79, 109, 0.12);
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

@keyframes hub-link-flow {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 760px) {
    .app-header__content {
        width: calc(100% - 20px);
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .combiner-shell {
        width: calc(100% - 20px);
    }

    .file-list li {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .file-list small,
    .file-actions {
        grid-column: 3;
    }

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

    .result-actions {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .result-action-status {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .result-download-group {
        grid-column: 2;
        justify-self: end;
        min-width: 0;
    }

    body {
        padding-bottom: 0;
    }
}

@media (min-width: 320px) and (max-width: 425px) {
    .input-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .file-picker {
        justify-self: start;
    }

    #resetButton {
        justify-self: end;
    }

    .action-row {
        justify-content: center;
    }

    .file-list li {
        grid-template-columns: 28px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .drag-handle {
        display: none;
    }

    .file-name {
        grid-column: 2;
    }

    .file-list small {
        grid-column: 2;
    }

    .file-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        flex-direction: column;
        justify-self: end;
        gap: 5px;
    }

    .file-icon-button {
        width: 36px;
        height: 32px;
    }

    .result-download-group {
        flex-wrap: wrap;
        gap: 8px;
    }
}

#fileSize,
.result-action-status,
.file-list small {
    font-family: var(--font-data), "Cascadia Mono", "Segoe UI", monospace;
}
