:root {
  color-scheme: light;
  --ink: #172b2a;
  --muted: #667573;
  --line: #dce3df;
  --soft-line: #edf1ef;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --forest: #16342d;
  --green: #23735c;
  --green-soft: #e5f1eb;
  --coral: #db684d;
  --coral-soft: #fae9e3;
  --yellow: #e8b84a;
  --yellow-soft: #fff5d4;
  --blue: #367aa0;
  --blue-soft: #e7f2f8;
  --danger: #bd4d45;
  --shadow: 0 12px 28px rgba(22, 52, 45, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-width: 320px;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(54, 122, 160, 0.24);
  outline-offset: 2px;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 19px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.demo-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37a875;
  box-shadow: 0 0 0 4px rgba(55, 168, 117, 0.12);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.icon-button:hover {
  background: var(--canvas);
}

.mobile-menu {
  display: none;
}

.workspace {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  padding: 24px 17px 18px;
  background: #fbfcfb;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.student-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 21px;
  border-bottom: 1px solid var(--soft-line);
}

.student-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: #7e5d0f;
  font-weight: 800;
}

.student-identity strong,
.student-identity span {
  display: block;
}

.student-identity strong {
  font-size: 14px;
}

.student-identity span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.session-nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.session-step {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.session-step:not(:disabled) {
  cursor: pointer;
}

.session-step:disabled {
  color: #9aa5a2;
}

.session-step.active {
  background: var(--green-soft);
  color: var(--forest);
}

.session-step.done .step-index {
  background: var(--green);
  color: white;
}

.step-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.step-index svg {
  width: 15px;
  height: 15px;
}

.session-step strong,
.session-step small {
  display: block;
}

.session-step strong {
  font-size: 13px;
  font-weight: 700;
}

.session-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-note {
  margin-top: auto;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.note-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.note-title svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.main-stage {
  min-width: 0;
  padding: 34px 34px 54px;
}

.content-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-heading h1 {
  max-width: 680px;
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
}

.page-heading p {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.session-time {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.session-time svg {
  width: 15px;
  height: 15px;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--soft-line);
}

.panel-header h2,
.panel-header p {
  margin: 0;
}

.panel-header h2 {
  font-size: 16px;
}

.panel-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.panel-body {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  color: #3f504e;
  font-size: 12px;
  font-weight: 700;
}

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

.field input {
  height: 42px;
  padding: 0 12px;
}

.field select {
  height: 42px;
  padding: 0 34px 0 12px;
}

.bank-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bank-select-grid label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.bank-select-grid select {
  display: block;
  margin-top: 6px;
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-icon {
  width: 100%;
  aspect-ratio: 1.3;
  display: grid;
  place-items: center;
  background: #eef4f1;
  color: var(--forest);
}

.activity-icon svg {
  width: 42%;
  height: 42%;
  stroke-width: 1.55;
}

.interaction-toolbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.interaction-toolbar button {
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.interaction-toolbar button:hover,
.interaction-toolbar button.active {
  border-color: #9fbdb1;
  background: var(--green-soft);
  color: var(--forest);
}

.interaction-toolbar svg {
  width: 15px;
  height: 15px;
}

.prompt-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.prompt-support > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #d8e8df;
  border-radius: 6px;
  background: #f4faf7;
  font-size: 11px;
  line-height: 1.55;
}

.prompt-support strong { color: var(--green); }

.paused-banner {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 16px 38px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 11px;
}

.paused-banner strong { color: var(--ink); font-size: 13px; }
.chat-bubble.skipped { color: var(--muted); font-style: italic; }

.report-grid-detailed .report-wide { grid-column: 1 / -1; }

.evidence-list { display: grid; gap: 10px; }
.evidence-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); gap: 14px; padding: 12px; border: 1px solid var(--soft-line); border-radius: 7px; background: #fafcfb; }
.evidence-item strong,.evidence-item p,.evidence-item blockquote { margin: 0; }
.evidence-item strong { font-size: 12px; }
.evidence-item p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.evidence-item blockquote { padding: 9px 11px; border-left: 3px solid var(--green); background: white; color: #40514f; font-size: 11px; line-height: 1.6; }

.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.version-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fafcfb; }
.version-grid > div:last-child { border-color: #cfe2d8; background: var(--green-soft); }
.version-grid span { color: var(--muted); font-size: 10px; font-weight: 700; }
.version-grid p { margin: 7px 0 0; font-size: 12px; line-height: 1.7; }

.recommendation-grid { display: grid; gap: 9px; }
.recommendation-grid article { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 12px; border: 1px solid var(--soft-line); border-radius: 7px; }
.recommendation-grid article > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.recommendation-grid strong,.recommendation-grid p { margin: 0; }
.recommendation-grid strong { font-size: 12px; }
.recommendation-grid p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.field input:hover,
.answer-textarea:hover {
  border-color: #aebbb7;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
}

.segmented button {
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.segmented button.active {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 1px 4px rgba(22, 52, 45, 0.1);
  font-weight: 700;
}

.mode-list {
  display: grid;
  gap: 9px;
}

.mode-option {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.mode-option.active {
  border-color: var(--green);
  background: #f7fbf8;
}

.mode-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
}

.mode-option:nth-child(2) .mode-icon {
  background: var(--yellow-soft);
  color: #8b6613;
}

.mode-option:nth-child(3) .mode-icon {
  background: var(--coral-soft);
  color: var(--coral);
}

.mode-copy strong,
.mode-copy small {
  display: block;
}

.mode-copy strong {
  font-size: 13px;
}

.mode-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.radio-dot {
  width: 17px;
  height: 17px;
  border: 1px solid #aebbb7;
  border-radius: 50%;
}

.mode-option.active .radio-dot {
  border: 5px solid var(--green);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.consent-row a {
  color: var(--green);
  text-decoration: underline;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button.primary {
  background: var(--forest);
  color: white;
}

.button.primary:hover:not(:disabled) {
  background: #21483e;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover:not(:disabled) {
  background: var(--canvas);
}

.button.ghost {
  min-height: 36px;
  padding: 0 10px;
  background: transparent;
  color: var(--green);
}

.button.wide {
  width: 100%;
}

.setup-side {
  overflow: hidden;
}

.setup-side-visual {
  height: 178px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.coach-portrait {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  box-shadow: 0 10px 24px rgba(22, 52, 45, 0.2);
}

.coach-portrait svg {
  width: 39px;
  height: 39px;
}

.session-agenda {
  padding: 18px 20px 20px;
}

.session-agenda h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 12px;
}

.agenda-item:last-child {
  border-bottom: 0;
}

.agenda-item svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.agenda-item span:last-child {
  color: var(--muted);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.conversation-panel {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--soft-line);
}

.examiner-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.examiner-avatar {
  position: relative;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.examiner-avatar.partner {
  background: var(--yellow-soft);
  color: #89620d;
}

.online-dot {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: #39a874;
}

.examiner-profile strong,
.examiner-profile span {
  display: block;
}

.examiner-profile strong {
  font-size: 13px;
}

.examiner-profile span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.part-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--coral-soft);
  color: #9a4432;
  font-size: 11px;
  font-weight: 800;
}

.conversation-scroll {
  flex: 1;
  padding: 22px;
  background: #fbfcfb;
  overflow-y: auto;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-bottom: 15px;
}

.chat-row.student {
  justify-content: flex-end;
}

.chat-avatar {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.chat-bubble {
  width: fit-content;
  max-width: min(84%, 610px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  background: white;
  font-size: 14px;
  line-height: 1.65;
}

.chat-row.student .chat-bubble {
  border-color: #cfe1d7;
  border-radius: 8px 8px 2px 8px;
  background: var(--green-soft);
}

.chat-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.picture-task {
  margin: 5px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.picture-task-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.picture-task-title strong {
  font-size: 13px;
}

.picture-task-title span {
  color: var(--muted);
  font-size: 10px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.activity-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  overflow: hidden;
  cursor: pointer;
}

.activity-card:hover,
.activity-card.selected {
  border-color: var(--green);
}

.activity-card.selected {
  box-shadow: inset 0 0 0 1px var(--green);
}

.activity-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
}

.activity-card span {
  display: block;
  padding: 7px 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.composer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--soft-line);
  background: white;
}

.answer-textarea {
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.6;
}

.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.tool-group,
.submit-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.record-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(219, 104, 77, 0.22);
}

.record-button.recording {
  animation: recordPulse 1.1s infinite;
}

@keyframes recordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(219, 104, 77, 0.22); }
  50% { box-shadow: 0 0 0 9px rgba(219, 104, 77, 0.13); }
}

.record-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.waveform {
  width: 37px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.waveform i {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--coral);
}

.recording + .record-status .waveform i,
.waveform.active i {
  animation: wave 0.8s ease-in-out infinite alternate;
}

.waveform i:nth-child(2) { animation-delay: 0.1s; }
.waveform i:nth-child(3) { animation-delay: 0.2s; }
.waveform i:nth-child(4) { animation-delay: 0.3s; }
.waveform i:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  from { height: 4px; }
  to { height: 17px; }
}

.coach-panel {
  position: sticky;
  top: 91px;
  overflow: hidden;
}

.coach-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--soft-line);
}

.coach-tabs button {
  height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: white;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.coach-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--forest);
  font-weight: 800;
}

.coach-tab-content {
  min-height: 440px;
  padding: 17px;
}

.tip-block {
  margin-bottom: 18px;
}

.tip-block:last-child {
  margin-bottom: 0;
}

.tip-block h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 12px;
}

