/* V3 UX/content review polish — keep the established subdued blue/gray system. */

:focus-visible{
  outline:3px solid rgba(79,113,143,.32);
  outline-offset:3px;
}

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.setup-guide{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.setup-guide-step{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:12px;
  align-items:start;
}

.setup-guide-number{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid #b8cbd8;
  background:#fff;
  color:var(--accent);
  font-weight:800;
  font-size:.82rem;
}

.setup-guide-step strong{
  display:block;
  margin-bottom:2px;
  color:var(--accent-dark);
}

.setup-guide-step p{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
}

.meta-row{
  gap:7px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:650;
}

.pill .pill-label{
  color:var(--muted);
  font-weight:700;
}

.progress{
  min-width:max-content;
}

.progress span{
  position:relative;
}

.progress span[aria-current="step"]{
  box-shadow:0 0 0 2px rgba(23,63,103,.10);
}

#simSection > .sim-head{
  padding-top:12px;
}

#simSection .panel > #roundLabel{
  margin-bottom:10px;
}

#simSection .panel.soft{
  margin-top:26px!important;
  border-color:#bfd0dc;
}

.evidence-grid{
  margin-top:16px;
}

.evidence-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  min-height:46px;
}

.evidence-btn.used::after{
  content:"Viewed";
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid #c5d4de;
  background:#fff;
  color:var(--muted);
  font-size:.72rem;
  font-weight:750;
}

.custom-question{
  margin-top:16px;
}

.decision{
  margin-top:30px;
  padding-top:26px;
  border-top:1px solid var(--line);
}

.decision-stage-label{
  margin-bottom:9px;
}

.decision-help{
  margin:-2px 0 14px;
  color:var(--muted);
  font-size:.9rem;
  max-width:760px;
}

.reason-head{
  margin-top:22px;
}

.reason-label-wrap{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.field-tag{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 7px;
  border:1px solid #c7d5df;
  border-radius:999px;
  background:#f5f9fb;
  color:var(--muted);
  font-size:.7rem;
  font-weight:750;
  letter-spacing:.02em;
}

.switch{
  padding:7px 9px;
  border:1px solid #c3d2dc;
  border-radius:9px;
  background:#f8fbfd;
}

.switch:has(input:checked){
  border-color:#8fa8bc;
  background:#eaf2f7;
  color:var(--accent-dark);
}

.coaching-help{
  margin:0 0 10px;
  color:var(--muted);
  font-size:.86rem;
}

.coach-card{
  padding:18px;
}

.coach-card p:last-of-type{
  margin-bottom:0;
}

.coach-next{
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid #c6d5df;
  color:#44515d;
  font-size:.88rem;
  font-weight:650;
}

.decision .actions{
  align-items:center;
  margin-top:16px;
}

#restartBtn{
  margin-left:auto;
  color:var(--muted);
}

.debrief-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  margin:28px 0 11px;
}

.debrief-section-head h3{
  margin:0;
  font-size:1.2rem;
}

.debrief-section-head .fine{
  white-space:nowrap;
}

.score-context{
  margin:-10px 0 0;
  color:var(--muted);
  font-size:.86rem;
}

.feedback-grid .feedback-card:last-child:nth-child(odd){
  grid-column:1 / -1;
}

.creator-box{
  border-color:#b9ccd9;
  background:linear-gradient(180deg,#f8fbfd 0%,#eef5f9 100%);
}

#feedbackBox{
  background:#fbfdfe;
}

@media(max-width:700px){
  header{
    padding-top:20px;
  }

  .topbar{
    align-items:flex-start;
  }

  .version{
    flex:0 0 auto;
  }

  .creator-line{
    max-width:520px;
  }

  #restartBtn{
    margin-left:0;
  }
}

@media(max-width:560px){
  .topbar{
    flex-direction:column;
    gap:12px;
  }

  .version{
    align-self:flex-start;
  }

  .hero{
    padding-bottom:30px;
  }

  .setup{
    margin-bottom:48px;
  }

  .setup-actions{
    align-items:stretch;
  }

  .setup-actions .btn{
    width:100%;
  }

  .setup-actions .fine{
    width:100%;
  }

  .meta-row{
    gap:6px;
  }

  .pill{
    font-size:.74rem;
  }

  .progress span{
    width:32px;
  }

  .decision{
    margin-top:26px;
    padding-top:22px;
  }

  .decision .actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .decision .actions .btn{
    width:100%;
  }

  #restartBtn{
    margin-left:0;
  }

  .debrief-section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }

  .feedback-grid .feedback-card:last-child:nth-child(odd){
    grid-column:auto;
  }
}
