/* Troubleshooting : liste des scénarios, enquête, diagnostic, bilan. */

.ts-stars { display: inline-flex; gap: 2px; font-size: 1.1em; line-height: 1; }
.ts-stars i { font-style: normal; color: color-mix(in srgb, var(--text-3) 78%, var(--surface)); }
.ts-stars i.is-on { color: var(--star); }
.ts-total { display: flex; align-items: center; gap: 10px; margin: var(--space-3) 0 6px; font-weight: 700; }
.ts-method { padding-left: 1.3em; display: grid; gap: 6px; }
.ts-symptom { margin-top: var(--space-3); font-size: var(--fs-md); }

.ts-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
@media (max-width: 960px) { .ts-grid { grid-template-columns: minmax(0, 1fr); } }
.ts-inv, .ts-diag { min-width: 0; }
.ts-inv .segmented { margin-bottom: var(--space-3); }

.ts-cmds { list-style: none; display: grid; gap: 6px; margin-bottom: var(--space-3); }
.ts-cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 6px 12px;
  border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.ts-cmd:hover { border-color: var(--primary); }
.ts-cmd code { overflow-wrap: anywhere; font-size: var(--fs-sm); }
.ts-cmd.is-seen { background: var(--surface); }
.ts-cmd__seen { color: var(--success); font-weight: 800; }

.ts-out { border-radius: var(--radius); background: #0B1424; min-height: 160px; overflow: hidden; }
.ts-out pre { margin: 0; padding: 12px 14px; max-height: 420px; overflow: auto; color: #D7E3F4; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; white-space: pre; }
.ts-out__prompt { color: #6FD08C; }
.ts-out__empty { padding: 14px; color: #8EA3BF; font-size: var(--fs-sm); }

.ts-step { display: grid; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.ts-step:first-of-type { border-top: 0; }
.ts-step__title { font-size: var(--fs-md); font-weight: 750; }
.ts-choices { grid-template-columns: minmax(0, 1fr); }
.ts-hint { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--text); font-size: var(--fs-sm); }
.ts-why { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--success-soft); font-size: var(--fs-sm); line-height: 1.55; }
.ts-result { font-size: 2.2rem; }
.ts-recap { display: grid; gap: 4px; margin-bottom: var(--space-3); }
