:root { color-scheme: light; font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif; color:#17233a; background:#f4f6fa; }
* { box-sizing:border-box; }
body { margin:0; }
main { width:min(900px,calc(100% - 32px)); margin:0 auto 64px; }
header { display:flex; justify-content:space-between; align-items:center; padding:26px 0; color:#637188; }
.brand { color:#17233a; font-size:21px; font-weight:800; text-decoration:none; letter-spacing:-.04em; }
.card { background:#fff; border:1px solid #e3e8f0; border-radius:18px; padding:32px; margin-bottom:20px; box-shadow:0 8px 30px rgba(25,42,76,.04); }
h1 { font-size:27px; margin:0 0 14px; }
h2 { font-size:20px; margin:0 0 10px; }
p { color:#637188; line-height:1.7; }
.eyebrow { color:#2c66d4; font-size:12px; font-weight:800; letter-spacing:.08em; margin:0 0 8px; }
.row,.file-item { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.row a { white-space:nowrap; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
label { display:block; font-size:14px; font-weight:700; margin:20px 0; }
input,select { display:block; width:100%; padding:13px 14px; margin-top:8px; border:1px solid #cad3e2; border-radius:9px; background:#fff; font:inherit; color:#17233a; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.drop-zone { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:180px; margin:20px 0; padding:24px; border:2px dashed #aebfdb; border-radius:14px; background:#f7f9fd; color:#275dc6; text-align:center; cursor:pointer; transition:background .15s,border-color .15s; }
.drop-zone strong { font-size:17px; }
.drop-zone span { margin-top:8px; color:#637188; font-size:13px; font-weight:400; }
.drop-zone .selected-file { margin-top:18px; color:#17233a; font-weight:700; overflow-wrap:anywhere; }
.drop-zone.dragging,.drop-zone:hover { background:#eaf0ff; border-color:#275dc6; }
.drop-zone:focus-visible { outline:3px solid #275dc6; outline-offset:3px; }
button,.button { display:inline-block; border:0; background:#275dc6; color:#fff; border-radius:9px; padding:12px 18px; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; }
button:disabled { opacity:.5; cursor:wait; }
.secondary { color:#275dc6; background:#eaf0ff; }
.quiet { color:#b02a3c; background:#fff1f3; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.file-item { border-top:1px solid #e8edf4; padding:18px 0; }
.file-item strong { overflow-wrap:anywhere; }
.file-item p { margin:5px 0 0; font-size:13px; }
.batch-item { border-top:1px solid #e8edf4; padding:16px 0; overflow-wrap:anywhere; }
.batch-item p { margin:6px 0; font-size:13px; }
.group-file { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid #e8edf4; padding:18px 0; }
.group-file strong { overflow-wrap:anywhere; }
.group-file p { margin:5px 0 0; font-size:13px; }
#group-controls { border-top:1px solid #e8edf4; margin-top:18px; padding-top:4px; }
#group-controls[hidden] { display:none; }
#group-result { margin-top:14px; }
#group-result button { margin-top:8px; }
#progress { margin-top:18px; line-height:1.6; }
#progress button { display:block; margin-top:12px; }
.error { color:#b02a3c; }
@media(max-width:650px) { .card { padding:22px; } .grid { grid-template-columns:1fr; gap:0; } .file-item,.group-file { display:block; } .actions,.group-file .button { margin-top:12px; } }
