:root{color:#17243a;background:#f4f7fb;font-family:Arial,Apple SD Gothic Neo,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}.shell{max-width:1440px;margin:auto;padding:32px 24px}header{margin-bottom:24px}.brand{color:#2563eb;letter-spacing:.02em;font-weight:800}h1{margin:10px 0 6px;font-size:30px}header p,.panel p,.upload p,footer{color:#58677d;margin:4px 0;font-size:14px;line-height:1.5}.upload,.panel{background:#fff;border:1px solid #dce5f0;border-radius:16px;box-shadow:0 4px 18px #1936590a}.upload{align-items:center;gap:18px;padding:22px;display:flex}.upload input{opacity:0;width:1px;height:1px;position:absolute}.upload-button,.primary,.secondary{cursor:pointer;border:0;border-radius:9px;font-weight:700}.upload-button,.primary{color:#fff;background:#2563eb;padding:12px 20px}.upload-button:focus-within{outline:2px solid #1d4ed8}.notice,.error{color:#1d4ed8;background:#eaf2ff;border-radius:10px;padding:12px 16px}.error{color:#a82724;background:#fff0ef}.workspace{grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:18px;margin-top:18px;display:grid}.panel{min-width:0;padding:20px}.panel-heading{justify-content:space-between;align-items:start;gap:12px;margin-bottom:18px;display:flex}h2{margin:0;font-size:18px}.fields{gap:12px;max-height:60vh;display:grid;overflow:auto}.field{border:1px solid #dce5f0;border-radius:10px;padding:12px}.field.active{background:#f5f9ff;border-color:#2563eb}.field-top{justify-content:space-between;align-items:center;gap:4px;margin-bottom:8px;display:flex}.field label{font-size:14px;font-weight:700}.field small{color:#62748a}.field input{border:1px solid #c8d4e3;border-radius:7px;width:100%;padding:10px}.text-button{color:#2563eb;cursor:pointer;background:0 0;border:0;padding:3px;font-size:13px}.primary{width:100%;margin-top:18px}.primary:disabled,.secondary:disabled{opacity:.45;cursor:not-allowed}.secondary{color:#244771;white-space:nowrap;background:#edf3fc;padding:8px 12px}.pager{align-items:center;gap:8px;font-size:13px;display:flex}.paper-wrap{background:#e9eef5;max-height:75vh;padding:18px;overflow:auto}.paper{cursor:crosshair;background:#fff;width:100%;max-width:800px;margin:auto;position:relative}.paper canvas{width:100%;height:100%;display:block}.marker{pointer-events:none;white-space:nowrap;color:#154dc2;background:#dceaffc9;border-bottom:1px solid #2563eb;font-size:clamp(8px,1vw,13px);position:absolute;overflow:hidden}.marker.chosen{background:#a8cbff}.empty{text-align:center;padding:20px}footer{margin-top:24px}@media (max-width:800px){.shell{padding:20px 14px}.workspace{flex-direction:column-reverse;display:flex}.fields{max-height:none}.paper-wrap{max-height:65vh}.upload{flex-direction:column;align-items:flex-start}.panel-heading{flex-wrap:wrap}h1{font-size:25px}}.hwp-preview{background:#fff;width:100%;max-width:800px;margin:auto;display:block}.upload>div{min-width:0}.upload strong{overflow-wrap:anywhere}
