/* ==========================================================================
   Crest Interactive Setup Wizard (/setup/)
   Extends /styles.css + /editorial.css · Aligned with docs/DESIGN.md
   ========================================================================== */

.setup-main {
  padding-bottom: 72px;
}

.setup-container {
  max-width: 960px;
}

.setup-hero {
  padding-top: 36px;
  padding-bottom: 24px;
}

.setup-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--crest-ink);
}

.setup-lead {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--crest-ink-secondary);
}

.quick-ipad-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  padding: 8px 13px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 999px;
  background: var(--crest-surface);
  font-size: 13px;
  color: var(--crest-ink-secondary);
}

.quick-ipad-link {
  border: 0;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 680;
  color: var(--crest-action-ink);
  cursor: pointer;
}

.quick-ipad-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   3-Step Progress Stepper
   ========================================================================== */
.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.stepper-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-md);
  background: rgb(255 254 250 / 78%);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.stepper-btn:disabled {
  cursor: default;
  opacity: 0.62;
}

.stepper-btn:not(:disabled):hover {
  border-color: rgb(25 33 40 / 24%);
  background: var(--crest-surface);
}

.stepper-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgb(25 33 40 / 7%);
  font-size: 12px;
  font-weight: 700;
  color: var(--crest-ink-secondary);
}

.stepper-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stepper-text strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--crest-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-text small {
  font-size: 12px;
  color: var(--crest-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-item.is-active .stepper-btn {
  border-color: var(--crest-action);
  background: var(--crest-surface);
  box-shadow: 0 0 0 3px rgb(252 76 2 / 10%);
}

.stepper-item.is-active .stepper-num {
  background: var(--crest-action);
  color: #ffffff;
}

.stepper-item.is-done .stepper-num {
  background: rgb(16 185 129 / 14%);
  color: #047857;
}

/* ==========================================================================
   Main Wizard Card & Choice Grid
   ========================================================================== */
.wizard-card {
  padding: 28px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-lg);
  background: var(--crest-surface);
  box-shadow: var(--crest-shadow-sm);
}

.question-block {
  margin: 0;
  padding: 0;
  border: 0;
}

.question-block + .question-block {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--crest-line);
}

.question-block--compact + .wizard-footer,
.question-block + .wizard-footer {
  margin-top: 28px;
}

.question-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
}

.question-badge {
  flex: none;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(25 33 40 / 6%);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--crest-ink-secondary);
}

.question-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--crest-ink);
}

.question-head p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--crest-ink-secondary);
}

.optional-label {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--crest-ink-muted);
}

.choice-grid {
  display: grid;
  gap: 14px;
}

.choice-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  border: 1.5px solid var(--crest-line-strong);
  border-radius: var(--radius-md);
  background: var(--crest-card-solid);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.choice-card:hover {
  border-color: rgb(25 33 40 / 28%);
  transform: translateY(-1px);
}

.choice-card:focus-visible,
.addon-chip:focus-visible,
.stepper-btn:focus-visible {
  outline: 2px solid var(--crest-action);
  outline-offset: 2px;
}

.choice-card[aria-checked="true"] {
  border-color: var(--crest-action);
  background: rgb(252 76 2 / 4%);
  box-shadow: 0 0 0 3px rgb(252 76 2 / 11%);
}

.choice-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgb(25 33 40 / 5%);
  color: var(--crest-ink);
}

.choice-icon svg {
  width: 19px;
  height: 19px;
}

.choice-card[aria-checked="true"] .choice-icon {
  background: var(--crest-action);
  color: #ffffff;
}

.choice-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgb(25 33 40 / 22%);
  background: #ffffff;
  position: relative;
}

.choice-card[aria-checked="true"] .choice-check {
  border-color: var(--crest-action);
  background: var(--crest-action);
}

.choice-card[aria-checked="true"] .choice-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.choice-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--crest-ink);
}

.choice-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--crest-ink-secondary);
}

.choice-tag {
  margin-top: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(25 33 40 / 5%);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--crest-ink-secondary);
}

.choice-tag--rec {
  background: rgb(252 76 2 / 9%);
  color: var(--crest-action-ink);
}

/* Optional Addon Chips */
.addon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.addon-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid var(--crest-line-strong);
  border-radius: 999px;
  background: var(--crest-card-solid);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--crest-ink);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}

.addon-chip:hover {
  border-color: rgb(25 33 40 / 28%);
}

.addon-chip[aria-pressed="true"] {
  border-color: var(--crest-action);
  background: rgb(252 76 2 / 6%);
  color: var(--crest-action-ink);
}

.addon-box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgb(25 33 40 / 24%);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.addon-chip[aria-pressed="true"] .addon-box {
  border-color: var(--crest-action);
  background: var(--crest-action);
}

.addon-chip[aria-pressed="true"] .addon-box::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

/* Selection Bar in Step 2 */
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--crest-line);
  border-radius: var(--radius-md);
  background: var(--crest-page);
}

.selection-bar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.selection-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--crest-ink-muted);
}

