.photo-protocol {
  scroll-margin-top: 92px;
  margin: 36px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #bfeaf0;
  border-radius: 28px;
  background: linear-gradient(145deg, #f1fcfe 0%, #fff 52%, #eef8ff 100%);
  box-shadow: 0 20px 52px rgba(18, 95, 125, .1);
}

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

.photo-protocol h2,
.photo-protocol h3,
.photo-protocol p,
.photo-protocol figure {
  margin-top: 0;
}

.photo-protocol h2 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(27px, 3.7vw, 42px);
  line-height: 1.1;
}

.photo-protocol__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  gap: 22px;
  align-items: end;
}

.photo-protocol__head > div > p {
  max-width: 780px;
  margin-bottom: 0;
  color: #405575;
  font-size: 17px;
}

.photo-protocol__limit {
  margin-bottom: 0;
  padding: 16px 18px;
  border-left: 4px solid #e07b39;
  border-radius: 12px;
  background: #fff7ef;
  color: #6f3b16;
}

.photo-protocol__layout {
  display: grid;
  grid-template-columns: minmax(290px, .75fr) minmax(0, 1.25fr);
  gap: 22px;
  margin-top: 26px;
}

.photo-protocol__figure {
  align-self: start;
  padding: 18px;
  border: 1px solid #d5ebf1;
  border-radius: 22px;
  background: #fff;
}

.photo-protocol__diagram {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
  background: #eaf9fc;
}

.photo-protocol__room {
  fill: #f7fdff;
  stroke: #b8dfe7;
  stroke-width: 3;
}

.photo-protocol__bath {
  fill: #dff5f8;
  stroke: #257e91;
  stroke-width: 8;
}

.photo-protocol__bowl {
  fill: #fff;
  stroke: #9bd2dc;
  stroke-width: 5;
}

.photo-protocol__drain {
  fill: none;
  stroke: #526a78;
  stroke-width: 5;
}

.photo-protocol__light {
  fill: none;
  stroke: #f0b544;
  stroke-linecap: round;
  stroke-width: 7;
}

.photo-protocol__crack {
  fill: none;
  stroke: #d04b4b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.photo-protocol__ruler {
  fill: none;
  stroke: #344c5c;
  stroke-linecap: round;
  stroke-width: 4;
}

.photo-protocol__marker circle {
  fill: #0f91a4;
  stroke: #fff;
  stroke-width: 4;
}

.photo-protocol__marker text {
  fill: #fff;
  font-size: 22px;
  font-weight: 900;
  text-anchor: middle;
}

.photo-protocol__figure figcaption {
  margin-top: 14px;
  color: #405575;
}

.photo-protocol__figure figcaption b {
  color: #13283a;
}

.photo-protocol__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #405575;
  font-size: 14px;
}

.photo-protocol__legend li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.photo-protocol__legend b {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #dff7fb;
  color: #057f91;
}

.photo-protocol__checklists {
  display: grid;
  gap: 16px;
}

.photo-protocol__group {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #d5ebf1;
  border-radius: 20px;
  background: #fff;
}

.photo-protocol__group legend {
  padding: 0 7px;
  color: #13283a;
  font-size: 20px;
  font-weight: 900;
}

.photo-protocol__group label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #e0edf1;
  border-radius: 13px;
  color: #344c5c;
  cursor: pointer;
}

.photo-protocol__group label:has(input:checked) {
  border-color: #8bd4de;
  background: #eefbfd;
  color: #153d48;
}

.photo-protocol__group input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: #0f91a4;
}

.photo-protocol__group label:focus-within {
  outline: 3px solid rgba(15, 145, 164, .22);
  outline-offset: 2px;
}

.photo-protocol__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 3px;
}

.photo-protocol__progress progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e4f1f4;
}

.photo-protocol__progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e4f1f4;
}

.photo-protocol__progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: #0f91a4;
}

.photo-protocol__progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: #0f91a4;
}

.photo-protocol__progress output {
  color: #466172;
  font-size: 13px;
  font-weight: 800;
}

.photo-protocol__group.is-complete {
  border-color: #77c79f;
  box-shadow: 0 0 0 3px rgba(87, 184, 136, .12);
}

.photo-protocol__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.photo-protocol__notes article {
  padding: 18px;
  border-radius: 18px;
  background: #13283a;
  color: #eaf8fb;
}

.photo-protocol__notes h3 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 19px;
}

.photo-protocol__notes p {
  margin-bottom: 0;
  color: #d7e8ed;
}

.photo-protocol__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.photo-protocol__actions button,
.photo-protocol__actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #9ddce5;
  border-radius: 999px;
  background: #fff;
  color: #087f91;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.photo-protocol__actions button:hover,
.photo-protocol__actions button:focus-visible,
.photo-protocol__actions a:hover,
.photo-protocol__actions a:focus-visible {
  border-color: #0f91a4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 145, 164, .18);
}

@media (max-width: 860px) {
  .photo-protocol__head,
  .photo-protocol__layout,
  .photo-protocol__notes {
    grid-template-columns: 1fr;
  }

  .photo-protocol__figure {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .photo-protocol {
    margin-right: -4px;
    margin-left: -4px;
    padding: 18px 14px;
    border-radius: 22px;
  }

  .photo-protocol__legend,
  .photo-protocol__progress {
    grid-template-columns: 1fr;
  }

  .photo-protocol__actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-protocol * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

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

  .photo-protocol,
  .photo-protocol * {
    visibility: visible !important;
  }

  .photo-protocol {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .photo-protocol__layout,
  .photo-protocol__head,
  .photo-protocol__notes {
    grid-template-columns: 1fr 1fr;
  }

  .photo-protocol__actions {
    display: none;
  }
}
