:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;background:#f0f0f0;color:#111;color-scheme:light}*{box-sizing:border-box}body{margin:0;line-height:1.4}main{max-width:1280px;margin:auto;padding:16px 18px 40px}h1{margin:0 0 12px;font-size:22px}section{max-width:600px;background:#fff;border:1px solid #c8c8c8;border-radius:7px;padding:18px}h2{font-size:18px;margin:0 0 12px}p{margin:8px 0 14px}.controls{display:flex;gap:8px}button{font:inherit;cursor:pointer;color:white;background:#4a4a4a;border:1px solid #333;border-radius:6px;padding:8px 14px}button:disabled{opacity:.65}summary{cursor:pointer;color:#333}details{margin-top:12px}details p{font-size:14px;color:#444}button:focus-visible,summary:focus-visible{outline:2px solid #174d77;outline-offset:3px}#workspace{height:100dvh}#workspace iframe{display:block;width:100%;height:100%;border:0;background:white}[hidden]{display:none!important}

.pdf-preview {
  width: 92vw;
  max-width: min(1200px, calc(100% - 16px));
  height: 90vh;
  overflow: auto;
  padding: 20px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #f4f5f5;
  color: #222;
  font: 16px/normal Meiryo, sans-serif;
}
.pdf-preview h2 { font-size: 1.5em; margin: .83em 0; }
.pdf-preview p { margin: 1em 0; }
.pdf-preview .pdf-route { font-size: 18px; font-weight: bold; }
.pdf-preview progress { width: 75%; height: 20px; }
.pdf-actions button, .pdf-actions a {
  display: inline-block;
  margin: 8px;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: #222;
  color: white;
  font: inherit;
}
.pdf-actions button:first-child { text-decoration: underline; }
.pdf-preview iframe { display: block; width: 100%; height: 75vh; border: 1px solid #bbb; background: white; }
.pdf-preview::backdrop { background: #0009; }
