* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 'Segoe UI','Microsoft YaHei',sans-serif; color: #233242; background: #e9edf1; }
header { display: flex; align-items: center; gap: 16px; padding: 14px 22px; background: #fff; border-bottom: 1px solid #ccd6df; }
header a { color: #174d76; flex-shrink: 0; }
#document-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
#toolbar { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 12px; background: #f7f9fb; border-bottom: 1px solid #ccd6df; font-size: 14px; }
button, input, select { font: inherit; color: inherit; border: 1px solid #adbdcb; border-radius: 4px; background: white; padding: 6px 9px; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
input { width: 64px; }
label { display: flex; gap: 6px; align-items: center; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #174d76; outline-offset: 2px; }
#status { text-align: center; margin: 10px; min-height: 24px; }
#paper { overflow: auto; padding: 0 16px 24px; text-align: center; }
canvas { display: block; margin: auto; background: white; box-shadow: 0 2px 9px #24384b22; }
canvas:not([data-rendered]) { display: none; }
@media (max-width: 600px) { header { padding: 12px; flex-wrap: wrap; gap: 8px 16px; } #document-name { order: 3; flex-basis: 100%; } #download { margin-left: auto; } #toolbar { gap: 8px; } }
