:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #182230;
  background: #f4f7fb;
}

* { box-sizing: border-box; }
.upload-panel { margin-bottom: 24px; padding: 20px; background: white; border: 1px solid #d9e2ec; border-radius: 16px; }
.upload-panel label { font-size: 20px; font-weight: 700; }
.upload-panel p { color: #617083; overflow-wrap: anywhere; }
.upload-panel input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; }
.file-choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.file-choice { display: inline-block; padding: 10px 14px; border: 1px solid #1767a3; border-radius: 10px; color: #15517f; background: #f4faff; font-weight: 700; cursor: pointer; }
.file-choice:hover, .upload-panel input:focus + .file-choice { background: #e4f2fc; }
.upload-panel button { padding: 10px 18px; border: 0; border-radius: 10px; color: white; background: #1767a3; font: inherit; cursor: pointer; }
.upload-panel button:disabled { opacity: .6; cursor: wait; }
.file-type img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(29, 114, 184, .18), transparent 30rem),
    #f4f7fb;
}

main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

header { margin-bottom: 36px; }
.eyebrow { color: #1d72b8; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 8px 0 6px; font-size: clamp(34px, 7vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
header p { margin: 0; color: #617083; font-size: 18px; }

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px rgba(33, 56, 82, .07);
}

.toolbar label { font-weight: 700; }
.toolbar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c7d2df;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.toolbar input:focus { outline: 3px solid rgba(29, 114, 184, .18); border-color: #1d72b8; }
#count { color: #617083; white-space: nowrap; }

.status { padding: 40px 4px; color: #617083; text-align: center; }
.files { display: grid; gap: 12px; margin-top: 20px; }
.file-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(33, 56, 82, .05);
}
.file-type {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 12px;
  color: #15517f;
  background: #e4f2fc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.file-copy { min-width: 0; }
.file-copy h2 { overflow: hidden; margin: 0 0 4px; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy p { margin: 0; color: #738195; font-size: 13px; }
.file-card a {
  padding: 9px 13px;
  border-radius: 10px;
  color: #fff;
  background: #1767a3;
  font-weight: 700;
  text-decoration: none;
}
.file-card a:hover { background: #0e527f; }

@media (max-width: 600px) {
  main { padding: 42px 0; }
  .toolbar { grid-template-columns: 1fr auto; }
  .toolbar label { grid-column: 1 / -1; }
  .file-card { grid-template-columns: 46px minmax(0, 1fr); }
  .file-card a { grid-column: 1 / -1; text-align: center; }
}
