:root{
  --bg:#e9eef6;
  --card:#f7fbff;
  --accent:#2b6fb3;
  --accent-2:#6ea0d6;
  --muted:#6b7280;
  --success:#2ea44f;
  --danger:#d64545;
  --shadow: 0 6px 18px rgba(43,111,179,0.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,var(--bg),#dfeaf7);
  color:#0b2540;
  display:flex;
  min-height:100vh;
  align-items:center;
  justify-content:center;
  padding:28px;
}

.card{
  width:100%;
  max-width:760px;
  background:var(--card);
  border-radius:12px;
  padding:28px;
  box-shadow:var(--shadow);
  border:1px solid rgba(43,111,179,0.06);
}

h1{
  margin:0 0 6px 0;
  color:var(--accent);
  font-size:22px;
  letter-spacing:0.2px;
}

.lead{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:14px;
}

.controls{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}

input[type="file"]{
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(11,37,64,0.06);
  background:white;
  font-size:14px;
}

button{
  background:var(--accent);
  color:white;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  box-shadow: 0 6px 12px rgba(43,111,179,0.12);
}

button.small{
  background:transparent;
  color:var(--accent);
  border:1px solid rgba(43,111,179,0.12);
  padding:6px 10px;
  font-size:13px;
  border-radius:8px;
  box-shadow:none;
}

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

.status{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

.progress-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.progress-bar{
  flex:1;
  height:12px;
  background:linear-gradient(90deg,#dfeaf7,#e6f0fb);
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(11,37,64,0.04);
}

.progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transition:width 220ms linear;
}

.progress-text{
  min-width:48px;
  text-align:right;
  font-size:13px;
  color:var(--muted);
}

.error{
  color:var(--danger);
  margin-top:8px;
  font-size:13px;
  display:block;
}

.download-area{
  margin-top:14px;
}

.inspector-wrap{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:12px;
}

.inspector{
  flex:1;
  font-size:12px;
  color:#0b2540;
  background:rgba(11,37,64,0.03);
  padding:10px;
  border-radius:8px;
  max-height:220px;
  overflow:auto;
  white-space:pre-wrap;
}

.inspector-controls{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.footer{
  margin-top:18px;
  font-size:12px;
  color:var(--muted);
}

.version-badge{
  position:fixed;
  right:14px;
  bottom:14px;
  background:rgba(11,37,64,0.06);
  color:var(--muted);
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  border:1px solid rgba(11,37,64,0.04);
}
