/* LED Sign Builder — Step 5 viewing
   Load after led-sign-builder-rail-readability.css. */

.builder-rail.step-viewing {
  width: 320px;
  min-width: 320px;
  background: #f7f8fa;
  color: #121820;
  font-family: Arial, Helvetica, sans-serif;
}

.step-viewing .rail-content {
  padding: 14px 16px 22px;
}

.step-viewing .step-kicker {
  margin: 0 0 7px;
  color: #667281;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-viewing .main-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin: 0 0 9px;
}

.step-viewing .main-progress > span {
  height: 3px;
  background: #d9dee5;
}

.step-viewing .main-progress > span.is-complete,
.step-viewing .main-progress > span.is-current {
  background: #14171c;
}

.step-viewing .rail-rule {
  height: 1px;
  margin: 0 0 11px;
  border: 0;
  background: #9ba4af;
}

.step-viewing .project-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 13px;
}

.step-viewing .summary-row,
.step-viewing .completed-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d6dce3;
  border-radius: 4px;
  background: #fff;
}

.step-viewing .summary-copy {
  min-width: 0;
  color: #24303d;
  font-size: 12px;
  line-height: 1.3;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.step-viewing .summary-edit {
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #2c4d65;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.step-viewing .substep-label {
  margin: 0 0 6px;
  color: #667281;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-viewing .substep-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 13px;
}

.step-viewing .substep-progress > span {
  height: 3px;
  background: #d9dee5;
}

.step-viewing .substep-progress > span.is-active,
.step-viewing .substep-progress > span.is-complete {
  background: #14171c;
}

.step-viewing h1 {
  margin: 0 0 7px;
  color: #10161d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.08;
}

.step-viewing .question-help {
  margin: 0 0 13px;
  color: #5c6978;
  font-size: 13px;
  line-height: 1.45;
}

.step-viewing .answer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.step-viewing .answer-option {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 10px 31px 10px 10px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #151c24;
  cursor: pointer;
}

.step-viewing .answer-option:hover {
  border-color: #939eaa;
}

.step-viewing .answer-option:has(input:checked) {
  border-color: #14171c;
  background: #fff;
  box-shadow: 0 0 0 2px #14171c inset;
}

.step-viewing .answer-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #14171c;
}

.step-viewing .answer-title {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.step-viewing .answer-detail {
  display: block;
  color: #5c6978;
  font-size: 12px;
  line-height: 1.35;
}

.step-viewing .answer-option:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #14171c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-viewing .unsure-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #14171c;
  background: #ffffff;
  color: #374351;
  font-size: 12px;
  line-height: 1.4;
}

.step-viewing .actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 15px;
}

.step-viewing .primary-action,
.step-viewing .secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.step-viewing .primary-action {
  border: 1px solid #14171c;
  background: #ffe83f;
  color: #10161d;
}

.step-viewing .primary-action:disabled {
  border-color: #d8dce1;
  background: #edf0f3;
  color: #8a949f;
  cursor: not-allowed;
}

.step-viewing .secondary-action {
  border: 1px solid #cbd3dc;
  background: #fff;
  color: #24303d;
}

.step-viewing :focus-visible {
  outline: 3px solid #1f6fb2;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .builder-rail.step-viewing {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-viewing * {
    scroll-behavior: auto !important;
  }
}

