/* Final Compare refinement: timeline presentation, left-visible controls and explicit evidence selection. */
.rs-report-compare-final-stage7 {
  min-width: 0;
  max-width: 100%;
}

.rs-report-compare-final-photo-reference[data-rs-report-compare-final-linked-photo] {
  cursor: zoom-in;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.rs-report-compare-final-photo-reference[data-rs-report-compare-final-linked-photo]:hover,
.rs-report-compare-final-photo-reference[data-rs-report-compare-final-linked-photo]:focus-visible {
  border-color: rgba(66, 215, 159, .7);
  background: rgba(66, 215, 159, .09);
  box-shadow: 0 0 0 3px rgba(66, 215, 159, .13);
  outline: none;
}

.rs-report-compare-final-stage7 .rs-report-compare-workspace-head {
  align-items: flex-start;
  flex-direction: column;
}

.rs-report-compare-final-stage7 .rs-report-compare-workspace-actions,
.rs-report-compare-final-stage7 .rs-report-compare-scroll-tools {
  justify-content: flex-start;
}

.rs-report-compare-final-stage7 .rs-report-compare-scroll {
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

/* The existing chronological columns become one visual timeline without changing their order or grid. */
.rs-report-compare-final-stage7 .rs-report-compare-report-head-row {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rs-report-compare-final-stage7 .rs-report-compare-report-head-row::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% / var(--rs-report-compare-columns));
  right: calc(50% / var(--rs-report-compare-columns));
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8d6cc, #42d79f, #b8d6cc);
}

.rs-report-compare-final-stage7 .rs-report-compare-column-head {
  position: relative;
  z-index: 1;
  justify-items: center;
  min-height: 106px;
  padding: 38px 12px 12px;
  border: 0;
  background: transparent;
  text-align: center;
}

.rs-report-compare-final-stage7 .rs-report-compare-column-head::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--rs-accent-dark, #117c5d);
  box-shadow: 0 0 0 2px rgba(17, 124, 93, .2), 0 4px 12px rgba(8, 24, 29, .16);
}

.rs-report-compare-final-stage7 .rs-report-compare-column-head strong {
  max-width: 230px;
  font-size: 13px;
}

.rs-report-compare-final-stage7 .rs-report-compare-column-head span {
  font-size: 11px;
}

.rs-report-compare-final-stage7 .rs-report-compare-report-grid {
  column-gap: 8px;
}

.rs-report-compare-final-stage7 .rs-report-compare-report-grid > .rs-report-compare-cell {
  border: 1px solid #e0ebe8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(8, 24, 29, .035);
}

.rs-report-compare-final-stage7 .rs-report-compare-report-grid > .rs-report-compare-cell.is-missing {
  background: #fafcfb;
}

/* Every hierarchy control stays at the visible left edge while reports move underneath it. */
.rs-report-compare-final-stage7 .rs-report-compare-block,
.rs-report-compare-final-stage7 .rs-report-compare-block-body,
.rs-report-compare-final-stage7 .rs-report-compare-room {
  overflow: visible;
}

.rs-report-compare-final-stage7 .rs-report-compare-block {
  border: 0;
  background: transparent;
}

