/* public/widgets/lms-interactive.css
   Interactive lesson blocks (public/widgets/lms-interactive.js). Loaded by
   People (web player + Settings > Training preview + the lesson editor) and by
   /mobile/training. Tokens only (design-system.css), so both themes and both
   surfaces follow the system; namespaced .lms-ix-* so nothing here can restyle
   the page around it. The mockups' look, not their hardcoded colours. */

/* Text on a solid brand fill: white in both themes, like .ds-btn and .m-btn-primary. */
.lms-ix { --lms-ix-on-solid: #fff; margin: var(--s-4) 0; display: flex; flex-direction: column; gap: var(--s-3); line-height: 1.5; }
.lms-ix p { margin: 0; }
.lms-ix-intro { color: var(--ink-2); }
.lms-ix-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
}
.lms-ix-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-royal);
}
.lms-ix-count { font-size: var(--text-sm); color: var(--ink-3); }
.lms-ix-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.lms-ix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lms-ix button { font: inherit; }
.lms-ix-bar { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.lms-ix-bar > span { display: block; height: 100%; background: var(--brand-royal); border-radius: var(--r-full); transition: width var(--dur) var(--ease-out); }

/* Stepper */
.lms-ix-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-2); }
.lms-ix-step {
  min-height: 64px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); text-align: left; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
}
.lms-ix-step[data-state="seen"] { background: var(--brand-royal-soft); border-color: var(--brand-royal-soft); }
.lms-ix-step[aria-pressed="true"] { background: var(--brand-royal); border-color: var(--brand-royal); color: var(--lms-ix-on-solid); }
.lms-ix-step-num { font-size: var(--text-xs); font-weight: 700; opacity: 0.8; text-transform: uppercase; }
.lms-ix-step-name { font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
.lms-ix-step-body { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-3); }
.lms-ix-step-body .lms-ix-say { grid-row: span 2; }
.lms-ix-say-text { font-size: var(--text-xl); font-weight: 500; line-height: 1.4; }
.lms-ix-miss { background: var(--warn-soft); border-color: var(--warn-soft); }
.lms-ix-miss .lms-ix-label { color: var(--warn-ink); }

/* Script player */
.lms-ix-script-top { display: flex; justify-content: flex-end; }
.lms-ix-switch {
  min-height: 44px; display: inline-flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3);
  border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.lms-ix-switch[aria-pressed="true"] { border-color: var(--brand-royal); background: var(--brand-royal-soft); color: var(--brand-royal-ink); }
.lms-ix-switch-track { width: 34px; height: 20px; border-radius: var(--r-full); background: var(--surface-3); position: relative; display: inline-block; }
.lms-ix-switch-knob {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); box-sizing: border-box; transition: left var(--dur-fast) var(--ease-out);
}
.lms-ix-switch[aria-pressed="true"] .lms-ix-switch-track { background: var(--brand-royal); }
.lms-ix-switch[aria-pressed="true"] .lms-ix-switch-knob { left: 16px; }
.lms-ix-script-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-3); align-items: start; }
.lms-ix-call {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); max-height: 520px; overflow-y: auto;
}
.lms-ix-side { display: flex; flex-direction: column; gap: var(--s-3); }
.lms-ix-line { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lms-ix-line[data-who="csr"] { align-items: flex-end; }
.lms-ix-line[data-who="note"] { align-items: center; }
.lms-ix-who { font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); }
.lms-ix-bubble {
  max-width: 85%; padding: var(--s-2) var(--s-3); border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
}
.lms-ix-line[data-who="csr"] .lms-ix-bubble { background: var(--success-soft); border-color: var(--success-soft); }
.lms-ix-line[data-who="note"] .lms-ix-bubble { background: transparent; border-style: dashed; font-style: italic; color: var(--ink-2); }
.lms-ix-bubble.lms-ix-hidden {
  border: 1px dashed var(--brand-royal); background: var(--brand-royal-soft); color: var(--brand-royal-ink); font-weight: 600;
}
.lms-ix-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.lms-ix-tag {
  font-size: var(--text-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--brand-royal-soft); color: var(--brand-royal-ink);
}
.lms-ix-form-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); width: 100%;
  background: none; border: 0; padding: 0; color: var(--ink); font-weight: 650; cursor: pointer; text-align: left; min-height: 32px;
}
.lms-ix-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lms-ix-checks li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--ink-3); }
.lms-ix-checks li[data-got="true"] { color: var(--ink); }
.lms-ix-box {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); position: relative; box-sizing: border-box;
}
[data-got="true"] > .lms-ix-box,
[aria-pressed="true"] > .lms-ix-box { background: var(--success); border-color: var(--success); }
[data-got="true"] > .lms-ix-box::after,
[aria-pressed="true"] > .lms-ix-box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--lms-ix-on-solid); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Flip cards */
.lms-ix-flip {
  width: 100%; min-height: 260px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); cursor: pointer; text-align: left; padding: var(--s-6);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.lms-ix-flip[data-side="back"] { background: var(--brand-royal-soft); border-color: var(--brand-royal); }
