/* Chair's Role page — procedure practice */

.chairs-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}

.chair-panel {
  min-width: 0;
}

.chair-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chair-meta .label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chair-meta .value {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

.link-as-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.link-as-button:hover {
  background: var(--primary-dark);
}

.chair-session-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--separator);
}

.chair-session-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.session-phase {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Align scenario, options, feedback, and correct answer to same content width */
.chair-content-block {
  max-width: 100%;
  box-sizing: border-box;
}

.scenario-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.scenario-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.scenario-block .prompt-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.procedure-option {
  width: 100%;
  min-width: 0;
  padding: 16px 20px;
  font-size: 15px;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  box-sizing: border-box;
}

.procedure-option:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.procedure-option:disabled {
  cursor: default;
  opacity: 1;
}

.procedure-option.option-correct {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), var(--shadow-sm);
}

.procedure-option.option-incorrect {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--text-secondary);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15), var(--shadow-sm);
}

.feedback-block {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-md);
}

.feedback-block.hidden {
  display: none;
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.feedback-icon.correct {
  background: var(--success);
  color: #fff;
}

.feedback-icon.incorrect {
  background: var(--danger);
  color: #fff;
}

.feedback-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.feedback-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

.correct-answer-box {
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.correct-answer-box.hidden {
  display: none;
}

.correct-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.correct-answer-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
  text-align: left;
  padding: 0;
}

.narrative-outcome {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.narrative-outcome.correct-narrative {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--text-primary);
}

.narrative-outcome.wrong-narrative {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}

.continue-btn {
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 600;
}

.chair-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chair-sidebar .panel-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.score-display {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.chair-fun-facts .fun-fact {
  min-height: 64px;
  cursor: pointer;
}

.chair-fun-fact-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
}

.chair-fun-fact-text::before {
  content: "💡 ";
  margin-right: 4px;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.welcome-overlay.hidden {
  display: none;
}

.welcome-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--separator);
}

.welcome-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.welcome-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.chair-question-count-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.chair-question-count-select {
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
}

.welcome-card .primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 600;
}

.end-message {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.end-note {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.end-note-best {
  color: var(--success);
}

.end-note-try {
  color: var(--text-secondary);
}

.end-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.end-actions .link-as-button {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .chairs-layout {
    grid-template-columns: 1fr;
  }
}
