/* Auto-generated by scripts/build-trainer-assets.mjs.
 * Trainer styles scoped under .tr-app so they do not leak into the LMS shell.
 */
.tr-app {
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #dfe4ea;
  --panel: #ffffff;
  --soft: #f6f7f9;
  --brand: #f36f21;
  --brand-2: #cf4f18;
  --brand-light: #f3c3a2;
  --blue: #295b7a;
  --nav: #252f3a;
  --ok: #237a57;
  --warn: #9a5a16;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tr-app * { box-sizing: border-box; }

.tr-app {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
}

.tr-app button,
.tr-app input,
.tr-app select,
.tr-app textarea { font: inherit; }

.tr-app .shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(680px, 1fr) 280px;
  overflow: hidden;
}

.tr-app .rail,
.tr-app .inspector {
  background: var(--panel);
  border-color: var(--line);
  border-style: solid;
  padding: 18px;
  overflow: auto;
  min-height: 0;
}

.tr-app .rail { border-width: 0 1px 0 0; }
.tr-app .inspector { border-width: 0 0 0 1px; }

.tr-app .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.tr-app .mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.tr-app .brand strong,
.tr-app .brand div span { display: block; }
.tr-app .brand div span { color: var(--muted); font-size: 13px; }

.tr-app .trainee-frame {
  border: 1px solid #f3c3a2;
  background: #fff7f1;
  padding: 12px;
  margin-bottom: 20px;
}

.tr-app .trainee-frame b {
  display: block;
  margin-bottom: 5px;
}

.tr-app .trainee-frame p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tr-app .trainee-control p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tr-app .trainee-control code {
  font-size: 11px;
  color: var(--ink);
  background: #f0f2f4;
  padding: 1px 4px;
}

.tr-app .control-block,
.tr-app .scenario-brief,
.tr-app .progress-panel,
.tr-app .feedback-panel,
.tr-app .source-panel,
.tr-app .review-panel,
.tr-app .admin-panel,
.tr-app .system-panel,
.tr-app .guardrail-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.tr-app label,
.tr-app .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tr-app input,
.tr-app select,
.tr-app textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.tr-app input,
.tr-app select {
  min-height: 42px;
  padding: 0 12px;
}

.tr-app textarea {
  resize: vertical;
  min-height: 58px;
  padding: 10px;
}

.tr-app .segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.tr-app .hidden-tools {
  display: none;
}

.tr-app .format-pill {
  border: 1px solid var(--nav);
  background: var(--nav);
  color: #fff;
  min-height: 38px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.tr-app .segmented button,
.tr-app .composer button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  cursor: pointer;
}

.tr-app .segmented button.active {
  background: var(--nav);
  color: #fff;
  border-color: var(--nav);
}

