:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172a26;
  background: #f3f5ef;
  --forest: #183c32;
  --border: #cbd6ca;
  --muted: #4a6257;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: #1b5442; text-underline-offset: .17em; }
a:hover { color: #102e25; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #94772a; outline-offset: 3px; }
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.masthead { background: var(--forest); color: #fff; }
.bar, .heading, nav { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.4rem; }
.bar { min-height: 4.5rem; justify-content: space-between; padding-block: .75rem; }
.bar a { color: #fff; }
.language-switch a[aria-current] { color: #e7d99e; font-weight: 700; }
.authenticator-qr { display: block; max-width: min(100%, 16rem); height: auto; }
.brand { letter-spacing: .06em; font-weight: 800; text-decoration: none; }
.brand span { color: #e7d99e; font-weight: 500; }
.brand-environment { display: block; color: #e7d99e; font-size: .73rem; font-weight: 600; letter-spacing: .025em; }
.bar form { margin: 0; }
.environment { color: var(--muted); font-size: .86rem; margin-top: 1.25rem; }
.context, .tabs { margin-block: 1rem; }
.heading { justify-content: space-between; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.05em; margin: .45em 0; overflow-wrap: anywhere; }
h2 { font-size: 1.32rem; margin: 0 0 .85rem; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: .7rem; margin-block: 1rem; padding: clamp(1rem, 3vw, 1.6rem); }
.login { max-width: 28rem; margin: 6vh auto; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; }
.metrics div { padding: .8rem 1rem; background: #e3ebe1; border-radius: .55rem; }
.metrics dt { color: var(--muted); }
.metrics dd { margin: 0; font-size: 2rem; font-weight: 750; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .6rem .5rem; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
th { color: var(--muted); font-size: .9rem; }
td p { margin: .1rem 0; }
.records { list-style: none; padding: 0; margin: 0; }
.records li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.records form { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .15rem 1rem; }
summary { cursor: pointer; color: #204e3f; font-weight: 650; }
.panel details { margin-top: 1rem; }
form { margin-top: .75rem; }
label { display: block; margin: .5rem 0; font-weight: 600; }
input:not([type=checkbox]), select, textarea { width: 100%; padding: .5em .6em; border: 1px solid #9eb4a7; border-radius: .33rem; background: #fff; }
textarea { resize: vertical; }
.choice { font-weight: 400; }
fieldset { margin: .4rem 0; border: 1px solid var(--border); min-width: 0; }
button, .button { display: inline-block; padding: .52em .9em; border: 1px solid var(--forest); border-radius: .33rem; background: var(--forest); color: #fff; font-weight: 650; text-decoration: none; }
.button:hover, button:hover { color: #fff; background: #295e4f; }
.quiet { background: #f3f6f1; color: var(--forest); border-color: var(--border); }
.error { color: #9c2c24; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.extraction { display: block; max-width: 10rem; max-height: 10rem; margin-block: .4rem; }
.totals { margin-left: auto; max-width: 23rem; }
.totals div { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px solid var(--border); }
@media print {
  .masthead, .context, .skip-print { display: none; }
  :root, .panel { background: white; }
  .panel { border: 0; padding: 0; }
  tr { break-inside: avoid; }
}
