:root{font-family:system-ui,-apple-system,"Yu Gothic",sans-serif;color:#18322e;background:#f4f6f2;font-size:15px}*{box-sizing:border-box}body{margin:0}header{height:72px;border-bottom:1px solid #dce5da;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100% - 1200px)/2))}.brand{font-size:14px;letter-spacing:2px;font-weight:750}.badge{background:#e4eee4;padding:8px 13px;border-radius:99px;font-size:12px}main{max-width:1200px;margin:auto;padding:38px 24px}.eyebrow{font-size:13px;color:#537768;letter-spacing:.15em}h1{font-size:36px;letter-spacing:-.03em;margin:12px 0}p{line-height:1.75}aside{background:#e7eee3;border:1px solid #d2decb;padding:16px 20px;border-radius:12px;font-size:13px;line-height:1.9;margin:26px 0}.workspace{display:grid;grid-template-columns:.95fr 1.2fr;gap:24px;align-items:start}article,details{background:white;border:1px solid #dce3da;border-radius:16px;padding:24px}details{margin-top:16px}h2{font-size:18px;margin:0 0 20px;display:flex;gap:10px;align-items:center}h2 b{font-size:13px;background:#edf2e9;border-radius:50%;display:inline-grid;place-items:center;width:27px;height:27px}.upload{display:block;border:1px dashed #82a393;border-radius:10px;padding:22px;background:#f8faf5;cursor:pointer;font-weight:600}input[type=file]{display:block;margin-top:15px;width:100%;font-size:12px}.small{font-size:12px;color:#60726a;line-height:1.8}.preview{background:#edf0ed;border-radius:10px;min-height:220px;display:flex;align-items:center;justify-content:center;margin:18px 0;overflow:hidden}.preview p{font-size:12px;color:#728276}.preview canvas{max-width:100%;height:auto}button{border:0;border-radius:8px;background:#285f49;color:white;font:inherit;font-weight:600;padding:12px 17px;cursor:pointer}button:disabled{opacity:.4;cursor:default}.secondary{background:#edf2eb;color:#28533e}.link{background:transparent;color:#315d49;font-size:13px;padding:6px 0;text-decoration:underline}.actions{display:flex;gap:9px;flex-wrap:wrap}#status{font-size:13px;min-height:24px}progress{width:100%;margin-top:15px}#fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}#fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#52685c}#fields label.wide{grid-column:1/-1}input[type=text],textarea,select{font:inherit;border:1px solid #cfdbd0;border-radius:6px;padding:10px;background:#fff;color:#173b29;width:100%}input:focus,textarea:focus{outline:2px solid #6e9c7f;outline-offset:2px}textarea{margin:10px 0;resize:vertical}.export-title{margin-top:30px;padding-top:24px;border-top:1px solid #e3e9df}.check{font-size:13px;display:flex;align-items:flex-start;gap:8px;margin-bottom:16px}footer{font-size:11px;color:#6a7f70;margin-top:28px;line-height:1.9}summary{cursor:pointer;font-size:13px}@media(max-width:760px){.workspace{grid-template-columns:1fr}main{padding:24px 15px}header{padding:0 20px}h1{font-size:30px}article{padding:20px}#fields{gap:12px}}[hidden]{display:none!important}

/* Batch controls keep Japanese labels short; file names can wrap at any width. */
body{word-break:normal;line-break:strict}
.left,.right,.workspace>*{min-width:0}
.right{display:grid;gap:16px}
.source-panel{margin-top:16px}
.export-panel{margin-top:0}
h1{font-size:clamp(26px,4vw,36px)}
h2{line-height:1.5;text-wrap:balance}
h2 b{flex-shrink:0}
h3{font-size:15px;margin:24px 0 8px}
.actions button{max-width:100%}
.upload{line-height:1.7}
.card-list{list-style:none;padding:0;margin:12px 0 0;max-height:340px;overflow:auto}
.card-list li+li{margin-top:8px}
.card-choice{width:100%;display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;background:#f4f7f2;color:#244c39;border:1px solid #d7e2d4;font-weight:500;padding:12px}
.card-choice[aria-pressed=true]{border-color:#285f49;box-shadow:inset 3px 0 #285f49;background:#eaf2e6}
.card-choice.failed{border-color:#c88d78}
.card-choice.reviewed .card-state{color:#285f49}
.card-name{min-width:0;overflow-wrap:anywhere;line-height:1.6}
.card-state{flex-shrink:0;font-size:11px;font-weight:700}
.source-name{overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.error{color:#944329;font-size:13px;line-height:1.7}
.review-check{margin:24px 0 16px;line-height:1.7}
.export-label{display:block;font-size:13px;margin-bottom:8px}
#placeholder{padding:18px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.75}
#status,#summary,#export-summary{overflow-wrap:anywhere}
@media(max-width:400px){header{padding:0 12px;gap:10px}.brand{letter-spacing:1px;font-size:11px}.badge{font-size:10px;padding:7px 9px}article,details{padding:16px}main{padding:22px 12px}.actions{gap:8px}button{font-size:14px;padding:11px 12px}#fields{grid-template-columns:1fr}#fields label.wide{grid-column:auto}}