.lms-ix-flip[data-side="front"] .lms-ix-label { color: var(--ink-3); }
.lms-ix-flip[data-side="front"] .lms-ix-flip-text { font-size: var(--text-3xl); font-weight: 650; line-height: 1.25; }
.lms-ix-flip[data-side="back"] .lms-ix-flip-text { font-size: var(--text-xl); font-weight: 500; line-height: 1.45; }
.lms-ix-flip-hint { font-size: var(--text-sm); font-weight: 600; color: var(--brand-royal); }
.lms-ix-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lms-ix-dot {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); font-size: var(--text-xs); font-weight: 700; cursor: pointer;
}
.lms-ix-dot[aria-current="true"] { background: var(--brand-royal); border-color: var(--brand-royal); color: var(--lms-ix-on-solid); }

/* Practice scorecard */
.lms-ix-score-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-3); align-items: start; }
.lms-ix-score-left { display: flex; flex-direction: column; gap: var(--s-3); }
.lms-ix-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lms-ix-chip {
  min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-full); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.lms-ix-chip[aria-pressed="true"] { background: var(--brand-royal); border-color: var(--brand-royal); color: var(--lms-ix-on-solid); }
.lms-ix-customer .lms-ix-label { color: var(--ink-3); }
.lms-ix-card-title { margin: 0; font-size: var(--text-lg); font-weight: 650; }
.lms-ix-facts { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.lms-ix-push { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn-ink); font-size: var(--text-sm); }
.lms-ix-score-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.lms-ix-score-title { font-weight: 650; }
.lms-ix-score-num { font-size: var(--text-lg); color: var(--ink-3); white-space: nowrap; }
.lms-ix-score-num strong { font-size: var(--text-4xl); color: var(--ink); }
.lms-ix-score-num[data-tone="good"] strong { color: var(--success); }
.lms-ix-score-num[data-tone="low"] strong { color: var(--danger); }
.lms-ix-points { display: flex; flex-direction: column; gap: 6px; }
.lms-ix-point {
  min-height: 44px; display: flex; align-items: center; gap: var(--s-2); padding: 6px var(--s-3); text-align: left;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
}
.lms-ix-point[aria-pressed="true"] { background: var(--success-soft); border-color: var(--success-soft); }
.lms-ix-point-n { font-weight: 600; color: var(--ink-3); width: 20px; flex-shrink: 0; }
.lms-ix-last { font-size: var(--text-sm); color: var(--ink-2); }
.lms-ix-error { font-size: var(--text-sm); color: var(--danger); }

/* Quick check: one question, letter-badged answers, right / not quite with
   the reason. Practice only, so the "wrong" tone is amber, not red. */
