:root {
    color-scheme: light;
    --paper: #f7f7f6;
    --ink: #171a20;
    --quiet: #5c5e62;
    --line: #d0d1d2;
    --red: #cf102d;
    --pressed: #a20820;
    --column: 52rem;
    --control: 27.5rem;
    font: 400 100%/1.5 "Universal Sans", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body, h1, p, fieldset { margin: 0; }
body { min-height: 100vh; min-height: 100svh; padding: clamp(12px, 4vh, 40px) 0 32px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, summary, select, a, input[type=file] { touch-action: manipulation; }
a { color: var(--red); text-decoration: none; }
button, select, summary { cursor: pointer; }
.shell { width: min(calc(100% - 40px), var(--column)); margin-inline: auto; }
.mast, .brand, .upload-link, .key, .action { display: flex; align-items: center; }
.mast { justify-content: space-between; min-height: 52px; }
.brand { color: var(--ink); min-height: 44px; width: fit-content; }
.brand svg { display: block; width: 124px; height: auto; fill: currentColor; }
.upload-link, .action, .key {
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
.upload-link, .action { background: transparent; color: var(--red); padding-inline: 8px; }
.key { padding: 0 20px; color: white; background: var(--red); white-space: nowrap; }
.key:hover, .file-slot:hover .pick-key { background: #b50a24; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: none; color: white; background: var(--ink); }
.key:focus-visible, .file-slot:focus-within .pick-key { color: white; background: var(--ink); }
.key:active, .file-slot:active .pick-key { background: var(--pressed); }
.icon { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.upload-page { padding-top: clamp(44px, calc(40svh - 112px), 420px); }
.upload-page .shell { max-width: var(--control); }
.upload-page .mast { min-height: 44px; margin-bottom: 24px; }
.upload-page .brand svg { width: clamp(160px, 33vw, 180px); }
#picker, .file-face { display: flex; align-items: center; gap: 16px; }
.file-slot { position: relative; min-width: 0; }
.file-slot input { max-width: 100%; min-height: 44px; }
.file-slot input::file-selector-button { min-height: 44px; padding-inline: 12px; font: inherit; }
.file-face, .enhanced .basic-submit, .drop-prompt, .release-prompt { display: none; }
.enhanced .file-face { display: flex; }
.enhanced .file-slot input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-prompt, .release-prompt { font-size: 14px; color: var(--quiet); }
@media (hover: hover) and (pointer: fine) { .drop-prompt { display: inline; } }
.drag .drop-prompt { display: none; }
.drag .release-prompt { display: inline; color: var(--red); }
.sources { margin-top: 20px; }
.source-row, .results form { display: flex; align-items: center; gap: 12px; }
.source-row { min-height: 48px; }
.source-row > .icon { color: var(--quiet); }
.live-entry { width: fit-content; color: var(--red); font-size: 14px; font-weight: 600; }
.live-entry > .icon { color: inherit; }
.source-row input:not([type=hidden]) {
    flex: 1; width: 0; min-width: 0; min-height: 46px; padding: 0;
    background: transparent; color: var(--ink); border: 0; outline: none; font-size: 16px;
}
.source-row input[type=search]:focus-visible { background: #eaeaea; border-radius: 3px; }
.select-field { --arrow-inset: 10px; display: inline-flex; align-items: center; position: relative; min-width: 0; }
.select-field select { appearance: none; padding-inline-end: calc(var(--arrow-inset) + 21px); text-overflow: ellipsis; }
.select-field > .icon-chevron { position: absolute; inset-inline-end: var(--arrow-inset); top: 50%; transform: translateY(-50%); width: 14px; height: 14px; pointer-events: none; }
.select-field select:focus-visible ~ .icon-chevron { color: white; }
.source-row input::placeholder { color: var(--quiet); opacity: 1; }
.source-row .action, .results .action { min-width: 64px; justify-content: flex-end; }
.results { margin: 0; padding: 0; list-style: none; }
.results form { justify-content: space-between; min-height: 44px; }
.result-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.results strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 550; }
.results time { flex: none; font-size: 12px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.transfer { display: grid; gap: 10px; }
#filename { overflow-wrap: anywhere; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.transfer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }
.transfer-meta > span { font-size: 14px; color: var(--quiet); }
#amount { color: var(--ink); font-variant-numeric: tabular-nums; }
#pause { padding-inline: 8px 0; }
#pause .icon { width: 14px; height: 14px; }
#pause:not(.paused) .icon-resume, #pause.paused .icon-pause { display: none; }
progress { display: block; width: 100%; height: 3px; appearance: none; border: 0; color: var(--red); background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--red); }
progress::-moz-progress-bar { background: var(--red); }
.copy-buffer { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feedback, .message p { color: var(--quiet); margin-top: 8px; font-size: 14px; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.message { padding-block: 24px; }
.delete-confirm { max-width: 48ch; }
.delete-confirm form { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.message h1 { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.message a { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 500px) {
    .video-page { padding-top: max(8px, env(safe-area-inset-top)); }
    .video-page .shell { width: calc(100% - 24px); }
}
@media (max-height: 600px) { .upload-page { padding-top: 24px; } }
@media (forced-colors: active) {
    .key, .action { border: 1px solid ButtonText; }
    a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, .file-slot:focus-within .key, .source-row:focus-within { outline: 2px solid Highlight; }
}
