:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #192e2b;
  background: #f4f7f4;
  --muted: #4f635f;
  --line: #d4e1da;
  --accent: #145d50;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
.top { background: #163a34; color: #fff; }
.top-inner, .shell { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.top-inner { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; }
.wordmark { font-size: 1.55rem; font-weight: 760; letter-spacing: -.045em; text-decoration: none; color: #fff; }
.signout { display: flex; align-items: center; gap: 1rem; }
.shell { padding-block: 2.2rem 4rem; }
.hero { margin: 1rem 0 1.7rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 3.25rem); letter-spacing: -.042em; line-height: 1.12; margin-bottom: .6rem; overflow-wrap: anywhere; }
h2 { font-size: 1.22rem; line-height: 1.35; margin-bottom: .75rem; }
p:last-child, dd:last-child, .row h1 { margin-bottom: 0; }
p, dd { overflow-wrap: anywhere; }
.context { color: var(--accent); font-size: .94rem; font-weight: 660; margin-bottom: .42rem; }
.lead { color: var(--muted); font-size: 1.12rem; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
.back { display: inline-block; font-size: .92rem; margin-bottom: .9rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.05rem, 4vw, 1.85rem); }
.narrow { max-width: 37rem; }
.columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.2rem; }
.list { display: grid; gap: .75rem; }
.section { margin-top: 1rem; }
label { display: block; font-weight: 590; margin-bottom: .28rem; }
input:not([type=checkbox]), textarea, select {
  width: 100%; border: 1px solid #80968e; border-radius: .45rem; min-height: 2.6rem; padding: .48rem .62rem;
  font: inherit; background: #fff; color: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid #be740d; outline-offset: 3px;
}
input[type=checkbox] { accent-color: var(--accent); width: 1rem; height: 1rem; }
.check { display: flex; gap: .55rem; align-items: baseline; margin-bottom: .75rem; }
form > input:not([type=hidden]) { margin-bottom: .75rem; }
label:has(+ input[type=checkbox]) { display: inline; }
button, .button {
  appearance: none; display: inline-block; font: inherit; font-weight: 650; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; border-radius: .48rem; color: white; background: var(--accent); padding: .54rem .88rem;
}
button:hover, .button:hover { filter: brightness(.88); }
.secondary { background: #e6f1eb; color: #164f44; border-color: #c5d9cf; }
.plain { background: transparent; color: #fff; text-decoration: underline; padding-inline: .2rem; }
.notice { border-radius: .5rem; background: #dff1e7; padding: .64rem .85rem; color: #184b36; }
.notice.error, .errorlist { background: #ffece8; color: #842820; }
.errorlist { border-radius: .4rem; padding: .45rem .75rem .45rem 1.85rem; }
.muted { background: #edf1ef; color: var(--muted); }
dl { margin-block: .3rem 1rem; }
dt { color: var(--muted); font-size: .9rem; margin-bottom: .12rem; }
dd { margin: 0 0 .85rem; font-weight: 610; }
.break { overflow-wrap: anywhere; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.inline > div { flex: 1 0 min(100%, 17rem); }
.items { padding: 0; margin-bottom: 0; list-style: none; }
.items li { border-top: 1px solid var(--line); padding: .65rem 0; }
.results a { font-weight: 660; }
.results span { display: block; color: var(--muted); }
.alphabet { display: flex; flex-wrap: wrap; margin-top: 1rem; gap: .25rem; }
.alphabet a { padding: .2rem .42rem; border-radius: .3rem; background: #edf4ef; }
@media (max-width: 42rem) {
  .columns { grid-template-columns: 1fr; }
  .details { grid-row: 1; }
}

.camera { margin-top: .75rem; max-width: 30rem; }
.camera video {
  display: block; width: 100%; max-height: min(55vh, 25rem); object-fit: contain;
  margin-bottom: .55rem; border-radius: .5rem; background: #163a34;
}
.camera-status { margin: .65rem 0 0; color: var(--muted); }
.camera-status:empty { display: none; }
.scan-icon {
  display: inline-block; width: 1em; height: 1em; margin-right: .45em;
  border: .13em solid currentColor; border-radius: .16em; vertical-align: -.12em;
  clip-path: polygon(0 0, 38% 0, 38% 35%, 62% 35%, 62% 0, 100% 0, 100% 38%, 65% 38%,
    65% 62%, 100% 62%, 100% 100%, 62% 100%, 62% 65%, 38% 65%, 38% 100%, 0 100%,
    0 62%, 35% 62%, 35% 38%, 0 38%);
}

.event-group { margin-top: 1rem; }
.event-group summary {
  cursor: pointer; padding: .75rem 1rem; border: 1px solid var(--line);
  border-radius: .6rem; background: #fff; font-weight: 660;
}
.event-group summary:focus-visible { outline: 3px solid #be740d; outline-offset: 3px; }
.event-group summary span { margin-left: .35rem; color: var(--muted); }
.event-group[open] > .list { margin-top: .75rem; }
.list .panel h3 { margin: 0 0 .35rem; font-size: 1.16rem; line-height: 1.35; }