.lms-ix-check-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.lms-ix-check-q { font-size: var(--text-xl); font-weight: 650; line-height: 1.35; color: var(--ink); }
.lms-ix-check-opts { display: flex; flex-direction: column; gap: var(--s-2); }
.lms-ix-check-opt {
  min-height: 52px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); text-align: left;
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.lms-ix-check-opt[data-state="open"]:hover { border-color: var(--brand-royal); background: var(--brand-royal-soft); }
.lms-ix-check-opt[aria-disabled="true"] { cursor: default; }
.lms-ix-check-letter {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); font-size: var(--text-sm); font-weight: 700;
}
.lms-ix-check-text { flex: 1 1 auto; min-width: 0; }
.lms-ix-check-opt[data-state="right"] { border-color: var(--success); background: var(--success-soft); }
.lms-ix-check-opt[data-state="right"] .lms-ix-check-letter { border-color: var(--success); background: var(--success); color: var(--lms-ix-on-solid); }
.lms-ix-check-opt[data-state="wrong"] { border-color: var(--warn); background: var(--warn-soft); }
.lms-ix-check-opt[data-state="wrong"] .lms-ix-check-letter { border-color: var(--warn); background: var(--warn); color: var(--black, #0E1B33); }
.lms-ix-check-opt[data-state="other"] { opacity: .65; }
.lms-ix-check-result[data-result="right"] { border-color: var(--success-soft); background: var(--success-soft); }
.lms-ix-check-result[data-result="right"] .lms-ix-label { color: var(--success-ink, var(--success)); }
.lms-ix-check-result[data-result="wrong"] { border-color: var(--warn-soft); background: var(--warn-soft); }
.lms-ix-check-result[data-result="wrong"] .lms-ix-label { color: var(--warn-ink); }
.lms-ix-check-live:empty { display: none; }
.lms-ix-form-check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; cursor: pointer; }
.lms-ix-form-check input { width: 18px; height: 18px; accent-color: var(--brand-royal); }
@media (max-width: 760px) { .lms-ix-check-q { font-size: var(--text-lg); } }

/* Narrow screens and the phone: one column, thumb-sized targets. */
@media (max-width: 760px) {
  .lms-ix-step-body, .lms-ix-script-grid, .lms-ix-score-grid { grid-template-columns: 1fr; }
  .lms-ix-step-body .lms-ix-say { grid-row: auto; }
  .lms-ix-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 70%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .lms-ix-step { scroll-snap-align: start; }
  .lms-ix-call { max-height: none; }
  .lms-ix-flip { min-height: 220px; padding: var(--s-4); }
  .lms-ix-flip[data-side="front"] .lms-ix-flip-text { font-size: var(--text-2xl); }
  .lms-ix-flip[data-side="back"] .lms-ix-flip-text { font-size: var(--text-lg); }
  .lms-ix-say-text { font-size: var(--text-lg); }
}
.lms-ix-phone .lms-ix-foot > .m-btn-primary { flex: 1 1 auto; }
.lms-ix-phone .lms-ix-dot { width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) {
  .lms-ix-bar > span, .lms-ix-switch-knob, .lms-ix-flip, .lms-ix-check-opt { transition: none; }
}

/* ---- The lesson editor (public/tools/lms-editor.js) --------------------
   A block inside the editor is a locked card: its words stay visible so the
   author can read the lesson, and the label button opens the block's form. */
.lms-editor [data-lms-widget].lms-ix-edit-block {
  margin: var(--s-3) 0; padding: var(--s-3); border: 1px dashed var(--brand-royal); border-radius: var(--r-lg);
  background: var(--brand-royal-soft); cursor: pointer; font-size: var(--text-sm); color: var(--ink-2);
  max-height: 220px; overflow: hidden; position: relative; user-select: none;
}
.lms-editor [data-lms-widget].lms-ix-edit-block [data-lms-part] { margin: 2px 0; }
.lms-ix-edit-label {
  display: block; width: 100%; text-align: left; margin-bottom: var(--s-2); padding: 6px var(--s-2);
  border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--brand-royal-ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.lms-ix-form {
  margin: var(--s-2) 0; padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface-2); display: flex; flex-direction: column; gap: var(--s-3); max-height: 70vh; overflow-y: auto;
}
.lms-ix-form-head { display: flex; flex-direction: column; gap: 2px; }
.lms-ix-form-field { display: flex; flex-direction: column; gap: 4px; }
.lms-ix-form-field input, .lms-ix-form-field textarea, .lms-ix-form-field select {
  font: inherit; padding: 6px var(--s-2); border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box;
}
.lms-ix-form-list { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-2) var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.lms-ix-form-list legend { font-weight: 650; padding: 0 4px; }
.lms-ix-form-row { border-top: 1px solid var(--border-subtle); padding-top: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); }
.lms-ix-form-row-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.lms-ix-form-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); position: sticky; bottom: 0; background: var(--surface-2); padding-top: var(--s-2); }
.lms-ix-form-error { color: var(--danger); font-size: var(--text-sm); margin: 0; }

/* ===========================================================================
   CSR practice blocks (public/widgets/lms-drills.js, 2026-10-31): the objection
   deck, call map, Listen and spot it, the practice customer. Tokens only.
   =========================================================================== */

