:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, sans-serif;
  color: #18282d;
  background: #f1f4f3;
  --accent: #18564f;
  --line: #cad5d2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.container { width: min(100% - 2rem, 66rem); margin: auto; }
.masthead { background: #153934; color: white; padding: 1.2rem 0; }
.identity { font: 1.45rem Georgia, serif; }
.service { margin-inline-start: .8rem; padding-inline-start: .8rem; border-inline-start: 1px solid #a0b8b2; }
main { padding-block: 2rem 4rem; }
h1, h2 { font-family: Georgia, serif; line-height: 1.15; font-weight: 500; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin-top: 0; }
p { overflow-wrap: anywhere; }
a { color: var(--accent); }
.card { background: white; border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 4vw, 2rem); }
.narrow { width: min(100%, 34rem); margin: auto; }
label { display: block; font-weight: 650; margin-top: .9rem; }
input:not([type=checkbox]), select { background: white; color: inherit; border: 1px solid #718783; padding: .65rem; border-radius: .35rem; width: 100%; font: inherit; }
fieldset { border: 1px solid var(--line); border-radius: .35rem; margin: 1rem 0; }
.document-choice legend { font-weight: 650; padding-inline: .35rem; }
.document-option { display: flex; align-items: flex-start; gap: .7rem; padding: .65rem; border: 1px solid var(--line); border-radius: .35rem; margin-block: .5rem; cursor: pointer; }
.document-option input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin: .12rem 0 0; accent-color: var(--accent); }
.folder-group { margin: .8rem 0; padding: .6rem .8rem; }
.folder-group legend { font-weight: 650; padding-inline: .35rem; }
.folder-option { display: flex; align-items: center; gap: .7rem; padding: .65rem; background: #edf4f1; border-radius: .35rem; cursor: pointer; }
.folder-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.usb-selection > form > label { display: flex; align-items: flex-start; gap: .7rem; padding: .65rem; border: 1px solid var(--line); border-radius: .35rem; margin-block: .5rem; }
.usb-selection input[type=checkbox] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--accent); }
button, .button { display: inline-block; background: var(--accent); border: 1px solid var(--accent); color: white; font: inherit; font-weight: 650; padding: .62rem .9rem; min-height: 44px; border-radius: .35rem; text-decoration: none; cursor: pointer; }
form button { margin-top: .9rem; }
.secondary { background: white; color: var(--accent); }
.danger { color: white; background: #7b2936; border-color: #7b2936; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #a25211; outline-offset: 3px; }
.page-header, .toolbar, .nav { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; }
.page-header { justify-content: space-between; margin-bottom: 1rem; }
.toolbar { margin: 1rem 0; }
.nav { padding-block: .6rem; }
.nav form button, .page-header form button { margin: 0; }
nav { background: white; border-bottom: 1px solid var(--line); }
.error, .errorlist { color: #7b2936; }
.helptext { font-size: .9rem; padding-top: .25rem; }
.image-panel { overflow: auto; background: #e9edeb; }
.image-panel img { display: block; max-width: 100%; height: auto; margin: auto; user-select: none; }
.image-panel img.zoomed { max-width: none; width: 155%; }
.document-view { user-select: none; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.summary strong { display: block; font-size: 2rem; }
.records { list-style: none; padding: 0; margin: 0; }
.records li { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.records li:last-child { border-bottom: 0; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
td, th { padding: .65rem; border-bottom: 1px solid var(--line); text-align: left; }
dt { font-weight: 650; }
dd { margin: 0 0 .75rem; overflow-wrap: anywhere; }
.checksum { overflow-wrap: anywhere; }
#preview-page { width: 6rem; }
@media print { body { display: none !important; } }

.test-source { margin-top: 1rem; color: #53371e; font-size: .95rem; }

.print-sheet { margin-top: 1.5rem; }
.printed-codes { font-size: 1.3rem; }
@media print {
  body.code-page { display: block !important; background: white; }
  body.code-page > :not(main), body.code-page main > :not(.print-sheet), .screen-only { display: none !important; }
  .print-sheet { width: 100%; border: 0; }
}