.selection-bar-info strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--crest-ink);
}

/* Wizard Footer */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--crest-line);
}

.wizard-hint {
  margin: 0;
  font-size: 13.5px;
  color: var(--crest-ink-muted);
}

.wizard-footer .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Step 3: Result View
   ========================================================================== */
.result-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verdict-card {
  padding: 26px 28px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-lg);
  background: var(--crest-surface);
  box-shadow: var(--crest-shadow-sm);
}

.verdict-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.status-pill--great {
  background: rgb(16 185 129 / 12%);
  color: #047857;
}

.status-pill--great::before {
  background: #10b981;
}

.status-pill--partial {
  background: rgb(245 158 11 / 14%);
  color: #b45309;
}

.status-pill--partial::before {
  background: #f59e0b;
}

.status-pill--warn {
  background: rgb(225 29 72 / 10%);
  color: #be123c;
}

.status-pill--warn::before {
  background: #e11d48;
}

.verdict-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.verdict-title {
  margin: 12px 0 0;
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--crest-ink);
}

.verdict-summary {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--crest-ink-secondary);
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.cap-badge--yes {
  background: rgb(16 185 129 / 10%);
  color: #065f46;
}

.cap-badge--note {
  background: rgb(25 33 40 / 6%);
  color: var(--crest-ink-secondary);
}

/* Visual Connection Flow Diagram */
.flow-box {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--crest-line);
  border-radius: var(--radius-md);
  background: var(--crest-page);
}

.flow-box-title {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--crest-ink-muted);
}

.flow-nodes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-node {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 10px;
  background: var(--crest-card-solid);
}

.flow-node--accent {
  border-color: rgb(252 76 2 / 42%);
  background: rgb(252 76 2 / 4%);
}

.flow-node-role {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--crest-ink-muted);
}

.flow-node--accent .flow-node-role {
  color: var(--crest-action-ink);
}

.flow-node strong {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--crest-ink);
}

.flow-node small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--crest-ink-secondary);
}

.flow-arrow {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  color: var(--crest-ink-muted);
}

.flow-arrow span {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--crest-ink-secondary);
  white-space: nowrap;
}

.flow-arrow-line {
  width: 44px;
  height: 2px;
  background: rgb(25 33 40 / 24%);
  position: relative;
}

.flow-arrow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgb(25 33 40 / 45%);
  border-right: 2px solid rgb(25 33 40 / 45%);
  transform: rotate(45deg);
}

/* Step-by-Step Checklist Cards */
.steps-card {
  padding: 26px 28px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-lg);
  background: var(--crest-surface);
  box-shadow: var(--crest-shadow-sm);
}

.steps-card-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 730;
  color: var(--crest-ink);
}

.guide-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--crest-line);
}

.guide-step-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--crest-action);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.guide-step-body h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--crest-ink);
}

.guide-step-body p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--crest-ink-secondary);
}

.guide-substeps {
  margin: 10px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--crest-ink-secondary);
}

.guide-substeps strong {
  color: var(--crest-ink);
  font-weight: 650;
}

.step-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tip-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--crest-action);
  border-radius: 0 8px 8px 0;
  background: rgb(252 76 2 / 5%);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--crest-ink-secondary);
}

.tip-callout strong {
  color: var(--crest-ink);
}

.tip-callout--neutral {
  border-left-color: rgb(25 33 40 / 30%);
  background: var(--crest-page);
}

.fallback-details {
  margin-top: 12px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 10px;
  background: var(--crest-page);
  padding: 10px 14px;
}

.fallback-details summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--crest-ink-secondary);
  cursor: pointer;
}

.fallback-details p {
  margin: 8px 0 0;
  font-size: 13px;
}

.cmd-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 8px;
  background: var(--crest-card-solid);
}

.cmd-copy-row code {
  font-size: 12.5px;
  color: var(--crest-ink);
  word-break: break-all;
}

/* iPad / Mobile Access Visual Spotlight */
.ipad-spotlight {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgb(252 76 2 / 24%);
  border-radius: var(--radius-md);
  background: rgb(252 76 2 / 3.5%);
}

.ipad-spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ipad-spotlight-head strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--crest-ink);
}

.ipad-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--crest-action);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 650;
}

.ipad-mock-ui {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 10px;
  background: var(--crest-card-solid);
}

.ipad-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ipad-mock-label {
  font-size: 12px;
  color: var(--crest-ink-muted);
}

.ipad-mock-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--crest-ink);
}

.ipad-mock-url-bar {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--crest-line);
  border-radius: 8px;
  background: var(--crest-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ipad-mock-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--crest-ink);
}

.ipad-mock-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgb(252 76 2 / 40%);
  border-radius: 6px;
  background: rgb(252 76 2 / 8%);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--crest-action-ink);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.method-card {
  padding: 14px 15px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 10px;
  background: var(--crest-card-solid);
}

.method-card--rec {
  border-color: rgb(252 76 2 / 35%);
}