.tip-block h3 svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.phrase-list,
.teacher-list {
  display: grid;
  gap: 7px;
}

.phrase-chip {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #314542;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.phrase-chip:hover {
  border-color: var(--green);
  background: #f8fbf9;
}

.teacher-list-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.teacher-list-item span:first-child {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.feedback-box {
  margin: 10px 0 18px 38px;
  padding: 15px;
  border-left: 3px solid var(--green);
  background: #f2f8f5;
}

.feedback-box h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8e8df;
  border-radius: 6px;
  background: white;
}

.feedback-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
}

.feedback-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.retry-highlight {
  padding: 18px;
  border: 1px solid #eedda9;
  border-radius: 8px;
  background: var(--yellow-soft);
}

.retry-highlight strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.retry-highlight p {
  margin: 0;
  color: #67552b;
  font-size: 13px;
  line-height: 1.7;
}

.report-summary {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.score-overview {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--forest);
  color: white;
  text-align: center;
}

.score-ring {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 9px solid rgba(255, 255, 255, 0.2);
  border-top-color: #6fd0a7;
  border-right-color: #6fd0a7;
  border-radius: 50%;
}

.score-ring strong,
.score-ring span {
  display: block;
}

.score-ring strong {
  font-size: 30px;
}

.score-ring span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.score-overview p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.skill-overview {
  padding: 24px;
}

