:root{--b:#1f5fbf;--bg:#f4f6fa;--line:#dde2ea}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#222}
.wrap{max-width:880px;margin:32px auto;padding:0 16px}
h1{font-size:22px;margin:0 0 4px}
.sub{color:#667;font-size:13px;margin-bottom:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 22px;margin-bottom:16px}
.card h2{font-size:15px;margin:0 0 12px}
.step{display:inline-block;background:var(--b);color:#fff;border-radius:50%;width:22px;height:22px;text-align:center;line-height:22px;font-size:12px;margin-right:6px}
.drop{border:2px dashed #b8c4d8;border-radius:10px;padding:28px;text-align:center;cursor:pointer;color:#556}
.drop.on{background:#eef4ff;border-color:var(--b)}
button,.btn{background:var(--b);color:#fff;border:0;border-radius:7px;padding:10px 18px;font-size:14px;cursor:pointer;text-decoration:none;display:inline-block}
button.gray{background:#8a94a6}
button:disabled{opacity:.5;cursor:default}
select,input[type=number]{padding:7px;border:1px solid #c5ccd8;border-radius:6px;font-size:14px}
table{border-collapse:collapse;width:100%;font-size:12px;margin-top:10px}
td,th{border:1px solid var(--line);padding:5px 7px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
th{background:#eef2f8}
th.sel,td.sel{background:#fff6d6}
.row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:8px 0}
.bar{height:14px;background:#e6eaf1;border-radius:7px;overflow:hidden}
.bar>div{height:100%;width:0;background:var(--b);transition:width .4s}
#log{font-size:12px;color:#445;margin-top:8px;max-height:160px;overflow:auto;white-space:pre-wrap;background:#f8f9fb;border-radius:6px;padding:8px}
.muted{color:#778;font-size:12px}
.hide{display:none}
.ok{color:#137333;font-weight:bold}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:14px}
.tabs button{background:none;color:#556;border-radius:7px 7px 0 0;padding:8px 16px;border:1px solid transparent;border-bottom:0;margin-bottom:-1px}
.tabs button.on{background:#fff;color:var(--b);font-weight:bold;border-color:var(--line)}
input[type=text],textarea{width:100%;padding:9px 10px;border:1px solid #c5ccd8;border-radius:6px;font-size:14px;font-family:inherit}
textarea{min-height:170px;resize:vertical;line-height:1.5}
input[type=text]:focus,textarea:focus{outline:2px solid #c9dbf7;border-color:var(--b)}
.scroll{overflow-x:auto}
#res td{max-width:220px}
#res td.num{text-align:right}
.st-bad{background:#fce4e4}.st-warn{background:#fff4ce}
/* 웹 버전 추가 */
body{font-family:'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif}
.top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.who{font-size:12px;color:#778}
#hist td{max-width:300px}
.badge{display:inline-block;border-radius:10px;padding:1px 8px;font-size:11px;font-weight:bold}
.b-queued{background:#eef2f8;color:#556}.b-running{background:#e3edfc;color:var(--b)}
.b-done{background:#e5f4ea;color:#137333}.b-error{background:#fce4e4;color:#b3261e}.b-canceled{background:#eee;color:#777}
a.act{cursor:pointer}
.err{color:#c00;font-weight:bold}
@media (max-width:600px){.wrap{margin:16px auto}.card{padding:16px 14px}.tabs button{padding:8px 10px}}
.eta{margin-top:12px;padding:10px 12px;background:#f3f6fb;border-radius:6px;font-size:13px}
.eta .warn{margin-top:6px;color:#9a5b00;font-size:12px}
.modes{margin-top:14px;padding:10px 12px;border:1px solid #dde3ee;border-radius:6px}
.modes .mtitle{font-weight:bold;margin-bottom:6px}
.modes label{display:block;padding:5px 0;cursor:pointer}
.modes label:has(input:checked) b{color:#1a56c4}
