:root { font-family: Arial, Helvetica, sans-serif; color: #163d33; background: #e7e9e3; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: #163d33; background: #fff; border: 1px solid #b8c7bd; border-radius: 5px; min-width: 38px; min-height: 38px; padding: 6px 12px; cursor: pointer; }
button:hover:not(:disabled) { background: #e4eddc; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 3px solid #779b33; outline-offset: 3px; }
.reader-header { min-height: 76px; padding: 18px 28px; display: flex; align-items: center; gap: 28px; color: #f6f5ee; background: #123d32; }
.reader-header a { color: inherit; font-size: 14px; text-decoration: none; white-space: nowrap; }
.reader-header a:hover { text-decoration: underline; }
.reader-header h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.reader-brand { font-size: 13px; white-space: nowrap; opacity: .8; }
.reader-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 42px; padding: 12px 20px; background: #f5f5ed; border-bottom: 1px solid #c5cdc3; box-shadow: 0 2px 6px #123d3208; }
.control-group { display: flex; align-items: center; gap: 9px; font-size: 14px; }
#page-number { width: 58px; height: 38px; text-align: center; border: 1px solid #b8c7bd; border-radius: 5px; color: inherit; background: white; appearance: textfield; }
#page-number::-webkit-inner-spin-button, #page-number::-webkit-outer-spin-button { appearance: none; margin: 0; }
#page-count { min-width: 34px; }
#zoom-level { min-width: 47px; text-align: center; font-variant-numeric: tabular-nums; }
#reader { padding-bottom: 40px; }
#status { min-height: 18px; margin: 14px 20px; font-size: 13px; text-align: center; }
#page-scroll { width: 100%; overflow: auto; padding: 0 24px 20px; }
#page-sheet { width: max-content; margin: 0 auto; background: white; box-shadow: 0 3px 20px #163d3320; }
#page-image { display: block; }
#error { max-width: 580px; margin: 30px auto; padding: 20px; text-align: center; background: #f6f5ee; border: 1px solid #c5cdc3; border-radius: 6px; }
#error p { line-height: 1.6; }
noscript { display: block; padding: 30px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  .reader-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px 18px; }
  .reader-header h1 { font-size: 16px; }
  .reader-brand { display: none; }
  .reader-toolbar { gap: 10px 18px; padding: 10px 12px; }
  .control-group { gap: 6px; }
  #page-scroll { padding-right: 12px; padding-left: 12px; }
}