/* Objection deck */
.lms-dk-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.lms-dk-progress { flex: 1; display: flex; align-items: center; gap: var(--s-2); }
.lms-dk-progress .lms-ix-bar { flex: 1; }
.lms-dk-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.lms-dk-chip { padding: 2px 10px; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: 700; background: var(--warn-soft); color: var(--warn-ink); }
.lms-dk-card { border-radius: var(--r-xl); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); min-height: 280px; }
.lms-dk-front { border: 0; cursor: pointer; text-align: left; justify-content: space-between; background: var(--brand-royal-ink); color: var(--lms-ix-on-solid); }
.lms-dk-front .lms-ix-label { color: inherit; opacity: 0.8; }
.lms-dk-front:focus-visible { outline: 3px solid var(--brand-sky); outline-offset: 3px; }
.lms-dk-quote { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.3; }
.lms-dk-hint { font-size: var(--text-sm); opacity: 0.85; }
.lms-dk-back { background: var(--surface); border: 1px solid var(--border); }
.lms-dk-back-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.lms-dk-said { margin: 0; color: var(--ink-3); font-size: var(--text-sm); font-style: italic; }
.lms-dk-replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.lms-dk-reply { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); line-height: 1.45; }
.lms-dk-style { align-self: flex-start; padding: 1px 8px; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--brand-mint-soft); color: var(--brand-mint-ink); }
.lms-dk-never { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn-ink); font-size: var(--text-sm); }
.lms-dk-why { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.lms-dk-foot button { min-height: 48px; flex: 1; }
.lms-dk-done-line { font-size: var(--text-lg); font-weight: 600; }

/* Call map */
.lms-cm-scen { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; }
.lms-cm-scen .lms-ix-chip { flex: 0 0 auto; }
.lms-cm-signals p { margin: 0; }
.lms-cm-great { color: var(--ink-2); font-size: var(--text-sm); }
.lms-cm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.lms-cm-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.lms-cm-step[data-open="true"] { border-color: var(--brand-royal); }
.lms-cm-head { width: 100%; min-height: 56px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); text-align: left; }
.lms-cm-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 700; }
.lms-cm-num[data-tone="rapport"] { background: var(--brand-mint-soft); color: var(--brand-mint-ink); }
.lms-cm-num[data-tone="process"] { background: var(--brand-royal-soft); color: var(--brand-royal-ink); }
.lms-cm-num[data-tone="sales"] { background: var(--warn-soft); color: var(--warn-ink); }
.lms-cm-num[data-tone="close"] { background: var(--surface-3); color: var(--ink-2); }
.lms-cm-name { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.lms-cm-title { font-weight: 600; }
.lms-cm-part { font-size: var(--text-xs); color: var(--ink-3); }
.lms-cm-rule { font-size: var(--text-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); background: var(--danger-soft); color: var(--danger-ink); }
.lms-cm-changed { font-size: var(--text-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); background: var(--brand-sky-soft); color: var(--brand-sky-ink); }
.lms-cm-body { padding: 0 var(--s-3) var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.lms-cm-goal, .lms-cm-rule-line, .lms-cm-why { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.lms-cm-rule-line { color: var(--danger-ink); font-weight: 600; }
.lms-cm-say { margin: 0; background: var(--surface-2); border-radius: var(--r-md); padding: var(--s-2) var(--s-3); line-height: 1.45; }
.lms-cm-change { border-color: var(--brand-sky); }
.lms-cm-miss { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn-ink); font-size: var(--text-sm); }
.lms-cm-objs { display: flex; flex-direction: column; gap: var(--s-1); }
.lms-cm-obj { align-self: flex-start; min-height: 40px; padding: var(--s-1) var(--s-3); border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--brand-royal-ink); cursor: pointer; text-align: left; }
.lms-cm-obj[aria-expanded="true"] { border-color: var(--brand-royal); background: var(--brand-royal-soft); }
.lms-cm-obj-answer { margin: 0 0 var(--s-1) var(--s-3); line-height: 1.45; }

/* Listen and spot it */
.lms-ls-audio { width: 100%; }
.lms-ls-err { margin: 0; color: var(--danger-ink); font-size: var(--text-sm); }
.lms-ls-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.lms-ls-goal { width: 100%; min-height: 52px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); text-align: left; }
.lms-ls-goal[data-state="open"]:hover { border-color: var(--brand-royal); background: var(--brand-royal-soft); }
.lms-ls-goal[data-state="tapped"] { border-color: var(--brand-mint); background: var(--brand-mint-soft); }
.lms-ls-goal[data-state="right"] { border-color: var(--success); background: var(--success-soft); }
.lms-ls-goal[data-state="wrong"] { border-color: var(--warn); background: var(--warn-soft); }
.lms-ls-mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--r-full); border: 2px solid var(--border); }
.lms-ls-goal[data-state="tapped"] .lms-ls-mark, .lms-ls-goal[data-state="right"] .lms-ls-mark { background: var(--success); border-color: var(--success); }
.lms-ls-goal[data-state="wrong"] .lms-ls-mark { background: var(--warn); border-color: var(--warn); }
.lms-ls-name { flex: 1; font-weight: 600; }
.lms-ls-note { font-size: var(--text-xs); color: var(--ink-3); }
.lms-ls-acts { display: flex; gap: var(--s-2); }

