:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #162033;
  --muted: #5b667a;
  --line: #d9e1ec;
  --brand: #145cff;
  --brand-dark: #0c3fb0;
  --error: #b42318;
  --success: #067647;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e8efff, var(--bg) 34rem);
  color: var(--ink);
}
.shell {
  width: min(94vw, 760px);
  margin: 0 auto;
  padding: 48px 0;
}
.card {
  background: var(--card);
  border: 1px solid rgba(18, 31, 53, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(25, 42, 70, 0.12);
  padding: clamp(24px, 5vw, 44px);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 28px rgba(20, 92, 255, 0.22));
}
.brand-title {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 850;
  letter-spacing: -0.045em;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.95;
}
.brand-title span {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}
h1 {
  margin: 22px 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.intro, .notice { color: var(--muted); line-height: 1.55; }
.notice {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}
label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
}
input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
}
.drop-zone {
  margin: 20px 0;
  border: 2px dashed #b7c5d9;
  border-radius: 18px;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #fbfdff;
}
.drop-zone.dragover {
  border-color: var(--brand);
  background: #eef4ff;
}
button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary {
  width: 100%;
  padding: 15px 22px;
  background: var(--brand);
  color: white;
}
.primary:not(:disabled):hover { background: var(--brand-dark); }
.secondary {
  padding: 12px 18px;
  background: #eaf0fb;
  color: var(--brand-dark);
}
:focus-visible {
  outline: 3px solid rgba(20, 92, 255, 0.35);
  outline-offset: 3px;
}
.file-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.file-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.file-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.progress {
  height: 9px;
  margin-top: 10px;
  background: #e8edf5;
  border-radius: 999px;
  overflow: hidden;
}
.progress > div, .total-progress > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #10b981);
  transition: width 120ms linear;
}
.total-progress {
  height: 12px;
  margin: 18px 0 8px;
  background: #e8edf5;
  border-radius: 999px;
  overflow: hidden;
}
.status { min-height: 1.5em; font-weight: 650; }
.status.error { color: var(--error); }
.status.success { color: var(--success); }
@media (max-width: 560px) {
  .shell { padding: 18px 0; }
  .card { border-radius: 18px; }
  .brand-lockup { align-items: flex-start; gap: 12px; }
  .brand-logo { width: 78px; height: 78px; }
  .brand-title { flex-direction: column; gap: 2px; }
  .file-meta { display: block; }
}
