:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c1f24;
  --muted: #667085;
  --line: #d6dae1;
  --accent: #d63a17;
  --accent-text: #ffffff;
  --ok-bg: #ecfdf3;
  --ok-text: #05603a;
  --err-bg: #fef3f2;
  --err-text: #b42318;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --card: #1a1d23;
    --text: #eceef2;
    --muted: #98a2b3;
    --line: #343a46;
    --ok-bg: #0b2e1f;
    --ok-text: #75e0a7;
    --err-bg: #3a1513;
    --err-text: #fda29b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
h1 { font-size: 22px; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 20px; }
form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
}
.field { margin-bottom: 16px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; gap: 0; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.req, .opt { font-size: 12px; font-weight: 500; margin-left: 4px; }
.req { color: var(--err-text); }
.opt { color: var(--muted); }
input, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type="file"] { padding: 8px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.file-list li { overflow-wrap: anywhere; }
.notice { border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.notice.error { background: var(--err-bg); color: var(--err-text); }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
button {
  width: 100%;
  font: inherit;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
