:root {
  color-scheme: light;
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252a26;
  background: #fafaf8;
}
* { box-sizing: border-box; }
body { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 60px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; font-weight: 650; letter-spacing: -.6px; }
h2 { font-size: 18px; font-weight: 600; }
a { color: #315d46; text-underline-offset: 3px; }
a:hover { color: #153e27; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button, input, textarea, select { border: 1px solid #cdd2ca; border-radius: 4px; background: #fff; }
input, textarea, select { padding: 8px 10px; }
button { padding: 8px 14px; background: #eef1eb; font-size: 13px; }
button:hover { background: #e2e8dd; }
button:disabled { opacity: .6; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #477658; outline-offset: 3px; }
[hidden] { display: none !important; }
.muted { color: #687267; }
.skip-link { position: absolute; top: -80px; padding: 10px; background: #fff; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 0 23px; border-bottom: 1px solid #dfe3da; }
nav { display: flex; gap: 22px; font-size: 13px; }
nav a { color: #687267; text-decoration: none; }
section { margin-top: 32px; scroll-margin-top: 20px; }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.paper-card { border: 1px solid #d8ded1; border-radius: 5px; background: #f0f3e9; }
.page-link { display: block; min-height: 144px; padding: 21px 22px 17px; text-decoration: none; color: inherit; }
.page-link:hover { background: #e9eedf; color: inherit; }
.page-link h3 { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.page-link p { color: #5d6858; font-size: 13px; line-height: 1.65; }
.paper-source { display: block; border-top: 1px solid #dbe1d3; padding: 10px 22px; font-size: 12px; color: #596b50; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.section-heading>a { font-size: 12px; color: #687267; }
#queue-count { color: #858d80; font-size: 13px; font-weight: 400; margin-left: 6px; }
#submission-panel { border: 1px solid #dce1d5; border-radius: 4px; background: #fff; }
#submission-panel>summary { padding: 12px 15px; font-size: 13px; }
#submission-panel[open]>summary { border-bottom: 1px solid #e4e7de; }
form { padding: 17px; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.form-fields label { font-size: 12px; }
.form-fields input, .form-fields textarea, .form-fields select { display: block; width: 100%; margin-top: 5px; font-size: 13px; }
.form-fields textarea { resize: vertical; min-height: 72px; max-height: 180px; }
.sources { margin-top: 12px; font-size: 11px; color: #687267; }
.sources p { margin-top: 8px; line-height: 1.8; overflow-wrap: anywhere; }
.form-actions { display: flex; align-items: center; gap: 15px; margin-top: 17px; font-size: 11px; }
.form-message { margin-top: 13px; padding: 10px 12px; background: #f9eee6; color: #704b36; border-radius: 4px; font-size: 12px; }
.form-message.success { color: #365a3c; background: #eef4e9; }
.receipt { margin: 15px 0; padding: 15px; background: #edf2e9; border: 1px solid #d9e1d0; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; }
.receipt p { margin-bottom: 10px; }
.receipt button { font-size: 12px; }
#receipt-message { margin-top: 10px; margin-bottom: 0; }
.queue-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-bottom: 12px; border-bottom: 1px solid #dce1d6; font-size: 12px; }
.queue-tools input { width: min(280px, 60%); padding: 7px 9px; font-size: 12px; background: transparent; }
.queue-tools label { display: flex; align-items: center; gap: 8px; color: #687267; }
.queue-tools select { padding: 6px; font-size: 12px; background: transparent; }
.queue-list { margin: 0; padding: 0; list-style: none; }
.queue-row { padding: 16px 0; border-bottom: 1px solid #e0e4db; }
.queue-title { font-size: 14px; font-weight: 500; color: #303c2e; text-decoration: none; }
.queue-title:hover { text-decoration: underline; }
.queue-source { margin-top: 4px; font-size: 11px; color: #717b6a; }
.queue-note { margin-top: 7px; font-size: 12px; color: #56614f; white-space: pre-wrap; overflow-wrap: anywhere; }
#queue-empty, #pages-empty { padding: 20px 0; font-size: 13px; }
.feed-status { font-size: 11px; color: #717b6a; margin-top: 15px; }
noscript { display: block; padding: 20px 0; }
@media (max-width: 600px) {
  body { width: calc(100% - 32px); padding-bottom: 35px; }
  .site-header { padding-top: 23px; }
  .paper-grid, .form-fields { grid-template-columns: 1fr; }
  .page-link { min-height: auto; padding: 19px; }
  .paper-source { padding-inline: 19px; }
  .queue-title { font-size: 13px; }
  .queue-tools { gap: 10px; }
  .queue-tools label { gap: 5px; }
  .queue-tools input { min-width: 0; }
  form { padding: 14px; }
}
