* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #68738a;
  --line: #dfe5ef;
  --card: #ffffff;
  --bg: #f4f7fb;
  --blue: #3569e8;
  --blue-soft: #eef3ff;
  --green: #1b9c72;
  --red: #b83a52;
}
html, body { min-height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% -15%, #e7efff 0, var(--bg) 46%, #f8fafc 100%);
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(100% - 32px, 680px); margin: 0 auto; padding: 68px 0 36px; }
.brand { display: flex; align-items: center; gap: 14px; margin: 0 0 26px 4px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue); color: white; font-size: 27px; font-weight: 800; box-shadow: 0 10px 24px #3569e82b; }
.eyebrow { margin: 0 0 3px; color: var(--blue); font-size: 10px; letter-spacing: .14em; font-weight: 800; }
h1 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.card { padding: 34px; border: 1px solid #e8edf5; border-radius: 24px; background: var(--card); box-shadow: 0 22px 70px #31446c17; }
.intro h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.intro p { margin: 10px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.drop-zone { min-height: 225px; padding: 32px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed #aebbd4; border-radius: 18px; background: #fbfcff; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; text-align: center; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--blue); background: var(--blue-soft); outline: none; transform: translateY(-1px); }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 27px; font-weight: 700; }
.drop-zone strong { font-size: 14px; }
.drop-zone span:last-child { color: var(--muted); font-size: 12px; }
.file-name { margin: 12px 2px 0; overflow: hidden; color: var(--blue); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
button, .download { font: inherit; }
.primary, .secondary, .download { width: 100%; min-height: 47px; margin-top: 18px; border-radius: 12px; font-size: 13px; font-weight: 750; cursor: pointer; text-decoration: none; transition: opacity .18s, transform .18s; }
.primary { border: 0; background: var(--blue); color: white; box-shadow: 0 8px 20px #3569e82e; }
.primary:hover:not(:disabled), .download:hover, .secondary:hover { transform: translateY(-1px); }
.primary:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.progress { margin-top: 22px; padding: 18px; border-radius: 14px; background: #f8faff; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.progress-head span { color: var(--blue); font-variant-numeric: tabular-nums; }
.track { height: 7px; margin: 12px 0 10px; overflow: hidden; border-radius: 99px; background: #dfe7f8; }
.track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease; }
.progress p, .result p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.result { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 15px; border: 1px solid #cfeee2; border-radius: 14px; background: #f4fcf9; }
.success-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #daf5ea; color: var(--green); font-weight: 800; }
.result strong { display: block; margin-bottom: 2px; font-size: 12.5px; }
.result .download { flex: 0 0 auto; width: auto; min-height: 36px; margin: 0 0 0 auto; padding: 9px 12px; background: var(--green); color: #fff; font-size: 11px; }
.error { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff4f5; color: var(--red); font-size: 12px; line-height: 1.55; }
footer { margin: 18px 4px 0; color: #8993a5; font-size: 11px; line-height: 1.6; text-align: center; }
@media (max-width: 560px) { .shell { width: min(100% - 20px, 680px); padding-top: 34px; } .card { padding: 22px 18px; border-radius: 19px; } .drop-zone { min-height: 195px; } .result { flex-wrap: wrap; } .result .download { width: 100%; margin-left: 39px; text-align: center; } }
