:root {
  color-scheme: light dark;
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5c5c66;
  --rule: #e6e6e0;
  --accent: #1f5fd4;
  --accent-hover: #1a4fb0;
  --accent-contrast: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151a;
    --surface: #1d1d22;
    --text: #f1f1f3;
    --muted: #9c9ca6;
    --rule: #2d2d34;
    --accent: #6ea0ff;
    --accent-hover: #87b1ff;
    --accent-contrast: #0b0b0f;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.consent {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
}

.consent header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.consent .institution {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.consent header h1 {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(1.375rem, 5.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  overflow-wrap: break-word;
  hyphens: auto;
}

.consent .meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.consent .meta dt {
  font-weight: 500;
}

.consent .meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.consent a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.consent a:hover,
.consent a:focus-visible {
  border-bottom-color: currentColor;
}

.consent section {
  margin: 2rem 0;
}

.consent section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.consent section p {
  margin: 0 0 0.85rem;
}

.consent section p:last-child {
  margin-bottom: 0;
}

.consent form {
  margin-top: 2.5rem;
}

.consent-recorded {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  background: rgba(127, 127, 127, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0.375rem;
}

.consent button,
.consent input[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-contrast);
  background: var(--accent);
  border: none;
  border-radius: 0.625rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.consent button:hover,
.consent input[type="submit"]:hover {
  background: var(--accent-hover);
}

.consent button:active,
.consent input[type="submit"]:active {
  transform: translateY(1px);
}

.consent button:focus-visible,
.consent input[type="submit"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 40rem) {
  body {
    font-size: 18px;
  }

  .consent {
    padding: 4rem 2rem 6rem;
  }

  .consent header h1 {
    font-size: 2rem;
  }

  .consent button,
  .consent input[type="submit"] {
    width: auto;
    min-width: 12rem;
    margin-left: auto;
    margin-right: 0;
  }

  .consent form {
    display: flex;
    justify-content: flex-end;
  }
}

.splash {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.splash-returns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.splash-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  justify-content: center;
}

.splash .secondary {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.splash .secondary:hover {
  background: rgba(127, 127, 127, 0.08);
  border-color: var(--muted);
}

.splash .secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.splash .institution {
  margin: 0;
  align-self: stretch;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.splash h1 {
  margin: 0;
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: break-word;
  hyphens: auto;
}

.splash .lede {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.splash .primary {
  display: inline-block;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 0.625rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  border-bottom: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.splash .primary:hover {
  background: var(--accent-hover);
}

.splash .primary:active {
  transform: translateY(1px);
}

.splash .primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 30rem) {
  .splash-actions {
    align-self: stretch;
    flex-direction: column;
  }

  .splash .primary {
    text-align: center;
  }
}

@media (min-width: 40rem) {
  .splash {
    padding: 4rem 2rem 6rem;
  }
}

.placeholder {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

.placeholder h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.015em;
}

.placeholder p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.picture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.picture-list figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.picture-list img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.picture-list figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

@media (min-width: 40rem) {
  .placeholder {
    padding: 4rem 2rem 6rem;
  }
}

.info-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-form fieldset {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.625rem;
}

.info-form legend {
  padding: 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.info-form .field:first-of-type {
  margin-top: 0.25rem;
}

.info-form label {
  font-size: 0.9375rem;
  color: var(--text);
}

.info-form input,
.info-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.info-form textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
}

.info-form input:focus,
.info-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 95, 212, 0.18);
}

.info-form .field-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #b04040;
}

.info-form .primary {
  align-self: flex-start;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-contrast);
  background: var(--accent);
  border: none;
  border-radius: 0.625rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.info-form .primary:hover {
  background: var(--accent-hover);
}

@media (max-width: 30rem) {
  .info-form .primary {
    align-self: stretch;
  }
}


.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #1a1a1a;
  background: #fff3b0;
  border-bottom: 1px solid #d4b73e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.dev-banner__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dev-banner__dot--on {
  background: #2e9d4a;
  box-shadow: 0 0 0 1px rgba(46, 157, 74, 0.4);
}

.dev-banner__dot--off {
  background: #b04040;
  box-shadow: 0 0 0 1px rgba(176, 64, 64, 0.4);
}

.dev-banner__version {
  opacity: 0.75;
  white-space: nowrap;
}

.dev-banner__path {
  margin-left: auto;
  opacity: 0.65;
}

.dev-banner__logout-form {
  margin: 0;
}

.dev-banner__logout {
  pointer-events: auto;
  padding: 0.15rem 0.5rem;
  font: inherit;
  font-size: 0.7rem;
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.25rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  width: auto;
  min-width: 0;
  margin: 0;
  display: inline-block;
}

.dev-banner__logout:hover {
  background: rgba(0, 0, 0, 0.14);
}
