@font-face {
  font-family: Inter;
  src: url("./fonts/inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --cream: #f5f1e7;
  --paper: #fffdf8;
  --forest: #173f36;
  --deep-forest: #0d2c26;
  --fern: #2f6754;
  --moss: #a8bd7f;
  --clay: #b04a2c;
  --clay-hover: #8f3922;
  --ink: #1c2a26;
  --muted: #626c66;
  --rule: #e3ddcf;
  --error: #982f28;
  --error-bg: #f8e7e1;
  --success: #235b42;
  --success-bg: #e8f0e6;
  --focus: #226f99;
  --font-body: Inter, Arial, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-data: "IBM Plex Mono", "Courier New", monospace;
  --content: 1180px;
  --measure: 72ch;
}

[data-private-image] { visibility: hidden; }
.optional-fields > summary, .photo-intake > summary { min-height:44px; padding:12px 0; cursor:pointer; color:var(--forest); font-weight:600; }
.optional-fields[open] > summary { margin-bottom:20px; }
.optional-fields > .form-grid { width:100%; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  container-type: inline-size;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(.admin-sections) {
  background: #efede6;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--deep-forest);
  font-weight: 750;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--paper);
  transform: translateY(0);
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .brand {
  color: var(--deep-forest);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 720;
}

.site-footer {
  padding: 42px max(20px, calc((100vw - var(--content)) / 2));
  color: #dfe7e2;
  background: var(--deep-forest);
  font-size: 0.84rem;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  display: inline-block;
  margin: 10px 16px 0 0;
  color: #d6e6d7;
}

body > main:not(#app) {
  width: min(calc(100% - 32px), 760px);
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) 0;
}

body > main:not(#app) h1 {
  max-width: 16ch;
}

body > main:not(#app) p {
  color: #3f4e47;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #2e6b46;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--deep-forest);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

#app {
  width: min(calc(100% - 32px), var(--content));
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 96px;
}

#app:focus {
  outline: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--deep-forest);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.1;
}

p {
  max-width: var(--measure);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  pointer-events: none;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: clamp(36px, 6vw, 68px);
}

.page-head__copy > p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.page-head__actions {
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.hub-intro {
  position: relative;
  margin: calc(clamp(40px, 7vw, 88px) * -1) calc((100cqw - min(calc(100cqw - 32px), var(--content))) / -2) 72px;
  padding: clamp(52px, 9vw, 110px) max(16px, calc((100cqw - var(--content)) / 2)) 48px;
  color: var(--paper);
  background: var(--forest);
}

.hub-intro .page-head {
  width: min(100%, var(--content));
  margin: 0 auto 48px;
}

.hub-intro h1 {
  color: var(--paper);
}

.hub-intro .page-head__copy > p {
  color: #e0e8df;
}

.hub-intro .button--primary {
  color: var(--paper);
  background: var(--clay);
}

.hub-intro .button--primary:hover {
  background: #c85b38;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--forest);
}

.category-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-bottom: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-nav a + a {
  border-left: 0;
}

.category-nav a:hover,
.category-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--forest);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button--primary {
  color: #fff;
  background: var(--clay);
}

.button--primary:hover {
  color: #fff;
  background: var(--clay-hover);
}

.button--facebook {
  color: var(--forest);
  border-color: var(--forest);
  background: transparent;
}

.button--facebook:hover {
  color: var(--paper);
  background: var(--forest);
}

.button--secondary {
  color: var(--forest);
  border-color: var(--forest);
  background: transparent;
}

.button--secondary:hover {
  color: var(--paper);
  background: var(--forest);
}

.button--small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.button:disabled {
  color: #f4f4ef;
  border-color: #8d938f;
  background: #8d938f;
  cursor: wait;
}

.button[aria-busy="true"]::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 700ms linear infinite;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0;
  color: #2e6b46;
  border: 0;
  background: transparent;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.text-link .icon {
  transition: transform 160ms ease;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.text-button--danger,
.danger {
  color: var(--error) !important;
}

.back-nav {
  margin-bottom: 42px;
}

.back-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 720;
}

