@font-face {
    font-family: "72";
    src: url("brand/72-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "72";
    src: url("brand/72-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    font: 16px/1.5 "72", Arial, sans-serif;
    color: #222126;
    background: #f5f5f7;
    --brand: #aa0202;
    --line: #e5e2e5;
    --muted: #58535e;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1170px, calc(100% - 2rem)); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.top-inner, .identity, .heading, .section-head, .account, .actions, .upload-form, .pagination {
    display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
}
.top-inner, .heading, .section-head { justify-content: space-between; }
.top-inner { min-height: 4.5rem; padding-block: .65rem; }
.identity { gap: clamp(.6rem, 2vw, 1.2rem); }
.logo { display: block; width: clamp(104px, 21vw, 145px); height: auto; }
.brand { border-left: 1px solid var(--line); padding-left: clamp(.6rem, 2vw, 1.2rem); color: #222126; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--brand); }
.account { font-size: .9rem; }
main { padding-block: clamp(1rem, 4vw, 2.5rem) 3rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: 1.25rem; line-height: 1.25; }
.heading { gap: 1.35rem; padding: clamp(1.2rem, 4vw, 2.35rem); background: #232126; color: white; border-radius: .85rem; border-left: .4rem solid var(--brand); }
.eyebrow { color: var(--brand); font-size: .83rem; font-weight: 700; margin-bottom: .45rem; }
.heading .eyebrow { color: #ffb4b4; }
.quota { display: grid; gap: .3rem; width: min(13rem, 100%); }
.quota label, .quota span { color: #e0d9e1; font-size: .83rem; font-weight: 400; }
.quota strong { font-size: 1.25rem; }
progress { width: 100%; height: .45rem; accent-color: #ee4848; }
progress::-webkit-progress-bar { background: #575058; border-radius: .25rem; }
progress::-webkit-progress-value { background: #ee4848; border-radius: .25rem; }
.empty, small, time { color: var(--muted); }
.card { padding: clamp(1rem, 3vw, 1.5rem); background: white; border: 1px solid var(--line); border-radius: .85rem; margin-top: 1rem; box-shadow: 0 2px 5px #21191e08; }
.login { max-width: 30rem; margin: clamp(1rem, 8vh, 5rem) auto; border-top: .3rem solid var(--brand); padding: clamp(1.2rem, 5vw, 2.2rem); }
.login h1 { font-size: clamp(1.65rem, 5vw, 2.25rem); }
.stack { display: grid; gap: 1rem; margin-top: 1.3rem; }
.stack label, .drop { display: grid; gap: .35rem; }
.stack label { font-weight: 700; }
.stack button { justify-self: start; }
.upload-form { margin-top: .85rem; }
.drop { flex: 1 1 18rem; min-width: 0; padding: 1rem; background: #fcf9f9; border: 1px dashed #b87979; border-radius: .55rem; overflow-wrap: anywhere; }
.drop.dragging { background: #fbe2e4; border-color: var(--brand); }
#file-label { font-weight: 700; }
input, select, button { font: inherit; }
input:not([type=file]), select { min-height: 2.6rem; border: 1px solid #b7b1bb; padding: .45rem .65rem; border-radius: .4rem; max-width: 100%; background: white; color: inherit; }
input[type=file] { width: 100%; margin-top: .2rem; font-size: .9rem; }
input::file-selector-button { background: white; border: 1px solid #cdbbbe; color: var(--brand); font: inherit; font-weight: 700; padding: .3rem .55rem; border-radius: .35rem; margin-right: .6rem; cursor: pointer; }
button { min-height: 2.6rem; background: var(--brand); color: white; border: 1px solid transparent; border-radius: .4rem; padding: .4rem .85rem; font-weight: 700; cursor: pointer; }
button:hover { background: #840202; }
button.secondary { background: white; color: #3b343e; border-color: #c8c2cb; }
button.secondary:hover { background: #f4f1f4; }
button.danger { color: var(--brand); background: #fff2f2; }
button.danger:hover { background: #fbe2e4; }
a, summary { color: var(--brand); }
a { text-underline-offset: .16em; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.notice { background: #edf7ef; border: 1px solid #a7c7ad; border-radius: .5rem; padding: .8rem 1rem; margin-bottom: 1rem; }
.notice.error { background: #fff0f0; border-color: #eac0c0; color: #850505; list-style-position: inside; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; text-align: left; }
thead { background: #f6f4f6; }
th { color: #4f4754; font-size: .85rem; }
th, td { padding: .75rem .65rem; border-bottom: 1px solid var(--line); }
.filename, .event { overflow-wrap: anywhere; }
.filename { min-width: 10rem; max-width: 28rem; font-weight: 700; }
.transfer, .pagination, .empty { margin-top: .75rem; }
.event { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.event time { display: inline-block; margin-left: .5rem; font-size: .88rem; }

.archive-footer { display: flex; justify-content: flex-end; margin-top: 1rem; }
dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1rem, 4vw, 1.65rem); color: inherit; border: 1px solid var(--line); border-top: .3rem solid var(--brand); border-radius: .85rem; box-shadow: 0 12px 40px #23152030; }
dialog::backdrop { background: #211c24a6; }
dialog h3 { margin: .85rem 0 .35rem; font-size: 1.08rem; }
.guide-progress { margin-top: .25rem; color: var(--muted); font-size: .88rem; }
.guide-choice { display: flex; align-items: baseline; gap: .45rem; margin: 1.3rem 0 .9rem; }
.guide-choice input { accent-color: var(--brand); }
.guide-controls { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.help-search { display: grid; gap: .3rem; margin-top: 1rem; }
.help-questions { margin: .65rem 0 1rem; }
.help-questions details { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.help-questions details p { margin-top: .35rem; }
#help-empty { margin-bottom: 1rem; }

.heading .back-link { color: white; }
.session-date { white-space: nowrap; font-variant-numeric: tabular-nums; }

.user-create { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-top: .85rem; }
.user-create label { display: grid; gap: .25rem; max-width: 100%; }

.result-count { margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.archive-toolbar { align-items: end; }
.archive-toolbar select { max-width: min(100%, 12rem); }
.filename a { text-decoration: none; }
.filename a:hover { text-decoration: underline; }
#archive-preview { width: min(72rem, calc(100% - 2rem)); }
#preview-title { overflow-wrap: anywhere; }
.preview-tools { margin: .5rem 0; }
#preview-frame { display: block; width: 100%; height: 67dvh; border: 1px solid var(--line); border-radius: .4rem; }
#upload-details { max-height: 45dvh; overflow: auto; padding-left: 1.3rem; overflow-wrap: anywhere; }
#upload-summary { margin-top: .5rem; font-weight: 700; }
#upload-progress { color: var(--muted); }
.pagination a, .pagination .current-page { padding: .25rem .5rem; }
.pagination .current-page { background: var(--brand); color: white; border-radius: .3rem; }
