@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #102d30;
  --text: #263d3e;
  --muted: #4e6261;
  --paper: #f7f5ee;
  --card: #fdfcf8;
  --line: #d9dfd7;
  --teal: #086b64;
  --gold: #edc778;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
button { font: inherit; cursor: pointer; }
a { color: var(--teal); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.hero :focus-visible { outline-color: white; }
img { display: block; max-width: 100%; }
p { margin: 0; }
.wrap { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; inset: 8px auto auto 12px; background: white; padding: 12px; z-index: 3; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.22; }
.brand img { border-radius: 11px; flex: none; }
.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #acbeb8;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}
.install-button:hover { background: #e5eee7; }
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  margin-top: 20px;
  min-height: 164px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
}
.hero-copy { padding: 22px clamp(23px, 4vw, 42px); align-self: center; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: #d9e6d9; display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { margin-top: 6px; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.026em; }
.hero-intro { max-width: 36ch; margin-top: 8px; color: #e4ebe2; font-size: 1rem; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  margin-top: 25px;
  padding: 10px 19px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.primary:hover { background: #f6d795; }
.out { display: inline-block; font: 500 1.16em/1 var(--sans); }
.hero-visual { position: relative; min-width: 0; margin: 0; background: #254447; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 57% 56%; }
.hero-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 69%, rgb(8 29 31 / .66)); pointer-events: none; }
.hero-visual figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 14px 15px auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 600;
}
.card { padding: 27px 29px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.card h2 { margin: 5px 0 7px; font-size: clamp(2rem, 3.1vw, 2.55rem); line-height: 1.05; }
.resources { margin-top: 21px; border-top: 1px solid var(--line); }
.resource { border-bottom: 1px solid var(--line); scroll-margin-top: 14px; }
.resource summary {
  display: grid;
  grid-template-columns: 25px 1fr 14px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.resource summary::-webkit-details-marker { display: none; }
.resource summary:hover { background: #edf0e7; }
.resource-icon { color: var(--teal); }
.disclosure { justify-self: end; width: 8px; height: 8px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); margin: -4px 4px 0 0; }
.resource[open] .disclosure { transform: rotate(225deg); margin-top: 4px; }
.resource-body { max-width: 76ch; padding: 0 12px 20px 49px; color: var(--text); }
.resource-body p + p { margin-top: 9px; }
.routes a { font-weight: 700; }
.routes > a { display: block; width: fit-content; padding-block: 8px; }
.routes > p { margin-top: 8px; }
.footer-main { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 22px 0 10px; font-size: .9rem; }
.footer-main a { margin-left: 5px; font-weight: 700; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 0 0 24px; font-size: .77rem; color: var(--muted); }
.offline-notice { margin-top: 16px; background: #fbebc6; border: 1px solid #d9b878; border-radius: 8px; padding: 9px 14px; }
dialog {
  width: min(calc(100% - 30px), 480px);
  max-height: 90dvh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 90px #102d3045;
  background: var(--card);
  color: var(--ink);
}
dialog::backdrop { background: rgb(10 25 24 / .7); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.dialog-head h2 { font-size: 2.45rem; line-height: 1.04; }
#install-close { flex: none; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: 1.65rem; line-height: 1; }
#install-close:hover { background: #edf0e7; }
#install-action { margin-top: 13px; }
.install-steps { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.install-steps h3 { margin: 0 0 4px; font-size: 1rem; }
.install-steps p { color: var(--text); }
.icon { position: relative; display: inline-block; width: 16px; height: 16px; flex: none; }
.icon-phone { width: 11px; height: 16px; border: 1.6px solid currentColor; border-radius: 3px; }
.icon-phone::after { content: ""; position: absolute; bottom: 1px; left: 2px; right: 2px; border-top: 1px solid currentColor; }
.icon-pin { width: 10px; height: 10px; margin-top: -3px; border: 1.4px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.icon-pin::after { content: ""; position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 50%; }
.icon-camera { width: 18px; height: 13px; border: 1.6px solid currentColor; border-radius: 3px; }
.icon-camera::before { content: ""; position: absolute; left: 3px; top: -4px; width: 6px; height: 4px; border: 1.6px solid currentColor; border-radius: 2px; background: var(--paper); }
.icon-camera::after { content: ""; position: absolute; top: 2px; left: 4px; width: 7px; height: 7px; border: 1.6px solid currentColor; border-radius: 50%; }
.icon-route { margin-left: 3px; width: 13px; height: 13px; border: 1.6px solid currentColor; transform: rotate(45deg); border-radius: 2px; }
.icon-route::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid currentColor; border-left: 0; border-bottom: 0; }
@media (max-width: 850px) {
  .card { padding: 22px; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 69px; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; border-radius: 12px; }
  .hero-copy { padding: 16px 19px 17px; }
  h1 { font-size: clamp(2.45rem, 9vw, 3.55rem); }
  .hero-intro { margin-top: 6px; }
  .hero-visual { display: none; }
  .card { padding: 20px; }
  .resources { margin-top: 16px; }
  .footer-main { display: grid; gap: 7px; }
}
@media (max-width: 370px) {
  .brand { gap: 7px; font-size: .87rem; }
  .brand img { width: 34px; height: 34px; }
  .install-button { padding-inline: 8px; gap: 5px; font-size: .8rem; }
  .hero-copy { padding-inline: 17px; }
  .primary { width: 100%; }
}
.check-in { margin-top: 20px; }
.check-in > h2 { margin: 0 0 13px; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend, .field-label { color: var(--ink); font-weight: 700; }
legend { margin-bottom: 8px; padding: 0; font-size: 1.08rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid #acbeb8;
  border-radius: 8px;
  cursor: pointer;
  background: white;
}
.choice:hover { background: #f0f4ed; }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #e5f0e9; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: none; }
.observation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #acbeb8;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  resize: vertical;
}
.primary-teal { background: var(--teal); color: white; }
.primary-teal:hover { background: #075650; }
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #acbeb8;
  border-radius: 8px;
  color: var(--teal);
  background: white;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.quiet-button:hover { background: #e5f0e9; }
.quiet-button:disabled { cursor: default; opacity: .6; }
.status { margin-top: 7px; color: var(--text); }
.status:empty { display: none; }
.photo-tools { margin-top: 10px; }
.photo-inputs { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.photo-inputs label { min-width: 0; }
.photo-inputs input { display: block; max-width: 100%; margin-top: 3px; font: inherit; font-size: .88rem; }
.photo-inputs input::file-selector-button { min-height: 40px; margin-right: 7px; padding: 3px 10px; border: 1px solid #acbeb8; border-radius: 7px; color: var(--ink); background: #eef3eb; font: inherit; cursor: pointer; }
.photo-result { margin-top: 12px; }
.report-photo { margin: 10px 0; max-height: 280px; width: auto; border-radius: 8px; object-fit: contain; }
.photo-name { margin-bottom: 8px; overflow-wrap: anywhere; }
.resource-body button { margin-top: 8px; }
.tone-picker { margin: 8px 0 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: #eef3eb; }
.tone-label, .tone-ends { display: flex; justify-content: space-between; gap: 10px; }
.tone-label output { color: var(--teal); font-weight: 700; }
.tone-picker input { display: block; width: 100%; height: 28px; margin: 4px 0 0; accent-color: var(--teal); cursor: pointer; }
.tone-ends, .draft-meta { color: var(--muted); font-size: .8rem; }
.report-fields {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.report-note { min-width: 0; }
.report-note textarea { margin-top: 6px; }
.draft-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; }
#draft-count { white-space: nowrap; }
.photo-option { margin-top: 13px; border-top: 1px solid var(--line); }
.photo-option summary { padding-block: 11px; cursor: pointer; font-weight: 700; color: var(--teal); }
.photo-option .photo-tools { margin-top: 0; }
.report-actions { border-top: 1px solid var(--line); padding-top: 14px; }
.report-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; }
.report-submit p { flex: 1 1 240px; color: var(--muted); font-size: .9rem; }
.report-actions .primary { margin-top: 0; min-width: 205px; }
.report-actions .primary:disabled { opacity: .6; cursor: default; }
.status-link { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.status-link a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
  .report-fields { grid-template-columns: 1fr; gap: 12px; }
  .check-in { margin-top: 13px; }
  .observation-grid .choice { padding: 7px 9px; line-height: 1.25; font-size: .89rem; }
  .report-actions .primary { width: 100%; }
}
.hero-intro { max-width: 48ch; }
.shared-photo { margin-bottom: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #eef3eb; }
.shared-photo p { margin-bottom: 7px; }
.share-consent { display: flex; width: fit-content; margin: 9px 0 7px; }
.draft-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; }
.draft-source { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.concerns { margin-top: 18px; }
.concern-details-label { display: block; margin: 10px 0 4px; }
.concern-details { margin-top: 0; }
