*{box-sizing:border-box}
body{margin:0;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1d2433;background:#f6f7fb;overflow-wrap:break-word}
a{color:#1a56db}
header,footer{background:#fff;border-bottom:1px solid #e3e6ee}
footer{border-top:1px solid #e3e6ee;margin-top:40px;font-size:14px}
.wrap{max-width:900px;margin:0 auto;padding:12px 16px}
header .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px}
.logo{font-weight:700;text-decoration:none;color:#1d2433;min-width:0}
nav{display:flex;flex-wrap:wrap;gap:6px 14px}
nav a{margin:0;font-size:14px}
h1{font-size:1.8rem;line-height:1.25;margin:.6em 0 .3em}
.card{background:#fff;border:1px solid #e3e6ee;border-radius:10px;padding:18px;margin:16px 0}
label{display:block;font-weight:600;margin:10px 0 4px}
input,select,textarea,button{font:inherit;max-width:100%}
input,select,textarea{width:100%;padding:9px;border:1px solid #b9c0cf;border-radius:6px;background:#fff}
textarea{min-height:160px;font-family:ui-monospace,Menlo,monospace;font-size:14px}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
button{background:#1a56db;color:#fff;border:0;border-radius:6px;padding:10px 16px;margin:10px 8px 0 0;cursor:pointer}
button.sec{background:#e8ecf5;color:#1d2433}
button:focus,input:focus,select:focus,textarea:focus{outline:3px solid #93b4f5;outline-offset:1px}
.file-note{font-weight:600;margin:10px 0 4px}
.file-pick{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:4px 0 8px}
.file-sr{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.file-sr:focus{outline:none}
.file-sr:focus + .file-btn,.file-sr:focus-visible + .file-btn{outline:3px solid #93b4f5;outline-offset:1px}
.file-btn{display:inline-block;background:#1a56db;color:#fff;border-radius:6px;padding:10px 16px;margin:0;font-weight:600;cursor:pointer}
.file-name{font-weight:400;color:#5b6475;min-width:0}
.out{background:#eef4ff;border-radius:8px;padding:12px;margin-top:12px}
table{border-collapse:collapse;width:100%}
td,th{border:1px solid #e3e6ee;padding:6px 8px;text-align:left;vertical-align:top}
.muted{color:#5b6475;font-size:14px}
.chk{display:flex;gap:6px;align-items:flex-start;font-weight:400}
.chk input{width:auto;margin-top:.35em;flex:none}
canvas{max-width:100%;height:auto}
.skip{position:absolute;left:8px;top:8px;transform:translateY(-200%);background:#fff;padding:6px 10px;border:2px solid #1a56db;z-index:20}
.skip:focus{transform:none}
@media (max-width:720px){
  header .wrap{flex-direction:column;align-items:flex-start}
  table.stack,table.stack tbody,table.stack tr,table.stack td{display:block;width:100%}
  table.stack{border:0}
  table.stack thead{display:none}
  table.stack tr{border:1px solid #e3e6ee;border-radius:8px;margin:0 0 12px;padding:8px 10px;background:#fff}
  table.stack td{border:0;padding:3px 0}
  table.stack td::before{content:attr(data-label) ": ";font-weight:600}
}
@media (max-width:400px){
  h1{font-size:1.45rem}
  .card{padding:14px}
}
