* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #222;
  background: #f4f5f7;
  line-height: 1.7;
}
.header {
  padding: 12px 16px;
  background: #1565c0;
  color: #fff;
  font-weight: bold;
}
.main { max-width: 960px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h1 { font-size: 1.2rem; margin-top: 0; }
.notice { text-align: center; color: #666; }
.from { font-weight: bold; margin-top: 0; }
.message { white-space: pre-wrap; background: #f5f5f5; padding: 12px; border-radius: 4px; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; flex-wrap: wrap; }
.file-name { font-weight: bold; word-break: break-all; }
.pdf-frame { width: 100%; height: 70vh; border: 1px solid #ddd; border-radius: 4px; }
.expire { font-size: .85rem; color: #666; }
.confirm-area, .confirmed-area { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.confirmed-area { color: #2e7d32; font-weight: bold; }
.note { font-size: .8rem; color: #666; }
.error-text { color: #c62828; }
.button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: #1565c0; color: #fff; }
.button.primary:disabled { background: #90a4ae; cursor: default; }
.button.secondary { background: #e3f2fd; color: #1565c0; }
@media (max-width: 600px) {
  .pdf-frame { height: 55vh; }
  .button.primary { width: 100%; }
}
