:root {
    color-scheme: light;
    font: 16px/1.55 system-ui, -apple-system, sans-serif;
    color: #172031;
    background: #f4f6fa;
    --accent: #2854ba;
    --line: #dce2ee;
    --muted: #505d73;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #204aa9; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.12em; }
.masthead {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem max(1.25rem, calc((100% - 58rem) / 2));
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    font-weight: 760;
    color: #172031;
}
.mark {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    background: #e7eeff;
    color: var(--accent);
    font-size: 1.3rem;
}
nav, .row-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
main { width: min(58rem, calc(100% - 2.5rem)); margin: 3rem auto; }
h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.15; letter-spacing: -.045em; }
h2 { margin: 0 0 .7rem; font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 .8rem; }
section { margin-bottom: 2rem; }
.panel, .rows {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .8rem;
}
.panel { padding: clamp(1rem, 4vw, 1.7rem); }
.auth { max-width: 27rem; margin: min(14vh, 6rem) auto; }
.stack, label { display: grid; gap: .45rem; }
.stack { gap: 1rem; max-width: 30rem; }
label { font-weight: 650; }
input:not([type=hidden]) {
    width: 100%;
    background: #fff;
    color: #172031;
    border: 1px solid #aab6ca;
    border-radius: .42rem;
    padding: .58rem .67rem;
    font: inherit;
}
input[type=file] { margin: .35rem 0 .7rem; }
button {
    font: inherit;
    font-weight: 650;
    color: #172031;
    cursor: pointer;
    border: 1px solid #b4bed2;
    background: #fff;
    border-radius: .43rem;
    padding: .5rem .75rem;
}
button:disabled { opacity: .6; cursor: wait; }
button:not(:disabled):hover { background: #eef2fa; }
button.primary { color: #fff; background: var(--accent); border-color: var(--accent); justify-self: start; }
button.primary:not(:disabled):hover { background: #1c4199; }
button.danger { color: #a42233; }
button.quiet { color: #204aa9; }
:focus-visible { outline: 3px solid #406bd2; outline-offset: 3px; }
.upload { border-style: dashed; border-color: #94a6cb; }
.upload.dragging { background: #eaf0ff; border-color: var(--accent); }
progress { display: block; width: min(100%, 20rem); margin: .8rem 0; accent-color: var(--accent); }
#upload-status:not(:empty) { margin-top: .6rem; }
#upload-status:empty { margin: 0; }
.muted { color: var(--muted); font-weight: 450; }
.error { color: #902233; background: #fff1f3; border-radius: .35rem; padding: .55rem .65rem; }
.rows { padding: 0; list-style: none; }
.rows li {
    padding: .9rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .7rem 1.2rem;
}
.rows li + li { border-top: 1px solid var(--line); }
.file-info { display: grid; gap: .18rem; min-width: 0; overflow-wrap: anywhere; }
.filename { font-weight: 720; }
details form { margin-top: .65rem; }
summary { cursor: pointer; color: #204aa9; }