.method-card-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(25 33 40 / 6%);
  font-size: 11px;
  font-weight: 700;
  color: var(--crest-ink-secondary);
}

.method-card--rec .method-card-tag {
  background: rgb(252 76 2 / 10%);
  color: var(--crest-action-ink);
}

.method-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--crest-ink);
}

.method-card ol {
  margin: 8px 0 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--crest-ink-secondary);
}

.method-card strong {
  color: var(--crest-ink);
}

.check-grid {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-grid li {
  padding: 9px 11px;
  border: 1px solid var(--crest-line);
  border-radius: 8px;
  background: var(--crest-card-solid);
  font-size: 13px;
  line-height: 1.5;
  color: var(--crest-ink-secondary);
}

.check-grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--crest-ink);
  font-size: 13px;
}

/* Real Step Screenshots Grid & Lightbox */
.shot-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.shot-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-grid--1 {
  grid-template-columns: 1fr;
}

.shot-figure {
  margin: 0;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-md);
  background: var(--crest-card-solid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-figure-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--crest-page);
  cursor: zoom-in;
  overflow: hidden;
}

.shot-figure-btn img {
  width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 180ms ease;
}

.shot-figure-btn:hover img {
  transform: scale(1.015);
}

.shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--crest-line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--crest-ink-secondary);
}

.shot-zoom-hint {
  flex: none;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--crest-ink-muted);
}

.ipad-steps-visual {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ipad-substep-card {
  padding: 15px 16px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-md);
  background: var(--crest-page);
}

.ipad-substep-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ipad-substep-pill {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--crest-action);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.ipad-substep-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--crest-ink);
}

.ipad-substep-desc {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--crest-ink-secondary);
}

.ipad-substep-desc strong {
  color: var(--crest-ink);
}

.shot-lightbox {
  max-width: min(1040px, calc(100vw - 24px));
  width: fit-content;
  padding: 0;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-lg);
  background: var(--crest-surface);
  box-shadow: var(--crest-shadow-dialog);
}

.shot-lightbox::backdrop {
  background: rgb(15 23 42 / 58%);
  backdrop-filter: blur(4px);
}

.shot-lightbox-inner {
  display: flex;
  flex-direction: column;
}

.shot-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--crest-line);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--crest-ink);
}

.shot-lightbox-close {
  padding: 5px 11px;
  border: 1px solid var(--crest-line-strong);
  border-radius: 8px;
  background: var(--crest-card-solid);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.shot-lightbox-close:hover {
  background: var(--crest-page);
}

.shot-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  background: var(--crest-page);
}

/* Tailored Troubleshooting FAQ */
.troubleshoot-card {
  padding: 24px 28px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-lg);
  background: var(--crest-surface);
  box-shadow: var(--crest-shadow-sm);
}

.troubleshoot-card h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 720;
  color: var(--crest-ink);
}

.troubleshoot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.troubleshoot-item {
  border: 1px solid var(--crest-line);
  border-radius: 10px;
  background: var(--crest-card-solid);
  padding: 13px 16px;
}

.troubleshoot-item summary {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--crest-ink);
  cursor: pointer;
}

.troubleshoot-item p {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--crest-ink-secondary);
}

/* Alternative Advice Box (when missing PC or power source) */
.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.advice-card {
  padding: 18px;
  border: 1px solid var(--crest-line-strong);
  border-radius: var(--radius-md);
  background: var(--crest-card-solid);
}

.advice-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--crest-ink);
}

.advice-card p {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--crest-ink-secondary);
}

.advice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Active nav link underline */
.main-nav a.is-current {
  color: var(--crest-ink);
  font-weight: 650;
}

/* ==========================================================================
   Responsive Mobile Optimization
   ========================================================================== */
@media (max-width: 820px) {
  .choice-grid--3,
  .advice-grid,
  .method-grid,
  .check-grid,
  .shot-grid--2 {
    grid-template-columns: 1fr;
  }

  .flow-nodes {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    flex-direction: row;
    justify-content: center;
    padding: 4px 0;
  }

  .flow-arrow-line {
    width: 2px;
    height: 22px;
  }

  .flow-arrow-line::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }
}

@media (max-width: 640px) {
  .setup-hero {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .quick-ipad-bar {
    display: flex;
    border-radius: var(--radius-md);
    padding: 10px 13px;
  }

  .wizard-stepper {
    gap: 6px;
  }

  .stepper-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 6px;
    gap: 6px;
  }

  .stepper-text {
    align-items: center;
  }

  .stepper-text small {
    display: none;
  }

  .stepper-text strong {
    font-size: 12.5px;
  }

  .wizard-card,
  .verdict-card,
  .steps-card,
  .troubleshoot-card {
    padding: 18px;
  }

  .wizard-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wizard-footer .btn {
    width: 100%;
  }

  .step-dl-row {
    flex-direction: column;
  }

  .step-dl-row .btn {
    width: 100%;
  }

  .guide-step-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .ipad-substep-card {
    padding: 14px;
  }

  .ipad-substep-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
