:root { color-scheme: light; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; color: #202b30; background: #f5f7f7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1160px; padding: 32px 24px 48px; margin: auto; }
header { margin-bottom: 24px; }
.eyebrow { color: #347970; font-size: 12px; letter-spacing: .12em; }
h1 { font-size: 30px; margin: 8px 0; }
.intro, .note { color: #58666b; line-height: 1.8; }
.controls, .preview { background: #fff; border: 1px solid #dce4e3; border-radius: 12px; padding: 22px; }
.pick { border: 1px dashed #76a9a1; border-radius: 8px; padding: 22px; display: flex; gap: 8px; flex-direction: column; background: #f4faf8; }
.pick span { color: #58666b; font-size: 13px; }
.pick input { margin-top: 10px; max-width: 100%; }
.pick.dragging { background: #dfefeb; outline: 2px solid #347970; }
.actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 18px; }
.actions label { display: grid; font-size: 13px; gap: 6px; }
button, select, input { font: inherit; }
button, select { padding: 10px 14px; border-radius: 6px; border: 1px solid #c9d7d3; background: #fff; color: #243b35; }
button { cursor: pointer; }
button.primary { background: #286f62; color: #fff; border-color: #286f62; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #286f62; outline-offset: 3px; }
#status { margin-bottom: 0; line-height: 1.7; overflow-wrap: anywhere; }
#status.error { color: #b62e35; }
.note { font-size: 12px; margin-bottom: 0; }
details { margin-top: 12px; color: #80561d; font-size: 13px; line-height: 1.7; }
summary { cursor: pointer; }
.preview { margin-top: 20px; padding: 0; overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid #dce4e3; padding: 16px 20px; }
#filename { overflow-wrap: anywhere; max-width: 100%; font-size: 13px; }
.pagination { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pagination button { padding: 7px 12px; }
#page-number { width: 56px; padding: 7px 4px; border: 1px solid #c9d7d3; border-radius: 4px; }
#paper-area { background: #e9eeee; min-height: 380px; padding: 24px; overflow: auto; text-align: center; }
#empty { margin: 130px 0; color: #6a7679; }
#page-canvas { max-width: 100%; height: auto !important; background: white; box-shadow: 0 3px 18px #203c361a; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: 20px 12px 30px; }
  h1 { font-size: 26px; }
  .controls { padding: 16px; }
  .pick { padding: 16px; }
  .actions { gap: 10px; }
  .toolbar { padding: 14px; }
  #paper-area { padding: 12px; }
}