/* Practice customer */
.lms-pc-title { margin: 0; font-size: var(--text-lg); font-weight: 700; }
.lms-pc-who, .lms-pc-onfile { margin: 0; color: var(--ink-2); }
.lms-pc-chat { list-style: none; margin: 0; padding: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); max-height: 420px; overflow-y: auto; background: var(--surface-2); border-radius: var(--r-lg); }
.lms-pc-msg { max-width: 82%; padding: var(--s-2) var(--s-3); border-radius: var(--r-lg); line-height: 1.4; }
.lms-pc-msg[data-who="customer"] { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); }
.lms-pc-msg[data-who="csr"] { align-self: flex-end; background: var(--brand-royal); color: var(--lms-ix-on-solid); }
.lms-pc-msg[data-typing="true"] { color: var(--ink-3); }
.lms-pc-input { width: 100%; box-sizing: border-box; min-height: 72px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.lms-pc-score { flex-direction: row; align-items: center; gap: var(--s-4); }
.lms-pc-score[data-tone="good"] { border-color: var(--success); }
.lms-pc-score[data-tone="ok"] { border-color: var(--warn); }
.lms-pc-score[data-tone="low"] { border-color: var(--danger); }
.lms-pc-big { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.lms-pc-verdict { margin: 0; font-weight: 600; }
.lms-pc-part-head { display: flex; justify-content: space-between; font-weight: 600; }
.lms-pc-part p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.lms-pc-tips { margin: 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); }

/* ---- "Scored on your calls" (content block scored_step) ------------------
   Drawn by lms-content.js renderScoredStep on the web player, the phone
   player and the Settings > Training preview. Not interactive: it tells the
   learner exactly what the call scorer listens for. Each box is a card of its
   own (lms-cards.js). Long unbroken text wraps rather than widening a 390px
   phone. */
.lms-scored {
  margin: var(--s-4) 0; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); display: flex; flex-direction: column; gap: var(--s-3);
  line-height: 1.5; min-width: 0; overflow-wrap: anywhere;
}
.lms-scored-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.lms-scored-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-royal);
}
.lms-scored-label { font-size: var(--text-lg); font-weight: 650; line-height: 1.35; color: var(--ink); }
.lms-scored-on { font-size: var(--text-sm); color: var(--ink-2); margin-top: calc(-1 * var(--s-1)); }
.lms-scored-part {
  display: flex; flex-direction: column; gap: 4px; padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md); background: var(--surface-2);
}
.lms-scored-name { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.lms-scored-text { white-space: pre-line; color: var(--ink); }
.lms-scored-good { background: var(--success-soft); }
.lms-scored-good .lms-scored-name { color: var(--success-ink); }
.lms-scored-miss { background: var(--warn-soft); }
.lms-scored-miss .lms-scored-name { color: var(--warn-ink); }

/* The lesson editor's list of a lesson's scored steps, and its form (the
   form reuses the .lms-ix-form field styles above). */
.lms-ss { margin: var(--s-2); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); display: flex; flex-direction: column; gap: var(--s-2); }
.lms-ss-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); flex-wrap: wrap; }
.lms-ss-head p { margin: 2px 0 0; }
.lms-ss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.lms-ss-item {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-2) var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
.lms-ss-item.is-bad { border-color: var(--danger); background: var(--danger-soft); }
.lms-ss-item-main { min-width: 0; flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.lms-ss-item-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.lms-ss-meta { font-size: var(--text-xs); color: var(--ink-3); }
.lms-ss-bad { font-size: var(--text-sm); color: var(--danger-ink); }
.lms-ss-help { font-size: var(--text-xs); color: var(--ink-3); }
.lms-ss-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-2); }
@media (max-width: 760px) { .lms-ss-row { grid-template-columns: 1fr; } }
