:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #24352f;
  background: #f6f5f0;
  line-height: 1.55;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px 36px;
}
header {
  border-bottom: 1px solid #d8dfd6;
}
.brand {
  font-size: 1.7rem;
  letter-spacing: -0.055em;
  font-weight: 750;
  text-decoration: none;
}
.brand span {
  color: #b7794c;
}
a {
  color: #285842;
}
nav {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
nav a {
  text-decoration: none;
}
nav a[aria-current="page"] {
  font-weight: 750;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 0 36px 65px;
}
.hero {
  padding: 50px 0 25px;
  max-width: 870px;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  color: #637664;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 450;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin: 15px 0 22px;
}
h1 em {
  color: #47715a;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin: 4px 0 15px;
}
h3 {
  font-size: 1rem;
  margin: 23px 0 12px;
}
p {
  margin: 9px 0 18px;
}
.hero > p:not(.eyebrow) {
  font-size: 1.1rem;
  color: #52665a;
  max-width: 720px;
}
.notice {
  padding: 16px 18px;
  background: #edf1e7;
  border: 1px solid #cfdbc7;
  border-radius: 10px;
  font-size: 0.9rem;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #d8dfd6;
  background: #fff;
  min-width: 0;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.help,
label > span {
  font-size: 0.83rem;
  color: #627366;
  font-weight: 400;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  margin: 17px 0;
}
label > span {
  display: block;
  margin-top: 6px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  font: inherit;
  background: #fff;
  color: inherit;
  padding: 11px 12px;
  border: 1px solid #afbeb2;
  border-radius: 8px;
  margin-top: 6px;
}
input[type="file"] {
  padding: 10px;
  font-size: 0.85rem;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
button {
  font: inherit;
  font-size: 0.87rem;
  font-weight: 650;
  background: #285842;
  border: 1px solid #285842;
  color: #fff;
  padding: 11px 17px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
button.secondary {
  background: #f4f6ef;
  color: #285842;
  border-color: #b8c6b7;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button:not(:disabled):hover {
  filter: brightness(0.92);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b7773e;
  outline-offset: 3px;
}
hr {
  border: 0;
  border-top: 1px solid #dde5da;
  margin: 30px 0;
}
.check-row {
  border: 1px solid #dce4d7;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
}
.check-row label {
  margin: 7px 0;
}
.check-row .row {
  grid-template-columns: 1.25fr 1fr;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 14px;
  margin: 18px 0;
}
.photo-card {
  border: 1px solid #dce4d7;
  border-radius: 12px;
  padding: 13px;
  min-width: 0;
}
.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f0f3ec;
  border-radius: 7px;
}
.photo-card p {
  margin: 7px 0;
}
.photo-card label {
  margin: 7px 0;
}
.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 750;
  color: #536d58;
}
.hash {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 12px;
}
.report details,
.import-box {
  padding: 16px;
  border-radius: 10px;
  background: #f2f5ed;
  font-size: 0.9rem;
}
.import-box {
  margin-top: 25px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.report-check {
  padding: 12px 0;
  border-bottom: 1px solid #dde5da;
}
.report-check strong,
.report-check span {
  display: block;
}
#status {
  padding: 14px 17px;
  border-radius: 10px;
  border: 1px solid #cdd9c8;
  background: #eaf0e4;
}
#status.error {
  background: #fff0e3;
  border-color: #d8aa83;
}
.report table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
}
.report th,
.report td {
  border-bottom: 1px solid #dbe3d6;
  text-align: left;
  padding: 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid #d8dfd6;
  color: #617465;
  font-size: 0.83rem;
}
.skip {
  position: absolute;
  top: -100px;
  background: #fff;
  padding: 12px;
  left: 20px;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .report {
    max-width: 100%;
  }
  .report .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  }
}
@media (max-width: 620px) {
  header,
  footer {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  nav {
    gap: 15px;
  }
  main {
    padding: 0 17px 40px;
  }
  .hero {
    padding-top: 32px;
  }
  .card {
    padding: 20px;
  }
  .row,
  .check-row .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  h1 {
    font-size: 3.15rem;
  }
  .section-top {
    align-items: flex-start;
  }
  .report .photo-grid {
    grid-template-columns: 1fr;
  }
  button {
    max-width: 100%;
  }
}
@media print {
  header,
  footer,
  .hero,
  #status,
  .editor,
  .report-actions,
  .skip {
    display: none !important;
  }
  main,
  body {
    padding: 0;
    background: #fff;
  }
  .workspace {
    display: block;
  }
  .report {
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .photo-card {
    break-inside: avoid;
  }
  .report .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-card img {
    height: 180px;
  }
  details {
    display: block;
  }
  details > * {
    display: block !important;
  }
  h3 {
    break-after: avoid;
  }
  #report-heading {
    font-size: 1.8rem;
  }
}
