:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #24262b;
  background: #f5f6f8;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
.site-header {
  display: flex; align-items: center; gap: 16px; padding: 18px max(20px, calc((100% - 920px) / 2));
  color: #666; background: rgba(255,255,255,.94); border-bottom: 1px solid #e8e8e8;
}
.brand { color: #111; font-size: 20px; font-weight: 750; text-decoration: none; }
main { width: min(920px, calc(100% - 32px)); margin: 32px auto; }
.document-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; }
.document-tabs button, #retry {
  flex: none; border: 1px solid #dadde3; border-radius: 10px; padding: 10px 16px;
  color: #3d4148; background: #fff; font: inherit; cursor: pointer;
}
.document-tabs button[aria-selected="true"] { color: #fff; background: #111; border-color: #111; }
.document-card { min-height: 440px; padding: clamp(24px, 5vw, 56px); background: #fff; border-radius: 18px; box-shadow: 0 10px 35px rgba(0,0,0,.06); }
.status { padding: 120px 0; text-align: center; color: #70747c; }
.updated-at { margin: 0 0 24px; color: #858991; font-size: 14px; }
h1 { margin-top: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; }
h2 { margin-top: 36px; font-size: 22px; line-height: 1.45; }
h3 { margin-top: 28px; font-size: 18px; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-left: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
th, td { padding: 10px 12px; border: 1px solid #e2e4e8; text-align: left; vertical-align: top; }
th { background: #f6f7f9; }
footer { padding: 10px 20px 32px; color: #8a8e95; font-size: 13px; text-align: center; }

@media (max-width: 600px) {
  main { width: 100%; margin: 0; }
  .document-tabs { padding: 14px 14px 0; margin: 0; background: #fff; }
  .document-card { padding: 24px 20px 40px; border-radius: 0; box-shadow: none; }
}
