:root{
  --bg:#f6fbff;
  --surface:#fff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#d7e8f7;
  --blue:#1597e5;
  --blue2:#0b6fb3;
  --green:#0f8b62;
  --red:#b42318;
  --shadow:0 24px 70px rgba(21,151,229,.13);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    linear-gradient(120deg,rgba(21,151,229,.12),transparent 30%),
    linear-gradient(180deg,#fff 0%,var(--bg) 46%,#fff 100%);
  min-height:100vh;
}
.wrap{width:min(920px,calc(100% - 28px));margin:0 auto}
.topbar{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px);
}
.topbar .wrap{min-height:150px;display:flex;align-items:center;justify-content:center;padding:14px 0}
.brand-logo{display:block;width:min(760px,100%);height:auto;max-height:122px;object-fit:contain;object-position:center}
.page{padding:50px 0 70px}
.card{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:clamp(24px,5vw,46px);
}
.eyebrow{
  display:inline-flex;
  background:#e8f6ff;
  color:#075985;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 11px;
  font-weight:800;
  font-size:.84rem;
}
h1{
  margin:18px 0 12px;
  font-size:clamp(2rem,5vw,3.45rem);
  line-height:1.02;
  letter-spacing:-.05em;
}
.lead{color:var(--muted);font-size:1.05rem;max-width:740px;margin:0 0 30px}
form{display:grid;gap:20px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
label{display:grid;gap:8px;font-weight:750;font-size:.93rem}
input,textarea{
  width:100%;
  border:1px solid #cbddeb;
  border-radius:14px;
  padding:13px 14px;
  font:inherit;
  color:var(--text);
  background:#fff;
  outline:none;
  transition:.18s ease;
}
input:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(21,151,229,.12)}
textarea{resize:vertical}
.dropzone{
  border:2px dashed #a8d7f7;
  background:#f6fbff;
  border-radius:20px;
  padding:30px 20px;
  text-align:center;
  cursor:pointer;
  place-items:center;
}
.dropzone.dragover{border-color:var(--blue);background:#e8f6ff}
.dropzone input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.dropzone strong{font-size:1.05rem;color:#075985}
.dropzone span{font-weight:500;color:var(--muted)}
.file-summary{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:13px 15px;
  color:var(--muted);
  font-size:.92rem;
  overflow-wrap:anywhere;
}
.notice{
  border-left:4px solid var(--blue);
  background:#eaf6ff;
  padding:13px 15px;
  border-radius:10px;
  color:#334155;
  font-size:.9rem;
}
button{
  border:0;
  border-radius:16px;
  padding:15px 20px;
  background:var(--blue);
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(21,151,229,.26);
}
button:hover{background:var(--blue2)}
button:disabled{opacity:.55;cursor:not-allowed}
.progress-box,.result{
  margin-top:24px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  background:#f8fcff;
}
.progress-head{display:flex;justify-content:space-between;gap:18px}
.progress-track{height:11px;border-radius:999px;background:#dcecf7;overflow:hidden;margin:13px 0 8px}
#progressBar{width:0;height:100%;background:linear-gradient(90deg,var(--blue),#74c9ff);transition:width .2s ease}
.current-file{color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}
.result.success{border-color:#b8ecd8;background:#ecfdf5;color:#065f46}
.result.error{border-color:#fecaca;background:#fef2f2;color:var(--red)}
.hidden{display:none}
footer{padding:30px 0 42px;color:var(--muted);font-size:.88rem;text-align:center}
@media(max-width:700px){
  .topbar .wrap{min-height:105px;padding:10px 0}
  .brand-logo{width:min(520px,100%);height:auto;max-height:88px}
  .page{padding-top:24px}
  .grid{grid-template-columns:1fr}
  .card{border-radius:22px}
}
