:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #f4f6f8;
  color: #17202a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #0b57d0; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: white; padding: .75rem; z-index: 10; }
.site-header { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.25rem clamp(1rem,4vw,3rem); background: #111827; color: white; }
.site-header h1 { margin: .2rem 0 0; font-size: clamp(1.25rem,4vw,2rem); }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-badge { border: 1px solid currentColor; border-radius: 999px; padding: .4rem .7rem; font-size: .8rem; }
.container { width: min(100% - 2rem, 64rem); margin: 2rem auto; display: grid; gap: 1rem; }
.narrow { width: min(100% - 2rem, 44rem); }
.panel { background: white; border: 1px solid #d8dee8; border-radius: .75rem; padding: clamp(1rem,3vw,2rem); box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.panel h1, .panel h2 { margin-top: 0; }
.warning { border-left: .4rem solid #a15c00; }
.facts { display: grid; gap: .75rem; margin: 1.5rem 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
button { font: inherit; font-weight: 700; border: 0; border-radius: .5rem; padding: .75rem 1rem; background: #174ea6; color: white; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
.role-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.role-links a { background: white; border: 1px solid #d8dee8; border-radius: .5rem; padding: .75rem 1rem; }
@media (max-width: 40rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
}

.header-link { color: white; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(14rem,1fr)); gap: 1rem; margin-bottom: 1rem; }
label { display: grid; gap: .35rem; font-weight: 700; }
input, textarea { width: 100%; font: inherit; padding: .7rem; border: 1px solid #aeb8c6; border-radius: .45rem; background: white; color: inherit; }
input:focus-visible, textarea:focus-visible { outline: 3px solid #174ea6; outline-offset: 2px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #d8dee8; padding: .7rem; text-align: left; vertical-align: top; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
button.danger { background: #9b1c1c; }
.secret-panel { border: 2px dashed #a15c00; border-radius: .5rem; padding: 1rem; background: #fff8e8; }
.notice { margin-top: 1rem; padding: 1rem; }
.local-only { padding: .75rem; margin: 1rem 0; border: 1px dashed #5d6b7a; border-radius: .5rem; }
hr { border: 0; border-top: 1px solid #d8dee8; margin: 1.5rem 0; }

.qr-render {
  display: inline-block;
  max-width: 22rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #1f2937;
}

.qr-render svg {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  shape-rendering: crispEdges;
}

#manager-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 0.5rem;
}

button.compact {
  padding: 0.35rem 0.65rem;
}

@media print {
  body * {
    visibility: hidden;
  }

  #qr-secret-panel,
  #qr-secret-panel * {
    visibility: visible;
  }

  #qr-secret-panel {
    position: absolute;
    inset: 0 auto auto 0;
    border: 0;
  }

  #qr-secret-panel textarea,
  #qr-secret-panel button,
  #qr-secret-panel p {
    display: none;
  }
}
