:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6876;
  --line: #d9e0e8;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --accent: #087f8c;
  --accent-strong: #0b5f68;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: #eef3f5;
  color: var(--ink);
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.panel {
  width: min(900px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(25, 41, 55, 0.14);
  padding: 32px;
}

.brand {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.form, .login {
  display: grid;
  gap: 20px;
}

.login {
  grid-template-columns: 1fr 120px;
  align-items: end;
}

.drop {
  min-height: 180px;
  border: 2px dashed #9fb5bd;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f7fafb;
  cursor: pointer;
  padding: 24px;
}

.drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.drop-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.drop-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

select, input[type="password"] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 0 12px;
  font: inherit;
}

.checkline {
  min-height: 44px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 26px;
}

.checkline input {
  width: 18px;
  height: 18px;
}

.checkline span {
  margin: 0;
}

button, .download {
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}

button:hover, .download:hover {
  background: var(--accent-strong);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 12px;
}

.status-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa6b2;
}

.dot.running { background: #f59e0b; }
.dot.done { background: #16a34a; }
.dot.error { background: var(--danger); }

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf1;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.details {
  min-height: 24px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.download {
  width: 180px;
}

.hidden { display: none; }

@media (max-width: 640px) {
  .panel { padding: 22px; }
  .brand { align-items: flex-start; }
  .controls, .login { grid-template-columns: 1fr; }
  .checkline { padding-top: 0; }
  h1 { font-size: 24px; }
}
