* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.5 system-ui, -apple-system, sans-serif; color: #111; background: #fff; }
main { max-width: 640px; margin: 0 auto; padding: 16px; padding-bottom: 48px; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; margin-top: 32px; border-top: 2px solid #ccc; padding-top: 16px; }
button, input[type=file]::file-selector-button {
  display: block; width: 100%; min-height: 56px; margin: 12px 0; padding: 12px 16px;
  font: inherit; font-weight: 600; color: #fff; background: #1a3d7c;
  border: 0; border-radius: 10px; text-align: center; cursor: pointer;
}
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ffb000; outline-offset: 2px; }
/* One real native file input; its own button is the 56px+ tap target. */
input[type=file] { display: block; width: 100%; min-height: 56px; margin: 8px 0; font: inherit; }
input[type=file]::file-selector-button { display: inline-block; width: auto; margin: 0 12px 0 0; }
textarea { width: 100%; font: 14px/1.4 ui-monospace, monospace; padding: 8px; }
label { display: block; margin-top: 12px; }
dl { margin: 0; }
dt { font-weight: 700; margin-top: 10px; }
dd { margin: 0; overflow-wrap: anywhere; }
.result { min-height: 1.5em; padding: 8px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.warn { background: #b00020; color: #fff; padding: 12px; border-radius: 8px; font-weight: 700; }
.ok { color: #0a5c1c; font-weight: 700; }
.bad { color: #b00020; font-weight: 700; }
