:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #d8dee8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #b42318;
  --ok: #067647;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
body.is-embedded {
  background: #f8fafc;
}
body.is-embedded .topbar {
  display: none;
}
body.is-embedded .shell {
  max-width: none;
  margin: 0;
  padding: 12px;
}
body.is-embedded .panel,
body.is-embedded .home-hero,
body.is-embedded .lesson-hero {
  box-shadow: none;
}
a { color: var(--primary); text-decoration: none; }
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { font-weight: 700; color: var(--text); }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
.shell { max-width: 1120px; margin: 28px auto; padding: 0 20px; }
.shell:has(.course-deck) {
  max-width: min(1760px, calc(100vw - 28px));
  margin: 14px auto;
  padding: 0 14px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(16,24,40,.04);
}
.entry-panel { max-width: 560px; margin: 58px auto; }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
h1, h2 { margin: 0 0 10px; line-height: 1.25; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
.muted { color: var(--muted); }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; min-height: 90px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.primary:hover { background: var(--primary-dark); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.action-grid, .knowledge-grid, .feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.action-card, .knowledge-card, .result-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.action-card span { color: var(--muted); }
ul { margin: 8px 0 0; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 8px; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.question-list { display: grid; gap: 14px; margin-top: 18px; }
.question { border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
legend { font-weight: 700; padding: 0 4px; }
.option { display: flex; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; font-weight: 500; margin-top: 8px; }
.option input { width: auto; }
.timer {
  min-width: 82px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  font-weight: 800;
  background: #f8fafc;
}
.chat-box { display: grid; gap: 10px; margin: 16px 0; }
.msg {
  max-width: 76%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.msg.customer { background: #f8fafc; }
.msg.trainee { margin-left: auto; background: #eff6ff; border-color: #bfdbfe; }
.msg p { margin: 6px 0 0; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.end-form { margin-top: 10px; justify-content: flex-end; }
.answer-box { border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 8px; padding: 12px; }
.alert { max-width: 760px; margin: 0 auto 12px; border-radius: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--border); }
.alert.success { color: #067647; border-color: #abefc6; background: #ecfdf3; font-weight: 700; }
.fail { color: var(--danger); font-weight: 700; }
.pass { color: var(--ok); font-weight: 700; }
.result-card.ok { border-color: #abefc6; }
.result-card.bad { border-color: #fecdca; }

.home-hero, .lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.06) 42%, rgba(255,255,255,1) 42%),
    #fff;
  box-shadow: 0 10px 24px rgba(16,24,40,.05);
}
.home-hero h1, .lesson-hero h1 { font-size: 34px; margin-bottom: 12px; }
.home-hero p, .lesson-hero p { color: #475467; max-width: 760px; margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.home-illustration, .hero-visual {
  min-height: 250px;
  border: 1px solid #c7d7fe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.mini-window {
  border: 1px solid #d8dee8;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(16,24,40,.06);
}
.mini-window.good { margin-left: 42px; border-color: #abefc6; background: #f0fdf4; }
.mini-badges, .evidence-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mini-badges span, .evidence-row span, .pill {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.phone-card {
  width: 240px;
  min-height: 230px;
  margin: 0 auto;
  border: 8px solid #1f2937;
  border-radius: 26px;
  background: #fff;
  padding: 16px 12px;
  box-shadow: 0 16px 30px rgba(15,23,42,.18);
}
.phone-top { width: 62px; height: 5px; border-radius: 99px; background: #cbd5e1; margin: 0 auto 16px; }
.bubble { border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.bubble.angry { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.bubble.calm { background: #eef6ff; color: #1d4ed8; border: 1px solid #bfdbfe; margin-left: 28px; }
.score-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}
.score-card b { font-size: 28px; color: #067647; line-height: 1; }
.score-card span { font-size: 12px; color: #067647; }
.lesson-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.lesson-side {
  position: sticky;
  top: 78px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(16,24,40,.04);
}
.lesson-side h2 { font-size: 20px; }
.side-kicker { color: var(--primary); font-weight: 800; font-size: 12px; }
.lesson-side a:not(.button) {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  color: #344054;
}
.side-cta { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.lesson-main { min-width: 0; }
.lesson-panel { scroll-margin-top: 86px; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mini-link { font-size: 13px; font-weight: 700; white-space: nowrap; }
.lesson-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.lesson-path div, .journey-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.lesson-path b, .journey-card b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  margin-bottom: 6px;
}
.lesson-path span { display: block; color: #344054; font-weight: 700; }
.journey-grid, .flow-grid, .scene-grid, .tool-grid, .simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.journey-card h3, .flow-grid h3, .scene-grid h3 { margin: 4px 0; }
.journey-card span, .flow-grid p, .scene-grid p, .tool-grid span, .simple-grid span { color: var(--muted); }
.journey-card.open { border-color: #84caff; background: linear-gradient(180deg, #eff8ff 0%, #fff 100%); }
.journey-card.open span { color: #175cd3; font-weight: 700; }
.journey-card.locked { opacity: .78; }
.flow-grid article, .scene-grid article, .tool-grid article, .simple-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.simple-grid article {
  display: grid;
  gap: 6px;
}
.simple-grid b {
  color: #2563eb;
}
.flow-grid article b { color: #2563eb; font-size: 13px; }
.evidence-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.evidence-board article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.picture-frame {
  height: 150px;
  border-radius: 8px;
  border: 1px solid #dbe4f0;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}
.picture-frame span { position: absolute; inset: 22px; border-radius: 8px; border: 2px dashed rgba(37,99,235,.28); }
.product-pic { background: linear-gradient(135deg, #eff6ff, #fff7ed); }
.product-pic:after { content: ""; position: absolute; width: 78px; height: 92px; border-radius: 14px; background: #60a5fa; left: 50%; top: 28px; transform: translateX(-50%) rotate(-8deg); box-shadow: 42px 16px 0 #93c5fd; }
.package-pic { background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.package-pic:after { content: ""; position: absolute; width: 118px; height: 76px; background: #d97706; left: 50%; top: 42px; transform: translateX(-50%); clip-path: polygon(12% 0, 88% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); opacity: .78; }
.label-pic { background: linear-gradient(135deg, #f8fafc, #e0f2fe); }
.label-pic:after { content: ""; position: absolute; width: 124px; height: 86px; background: #fff; border: 1px solid #cbd5e1; left: 50%; top: 32px; transform: translateX(-50%) rotate(3deg); box-shadow: inset 0 -18px 0 #e2e8f0, inset 0 -38px 0 #f8fafc; }
.quote-box {
  margin-top: 14px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  padding: 12px 14px;
  color: #1e3a8a;
  font-weight: 700;
}
.scene-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef6ff;
  color: #2563eb;
  font-weight: 900;
}
.scene-grid article b { display: block; margin-top: 8px; color: #475467; font-size: 13px; }
.dialogue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 14px;
}
.real-case-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.real-case-panel.compact {
  max-width: 980px;
}
.real-case-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.real-case-copy b {
  color: #1d4ed8;
  font-size: 16px;
}
.real-case-copy span {
  color: #475569;
  line-height: 1.7;
  font-weight: 720;
}
.real-case-shots {
  display: grid;
  gap: 12px;
}
.real-case-shots.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.real-case-shots figure {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.real-case-shots img {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 360px);
  object-fit: contain;
  object-position: left top;
  background: #f8fafc;
}
.real-case-shots figcaption {
  min-height: 48px;
  padding: 9px 11px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.chat-demo, .do-dont {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.chat-line { max-width: 88%; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.chat-line.customer { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.chat-line.wrong { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; margin-left: auto; }
.chat-line.right { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; margin-left: auto; }
.danger-pill { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.tool-grid article { display: grid; gap: 4px; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.metric-strip div {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  padding: 14px;
}
.metric-strip b { display: block; font-size: 26px; color: #067647; }
.metric-strip span { color: #067647; font-weight: 700; }
.redline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.redline-list div {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
}
.next-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 8px;
  padding: 16px;
}
.course-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.course-side {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(16,24,40,.04);
}
.course-side h2 { margin-bottom: 4px; }
.course-side p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.course-side a:not(.button) {
  display: block;
  color: #344054;
  border-bottom: 1px solid #eef2f7;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
}
.course-main { min-width: 0; }
.course-cover {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.05fr);
  gap: 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #eef6ff, #fff 48%, #f8fbff);
  box-shadow: 0 10px 24px rgba(16,24,40,.05);
}
.course-cover h1 { font-size: 46px; max-width: 780px; }
.course-cover p { color: #475467; max-width: 820px; font-size: 18px; }
.cover-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cover-stats span {
  border: 1px solid #bfdbfe;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #344054;
}
.cover-stats b { color: #2563eb; }
.course-visual {
  min-height: 510px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-scene-img {
  display: block;
  width: 100%;
  min-height: 470px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  background: #eef6ff;
  box-shadow: 0 18px 34px rgba(15,23,42,.16);
}
.screen-card {
  width: min(100%, 360px);
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(15,23,42,.14);
}
.screen-head { height: 10px; width: 110px; border-radius: 999px; background: #e2e8f0; margin-bottom: 16px; }
.course-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.course-progress div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.course-progress b { display: block; color: #2563eb; margin-bottom: 4px; }
.course-progress span { color: #344054; font-weight: 700; }
.lesson-page {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 30px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(16,24,40,.04);
  scroll-margin-top: 82px;
}
.lesson-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 22px;
  font-weight: 900;
}
.lesson-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .9fr);
  gap: 14px 22px;
  align-items: start;
}
.lesson-copy > * { grid-column: 1; }
.lesson-copy > .slide-visual {
  grid-column: 2;
  grid-row: 1 / span 8;
  align-self: stretch;
}
.lesson-copy > .eyebrow { margin-bottom: 0; }
.lesson-copy h2 { font-size: 34px; }
.lesson-copy > p { color: #475467; font-size: 18px; }
.step-list, .compare-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.timeline-list, .self-check-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.self-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step-list div, .compare-table div, .timeline-list div, .self-check-grid details, .case-card, .check-card, .script-box, .mini-quiz, .answer-detail {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 14px;
}
.timeline-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}
.step-list b, .compare-table b, .timeline-list b {
  display: inline-block;
  min-width: 66px;
  color: #2563eb;
}
.case-card h3, .check-card h3 { margin-top: 0; }
.script-box {
  margin-top: 14px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
  font-weight: 750;
}
.mini-quiz {
  margin-top: 14px;
  background: #fff7ed;
  border-color: #fed7aa;
}
.mini-quiz b { color: #c2410c; }
.quiz-proof-shot {
  max-width: 360px;
  margin: 14px 0 0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.quiz-proof-shot img {
  width: 100%;
  display: block;
}
.quiz-proof-shot figcaption {
  padding: 8px 10px;
  color: #7c2d12;
  font-size: 13px;
  line-height: 1.5;
  background: #fff7ed;
}
details summary { cursor: pointer; font-weight: 800; color: #2563eb; }
.answer-detail { margin-top: 14px; background: #f0fdf4; border-color: #abefc6; }
.do-dont-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.do-dont-grid article {
  border-radius: 8px;
  padding: 14px;
}
.do-dont-grid .dont { border: 1px solid #fecdd3; background: #fff1f2; color: #9f1239; }
.do-dont-grid .do { border: 1px solid #abefc6; background: #f0fdf4; color: #067647; }

.course-deck {
  grid-template-columns: 260px minmax(0, 1fr);
}
.course-deck .course-side {
  grid-row: 1 / span 2;
}
.course-side a.active {
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 7px;
  border-bottom-color: transparent;
  padding-left: 10px;
}
.deck-toolbar {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  padding: 10px;
  box-shadow: 0 8px 20px rgba(16,24,40,.04);
  position: sticky;
  top: 70px;
  z-index: 4;
}
.deck-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.deck-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.deck-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width .24s ease;
}
.deck-count {
  min-width: 58px;
  text-align: center;
  font-weight: 800;
  color: #475467;
}
.course-deck .course-main {
  grid-column: 2;
}
.presentation-ready .course-slide {
  display: none;
}
.presentation-ready .course-slide.active {
  display: grid;
  animation: slideIn .18s ease-out;
}
.course-slide {
  min-height: min(820px, calc(100vh - 154px));
}
.presentation-ready .course-progress.active {
  align-content: center;
}
.presentation-ready .course-cover.active {
  align-content: center;
}
.presentation-ready .lesson-page.active {
  align-content: center;
}
.lesson-page {
  overflow: hidden;
}
.slide-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  min-height: 480px;
  margin: 16px 0;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}
.lesson-copy > .slide-visual {
  margin: 0;
}
.scene-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  background: #eef6ff;
}
.visual-scene {
  height: 140px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  position: relative;
  overflow: hidden;
}
.visual-rail {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: #bfdbfe;
  opacity: .8;
}
.visual-rail.one { width: 118px; left: 22px; top: 24px; }
.visual-rail.two { width: 80px; right: 22px; bottom: 22px; background: #fed7aa; }
.visual-card {
  position: absolute;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
}
.visual-card.main { width: 86px; height: 78px; left: 42px; top: 46px; }
.visual-card.sub { width: 96px; height: 54px; right: 34px; top: 50px; }
.visual-mark {
  position: absolute;
  width: 48px;
  height: 48px;
  right: 72px;
  top: 58px;
  border-radius: 8px;
  border: 8px solid #22c55e;
  border-top: 0;
  border-left: 0;
  transform: rotate(38deg);
}
.visual-caption {
  display: grid;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}
.visual-caption b {
  font-size: 22px;
  color: #172033;
}
.visual-caption span {
  color: #475467;
  font-weight: 700;
}
.art-calm .visual-card.main,
.art-rude .visual-card.main,
.art-refund .visual-card.main {
  width: 132px;
  height: 46px;
  left: 20px;
  top: 30px;
  background: #fff1f2;
  border-color: #fecdd3;
}
.art-calm .visual-card.sub,
.art-rude .visual-card.sub,
.art-refund .visual-card.sub {
  width: 118px;
  height: 44px;
  right: 20px;
  top: 84px;
  background: #ecfdf3;
  border-color: #abefc6;
}
.art-calm .visual-mark,
.art-rude .visual-mark,
.art-refund .visual-mark {
  width: 32px;
  height: 32px;
  right: 110px;
  top: 62px;
  border-color: #2563eb;
}
.art-evidence .visual-card.main,
.art-missing .visual-card.main,
.art-wrongitem .visual-card.main {
  width: 76px;
  height: 88px;
  left: 28px;
  top: 34px;
  background: #dbeafe;
}
.art-evidence .visual-card.sub,
.art-missing .visual-card.sub,
.art-wrongitem .visual-card.sub {
  width: 94px;
  height: 70px;
  right: 28px;
  top: 46px;
  background: #fffbeb;
  clip-path: polygon(10% 0, 90% 0, 100% 26%, 100% 100%, 0 100%, 0 26%);
}
.art-broken .visual-card.main {
  background: #fee2e2;
  transform: rotate(-8deg);
}
.art-broken .visual-card.sub {
  background: #fff7ed;
  transform: rotate(8deg);
}
.art-logistics .visual-card.main,
.art-freight .visual-card.main {
  width: 128px;
  height: 58px;
  left: 34px;
  top: 58px;
  background: #dbeafe;
}
.art-logistics .visual-card.sub,
.art-freight .visual-card.sub {
  width: 36px;
  height: 36px;
  right: 36px;
  top: 78px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -94px 0 0 #fff;
}
.art-tools .visual-card.main,
.art-handoff .visual-card.main,
.art-check .visual-card.main,
.art-schedule .visual-card.main {
  width: 112px;
  height: 86px;
  left: 30px;
  top: 34px;
}
.art-tools .visual-card.sub,
.art-handoff .visual-card.sub,
.art-check .visual-card.sub,
.art-schedule .visual-card.sub {
  width: 84px;
  height: 24px;
  right: 26px;
  top: 40px;
  box-shadow: 0 34px 0 #fff, 0 68px 0 #fff;
}
.art-compensate .visual-mark,
.art-redline .visual-mark {
  border-color: #ef4444;
  border-width: 6px;
  border-radius: 50%;
  transform: rotate(0deg);
}
.art-redline .visual-card.main,
.art-redline .visual-card.sub {
  background: #fff1f2;
  border-color: #fecdd3;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .topbar { height: auto; padding: 12px 16px; align-items: flex-start; flex-direction: column; }
  .shell { margin: 16px auto; padding: 0 12px; }
  .shell:has(.course-deck) { max-width: 100%; padding: 0 10px; }
  .panel { padding: 18px; }
  .panel-head, .chat-form, .inline-form { display: grid; grid-template-columns: 1fr; }
  .entry-link-box { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .home-hero, .lesson-hero, .lesson-shell, .dialogue-grid, .evidence-board { grid-template-columns: 1fr; }
  .course-shell, .course-cover, .lesson-page, .lesson-copy, .do-dont-grid, .slide-visual { grid-template-columns: 1fr; }
  .lesson-copy > .slide-visual { grid-column: 1; grid-row: auto; min-height: 320px; }
  .scene-img { min-height: 230px; }
  .hero-scene-img { min-height: 240px; }
  .course-side { position: static; max-height: none; }
  .deck-toolbar, .course-deck .course-main { grid-column: 1; }
  .deck-toolbar { grid-template-columns: 1fr 1fr; position: static; }
  .deck-progress { grid-column: 1 / -1; order: -1; }
  .deck-count { order: -1; }
  .course-progress { grid-template-columns: 1fr; }
  .lesson-side { position: static; }
  .lesson-path, .metric-strip { grid-template-columns: 1fr; }
  .home-hero h1, .lesson-hero h1 { font-size: 28px; }
  .course-cover h1 { font-size: 28px; }
}

@media (min-width: 681px) and (max-width: 1220px) {
  .shell:has(.course-deck) { max-width: 100%; }
  .course-shell, .course-cover, .lesson-page, .lesson-copy {
    grid-template-columns: 1fr;
  }
  .deck-toolbar, .course-deck .course-main { grid-column: 1; }
  .course-deck .course-side { grid-row: auto; position: static; max-height: none; }
  .lesson-copy > .slide-visual { grid-column: 1; grid-row: auto; }
}

/* Customer service training deck v2 */
.shell:has(.course-deck) {
  max-width: min(1880px, calc(100vw - 22px));
  margin: 10px auto;
  padding: 0 10px;
}
.course-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.deck-topline {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  padding: 8px 10px;
  box-shadow: 0 4px 10px rgba(16,24,40,.035);
}
.deck-title {
  display: grid;
  gap: 2px;
}
.deck-title span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}
.deck-title strong {
  color: #172033;
  font-size: 14px;
}
.deck-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex-wrap: nowrap;
}
.deck-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.deck-chip.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.deck-toolbar {
  grid-column: 1;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  top: 58px;
  padding: 8px 10px;
}
.course-deck .course-main {
  grid-column: 1;
}
.course-slide {
  min-height: min(900px, calc(100vh - 138px));
}
.course-cover {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(480px, .62fr) minmax(0, 1fr);
  min-height: min(900px, calc(100vh - 138px));
  padding: 46px;
  border-color: #c8d7ee;
  background:
    linear-gradient(90deg, rgba(248,251,255,.98) 0%, rgba(248,251,255,.94) 36%, rgba(248,251,255,.35) 63%, rgba(248,251,255,0) 100%),
    #f8fbff;
}
.course-cover > div:first-child {
  position: relative;
  z-index: 2;
  align-self: center;
}
.course-cover h1 {
  font-size: 54px;
  line-height: 1.08;
  max-width: 780px;
}
.course-cover p {
  font-size: 20px;
  line-height: 1.75;
  max-width: 760px;
}
.course-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: 1;
}
.hero-scene-img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}
.cover-stats {
  margin-top: 26px;
}
.cover-stats span {
  min-height: 50px;
  padding: 12px 16px;
  box-shadow: 0 8px 16px rgba(37,99,235,.08);
}
.course-progress.panel {
  align-content: center;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 46px;
  min-height: min(820px, calc(100vh - 160px));
  background:
    linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.95)),
    url("/customer-service-assessment/static/images/training/course-hero-v2.png") center/cover no-repeat;
}
.course-progress div {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  box-shadow: 0 12px 26px rgba(15,23,42,.08);
}
.course-progress b {
  font-size: 34px;
}
.course-progress span {
  font-size: 18px;
}
.lesson-page {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(900px, calc(100vh - 138px));
  padding: 0;
  border-color: #c8d7ee;
  background: #f8fbff;
  overflow: hidden;
}
.lesson-page.active {
  display: block;
}
.lesson-number {
  position: absolute;
  z-index: 3;
  left: 34px;
  top: 34px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37,99,235,.25);
}
.lesson-copy {
  min-height: min(900px, calc(100vh - 138px));
  display: grid;
  grid-template-columns: minmax(460px, .74fr) minmax(620px, 1fr);
  gap: 0;
  align-items: stretch;
}
.lesson-copy > * {
  grid-column: 1;
  margin-left: 34px;
  margin-right: 34px;
}
.lesson-copy > .eyebrow {
  margin-top: 118px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 900;
}
.lesson-copy h2 {
  font-size: 42px;
  line-height: 1.14;
  margin-bottom: 12px;
}
.lesson-copy > p {
  font-size: 19px;
  line-height: 1.75;
  color: #475467;
  max-width: 780px;
}
.lesson-copy > .slide-visual {
  grid-column: 2;
  grid-row: 1 / span 12;
  margin: 0;
  min-height: 100%;
  border: 0;
  border-left: 1px solid #dbe4f0;
  border-radius: 0;
  padding: 0;
  background: #eaf2ff;
  position: relative;
}
.scene-img {
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.visual-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 1px solid rgba(191,219,254,.9);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 30px rgba(15,23,42,.14);
}
.visual-caption b {
  font-size: 24px;
}
.checkpoint-slide {
  background:
    linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.98)),
    #fff;
}
.checkpoint-slide .lesson-copy {
  grid-template-columns: minmax(520px, .95fr) minmax(360px, .55fr);
  align-content: center;
}
.checkpoint-slide .lesson-copy > p {
  max-width: 860px;
}
.checkpoint-card {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-top: 10px;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(37,99,235,.10);
}
.checkpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #476078;
  font-weight: 850;
}
.checkpoint-head span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 950;
}
.checkpoint-head em {
  font-style: normal;
}
.checkpoint-question {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 900;
  color: #172033;
}
.checkpoint-options {
  display: grid;
  gap: 10px;
}
.checkpoint-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
  box-shadow: none;
}
.checkpoint-option b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1d4ed8;
}
.checkpoint-option span {
  color: #344054;
  font-weight: 750;
}
.checkpoint-option:hover,
.checkpoint-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
}
.checkpoint-option:disabled {
  cursor: default;
  opacity: .82;
}
.checkpoint-feedback {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 850;
}
.checkpoint-feedback.ok {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}
.checkpoint-feedback.bad {
  border: 1px solid #fecdca;
  background: #fff1f3;
  color: #b42318;
}
.checkpoint-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.checkpoint-slide.need-answer .checkpoint-card {
  border-color: #f97066;
  box-shadow: 0 18px 40px rgba(180,35,24,.12);
}
.checkpoint-slide .button:disabled,
.deck-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.simple-grid,
.step-list,
.compare-table,
.timeline-list,
.self-check-grid,
.dialogue-grid,
.do-dont-grid,
.tool-grid,
.metric-strip,
.redline-list,
.next-strip,
.case-card,
.answer-detail,
.script-box,
.mini-quiz {
  max-width: 790px;
}
.simple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dialogue-grid {
  grid-template-columns: 1.1fr .9fr;
}
.step-list div,
.compare-table div,
.timeline-list div,
.self-check-grid details,
.case-card,
.check-card,
.script-box,
.mini-quiz,
.answer-detail,
.simple-grid article,
.tool-grid article {
  background: rgba(255,255,255,.94);
  border-color: #dbe4f0;
  box-shadow: 0 10px 18px rgba(15,23,42,.04);
}
.step-list div,
.compare-table div,
.timeline-list div {
  border-left: 4px solid #2563eb;
}
.mini-quiz {
  background: #fff7ed;
  border-color: #fed7aa;
}
.next-strip {
  margin-bottom: 34px;
}

@media (max-width: 1220px) {
  .deck-topline {
    grid-template-columns: 1fr;
  }
  .course-cover {
    display: grid;
    grid-template-columns: 1fr;
    padding: 34px;
  }
  .course-cover > div:first-child {
    max-width: 760px;
  }
  .course-cover h1 {
    font-size: 42px;
  }
  .hero-scene-img {
    opacity: .36;
  }
  .course-progress.panel {
    grid-template-columns: 1fr;
  }
  .course-progress div {
    min-height: 110px;
  }
  .lesson-copy {
    grid-template-columns: 1fr;
  }
  .lesson-copy > * {
    margin-left: 24px;
    margin-right: 24px;
  }
  .lesson-copy > .slide-visual {
    grid-column: 1;
    grid-row: auto;
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid #dbe4f0;
    margin-top: 18px;
  }
  .lesson-copy > .eyebrow {
    margin-top: 110px;
  }
  .scene-img {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .deck-toolbar {
    grid-template-columns: 1fr 1fr;
    top: 0;
  }
  .deck-progress {
    grid-column: 1 / -1;
  }
  .course-cover,
  .lesson-page,
  .lesson-copy {
    min-height: auto;
  }
  .course-cover {
    padding: 24px;
  }
  .course-cover h1,
  .lesson-copy h2 {
    font-size: 30px;
  }
  .lesson-number {
    left: 22px;
    top: 22px;
    width: 54px;
    height: 54px;
  }
  .lesson-copy > .eyebrow {
    margin-top: 96px;
  }
  .simple-grid,
  .dialogue-grid,
  .do-dont-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }
}

/* Customer service training deck v3: PPT-style balanced content/image board */
.lesson-page {
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 54%, #f1f7ff 54%, #f8fbff 100%);
}
.lesson-copy {
  grid-template-columns: minmax(560px, .98fr) minmax(560px, .88fr);
  column-gap: 28px;
  align-items: start;
  padding-right: 34px;
}
.lesson-copy > * {
  margin-left: 40px;
  margin-right: 0;
}
.lesson-copy > .eyebrow {
  margin-top: 116px;
}
.lesson-copy h2 {
  max-width: 820px;
  font-size: 40px;
}
.lesson-copy > p {
  max-width: 820px;
}
.lesson-copy > .slide-visual {
  grid-column: 2;
  grid-row: 1 / span 10;
  align-self: start;
  margin: 38px 0 34px;
  min-height: 0;
  border: 1px solid #cddbf0;
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 36px rgba(15,23,42,.11);
  display: grid;
  grid-template-rows: auto auto;
}
.scene-img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #eef6ff;
}
.visual-caption {
  position: static;
  margin-top: 12px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  box-shadow: none;
  backdrop-filter: none;
}
.visual-caption b {
  font-size: 20px;
}
.visual-caption span {
  font-size: 14px;
}
.simple-grid,
.step-list,
.compare-table,
.timeline-list,
.self-check-grid,
.dialogue-grid,
.do-dont-grid,
.tool-grid,
.metric-strip,
.redline-list,
.next-strip,
.case-card,
.answer-detail,
.script-box,
.mini-quiz {
  max-width: 820px;
}
.step-list,
.compare-table,
.timeline-list {
  gap: 9px;
}
.step-list div,
.compare-table div,
.timeline-list div,
.self-check-grid details,
.case-card,
.check-card,
.script-box,
.mini-quiz,
.answer-detail,
.simple-grid article,
.tool-grid article {
  padding: 11px 13px;
}
.dialogue-grid {
  grid-template-columns: minmax(0, 1fr);
}
.do-dont-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.course-cover {
  background:
    linear-gradient(90deg, rgba(248,251,255,.99) 0%, rgba(248,251,255,.94) 34%, rgba(248,251,255,.62) 52%, rgba(248,251,255,.06) 72%, rgba(248,251,255,0) 100%),
    #f8fbff;
}
.hero-scene-img {
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1320px) {
  .lesson-copy {
    grid-template-columns: minmax(620px, .92fr) minmax(700px, 1fr);
  }
  .lesson-copy > .slide-visual {
    margin-top: 42px;
  }
}

@media (max-width: 1220px) {
  .lesson-page {
    background: #ffffff;
  }
  .lesson-copy {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .lesson-copy > * {
    margin-left: 24px;
    margin-right: 24px;
  }
  .lesson-copy > .slide-visual {
    grid-column: 1;
    grid-row: auto;
    margin: 18px 24px 24px;
  }
}

@media (max-width: 680px) {
  .lesson-copy > .slide-visual {
    padding: 10px;
  }
  .scene-img {
    min-height: 0;
  }
}

/* Assessment platform UI refresh */
body {
  background: #f4f7fb;
}
.topbar {
  height: 56px;
  padding: 0 18px 0 20px;
  background: #fff;
  border-bottom: 1px solid #dfe7f2;
  box-shadow: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  color: #172033;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eef4ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  box-shadow: none;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f8fafc;
}
.topnav a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 11px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.topnav a:hover,
.topnav a:focus-visible {
  background: #fff;
  border-color: #dbeafe;
  color: #1d4ed8;
  outline: none;
}
.topnav a.active {
  background: #fff;
  border-color: #c7d7ef;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.shell:not(:has(.course-deck)) {
  max-width: min(1460px, calc(100vw - 40px));
  margin: 22px auto 40px;
}
.shell:not(:has(.course-deck)) > .panel,
.shell:not(:has(.course-deck)) > .home-hero {
  border-color: #d6e0ee;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(15,23,42,.07);
}
.shell:not(:has(.course-deck)) > .panel {
  padding: 28px;
}
.shell:not(:has(.course-deck)) > .panel:first-child,
.entry-panel {
  position: relative;
  overflow: hidden;
}
.shell:not(:has(.course-deck)) > .panel:first-child:before,
.entry-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 48%, rgba(255,255,255,.30) 100%),
    url("/customer-service-assessment/static/images/training/course-hero-v2.png") right center/52% auto no-repeat;
  opacity: .9;
}
.shell:not(:has(.course-deck)) > .panel:first-child > *,
.entry-panel > * {
  position: relative;
  z-index: 1;
}
.entry-panel {
  max-width: 1040px;
  min-height: 620px;
  display: grid;
  align-content: center;
  padding: 46px;
}
.entry-panel h1 {
  font-size: 44px;
  max-width: 520px;
}
.entry-panel .muted {
  max-width: 520px;
  font-size: 17px;
}
.form-grid {
  max-width: 520px;
}
label {
  color: #344054;
}
input,
select,
textarea {
  min-height: 44px;
  border-color: #cfd9e8;
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 0 rgba(15,23,42,.03);
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37,99,235,.14);
  border-color: #2563eb;
}
button,
.button {
  min-height: 42px;
  border-color: #cfd9e8;
  box-shadow: 0 8px 16px rgba(15,23,42,.04);
}
.primary {
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
}
.home-hero {
  min-height: 520px;
  grid-template-columns: minmax(460px, .85fr) minmax(520px, 1fr);
  padding: 38px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86) 48%, rgba(255,255,255,.08)),
    url("/customer-service-assessment/static/images/training/course-hero-v2.png") right center/58% auto no-repeat,
    #fff;
}
.home-hero h1 {
  font-size: 46px;
  line-height: 1.12;
  max-width: 720px;
}
.home-hero p {
  font-size: 18px;
  line-height: 1.75;
  max-width: 690px;
}
.home-illustration {
  min-height: 430px;
  background: transparent;
  border: 0;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 0 0 26px;
}
.home-illustration .mini-window,
.home-illustration .mini-badges {
  width: min(440px, 92%);
  margin-left: 24px;
}
.mini-window {
  border-color: #d6e0ee;
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}
.journey-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.journey-card,
.action-card,
.knowledge-card,
.result-card {
  border-color: #d6e0ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(15,23,42,.05);
}
.journey-card {
  min-height: 180px;
  padding: 18px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.journey-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 34px rgba(37,99,235,.10);
}
.journey-card b {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}
.status-pill.ok {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}
table {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}
th {
  background: #f8fafc;
  color: #475467;
  font-weight: 900;
}
td,
th {
  padding: 13px 12px;
}
tr:last-child td {
  border-bottom: 0;
}
.panel-head {
  align-items: center;
}
.timer {
  min-width: 108px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 20px;
}
.question-list {
  gap: 16px;
}
.question {
  border-color: #d6e0ee;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
  padding: 18px;
}
.question legend {
  font-size: 17px;
  color: #172033;
}
.question-hint {
  margin: 4px 0 10px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}
.option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 42px;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  line-height: 1.55;
  cursor: pointer;
}
.option input {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
}
.option-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.option-key {
  flex: 0 0 auto;
  color: #2563eb;
  line-height: 1.55;
}
.option-value {
  min-width: 0;
  color: #25334d;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.option:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.rewrite-answer {
  width: 100%;
  min-height: 112px;
  margin-top: 10px;
  resize: vertical;
}
.result-card {
  margin-bottom: 14px;
  padding: 18px;
}
.result-card.ok {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}
.result-card.bad {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}
.answer-box {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.chat-panel {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
}
.im-chat-panel {
  max-width: min(1180px, calc(100vw - 40px));
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.chat-panel .panel-head {
  border-bottom: 1px solid #e3e9f2;
  padding-bottom: 16px;
}
.im-chat-head {
  padding: 22px 24px 18px;
  background: #fff;
}
.im-chat-head h1 {
  font-size: 28px;
}
.chat-box {
  max-height: none;
  overflow: auto;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248,251,255,.96), rgba(255,255,255,.96)),
    url("/customer-service-assessment/static/images/training/rude-customer.png") right bottom/420px auto no-repeat;
  padding: 18px;
}
.im-chat-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98)),
    radial-gradient(circle at 16% 18%, rgba(37,99,235,.08), transparent 24%);
  padding: 24px;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chat-row.trainee {
  flex-direction: row-reverse;
}
.chat-row.hint {
  justify-content: center;
  align-items: center;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(15,23,42,.06);
}
.chat-row.customer .chat-avatar {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}
.chat-row.trainee .chat-avatar {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.chat-row.hint .chat-avatar {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}
.chat-bubble-wrap {
  max-width: min(720px, 76%);
  display: grid;
  gap: 5px;
}
.chat-row.trainee .chat-bubble-wrap {
  justify-items: end;
}
.chat-row.hint .chat-bubble-wrap {
  max-width: min(720px, 88%);
}
.chat-speaker {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}
.msg {
  max-width: min(680px, 78%);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(15,23,42,.04);
}
.im-chat-box .msg {
  max-width: none;
  width: fit-content;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.msg.customer {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}
.im-chat-box .msg.customer {
  background: #fff;
  border-color: #fecdd3;
  color: #9f1239;
}
.msg.trainee {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.im-chat-box .msg.trainee {
  border-color: #2563eb;
  border-radius: 16px 16px 4px 16px;
  background: #2563eb;
  color: #fff;
}
.im-chat-box .msg.hint {
  border-color: #fedf89;
  border-radius: 14px;
  background: #fffaeb;
  color: #93370d;
}
.im-chat-box .msg p {
  margin: 0;
  line-height: 1.72;
  white-space: pre-wrap;
}
.chat-composer {
  padding: 16px 24px 20px;
  border-top: 1px solid #e3e9f2;
  background: #fff;
}
.chat-form {
  grid-template-columns: minmax(0, 1fr) 110px;
  margin-top: 14px;
}
.im-chat-form {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: stretch;
}
.chat-form textarea {
  min-height: 98px;
}
.im-chat-form textarea {
  min-height: 76px;
  resize: vertical;
  border-radius: 8px;
}
.im-chat-form button {
  min-height: 76px;
}
.im-end-form {
  margin-top: 10px;
  justify-content: flex-end;
}
.chat-side-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hint-form button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.feedback-grid {
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
}
.feedback-grid article {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
}
.feedback-steps {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.75;
}
.inline-form {
  flex-wrap: wrap;
}
.admin-actions,
.button-row form {
  display: inline-flex;
}
.admin-code {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-weight: 800;
}
.admin-code b {
  margin-left: 6px;
  color: #1d4ed8;
  font-size: 20px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.entry-link-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
}
.entry-link-box b,
.entry-link-box span {
  display: block;
}
.entry-link-box b {
  color: #172033;
  font-size: 14px;
}
.entry-link-box span {
  color: #667085;
  font-size: 12px;
}
.entry-link-box input {
  width: 100%;
  height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 0 10px;
  color: #344054;
  background: #fff;
}
.entry-link-box button {
  height: 36px;
  padding: 0 12px;
}
.button-row {
  align-items: center;
}
.alert {
  border-color: #fecdd3;
  background: #fff1f2;
}

/* Customer service quest training */
.quest-shell {
  display: grid;
  gap: 14px;
}
.quest-hero,
.quest-layout > .panel,
.quest-stage,
.quest-report {
  border-color: #c8d7f0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.98));
}
.quest-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .45fr);
  gap: 24px;
  align-items: center;
  border: 1px solid #c8d7f0;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
  overflow: hidden;
}
.quest-kicker {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}
.quest-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1.12;
}
.quest-hero p {
  max-width: 780px;
  margin: 0;
  color: #475467;
  font-size: 17px;
}
.quest-hud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.quest-hud span,
.quest-report-grid div {
  min-width: 116px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  padding: 10px 12px;
  color: #067647;
  font-weight: 800;
}
.quest-hud b,
.quest-report-grid b {
  display: block;
  font-size: 26px;
  line-height: 1;
}
.quest-illustration {
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
}
.quest-screen {
  width: 310px;
  height: 188px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(37,99,235,.15);
  position: relative;
  overflow: hidden;
}
.quest-screen:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
}
.screen-line,
.screen-card,
.screen-flow {
  position: absolute;
  border-radius: 6px;
  background: #bfdbfe;
}
.screen-line {
  left: 22px;
  top: 50px;
  width: 128px;
  height: 28px;
}
.screen-line.danger {
  top: 88px;
  width: 170px;
  background: #fecdd3;
}
.screen-card {
  right: 22px;
  top: 50px;
  width: 82px;
  height: 86px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}
.screen-flow {
  left: 34px;
  bottom: 28px;
  width: 54px;
  height: 18px;
  background: #dbeafe;
}
.screen-flow.b { left: 112px; background: #fef3c7; }
.screen-flow.c { left: 190px; background: #dcfce7; }
.quest-agent {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 108px;
  height: 138px;
  border-radius: 54px 54px 18px 18px;
  background:
    radial-gradient(circle at 50% 28%, #fde68a 0 22px, transparent 23px),
    linear-gradient(180deg, #60a5fa 38%, #2563eb 39%);
  box-shadow: 0 16px 32px rgba(15,23,42,.16);
}
.quest-agent:before,
.quest-agent:after {
  content: "";
  position: absolute;
  top: 38px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #172033;
}
.quest-agent:before { left: 42px; }
.quest-agent:after { right: 42px; }
.quest-badge-orbit {
  position: absolute;
  right: 98px;
  top: 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
.quest-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}
.quest-map,
.quest-report {
  position: sticky;
  top: 72px;
}
.quest-level-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.quest-static-index {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.quest-level {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}
.quest-level span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}
.quest-level b {
  font-size: 14px;
}
.quest-level em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}
.quest-level.done {
  border-color: #abefc6;
  background: #f0fdf4;
}
.quest-level.try {
  border-color: #fed7aa;
  background: #fff7ed;
}
.quest-level.open {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.quest-level.locked {
  cursor: not-allowed;
  opacity: .58;
}
.quest-level.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.quest-last {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  color: #667085;
  font-size: 13px;
}
.quest-stage {
  min-height: 680px;
}
.quest-stage-top,
.quest-task-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.quest-stage-top h2 {
  font-size: 30px;
}
.quest-timer {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 10px;
  font-weight: 900;
}
.quest-briefing {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.quest-coach-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}
.quest-briefing p {
  margin: 3px 0 0;
  color: #475467;
}
.quest-coach {
  color: #1d4ed8 !important;
  font-weight: 750;
}
.quest-lesson-card {
  border: 1px solid #c8d7f0;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.quest-lesson-head span {
  display: inline-flex;
  margin-bottom: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.quest-lesson-head strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}
.quest-lesson-head p {
  margin: 9px 0 0;
  color: #475467;
  line-height: 1.75;
}
.quest-lesson-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.quest-lesson-steps > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px 12px;
}
.quest-lesson-steps > div > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
}
.quest-lesson-steps > div > span {
  color: #344054;
  line-height: 1.65;
}
.quest-material-page {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.quest-material-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.quest-material-copy h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}
.quest-material-copy p {
  margin: 8px 0 0;
  color: #475467;
  line-height: 1.72;
}
.quest-material-bullets {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.quest-material-bullets div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #344054;
}
.quest-material-bullets span {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #2563eb;
}
.quest-material-memory {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #067647;
  padding: 10px 12px;
}
.quest-inline-check {
  margin-top: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
}
.quest-inline-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quest-inline-title b {
  color: #c2410c;
}
.quest-inline-title em {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: #c2410c;
  padding: 2px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.quest-inline-options {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}
.quest-inline-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}
.quest-inline-result {
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px;
}
.quest-inline-result p {
  margin: 5px 0 0;
}
.quest-inline-result span {
  font-weight: 850;
}
.quest-inline-result.ok {
  border: 1px solid #abefc6;
  background: #f0fdf4;
  color: #067647;
}
.quest-inline-result.bad {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b42318;
}
.quest-lesson-memory {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #067647;
  padding: 12px;
}
.quest-challenge-zone {
  margin-top: 14px;
}
.quest-task-card {
  border: 1px solid #c8d7f0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.quest-drill-card {
  margin-top: 14px;
  border: 1px solid #c8d7f0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.quest-drill-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.quest-drill-head span {
  display: inline-flex;
  margin-bottom: 5px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}
.quest-drill-head strong {
  display: block;
  font-size: 20px;
}
.quest-drill-head p {
  margin: 4px 0 0;
  color: #667085;
}
.quest-drill-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.quest-drill-question {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.quest-drill-question legend {
  padding: 0 4px;
  color: #172033;
  font-weight: 850;
}
.quest-drill-question em {
  margin-left: 6px;
  color: #2563eb;
  font-size: 12px;
  font-style: normal;
}
.quest-drill-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.quest-drill-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}
.quest-drill-review {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.quest-drill-summary,
.quest-drill-empty {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 10px 12px;
  font-weight: 900;
}
.quest-drill-result {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}
.quest-drill-result p {
  margin: 5px 0 0;
  color: #344054;
}
.quest-drill-result span {
  color: #172033;
  font-weight: 850;
}
.quest-drill-result.ok {
  border-color: #abefc6;
  background: #f0fdf4;
}
.quest-drill-result.bad {
  border-color: #fed7aa;
  background: #fff7ed;
}
.quest-task-head span {
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #067647;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.quest-task-head strong {
  flex: 1;
  font-size: 18px;
}
.quest-task-body {
  margin-top: 14px;
}
.quest-options,
.quest-match {
  display: grid;
  gap: 10px;
}
.quest-options label,
.quest-match label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  font-weight: 700;
}
.quest-match label {
  grid-template-columns: minmax(0, 1fr) 180px;
}
.quest-match select {
  min-height: 38px;
}
.quest-sequence-source,
.quest-sequence-picked {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quest-sequence-source button,
.quest-sequence-picked span {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 11px;
  font-weight: 800;
}
.quest-sequence-source button:disabled {
  opacity: .48;
}
.quest-sequence-picked {
  min-height: 52px;
  margin-top: 14px;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  padding: 12px;
  color: #667085;
}
.quest-hotspot-wrap {
  display: grid;
  gap: 10px;
}
.quest-order-card {
  position: relative;
  width: min(520px, 100%);
  min-height: 520px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 18px;
  box-shadow: inset 0 0 0 8px #f8fafc;
}
.order-top,
.order-row,
.order-product {
  border: 2px solid #fecaca;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  color: #344054;
  font-weight: 800;
}
.order-top span {
  color: #2563eb;
  font-size: 12px;
}
.order-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c7d2fe, #fed7aa);
}
.order-product p {
  display: inline-block;
  margin: 8px 0 4px;
  border: 2px solid #ef4444;
  padding: 2px 8px;
}
.order-product em {
  display: block;
  color: #667085;
  font-style: normal;
  font-size: 12px;
}
.order-row {
  margin-top: 24px;
}
.hotspot-target {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(37,99,235,.04);
}
.hotspot-target:hover,
.hotspot-target.hit {
  border-color: #22c55e;
  background: rgba(34,197,94,.14);
}
.hotspot-target.miss {
  border-color: #ef4444;
  background: rgba(239,68,68,.18);
}
.quest-hotspot-goal {
  width: min(520px, 100%);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 10px 12px;
  color: #1d4ed8;
  font-weight: 900;
}
.quest-feedback {
  margin-top: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px;
}
.quest-feedback p {
  margin: 4px 0 0;
}
.quest-feedback.ok {
  border-color: #abefc6;
  background: #f0fdf4;
  color: #067647;
}
.quest-feedback.bad {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.quest-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}
.quest-flow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}
.quest-flow-card {
  min-height: 460px;
  border: 1px solid #c8d7f0;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.quest-one-screen {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
}
.quest-one-screen .quest-material-index {
  width: 54px;
  height: 54px;
}
.quest-one-screen h3,
.quest-question-card h3 {
  margin: 8px 0 12px;
  color: #172033;
  font-size: 28px;
  line-height: 1.25;
}
.quest-question-card {
  display: grid;
  gap: 14px;
}
.quest-question-card.need-answer {
  border: 2px solid #f04438;
  border-radius: 8px;
  padding: 12px;
  background: #fffafa;
}
.quest-question-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.quest-question-head span,
.quest-question-head b {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.quest-choice-grid {
  display: grid;
  gap: 10px;
}
.quest-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 13px;
  color: #344054;
  font-weight: 750;
}
.quest-choice:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.quest-step-alert {
  margin-top: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b42318;
  padding: 11px 12px;
  font-weight: 900;
}
.quest-progress-strip {
  height: 10px;
  margin: 12px 0 16px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.quest-progress-strip span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.quest-feedback span {
  font-weight: 850;
}
.quest-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.quest-report-grid div {
  min-width: 0;
}
.quest-report-grid span {
  display: block;
  font-size: 12px;
}
.quest-log {
  display: grid;
  gap: 7px;
}
.quest-log-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: 13px;
}
.quest-log-row.ok {
  border-color: #abefc6;
  background: #f0fdf4;
}
.quest-log-row.bad {
  border-color: #fed7aa;
  background: #fff7ed;
}
.quest-save {
  width: 100%;
  margin-top: 14px;
}
.quest-save-state {
  min-height: 22px;
  margin-top: 8px;
  color: #475467;
  font-size: 13px;
}
.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .shell:not(:has(.course-deck)) {
    max-width: 100%;
    padding: 0 12px;
  }
  .entry-panel,
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    background: #fff;
  }
  .entry-panel:before,
  .shell:not(:has(.course-deck)) > .panel:first-child:before {
    opacity: .18;
    background-size: cover;
  }
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feedback-grid,
  .chat-form,
  .quest-hero,
  .quest-layout {
    grid-template-columns: 1fr;
  }
  .quest-map,
  .quest-report {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: auto;
    padding: 10px 12px;
    gap: 10px;
  }
  .topnav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .entry-panel {
    padding: 24px;
  }
  .entry-panel h1,
  .home-hero h1 {
    font-size: 32px;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    display: grid;
  }
  .msg {
    max-width: 100%;
  }
}

/* Customer service training deck v4: text-first reading layout */
.course-cover {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(360px, .46fr);
  gap: 28px;
  align-items: center;
  padding: 42px 46px;
  background: #ffffff;
}
.course-cover > div:first-child {
  grid-column: 1;
  max-width: 960px;
}
.course-cover h1 {
  max-width: 900px;
  font-size: 48px;
  line-height: 1.12;
}
.course-cover p {
  max-width: 900px;
  color: #344054;
}
.course-visual {
  position: relative;
  inset: auto;
  grid-column: 2;
  min-height: 0;
  z-index: 1;
  align-self: center;
}
.hero-scene-img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  opacity: .72;
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}
.cover-stats span {
  background: #f8fafc;
}
.lesson-page {
  background: #ffffff;
}
.lesson-copy {
  grid-template-columns: minmax(720px, 1fr) minmax(340px, .38fr);
  column-gap: 26px;
}
.lesson-copy h2,
.lesson-copy > p,
.simple-grid,
.step-list,
.compare-table,
.timeline-list,
.self-check-grid,
.dialogue-grid,
.do-dont-grid,
.tool-grid,
.metric-strip,
.redline-list,
.next-strip,
.case-card,
.answer-detail,
.script-box,
.mini-quiz {
  max-width: 980px;
}
.lesson-copy > .slide-visual {
  margin: 42px 0 28px;
  padding: 12px;
  align-self: start;
  box-shadow: 0 10px 22px rgba(15,23,42,.07);
}
.scene-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: .78;
}
.visual-caption {
  padding: 10px 12px;
}
.visual-caption b {
  font-size: 17px;
}
.visual-caption span {
  font-size: 13px;
}
.tool-detail-slide .lesson-copy {
  grid-template-columns: minmax(420px, .72fr) minmax(760px, 1.28fr);
  gap: 18px 42px;
  align-items: start;
}
.tool-detail-slide .lesson-copy h2,
.tool-detail-slide .lesson-copy > p,
.tool-detail-slide .step-list,
.tool-detail-slide .compare-table,
.tool-detail-slide .script-box {
  grid-column: 1;
  max-width: 660px;
}
.tool-detail-slide .lesson-copy > .eyebrow {
  grid-column: 1;
}
.tool-detail-slide .lesson-copy h2 {
  font-size: 32px;
  line-height: 1.18;
}
.tool-detail-slide .lesson-copy > p {
  font-size: 17px;
  line-height: 1.78;
}
.tool-shot-grid {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 10;
  gap: 12px;
  margin: 0;
  max-width: none;
  align-self: start;
}
.tool-shot-grid.two {
  grid-template-columns: minmax(0, 1fr);
}
.tool-shot-grid.focus {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.tool-shot-grid figure {
  margin: 0;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.tool-shot-grid img {
  width: 100%;
  height: clamp(260px, 25vw, 390px);
  display: block;
  object-fit: contain;
  object-position: left top;
  background: #fff;
}
.tool-shot-grid.focus img {
  height: clamp(500px, 44vw, 720px);
}
.tool-shot-grid figcaption {
  padding: 9px 12px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  background: #f8fafc;
}

@media (min-width: 1320px) {
  .lesson-copy {
    grid-template-columns: minmax(780px, 1fr) minmax(380px, .4fr);
  }
}

@media (max-width: 1220px) {
  .course-cover {
    grid-template-columns: 1fr;
  }
  .real-case-shots.two {
    grid-template-columns: 1fr;
  }
  .tool-shot-grid.two,
  .tool-shot-grid.focus {
    grid-template-columns: 1fr;
  }
  .tool-detail-slide .lesson-copy {
    grid-template-columns: 1fr;
  }
  .tool-shot-grid {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }
  .tool-shot-grid img,
  .tool-shot-grid.focus img {
    height: auto;
    max-height: 560px;
  }
  .course-visual {
    grid-column: 1;
    max-width: 520px;
  }
  .hero-scene-img {
    aspect-ratio: 16 / 9;
  }
}