.back-nav .icon {
  transform: rotate(180deg);
}

.safety-note {
  width: min(100%, var(--content));
  display: flex;
  gap: 13px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 253, 248, 0.28);
  color: #e0e8df;
}

.safety-note .icon {
  margin-top: 2px;
  color: var(--moss);
}

.safety-note p {
  margin: 0;
}

.safety-note strong {
  color: var(--paper);
}

.safety-note--strong {
  width: auto;
  margin: 34px 0;
  padding: 18px 20px;
  color: var(--deep-forest);
  border: 1px solid #9ebc84;
  background: #edf2df;
}

.safety-note--strong strong {
  color: var(--deep-forest);
}

.filters {
  margin-bottom: 26px;
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.filters__heading,
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.filters__heading h2,
.section-heading h2 {
  margin: 0;
}

.filters__heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.filters__controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.choice-set legend,
.copy-field > label,
.share-fallback > label {
  display: block;
  margin: 0 0 7px;
  color: var(--deep-forest);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.field label span {
  color: var(--clay);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #a7aaa4;
  border-radius: 4px;
  background: #fff;
  line-height: 1.35;
  transition: border-color 150ms ease, background-color 150ms ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--fern);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(34, 111, 153, 0.18);
  outline-offset: 0;
}

input::placeholder,
textarea::placeholder {
  color: #6e756f;
}

.field__hint,
.field-error {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-error {
  color: var(--error);
  font-weight: 650;
}

.was-validated :invalid {
  border-color: var(--error);
  background: #fff9f7;
}

.result-summary {
  min-height: 26px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.report-list {
  display: grid;
  gap: 18px;
}

.server-category > p {
  max-width: var(--measure);
}

.server-category > h2 {
  margin-top: 48px;
}

.server-report-list .report-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.server-empty {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.report-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.report-card__image,
.report-card__mark {
  min-height: 100%;
  color: var(--paper);
  background: var(--fern);
}

.report-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-card__mark {
  display: grid;
  place-items: center;
}

.report-card__mark .icon {
  width: 48px;
  height: 48px;
}

.report-card__mark--packages {
  background: #3b5c55;
}

.report-card__mark--items {
  color: var(--deep-forest);
  background: var(--moss);
}

.report-card__body {
  padding: 26px 30px 24px;
}

.report-card__labels,
.detail-head__labels,
.locked-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.71rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--forest);
  border: 1px solid #86a185;
  border-radius: 0;
  background: #edf2e6;
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.status--resolved {
  color: #414842;
  border-color: #bfc3bd;
  background: #f0f0ec;
}

.status--expired,
.status--archived {
  color: #5d625e;
  border-color: #c9c8c1;
  background: #f1efe9;
}

.status--flagged {
  color: #7c2a22;
  border-color: #d1a298;
  background: #faebe7;
}

.report-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.03;
}

.report-card h2 a {
  color: var(--deep-forest);
  text-decoration: none;
}

.report-card h2 a:hover {
  color: var(--clay-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.report-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 18px;
  color: #4d5752;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.report-card__facts > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.report-card__facts dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.report-card__facts dd {
  margin: 0;
}

.report-card__facts .icon {
  width: 16px;
  height: 16px;
}

.report-skeleton {
  min-height: 236px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: linear-gradient(100deg, #eeeadf 20%, #f8f5ec 40%, #eeeadf 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 64px 24px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.empty-state > .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: var(--fern);
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
  max-width: 22ch;
}

.empty-state p {
  max-width: 48ch;
  margin-bottom: 24px;
}

.empty-state--page {
  min-height: 440px;
  align-content: center;
}

.choice-set {
  margin: 0 0 34px;
  padding: 0;
  border: 0;
}

.choice-set legend {
  margin-bottom: 10px;
}

.segmented {
  display: grid;
  gap: 0;
  border: 1px solid var(--forest);
}

.segmented--three {
  grid-template-columns: repeat(3, 1fr);
}

.segment {
  min-width: 0;
  cursor: pointer;
}

.segment + .segment {
  border-left: 1px solid var(--forest);
}

.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segment span {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  color: var(--forest);
  background: var(--paper);
  font-weight: 720;
  transition: color 160ms ease, background-color 160ms ease;
}

.segment input:checked + span {
  color: var(--paper);
  background: var(--forest);
}

.segment input:focus-visible + span {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.report-form {
  max-width: 900px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.form-grid--main {
  margin-bottom: 48px;
}

.form-section {
  margin-top: 0;
  padding: 42px 0 48px;
  border-top: 1px solid var(--rule);
}

.section-heading {
  align-items: flex-start;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-heading p {
  max-width: 43ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.locked-fields span {
  padding: 7px 9px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.check span {
  display: grid;
  color: var(--ink);
  font-size: 0.91rem;
}

.check small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
}

.privacy-confirm,
.consent {
  margin-top: 20px;
}

.file-drop {
  position: relative;
  min-height: 144px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  color: var(--forest);
  border: 1px dashed var(--fern);
  border-radius: 4px;
  background: var(--paper);
}

.file-drop > .icon {
  width: 38px;
  height: 38px;
}

.file-drop label {
  display: grid;
}

.file-drop label span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.83rem;
}

.file-drop input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-previews figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.photo-previews img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-previews figcaption {
  display: grid;
  padding: 8px;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-previews figcaption span {
  color: var(--muted);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.notice {
  max-width: 900px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  font-size: 0.91rem;
  font-weight: 650;
}

.notice--error {
  color: #71251f;
  border-color: #d7a39a;
  background: var(--error-bg);
}

.notice--success {
  color: #17452f;
  border-color: #9db79e;
  background: var(--success-bg);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 8px;
}

.form-actions p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.completion {
  min-height: 540px;
  display: grid;
  justify-items: start;
  align-content: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 54px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.completion > .icon {
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  color: var(--fern);
  stroke-dasharray: 60;
  animation: draw 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.completion--attention > .icon {
  color: var(--clay);
}

.completion h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.completion > p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.next-steps {
  width: 100%;
  display: grid;
  gap: 0;
  margin: 6px 0 34px;
  border-top: 1px solid var(--rule);
}

.next-steps > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.next-steps span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--paper);
  background: var(--forest);
  font-family: var(--font-data);
  font-size: 0.72rem;
}

.next-steps p {
  margin: 0;
  color: var(--muted);
}

.next-steps strong {
  display: block;
  color: var(--ink);
}

.detail-head {
  max-width: 920px;
  margin-bottom: 38px;
}

.detail-head h1 {
  max-width: 16ch;
}

.original-report {
  max-width: 60ch;
  margin: -6px 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

.detail-head__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
}

.detail-head__facts span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-head__facts .icon {
  width: 18px;
  height: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 52px;
}

.photo-grid--1 {
  grid-template-columns: minmax(0, 780px);
}

.photo-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe2dc;
}

.photo-unavailable {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: var(--rule);
}

.photo-unavailable::after {
  padding: 18px;
  color: var(--muted);
  content: "Private photo unavailable";
  font-size: 0.82rem;
}

.photo-unavailable img {
  display: none;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 560px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 0;
  background: rgba(13, 44, 38, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.8fr);
  gap: clamp(40px, 7vw, 90px);
  margin-bottom: 56px;
}

.detail-layout .prose > p {
  color: #33413b;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.38;
  white-space: pre-line;
}

.detail-layout aside {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.detail-list {
  margin: 0;
}

.detail-list div,
.report-dates p {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.detail-list div:first-child {
  padding-top: 0;
}

.detail-list dt,
.report-dates span {
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.66rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.91rem;
}

.report-dates p {
  display: grid;
  margin: 0;
  font-size: 0.86rem;
}

.report-dates p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.resolution {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid #a7ba9c;
  border-radius: 8px;
  background: #eef2e6;
}

.resolution h2 {
  font-size: 2rem;
}

.resolution p {
  margin: 0;
}

.updates {
  max-width: 820px;
  margin: 56px 0;
}

.updates h2 {
  margin-bottom: 24px;
}

.updates ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.updates li {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.updates time,
.data-label {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.69rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.updates p {
  margin: 7px 0 0;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 46px 0;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.share-fallback,
.copy-field {
  max-width: 760px;
  margin: 20px 0 44px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.share-fallback > div,
.copy-field > div {
  display: flex;
}

.share-fallback input,
.copy-field input {
  border-radius: 4px 0 0 4px;
}

.share-fallback .button,
.copy-field .button {
  flex: 0 0 auto;
}

.interaction-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.interaction-panel,
.flag-panel,
.narrow-panel,
.admin-login,
.manage-panel,
.manage-tools > section,
.private-inbox,
.admin-section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}

.interaction-panel h2,
.manage-panel > h2,
.manage-tools h2,
.private-inbox > h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.interaction-panel > p,
.manage-tools section > p,
.private-inbox > p {
  color: var(--muted);
}

.interaction-panel form .button,
.flag-panel form .button {
  margin-top: 22px;
}

.sighting-photo {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.sighting-photo > label:first-child {
  color: var(--deep-forest);
  font-size: 0.78rem;
  font-weight: 760;
}

.sighting-photo input[type="file"] {
  min-height: auto;
  padding: 10px;
  font-size: 0.82rem;
}

.flag-panel {
  grid-column: 1 / -1;
  padding-block: 22px;
}

.flag-panel summary,
.audit-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--forest);
  font-weight: 760;
  cursor: pointer;
}

.flag-panel form {
  max-width: 560px;
  padding-top: 22px;
}

.narrow-panel,
.admin-login {
  max-width: 650px;
}

.narrow-panel form,
.admin-login form {
  display: grid;
  gap: 20px;
}

.verify-panel {
  display: grid;
  justify-items: start;
}

.verify-panel > .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--fern);
}

.verify-panel p {
  color: var(--muted);
}

.page-loading {
  min-height: 500px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.page-loading span {
  width: 32px;
  height: 32px;
  border: 2px solid var(--rule);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.manage-summary {
  margin-bottom: 56px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--rule);
}

.manage-summary .report-detail {
  max-width: none;
}

.manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.manage-panel .report-form {
  max-width: none;
}

.manage-panel .form-grid--main {
  margin-bottom: 24px;
}

.manage-panel .form-section {
  padding: 32px 0;
}

.manage-panel .photo-intake,
.manage-panel .report-form > .form-section:nth-last-of-type(1) {
  display: none;
}

.manage-tools {
  display: grid;
  gap: 16px;
}

.manage-tools > section {
  padding: 24px;
}

.manage-tools input[type="file"] {
  min-height: auto;
  margin-bottom: 16px;
  padding: 10px;
  font-size: 0.82rem;
}

.manage-tools .button {
  margin-top: 16px;
}

.stacked-actions {
  display: grid;
  gap: 8px;
}

.stacked-actions .button,
.stacked-actions .text-button {
  width: 100%;
}

.private-inbox {
  margin-top: 20px;
}

.inbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inbox-grid article {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--cream);
}

.private-sighting-photo {
  margin: -22px -22px 18px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--rule);
}

.private-sighting-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inbox-grid h3 {
  margin-top: 7px;
}

.inbox-grid p {
  white-space: pre-line;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.metrics > div {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 20px;
  border-right: 1px solid var(--rule);
}

.metrics > div:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--deep-forest);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.69rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.admin-sections {
  display: grid;
  gap: 18px;
}

.admin-editor {
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--forest);
  border-radius: 8px;
  background: var(--paper);
}

.admin-editor .report-form {
  max-width: none;
}

.admin-editor .form-grid--main {
  margin-bottom: 28px;
}

.admin-editor .form-section {
  padding: 30px 0;
}

.admin-section .section-heading > p {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.moderation-grid article {
  display: grid;
  grid-template-columns: 140px 1fr;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.moderation-grid figure {
  min-height: 170px;
  margin: 0;
  background: var(--rule);
}

.moderation-grid img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.moderation-grid article > div {
  padding: 18px;
}

.moderation-grid h3 {
  font-size: 1.3rem;
}

.moderation-grid p {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-list {
  border-top: 1px solid var(--rule);
}

.admin-list article {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.admin-list h3 {
  margin-top: 5px;
}

.admin-list p {
  margin: 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.67rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.admin-table td:first-child {
  min-width: 260px;
}

.admin-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  width: fit-content;
  color: #2e6b46;
  font-weight: 700;
  cursor: pointer;
}

.action-menu > div {
  min-width: 170px;
  display: grid;
  margin-top: 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.action-menu button {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.action-menu button:last-child {
  border-bottom: 0;
}

.action-menu button:hover {
  background: var(--cream);
}

.audit-summary {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.audit-summary span:last-child {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.7rem;
}

.audit-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.audit-list li {
  display: grid;
  grid-template-columns: 180px 170px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
}

.audit-list time {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
}

.empty-line {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes draw {
  from { stroke-dashoffset: 60; opacity: 0.45; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 900px) {
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout,
  .manage-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout aside {
    max-width: 620px;
  }

  .interaction-panels {
    grid-template-columns: 1fr;
  }

  .flag-panel {
    grid-column: auto;
  }

  .manage-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #app {
    width: min(calc(100% - 24px), var(--content));
    padding-top: 32px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: 2.2rem;
  }

  .page-head {
    gap: 24px;
    margin-bottom: 40px;
  }

  .page-head__actions,
  .page-head__actions .button {
    width: 100%;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

  .site-footer {
    padding: 34px 16px;
  }

  .hub-intro {
    margin: -32px -12px 44px;
    padding: 50px 12px 30px;
  }

  .hub-intro .page-head {
    margin-bottom: 34px;
  }

  .category-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-nav a,
  .category-nav a + a {
    border: 1px solid var(--forest);
    border-bottom: 0;
  }

  .category-nav a:nth-child(even) {
    border-left: 0;
  }

  .safety-note {
    padding-top: 20px;
    font-size: 0.88rem;
  }

  .filters {
    padding: 20px 16px;
  }

  .filters__heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .filters__controls,
  .form-grid,
  .manage-tools,
  .inbox-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    grid-template-columns: 1fr;
  }

  .report-card__image,
  .report-card__mark {
    min-height: 156px;
  }

  .report-card__image img {
    height: 190px;
  }

  .report-card__body {
    padding: 22px 20px;
  }

  .segmented--three {
    grid-template-columns: 1fr;
  }

  .segment + .segment {
    border-top: 1px solid var(--forest);
    border-left: 0;
  }

  .segment span {
    min-height: 54px;
  }

  .form-section {
    padding: 32px 0 38px;
  }

  .photo-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .completion {
    min-height: 480px;
    padding: 34px 22px;
  }

  .photo-grid,
  .photo-grid--1 {
    grid-template-columns: 1fr;
    margin-bottom: 38px;
  }

  .photo-grid img {
    min-height: 220px;
  }

  .detail-layout {
    gap: 28px;
  }

  .detail-layout .prose > p {
    font-size: 1.45rem;
  }

  .report-actions {
    display: grid;
  }

  .report-actions .button {
    width: 100%;
  }

  .share-fallback > div,
  .copy-field > div {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .share-fallback input,
  .copy-field input {
    border-radius: 4px;
  }

  .interaction-panel,
  .flag-panel,
  .narrow-panel,
  .admin-login,
  .manage-panel,
  .manage-tools > section,
  .private-inbox,
  .admin-section {
    padding: 22px 16px;
  }

  .moderation-grid article {
    grid-template-columns: 1fr;
  }

  .moderation-grid img {
    max-height: 240px;
  }

  .admin-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .metrics > div:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

  .audit-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 390px) {
  .report-card__facts {
    display: grid;
  }

  .photo-previews,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics > div:nth-child(odd) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .back-nav,
  .report-actions,
  .interaction-panels,
  .page-head__actions,
  .image-action {
    display: none !important;
  }

  body,
  #app {
    color: #000;
    background: #fff;
  }

  #app {
    width: 100%;
    padding: 0;
  }
}
