:root{
      --primary:#0b5fff;
      --text:#0f172a;
      --muted:#475569;
      --bg:#f8fafc;
      --card:#ffffff;
      --border:#e5e7eb;
      --shadow:0 12px 30px rgba(2,6,23,.08);
      --accent: var(--primary);
      --accent-600:#094bcc;
      --accent-100:#e9f1ff;
    }
    *{box-sizing:border-box}
    body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif}
    main{min-height:70vh}
    .container{max-width:1100px;margin:0 auto;padding:28px}
    .card{background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:22px 22px 18px}
    .topbar{background:#ffffff;position:sticky;top:0;z-index:50;border-bottom:1px solid #e5e7eb}
    .nav{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:12px 18px;max-width:1170px;margin:0 auto}
    .brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--accent)}
    .menu{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
    .menu a{font-weight:600;color:var(--text);opacity:.9;text-decoration:none;transition:opacity .2s ease,color .2s ease}
    .menu a:hover{opacity:1}
    .menu .cta{padding:10px 14px;border-radius:12px;background:var(--primary);color:#fff;font-weight:800}
    .menu .cta:hover{color:#fff;background:var(--accent-600)}
    .title{text-align:center;font-weight:800;color:var(--accent);letter-spacing:.02em;margin:8px 0 16px;text-transform:uppercase}
    .notice{background:#0b5fff;color:#fff;text-align:center;padding:10px 14px;font-weight:700}
    .notice a{color:#fff;text-decoration:underline;font-weight:800}
    .grid{display:grid;gap:16px}
    .field-label{font-weight:700;margin:0 0 6px}
    .subtle{color:#64748b;font-size:13px}
    .help{margin:18px 0 12px;padding:12px 18px;border-radius:18px;background:#c8f1ff;border:1px solid #7bcdf2;color:#0a4873;font-weight:500;font-size:14px;line-height:1.5;box-shadow:0 6px 18px rgba(10,72,115,.08)}
    .help strong{color:#0471b5}
    .disclaimer{margin:18px 0 0;padding:14px 18px;border:1px solid #dc2626;border-radius:16px;background:#fff5f5;color:#7f1d1d;font-weight:600;font-size:14px;line-height:1.5}
    .disclaimer strong{color:#b91c1c}
    .row{display:grid;grid-template-columns:1fr;gap:12px}
    @media (max-width:680px){
      .nav{flex-direction:column;align-items:flex-start;gap:10px;padding:14px 16px}
      .menu{width:100%;flex-direction:column;align-items:flex-start;gap:12px}
      .menu a{display:block;padding:0}
      .menu .cta{width:100%;text-align:center}
      .notice{font-size:13px;line-height:1.4;padding:8px 12px}
    }
    @media(min-width:780px){.row{grid-template-columns:1fr 1fr}}
    select{height:44px;border:1px solid #dbe2ea;border-radius:10px;padding:0 12px;background:#fff;font-weight:700;color:#0f172a;width:100%;min-width:0}
    .uploader{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
    .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border-radius:10px;border:1px solid #dbe2ea;background:#fff;color:#0f172a;cursor:pointer;font-weight:700}
    .btn:hover{background:#f8fafc}
    .btn[disabled]{opacity:.55;cursor:not-allowed}
    .btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;min-width:240px}
    .btn-primary:hover{background:var(--accent-600);border-color:var(--accent-600)}
    .btn-run{min-width:320px;gap:4px;line-height:1}
    .btn-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:0;transform-origin:center center;transform:translateY(1px)}
    @keyframes icon-spin{0%{transform: translateY(1px) rotate(0deg)}50%{transform: translateY(-1px) rotate(180deg)}100%{transform: translateY(1px) rotate(360deg)}}
    .btn-run.is-spinning .btn-icon{animation:icon-spin 1.8s linear infinite}
    @media (prefers-reduced-motion:reduce){.btn-run.is-spinning .btn-icon{animation:none!important}}
    @media (max-width:560px){
      .uploader{flex-direction:column;align-items:stretch}
      .uploader .btn{width:100%}
      .drop{width:100%}
      .btn-run{width:100%;min-width:0}
    }
    .drop{flex:1 1 260px;min-height:68px;border:2px dashed #cbd5e1;border-radius:12px;background:#fff;display:flex;align-items:center;gap:10px;padding:10px 12px;color:#334155;min-width:0}
    .drop.drag{background:var(--accent-100);border-color:var(--accent)}
    .drop:focus{outline:3px solid rgba(11,95,255,.25);outline-offset:2px}
    .drop .name{font-weight:700}
    .drop .meta{color:#64748b;font-size:14px}
    .drop .badge{display:inline-block;background:#eef2ff;color:#1e40af;border-radius:999px;padding:2px 8px;font-size:12px;margin-left:8px}
    .drop .remove{margin-left:auto;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 10px;cursor:pointer}
    .drop .remove:hover{background:#f1f5f9}
    .filelist{width:100%;margin:6px 0 0;padding:0;list-style:none}
    .filelist li{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px dashed #e5e7eb}
    .filelist .rm{margin-left:auto}
    .actions{display:flex;justify-content:center;margin-top:6px}
    .progress{display:none;margin-top:10px;border-radius:10px;background:#e2e8f0;overflow:hidden;height:10px;position:relative}
    .progress .bar{height:100%;width:0;background:var(--accent);transition:width .25s ease}
    .progress .pct{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:12px;color:#0b1a39;font-weight:800;mix-blend-mode:multiply}
    .runtime{display:none;margin-top:10px;background:#ffffff;border:1px dashed #cdd6e0;border-radius:10px;padding:10px 12px}
    .eta{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}
    .eta .clock{font-weight:800;color:#1e40af}
    .eta .hint{color:#64748b;font-size:13px}
    .logs{margin-top:8px;background:#f8fafc;border:1px solid #e6ecf5;border-radius:8px;padding:8px 10px;max-height:160px;overflow:auto;font-size:13px;line-height:1.45}
    .logline{display:flex;gap:8px;margin:2px 0}
    .logtime{color:#64748b;min-width:60px;text-align:right;font-variant-numeric:tabular-nums}
    .logmsg{color:#0f172a}
    .log-ok{color:#0a7f2e}
    .log-warn{color:#b45309}
    .result-wrap{display:none;margin-top:18px}
    .result-head{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
    .result-title{margin:0;font-weight:800;color:#0f172a}
    .result{border:1px solid #dbe2ea;border-radius:10px;min-height:260px;background:#fff;padding:14px;overflow:auto;max-height:52vh}
    .result p{margin:0 0 0.9em;line-height:1.55}
    .result p:last-child{margin-bottom:0}
    .result strong{font-weight:800;color:#0f172a}
    .result .rt-color{font-weight:700}
    .toolbar{display:flex;gap:10px;justify-content:center;margin-top:12px;flex-wrap:wrap}
    .btn-ghost{background:#fff;border:1px solid #cbd5e1;color:#0f172a;border-radius:10px;height:40px;padding:0 14px;font-weight:700}
    .btn-ghost:hover{background:#f8fafc}
    .legal{margin-top:10px;color:#64748b;text-align:center;font-size:12.5px}
    .finalize{display:none;margin-top:8px;text-align:center;color:#64748b;font-size:12.5px}