.rs-report-compare-final-stage7 .rs-report-compare-block-toggle {
  position: sticky;
  z-index: 8;
  left: 8px;
  justify-content: flex-start;
  width: min(430px, calc(100vw - 64px));
  max-width: calc(100% - 16px);
  min-height: 46px;
  border: 1px solid var(--rs-border, #d5e5e1);
  border-radius: 13px;
  background: rgba(247, 251, 249, .98);
  box-shadow: 0 5px 16px rgba(8, 24, 29, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rs-report-compare-final-stage7 .rs-report-compare-block-toggle > b {
  order: -1;
}

.rs-report-compare-final-stage7 .rs-report-compare-room > .rs-report-compare-block-toggle {
  min-height: 54px;
  background: rgba(240, 248, 245, .98);
}

.rs-report-compare-final-stage7 .rs-report-compare-block-body {
  margin-top: 6px;
}

/* Later decorators insert these panels into the wide matrix; keep their controls and forms visible too. */
.rs-report-compare-final-stage7 .rs-history-note-panel,
.rs-report-compare-final-stage7 .rs-condition-history-panel {
  overflow: visible;
  border: 0;
  background: transparent;
}

.rs-report-compare-final-stage7 .rs-history-note-panel > summary,
.rs-report-compare-final-stage7 .rs-condition-history-panel > summary,
.rs-report-compare-final-stage7 .rs-report-compare-final-inline-history-head {
  position: sticky;
  z-index: 7;
  left: 8px;
  width: min(540px, calc(100vw - 64px));
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  border: 1px solid rgba(34, 63, 54, .15);
  border-radius: 13px;
  background: rgba(248, 251, 250, .98);
  box-shadow: 0 5px 16px rgba(8, 24, 29, .05);
}

/* One section control now owns condition history, report notes and its photos. */
.rs-report-compare-final-stage7 .rs-report-compare-final-inline-history {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-inline-history-head {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-inline-history-head > span {
  display: grid;
  gap: 2px;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-inline-history-head strong {
  color: var(--rs-ink, #08181d);
  font-size: 13px;
  font-weight: 950;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-inline-history-head small {
  color: var(--rs-muted, #5f6f72);
  font-size: 11px;
  font-weight: 750;
}

.rs-report-compare-final-stage7 .rs-condition-history-point .rs-report-compare-final-history-note {
  display: grid;
  grid-column: 1 / -1;
  gap: 3px;
  margin: 0;
  padding: 8px 9px;
  border-top: 1px solid rgba(8, 24, 29, .07);
  color: var(--rs-ink, #08181d);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-history-note strong {
  color: var(--rs-muted, #5f6f72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-history-note span {
  overflow-wrap: anywhere;
}

.rs-report-compare-final-stage7 .rs-report-compare-landlord-item > .rs-report-compare-final-photo-reference {
  display: grid;
  justify-content: stretch;
  gap: 4px;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-photo-reference strong {
  color: var(--rs-muted, #5f6f72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rs-report-compare-final-stage7 .rs-report-compare-landlord-item > .rs-report-compare-final-photo-reference span {
  color: #294541;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rs-report-compare-final-stage7 .rs-history-note-panel > summary {
  justify-content: flex-start;
}

.rs-report-compare-final-stage7 .rs-history-note-panel > summary::after {
  order: -1;
  margin: 0 10px 0 0;
}

.rs-report-compare-final-stage7 .rs-history-note-panel-body,
.rs-report-compare-final-stage7 .rs-condition-history-body {
  position: sticky;
  z-index: 6;
  left: 8px;
  width: min(680px, calc(100vw - 64px));
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid rgba(34, 63, 54, .13);
  border-radius: 14px;
  background: #f8fbfa;
}

.rs-report-compare-final-stage7 .rs-condition-graph-caption {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.rs-report-compare-final-stage7 .rs-report-compare-final-landlord-choice {
  border-color: rgba(17, 124, 93, .24);
  background: #f1faf6;
}

/* Photo previews remain part of the natural two-axis gesture surface. */
.rs-report-compare-final-stage7 .rs-report-compare-photo-frame[role="button"] {
  cursor: zoom-in;
  touch-action: pan-x pan-y pinch-zoom;
}

.rs-report-compare-final-stage7 .rs-report-compare-photo-frame[role="button"]::after {
  content: "View";
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: rgba(3, 18, 20, .72);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  pointer-events: none;
}

.rs-report-compare-final-stage7 .rs-report-compare-photo-frame[role="button"]:focus-visible {
  outline: 3px solid rgba(66, 215, 159, .48);
  outline-offset: 3px;
}

.rs-report-compare-final-photo-selection {
  display: grid;
  gap: 4px;
  padding: 0 8px 8px;
}

.rs-report-compare-final-photo-selection label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #dce9e5;
  border-radius: 10px;
  background: #fff;
  color: var(--rs-ink, #08181d);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
  touch-action: manipulation;
}

.rs-report-compare-final-photo-selection input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--rs-accent-dark, #117c5d);
}

.rs-report-compare-final-photo-selection small {
  min-height: 14px;
  color: var(--rs-muted, #627379);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}

.rs-report-compare-final-photo-selection.is-included label {
  border-color: rgba(17, 124, 93, .42);
  background: #effaf5;
}

.rs-report-compare-final-photo-selection.is-unavailable label {
  cursor: not-allowed;
  opacity: .68;
}

/* Uniquely owned, on-demand full-resolution viewer. */
.rs-report-compare-final-lightbox[hidden] {
  display: none !important;
}

.rs-report-compare-final-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: auto;
  padding: 68px 14px 18px;
  background: rgba(3, 10, 13, .95);
  color: #fff;
  touch-action: pinch-zoom;
}

.rs-report-compare-final-lightbox-close {
  position: fixed;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  min-width: 74px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rs-report-compare-final-lightbox-close:focus-visible {
  outline: 3px solid rgba(66, 215, 159, .65);
  outline-offset: 3px;
}

.rs-report-compare-final-lightbox-stage {
  display: grid;
  justify-items: start;
  gap: 9px;
  width: min(1180px, 96vw);
}

.rs-report-compare-final-lightbox-stage img {
  display: none;
  justify-self: center;
  max-width: 96vw;
  max-height: 78vh;
  border-radius: 14px;
  background: #0c1719;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  object-fit: contain;
}

.rs-report-compare-final-lightbox.is-ready .rs-report-compare-final-lightbox-stage img {
  display: block;
}

.rs-report-compare-final-lightbox-status {
  min-height: 19px;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 850;
}

.rs-report-compare-final-lightbox.is-ready .rs-report-compare-final-lightbox-status {
  display: none;
}

.rs-report-compare-final-lightbox.is-error .rs-report-compare-final-lightbox-status {
  color: #ffd8d2;
}

.rs-report-compare-final-lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

@media (max-width: 720px) {
  .rs-report-compare-final-stage7 .rs-report-compare-scroll-tools {
    align-items: flex-start;
  }

  .rs-report-compare-final-stage7 .rs-report-compare-block-toggle,
  .rs-report-compare-final-stage7 .rs-history-note-panel > summary,
  .rs-report-compare-final-stage7 .rs-condition-history-panel > summary,
  .rs-report-compare-final-stage7 .rs-report-compare-final-inline-history-head,
  .rs-report-compare-final-stage7 .rs-history-note-panel-body,
  .rs-report-compare-final-stage7 .rs-condition-history-body {
    left: 4px;
    width: calc(100vw - 48px);
    max-width: calc(100% - 8px);
  }

  .rs-report-compare-final-lightbox {
    padding-right: 10px;
    padding-left: 10px;
  }

  .rs-report-compare-final-lightbox-stage {
    width: min(1180px, 94vw);
  }

  .rs-report-compare-final-lightbox-stage img {
    max-width: 94vw;
    max-height: 76vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-report-compare-final-stage7 *,
  .rs-report-compare-final-lightbox * {
    scroll-behavior: auto !important;
  }
}
