:root { color-scheme: dark; font-family: system-ui, -apple-system, sans-serif; color: #f3f5f4; background: #131617; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
header, main { width: min(100% - 40px, 960px); margin: auto; }
header { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-bottom: 1px solid #353b3b; font-size: 14px; }
header a { color: #a7e5d3; text-decoration: none; font-weight: 700; }
header span, .muted, .details { color: #aeb7b5; }
main { padding: 30px 0 48px; }
h1 { margin: 0 0 10px; font-size: 28px; font-weight: 650; }
h2 { font-size: 18px; margin: 0; }
#summary { margin: 0 0 28px; }
form { border-block: 1px solid #353b3b; padding: 22px 0; }
form > label { display: block; font-size: 14px; margin-bottom: 10px; }
.unlock-row { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; gap: 10px; }
input, button, .file-button { border-radius: 6px; min-height: 42px; font: inherit; font-size: 14px; }
input[type=password] { border: 1px solid #67716e; background: #1d2223; color: white; padding: 8px 12px; min-width: 0; width: 100%; }
button, .file-button { border: 1px solid #577e73; background: #a7e5d3; color: #102d24; cursor: pointer; padding: 10px 16px; font-weight: 600; }
button:hover:not(:disabled) { background: #c2f2e3; }
button:disabled { opacity: .45; cursor: default; }
.file-button, #lock { color: #e2eae7; background: transparent; border-color: #67716e; }
.file-button { position: relative; display: grid; place-items: center; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, .file-button:focus-within { outline: 3px solid #94c7ff; outline-offset: 3px; }
#status { color: #aeb7b5; margin: 12px 0 0; min-height: 20px; font-size: 14px; }
#status.error, #download-status.error { color: #ffb4ac; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 86px; }
[hidden] { display: none !important; }
ul { list-style: none; margin: 0; padding: 0; }
li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #353b3b; }
.title { margin: 0 0 5px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.details { margin: 0; font-size: 13px; }
.download { width: 145px; }
#download-status { min-height: 24px; color: #a7e5d3; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  header, main { width: calc(100% - 28px); }
  .unlock-row { grid-template-columns: 1fr 1fr; }
  input[type=password] { grid-column: 1 / -1; }
  li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .download { width: 100%; }
  h1 { font-size: 25px; }
  header { font-size: 13px; }
}