.skill-overview h2 {
  margin: 0 0 18px;
  font-size: 16px;
}

.skill-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 36px;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-name strong,
.skill-name span {
  display: block;
}

.skill-name strong {
  font-size: 12px;
}

.skill-name span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.skill-bar {
  height: 8px;
  border-radius: 5px;
  background: var(--soft-line);
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--green);
}

.skill-score {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.report-section {
  padding: 20px;
}

.report-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  font-size: 14px;
}

.report-section h2 svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.insight-list {
  display: grid;
  gap: 12px;
}

.insight {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
}

.insight-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.insight.warn .insight-icon {
  background: var(--coral-soft);
  color: var(--coral);
}

.insight-icon svg {
  width: 13px;
  height: 13px;
}

.insight strong,
.insight p {
  margin: 0;
}

.insight strong {
  display: block;
  font-size: 12px;
}

.insight p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.correction {
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--soft-line);
}

.correction:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.correction-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.correction p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.correction .before {
  color: var(--danger);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.correction .after {
  color: var(--green);
  font-weight: 700;
}

.teacher-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px solid #d4e5dc;
  border-radius: 8px;
  background: var(--green-soft);
}

.teacher-callout strong,
.teacher-callout p {
  margin: 0;
}

.teacher-callout strong {
  font-size: 13px;
}

.teacher-callout p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.report-disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 0.8s infinite alternate;
}

.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot {
  to { transform: translateY(-4px); opacity: 0.45; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--forest);
  color: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .setup-layout,
  .practice-layout {
    grid-template-columns: 1fr;
  }

  .setup-side {
    display: none;
  }

  .coach-panel {
    position: static;
  }

  .coach-tab-content {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 60px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .demo-status {
    display: none;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .workspace {
    min-height: calc(100vh - 60px);
    grid-template-columns: 1fr;
  }

  .bank-select-grid,
  .prompt-support,
  .version-grid,
  .evidence-item {
    grid-template-columns: 1fr;
  }

  .interaction-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .interaction-toolbar button { height: 40px; }

  .heading-actions { align-self: flex-start; }

  .report-grid-detailed .report-wide { grid-column: auto; }

  .sidebar {
    position: fixed;
    top: 60px;
    right: 0;
    left: auto;
    z-index: 50;
    width: min(82vw, 286px);
    height: calc(100vh - 60px);
    border-right: 0;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 34px rgba(22, 52, 45, 0.12);
    transform: translateX(105%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-stage {
    padding: 22px 14px 42px;
  }

  .page-heading {
    display: block;
    margin-bottom: 18px;
  }

  .page-heading h1 {
    font-size: 22px;
  }

  .page-heading p {
    font-size: 13px;
  }

  .session-time {
    margin-top: 12px;
  }

  .panel-header,
  .panel-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .form-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-row .button {
    width: 100%;
  }

  .conversation-panel {
    min-height: calc(100vh - 154px);
  }

  .conversation-scroll {
    padding: 16px 12px;
  }

  .chat-bubble {
    max-width: 88%;
    font-size: 13px;
  }

  .activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .composer {
    padding: 12px;
  }

  .composer-tools {
    align-items: flex-end;
  }

  .submit-group {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .submit-group .button {
    min-height: 36px;
  }

  .record-status > span:last-child {
    display: none;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-box {
    margin-left: 0;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .score-overview {
    min-height: 196px;
  }

  .skill-row {
    grid-template-columns: 112px minmax(90px, 1fr) 28px;
    gap: 8px;
  }

  .teacher-callout {
    display: block;
  }

  .teacher-callout .button {
    width: 100%;
    margin-top: 13px;
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented button {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
