/* Isolated repair observation module; adapted and reviewed from Claude's Werkplan prototype. */
.nw-repair-observations {
  --nw-ro-line: rgb(22 60 42 / 21%);
  --nw-ro-green: #163c2a;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--nw-ro-line);
  min-width: 0;
  color: var(--nw-ro-green);
}
.nw-repair-observations [hidden] { display: none !important; }
.nw-repair-observations *, .nw-repair-observations *::before, .nw-repair-observations *::after { box-sizing: border-box; }
.nw-repair-observations .nw-ro-heading { max-width: 700px; }
.nw-repair-observations .nw-ro-heading h2 {
  max-width: 650px;
  margin: 10px 0 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.035em;
  hyphens: none;
  overflow-wrap: normal;
}
.nw-repair-observations .nw-ro-heading > p:not(.nw-eyebrow) {
  max-width: 650px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #46554a;
}
.nw-repair-observations .nw-ro-heading > p.nw-ro-instructions {
  font-size: 14px;
  margin-top: 14px;
}
.nw-repair-observations .nw-ro-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  min-width: 0;
}
.nw-repair-observations .nw-ro-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  grid-template-rows: 58px auto;
  align-items: start;
  gap: 10px 12px;
  width: 100%;
  min-width: 0;
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--nw-ro-line);
  border-radius: 2px;
  background: rgb(255 255 255 / 38%);
  color: var(--nw-ro-green);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.nw-repair-observations .nw-ro-choice:disabled { cursor: default; opacity: 1; }
.nw-repair-observations .nw-ro-choice:not(:disabled):hover { border-color: #537548; }
.nw-repair-observations .nw-ro-choice[aria-pressed="true"] {
  border-color: var(--nw-ro-green);
  background: #eaf0e4;
  box-shadow: inset 0 0 0 1px var(--nw-ro-green);
}
.nw-repair-observations .nw-ro-sketch {
  grid-column: 1 / -1;
  display: block;
  width: 128px;
  max-width: calc(100% - 16px);
  height: auto;
}
.nw-repair-observations .nw-ro-soil { fill: #ece9df; stroke: none; }
.nw-repair-observations .nw-ro-stone { fill: #d9d1c4; }
.nw-repair-observations .nw-ro-reference { opacity: .45; stroke-dasharray: 3 4; }
.nw-repair-observations .nw-ro-green { stroke: #537548; stroke-width: 2; }
.nw-repair-observations .nw-ro-water { fill: #a5c2c5; stroke: #577d81; fill-opacity: .6; }
.nw-repair-observations .nw-ro-question {
  grid-column: 1;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  hyphens: none;
  overflow-wrap: normal;
}
.nw-repair-observations .nw-ro-check {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--nw-ro-line);
  background: transparent;
}
.nw-repair-observations .nw-ro-check svg { display: block; opacity: 0; }
.nw-repair-observations .nw-ro-choice[aria-pressed="true"] .nw-ro-check { background: var(--nw-ro-green); color: #fff; border-color: var(--nw-ro-green); }
.nw-repair-observations .nw-ro-choice[aria-pressed="true"] .nw-ro-check svg { opacity: 1; }
.nw-repair-observations .nw-ro-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--nw-ro-line);
  min-width: 0;
}
.nw-repair-observations .nw-ro-summary-copy { min-width: 0; max-width: 680px; }
.nw-repair-observations .nw-ro-summary h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.nw-repair-observations .nw-ro-status { margin: 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.nw-repair-observations .nw-ro-transfer-note { margin: 10px 0 0; color: #556052; font-size: 13px; line-height: 1.65; }
.nw-repair-observations .nw-ro-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.nw-repair-observations .nw-ro-actions > a { min-height: 48px; justify-content: center; text-align: center; }
.nw-repair-observations .nw-ro-clear {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nw-ro-green);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nw-repair-observations :is(.nw-ro-choice, .nw-ro-clear):focus-visible { outline: 2px solid #163c2a; outline-offset: 4px; }
@media (max-width: 1050px) {
  .nw-repair-observations .nw-ro-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-repair-observations .nw-ro-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nw-repair-observations .nw-ro-actions { align-items: flex-start; }
}
@media (max-width: 560px) {
  .nw-repair-observations .nw-ro-choices { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  .nw-repair-observations .nw-ro-choice { grid-template-columns: 72px minmax(0, 1fr) 22px; grid-template-rows: auto; align-items: center; gap: 12px; min-height: 88px; padding: 13px 12px; }
  .nw-repair-observations .nw-ro-sketch { grid-column: 1; width: 72px; max-width: 100%; }
  .nw-repair-observations .nw-ro-question { grid-column: 2; font-size: 15px; }
  .nw-repair-observations .nw-ro-check { grid-column: 3; }
  .nw-repair-observations .nw-ro-summary { margin-top: 20px; padding-top: 20px; }
  .nw-repair-observations .nw-ro-actions { align-items: stretch; }
  .nw-repair-observations .nw-ro-actions > a { width: 100%; font-size: 15px; padding-inline: 14px; }
}