.tr-app .mode-explainer,
.tr-app .difficulty-explainer {
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tr-app .mode-explainer b,
.tr-app .difficulty-explainer b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.tr-app .scenario-brief h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.tr-app .persona-explainer {
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.tr-app .persona-explainer span {
  display: block;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.tr-app .persona-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tr-app .persona-explainer b {
  color: var(--ink);
}

.tr-app .persona-explainer strong {
  color: var(--ink);
  font-weight: 800;
}

.tr-app .control-block.locked select {
  color: var(--muted);
  background: #f8fafb;
}

.tr-app .scenario-brief p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.tr-app .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tr-app .tag-row span,
.tr-app .status-pill {
  border: 1px solid var(--line);
  background: #fff7f1;
  padding: 6px 9px;
  font-size: 12px;
  color: var(--brand-2);
}

.tr-app .status-pill {
  font-weight: 800;
  white-space: nowrap;
}

.tr-app .status-pill.live {
  border-color: #8fbfa5;
  background: #f1fbf5;
  color: #17643a;
}

.tr-app .status-pill.mock {
  border-color: #f3c3a2;
  background: #fff7f1;
  color: var(--brand-2);
}

.tr-app .difficulty-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tr-app .difficulty-card b {
  color: var(--ink);
}

.tr-app .difficulty-card span {
  display: inline-block;
  margin-top: 5px;
}

.tr-app .workspace {
  display: grid;
  grid-template-rows: auto auto auto minmax(260px, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #f3f6f8;
}

.tr-app .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.tr-app .topbar h1 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.tr-app .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-app .runtime-banner {
  border-bottom: 1px solid var(--line);
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 700;
}

.tr-app .runtime-banner[hidden] {
  display: none;
}

.tr-app .runtime-banner.live {
  background: #f1fbf5;
  color: #17643a;
}

.tr-app .runtime-banner.mock {
  background: #fff7f1;
  color: var(--brand-2);
}

.tr-app .utility-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tr-app .utility-button.flag {
  color: var(--brand-2);
  border-color: #f3c3a2;
  background: #fff7f1;
}

.tr-app .utility-button.finish-roleplay {
  color: #fff;
  border-color: var(--nav);
  background: var(--nav);
}

.tr-app .utility-button.finish-roleplay:disabled {
  color: #a2acb5;
  border-color: var(--line);
  background: #f0f2f4;
  cursor: not-allowed;
}

.tr-app .utility-button.flag.active {
  color: #fff;
  border-color: var(--brand-2);
  background: var(--brand-2);
}

.tr-app .utility-button.full {
  width: 100%;
  margin-top: 8px;
}

.tr-app .chat-panel {
  padding: 20px 28px 24px;
  overflow: auto;
  min-height: 0;
  scroll-behavior: smooth;
  background: #f3f6f8;
}

.tr-app .chat-panel:has(.empty-chat) {
  display: flex;
  align-items: flex-start;
}

.tr-app .scenario-start {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #fffaf5;
  overflow: visible;
}

.tr-app .scenario-start-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(380px, .78fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: none;
}

.tr-app .scenario-main {
  min-width: 0;
}

.tr-app .scenario-start h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.tr-app .scenario-start p {
  margin: 0 0 4px;
  line-height: 1.38;
}

.tr-app .scenario-line {
  font-size: 14px;
  color: var(--ink);
}

.tr-app .scenario-role-line {
  color: var(--muted);
}

.tr-app .scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 5px;
}

.tr-app .scenario-meta span {
  border: 1px solid #f3c3a2;
  background: #fff;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.tr-app .scenario-purpose {
  display: grid;
  gap: 3px;
  margin: 3px 0 6px;
}

.tr-app .scenario-purpose p {
  border-left: 2px solid #f3c3a2;
  background: transparent;
  padding: 0 0 0 6px;
  min-height: 0;
  font-size: 12px;
  color: var(--muted);
}

.tr-app .scenario-purpose b {
  display: inline;
  color: var(--ink);
  margin-right: 3px;
}

.tr-app .role-clarity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}

.tr-app .role-clarity span {
  border: 1px solid #f3c3a2;
  background: #fff;
  padding: 5px 8px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 12px;
}

.tr-app .role-clarity b {
  display: inline;
  color: var(--ink);
  margin-right: 4px;
}

.tr-app .training-strip {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 8px;
  margin-top: 0;
}

.tr-app .training-strip section {
  border: 1px solid #f3c3a2;
  background: #fff;
  padding: 10px 12px;
  min-width: 0;
}

.tr-app .training-strip h3 {
  margin: 0 0 4px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tr-app .training-strip ul {
  margin: 0;
  padding-left: 18px;
}

.tr-app .training-strip li,
.tr-app .training-strip p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.tr-app .message {
  max-width: min(860px, 78%);
  margin-bottom: 18px;
}

.tr-app .message span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tr-app .message p {
  margin: 0;
  line-height: 1.55;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: #fff;
}

.tr-app .message.user {
  margin-left: auto;
}

.tr-app .message.user p {
  background: #fff7f1;
  border-color: #f3c3a2;
}

.tr-app .scenario-complete,
.tr-app .inline-feedback,
.tr-app .trainee-reflection {
  max-width: min(900px, 92%);
  border: 1px solid #f3c3a2;
  background: #fff7f1;
  padding: 14px 16px;
  margin: 8px 0 18px;
}

.tr-app .final-close-prompt {
  border-color: #b9c8d3;
  background: #ffffff;
}

.tr-app .scenario-complete span,
.tr-app .inline-feedback > span,
.tr-app .trainee-reflection > span {
  display: block;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tr-app .scenario-complete p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.tr-app .scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tr-app .inline-feedback {
  background: #fff;
  border-color: #d5dce3;
}

.tr-app .inline-feedback p,
.tr-app .trainee-reflection p {
  color: var(--ink);
}

.tr-app .trainee-reflection {
  background: #fffaf5;
  border-color: #f3c3a2;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.tr-app .trainee-reflection h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.tr-app .customer-type-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.tr-app .customer-type-checks label {
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  padding: 10px;
  margin: 0;
  text-transform: none;
  font-size: 13px;
  cursor: pointer;
}

.tr-app .customer-type-checks input {
  grid-row: 1 / span 2;
  margin-top: 2px;
}

.tr-app .customer-type-checks strong {
  font-size: 13px;
}

.tr-app .customer-type-checks small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.tr-app .reflection-label {
  margin-top: 10px;
}

.tr-app .reflection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tr-app .reflection-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tr-app .thinking-message p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.tr-app .thinking-message i {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid #f3c3a2;
  border-top-color: var(--brand);
  display: inline-block;
  animation: spin 700ms linear infinite;
}

.tr-app .thinking-message em {
  font-style: normal;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tr-app .empty-chat {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px;
  width: min(860px, 100%);
  max-width: 100%;
  margin: 12px auto 0;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.tr-app .empty-chat span {
  display: block;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tr-app .empty-chat p {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tr-app .empty-chat blockquote {
  margin: 12px 0;
  border-left: 3px solid var(--brand);
  padding: 0 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.tr-app .empty-chat small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.tr-app .composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  padding: 8px 22px 10px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  align-items: stretch;
}

.tr-app .composer textarea {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  resize: none;
  overflow: auto;
}

.tr-app .composer.locked textarea,
.tr-app .composer.locked > button {
  opacity: 0.62;
  cursor: not-allowed;
}

.tr-app .voice-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  border: 0;
  background: transparent;
  padding: 0;
}

.tr-app .voice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tr-app .voice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.tr-app .voice-kicker {
  color: var(--ink);
  font-weight: 800;
}

.tr-app .voice-help {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.tr-app .voice-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.tr-app .voice-button:not(:disabled):active {
  transform: translateY(1px);
}

.tr-app .voice-button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.tr-app .voice-button.send {
  border-color: var(--nav);
  background: var(--nav);
  color: #fff;
}

.tr-app .voice-button.end-simulation {
  border-color: #c95f10;
  background: #fff7f1;
  color: var(--brand-2);
}

.tr-app .voice-button.listening {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.tr-app .voice-button:disabled {
  border-color: var(--line);
  background: #f0f2f4;
  color: #a2acb5;
  cursor: not-allowed;
}

.tr-app .voice-button.ghost {
  color: var(--muted);
}

.tr-app .voice-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

.tr-app .recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #bcc7cf;
  flex: 0 0 auto;
}

.tr-app .recording-dot.active {
  background: var(--brand-2);
  box-shadow: 0 0 0 5px rgba(200, 75, 49, 0.14);
}

.tr-app .speak-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  margin-left: auto;
}

.tr-app .voice-strip[data-state="recording"] {
  border-color: #f3a470;
  background: #fff8f3;
}

.tr-app .voice-strip[data-state="transcript"] {
  border-color: #b9c8d3;
}

.tr-app .speak-toggle input {
  width: 14px;
  height: 14px;
}

.tr-app .composer > button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 800;
  min-height: 88px;
  height: 88px;
  align-self: stretch;
}

.tr-app .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.tr-app .panel-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tr-app .panel-title strong {
  color: var(--brand-2);
  font-size: 13px;
}

.tr-app .meter {
  height: 8px;
  background: #e3e9ed;
  margin-bottom: 12px;
}

.tr-app .meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 180ms ease;
}

.tr-app dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.tr-app dt {
  color: var(--muted);
  font-size: 12px;
}

.tr-app dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.tr-app .feedback-content {
  color: var(--muted);
  line-height: 1.5;
}

.tr-app .feedback-note {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.tr-app .score-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.tr-app .score-line strong {
  font-size: 30px;
  color: var(--brand-2);
}

.tr-app blockquote {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  background: var(--soft);
  color: var(--ink);
}

.tr-app .dimension-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tr-app .dimension-grid span,
.tr-app .source-list article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.tr-app .dimension-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.tr-app .source-list {
  display: grid;
  gap: 10px;
}

.tr-app .source-list span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tr-app .source-list h3 {
  font-size: 15px;
  margin: 6px 0;
}

.tr-app .source-list p,
.tr-app .source-list small,
.tr-app .guardrail-panel li {
  color: var(--muted);
  line-height: 1.45;
}

.tr-app .review-content {
  display: grid;
  gap: 10px;
}

.tr-app .review-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tr-app .admin-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.tr-app .admin-summary span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
  color: var(--muted);
  font-size: 12px;
}

.tr-app .admin-summary b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 2px;
}

.tr-app .graduation-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.tr-app .graduation-card {
  border: 1px solid #c9d8e3;
  background: #f7fbfd;
  padding: 10px;
}

.tr-app .graduation-card.graduated {
  border-color: #8fbfa5;
  background: #f1fbf5;
}

.tr-app .graduation-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
}

.tr-app .graduation-card b {
  font-size: 13px;
}

.tr-app .graduation-card span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tr-app .graduation-card p,
.tr-app .graduation-card small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tr-app .graduation-card small {
  margin-top: 5px;
}

.tr-app .admin-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  max-height: 260px;
  overflow: auto;
}

.tr-app .admin-section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-top: 2px;
}

.tr-app .admin-list article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.tr-app .admin-list article.review-needed {
  border-color: var(--brand-light);
  box-shadow: inset 3px 0 0 var(--brand);
}

.tr-app .admin-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.tr-app .admin-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tr-app .admin-list .flagged-result {
  color: var(--brand-2);
  font-weight: 800;
}

.tr-app .admin-list .read-result {
  color: #8a4b00;
  font-weight: 800;
}

.tr-app .admin-list .admin-read {
  margin-top: 6px;
}

.tr-app .admin-list .admin-read.matched {
  color: #287747;
}

.tr-app .admin-list .admin-read.missed {
  color: #8a4b00;
}

.tr-app .admin-list .admin-feedback {
  margin-top: 6px;
  color: var(--ink);
}

.tr-app .system-health {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.tr-app .system-health p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tr-app .system-health article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
}

.tr-app .system-health article.pass {
  border-color: #b9d8ca;
  background: #f4fbf7;
}

.tr-app .system-health article.fail {
  border-color: #f3c3a2;
  background: #fff7f1;
}

.tr-app .system-health span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.tr-app .system-health article.pass span {
  color: var(--ok);
}

.tr-app .system-health article.fail span {
  color: var(--brand-2);
}

.tr-app .system-health b,
.tr-app .system-health small {
  display: block;
}

.tr-app .system-health b {
  font-size: 13px;
}

.tr-app .system-health small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.tr-app .source-list p {
  margin: 0 0 8px;
}

.tr-app .guardrail-panel ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1120px) {
  .tr-app .shell {
    grid-template-columns: 280px 1fr;
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }

  .tr-app .inspector {
    grid-column: 1 / -1;
    border-width: 1px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tr-app .feedback-panel,
.tr-app .source-panel,
.tr-app .review-panel,
.tr-app .admin-panel,
.tr-app .system-panel,
.tr-app .guardrail-panel {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .tr-app .shell,
.tr-app .workspace,
.tr-app .inspector {
    display: block;
  }

  .tr-app .rail,
.tr-app .inspector {
    border-width: 0 0 1px;
  }

  .tr-app .topbar,
.tr-app .composer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tr-app .chat-panel {
    min-height: 260px;
    padding: 18px;
  }

  .tr-app .scenario-start {
    padding: 14px 18px;
  }

  .tr-app .scenario-start-grid {
    grid-template-columns: 1fr;
  }

  .tr-app .training-strip {
    grid-template-columns: 1fr;
  }

  .tr-app .customer-type-checks {
    grid-template-columns: 1fr;
  }

  .tr-app .composer {
    grid-template-columns: 1fr;
  }

  .tr-app .speak-toggle {
    margin-left: 0;
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .tr-app .voice-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tr-app .voice-help {
    font-size: 11px;
  }

  .tr-app .dimension-grid {
    grid-template-columns: 1fr;
  }
}

.tr-app .voice-diagnostics {
  color: var(--blue);
  display: none;
}

.tr-app .voice-diagnostics:not(:empty) {
  display: block;
}


/* ---------------------------------------------------------------------------
 * Overrides for embedded mode (Trainer tab inside the LMS shell).
 * The original sandbox owned the whole viewport (height: 100vh). When embedded
 * inside the LMS .main column, we need to let the page-level layout decide
 * how tall the trainer renders.
 * --------------------------------------------------------------------------- */
.tr-app {
  display: block;
}

.tr-app .tr-shell {
  display: grid;
  grid-template-columns: 280px minmax(640px, 1fr) 320px;
  gap: 0;
  min-height: calc(100vh - 220px);
}

.tr-app .shell {
  height: auto;
  min-height: calc(100vh - 220px);
  overflow: visible;
}

.tr-app .rail,
.tr-app .inspector {
  max-height: calc(100vh - 220px);
}

.tr-app .workspace {
  min-height: 0;
}

@media (max-width: 1120px) {
  .tr-app .tr-shell {
    grid-template-columns: 280px 1fr;
  }
  .tr-app .inspector {
    grid-column: 1 / -1;
    max-height: none;
    border-width: 1px 0 0;
  }
}

@media (max-width: 760px) {
  .tr-app .tr-shell {
    display: block;
  }
}

[data-trainer-admin-only][hidden] {
  display: none !important;
}
