:root {
  --paper: #f5f4ef;
  --surface: #ffffff;
  --ink: #1e2629;
  --muted: #7b8586;
  --line: #e5e7e2;
  --teal: #176f6a;
  --teal-dark: #11554f;
  --teal-soft: #e2f0ed;
  --orange: #be6b2c;
  --orange-soft: #fff0e4;
  --shadow: 0 10px 30px rgba(33, 42, 39, .06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button { font: inherit; cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex: 0 0 250px; padding: 28px 18px 20px; background: #eff0eb; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.workspace-label, .eyebrow { font-size: 10px; font-weight: 800; color: #9ca4a1; letter-spacing: .12em; text-transform: uppercase; }
.workspace-label { padding: 0 12px 10px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { border: 0; background: transparent; color: #65706f; display: flex; align-items: center; gap: 11px; border-radius: 8px; padding: 11px 12px; text-align: left; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.nav-item.active { color: var(--teal-dark); background: var(--teal-soft); font-weight: 700; }
.nav-item[data-view="tracks"] .nav-symbol { font-size: 16px; }
.nav-symbol { width: 18px; text-align: center; font-size: 15px; }
.nav-count { margin-left: auto; color: var(--teal); font-size: 11px; }
.sidebar-bottom { margin-top: auto; }
.sync-card { padding: 13px; border: 1px solid #d9ddd7; border-radius: 9px; background: rgba(255,255,255,.55); display: grid; gap: 7px; font-size: 11px; color: var(--muted); line-height: 1.35; }
.sync-card strong { color: var(--ink); font-size: 12px; }
.sync-top { display: flex; align-items: center; gap: 7px; color: var(--teal); font-size: 11px; font-weight: 700; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #44a37c; box-shadow: 0 0 0 3px rgba(68,163,124,.13); }
.user-row { margin-top: 18px; display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #d6e6e1; color: var(--teal-dark); display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.user-row strong, .user-row span { display: block; font-size: 11px; }
.user-row span { color: var(--muted); margin-top: 3px; font-size: 10px; }
.quiet-button { border: 0; background: transparent; color: var(--muted); padding: 6px; margin-left: auto; }
.main-content { width: 100%; min-width: 0; }
.topbar { height: 72px; padding: 0 45px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.26); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.header-brand { display: inline-flex; flex-shrink: 0; }
.header-brand img { display: block; width: 166px; height: auto; border-radius: 3px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.slash { color: #b7bfbc; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.crm-badge { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--teal-dark); }
.account-chip { border: 1px solid #cfe1dc; border-radius: 20px; padding: 7px 11px; color: var(--teal-dark); background: var(--teal-soft); font-size: 11px; font-weight: 750; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip.signed-in { background: white; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 17px; }
.view { display: none; max-width: 1380px; padding: 43px 45px 60px; margin: 0 auto; }
.view.active-view { display: block; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.view-heading.compact { align-items: center; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.035em; line-height: 1.12; }
h2 { margin-bottom: 7px; font-size: 17px; letter-spacing: -.015em; }
h3 { font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.eyebrow { margin-bottom: 10px; }
.primary-button, .secondary-button, .filter-button { border-radius: 7px; padding: 11px 15px; border: 1px solid var(--teal); display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.primary-button { background: var(--teal); color: #fff; }
.primary-button:hover { background: var(--teal-dark); }
.secondary-button { background: white; color: var(--teal-dark); }
.wide { width: 100%; justify-content: center; margin-top: 12px; }
.text-button { border: 0; color: var(--teal); background: transparent; font-size: 12px; font-weight: 750; padding: 5px 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 41px; }
.metric-card { min-height: 125px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.metric-label { color: var(--muted); font-size: 11px; margin-bottom: 13px; }
.metric-card strong { font-size: 23px; letter-spacing: -.04em; margin-bottom: auto; }
.metric-trend { color: var(--muted); font-size: 10px; }
.metric-trend.positive { color: var(--teal); }
.metric-trend.attention { color: var(--orange); }
.section-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 15px; }
.section-row h2 { margin-bottom: 4px; }
.section-row p { margin-bottom: 0; }
.continue-panel { min-height: 156px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; display: flex; position: relative; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.case-accent { width: 6px; flex: 0 0 6px; background: var(--orange); }
.continue-main { padding: 21px 26px; max-width: 760px; }
.case-meta { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 10px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 750; }
.pill.warm { color: #9c5d27; background: var(--orange-soft); }
.pill.green { color: var(--teal-dark); background: var(--teal-soft); }
.continue-main h2 { font-size: 19px; margin-bottom: 6px; }
.continue-main p { color: #667170; font-size: 12px; line-height: 1.5; margin-bottom: 17px; }
.progress-line { height: 4px; background: #edf0ed; border-radius: 3px; max-width: 330px; overflow: hidden; }
.progress-line span { height: 100%; display: block; border-radius: inherit; background: var(--teal); }
.continue-main small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; }
.round-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cfe1dc; background: var(--teal-soft); color: var(--teal-dark); font-size: 20px; position: absolute; right: 25px; top: 50%; transform: translateY(-50%); }
.recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tracks-row { margin-top: 40px; }
.track-preview-grid, .track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.track-card { border: 1px solid #cfe1dc; border-radius: 9px; padding: 22px; background: #e9f3ef; box-shadow: var(--shadow); }
.track-card.seller { border-color: #ead6c4; background: #fbf0e7; }
.track-card.compact { padding: 18px; min-height: 230px; }
.track-card-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.track-overline { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.seller .track-overline { color: var(--orange); }
.track-card h2 { margin: 8px 0 0; font-size: 20px; }
.compact h2 { font-size: 16px; }
.track-progress-number { color: var(--teal-dark); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.seller .track-progress-number { color: #9a5c2d; }
.track-goal { color: var(--teal-dark); font-size: 12px; font-weight: 750; margin: 17px 0 7px; }
.seller .track-goal { color: #92552b; }
.track-summary { color: #5c6c68; font-size: 11px; line-height: 1.5; min-height: 34px; margin-bottom: 21px; }
.track-stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.track-stage { position: relative; text-align: center; color: #a0aaa6; }
.track-stage:not(:last-child)::after { content: ""; height: 2px; position: absolute; left: 56%; right: -48%; top: 10px; background: #d5dfda; z-index: 0; }
.track-stage span { position: relative; z-index: 1; width: 21px; height: 21px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 50%; background: #dbe6e1; color: #8b9994; font-size: 9px; font-weight: 800; }
.track-stage small { display: block; font-size: 9px; line-height: 1.25; }
.track-stage.done, .track-stage.current { color: var(--teal-dark); }
.seller .track-stage.done, .seller .track-stage.current { color: #92552b; }
.track-stage.done span, .track-stage.current span { background: var(--teal); color: white; }
.seller .track-stage.done span, .seller .track-stage.current span { background: var(--orange); }
.track-stage.done:not(:last-child)::after, .track-stage.current:not(:last-child)::after { background: var(--teal); }
.seller .track-stage.done:not(:last-child)::after, .seller .track-stage.current:not(:last-child)::after { background: var(--orange); }
.track-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; color: #70807a; font-size: 10px; }
.track-card-footer .case-open { background: white; }
.track-mode-badge { color: var(--teal-dark); background: var(--teal-soft); border-radius: 20px; padding: 8px 11px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.track-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 24px 0 0; margin-top: 34px; border-top: 1px solid var(--line); }
.track-principles h2 { font-size: 20px; margin-top: 19px; }
.track-principles p { color: #5e6a68; font-size: 12px; line-height: 1.65; max-width: 540px; }
.track-switcher { display: inline-flex; gap: 4px; padding: 4px; background: #e9ece8; border-radius: 8px; margin: -4px 0 18px; }
.track-tab { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 8px 14px; font-size: 11px; font-weight: 750; }
.track-tab.active { background: white; color: var(--teal-dark); box-shadow: 0 2px 6px rgba(35, 48, 43, .07); }
.track-tab.seller.active { color: #92552b; }
.recommend-card, .case-list-card, .skill-panel, .coach-note, .history-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.recommend-card { padding: 18px; min-height: 162px; display: flex; flex-direction: column; }
.recommend-card .card-top { display: flex; justify-content: space-between; margin-bottom: 24px; }
.recommend-card h3 { margin-bottom: 8px; line-height: 1.3; }
.recommend-card p { margin-bottom: auto; color: var(--muted); font-size: 11px; line-height: 1.45; }
.card-link { color: var(--teal); font-size: 11px; font-weight: 750; }
.filter-button { color: var(--ink); border-color: var(--line); background: var(--surface); }
.filter-button span { color: var(--muted); font-size: 14px; }
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -3px 0 22px; }
.filter-chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 20px; padding: 7px 12px; font-size: 11px; }
.filter-chip.active, .filter-chip:hover { color: var(--teal-dark); border-color: #b9d6cf; background: var(--teal-soft); }
.seller-focus-banner { display: flex; width: 100%; justify-content: space-between; gap: 24px; align-items: center; margin: -8px 0 24px; padding: 20px 22px; border: 1px solid #ead4be; border-radius: 9px; background: #fff8f0; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.seller-focus-banner:hover, .seller-focus-banner:focus-visible { border-color: #d7ad88; background: #fff5e9; }
.seller-focus-banner strong { display: block; color: #7f4d2b; font-size: 19px; margin: 7px 0 6px; }
.seller-focus-description { display: block; color: #78675d; font-size: 12px; line-height: 1.55; max-width: 720px; }
.seller-focus-banner .eyebrow { display: block; color: #a2673b; margin: 0; }
.seller-focus-arrow { color: var(--orange); font-size: 28px; font-weight: 300; line-height: 1; padding: 12px; transition: transform .15s ease; }
.seller-focus-banner:hover .seller-focus-arrow, .seller-focus-banner:focus-visible .seller-focus-arrow { color: #7f4d2b; transform: translateX(3px); }
.call-coach { display: grid; grid-template-columns: minmax(240px, 1.05fr) minmax(360px, 1.6fr) auto; gap: 22px; align-items: center; margin: 0 0 24px; padding: 18px 2px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.call-coach-heading h2 { color: var(--teal-dark); font-size: 16px; margin: 6px 0; }
.call-coach-heading p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
.call-coach-steps { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 9px 18px; }
.call-coach-steps div { display: flex; gap: 9px; align-items: baseline; color: var(--ink); font-size: 11px; }
.call-coach-steps b { color: var(--orange); font-size: 10px; letter-spacing: .04em; }
.call-coach-action { white-space: nowrap; }
.cases-list { display: grid; gap: 10px; }
.case-list-card { padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.case-list-card:hover { border-color: #b8d1cb; }
.case-list-card .case-meta { margin-bottom: 10px; }
.case-list-card h2 { font-size: 16px; }
.case-list-card p { margin-bottom: 12px; max-width: 680px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag { color: #65706f; background: #f0f2ef; border-radius: 4px; padding: 5px 7px; font-size: 10px; }
.case-open { border: 1px solid #c9ded8; border-radius: 7px; background: var(--teal-soft); color: var(--teal-dark); padding: 10px 12px; font-size: 11px; font-weight: 750; }
.progress-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-bottom: 12px; }
.skill-panel, .coach-note, .history-panel { padding: 22px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 26px; }
.panel-heading h2 { margin-bottom: 4px; }
.panel-heading p { margin-bottom: 0; }
.score-badge { color: var(--teal-dark); background: var(--teal-soft); border-radius: 20px; padding: 7px 10px; font-size: 11px; font-weight: 800; }
.skill-row { display: grid; grid-template-columns: 180px 1fr 40px; align-items: center; gap: 16px; margin: 20px 0; }
.skill-row strong, .skill-row span { display: block; }
.skill-row strong { font-size: 12px; }
.skill-row span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.skill-row b { font-size: 12px; text-align: right; }
.skill-bar { height: 6px; background: #edf0ed; border-radius: 4px; overflow: hidden; }
.skill-bar i { height: 100%; display: block; background: var(--teal); border-radius: inherit; }
.skill-bar i.orange { background: var(--orange); }
.coach-note { background: var(--teal); color: white; display: flex; flex-direction: column; align-items: flex-start; }
.coach-note .note-kicker { color: #a9d4ca; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.coach-note h2 { font-size: 22px; line-height: 1.2; margin-top: 30px; }
.coach-note p { color: #d8eae5; font-size: 12px; line-height: 1.55; margin-bottom: 27px; }
.coach-note .secondary-button { margin-top: auto; color: var(--teal-dark); }
.history-panel { padding-bottom: 8px; }
.history-row { display: grid; grid-template-columns: 150px 1fr 50px; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; }
.history-date { color: var(--muted); font-size: 10px; }
.history-score { text-align: right; font-weight: 800; }
.history-score.good { color: var(--teal); }
.history-score.mid { color: var(--orange); }
.simulation-view { max-width: none; padding-top: 24px; }
.simulation-top { display: flex; align-items: center; gap: 28px; margin-bottom: 23px; }
.back-button { border: 0; background: transparent; color: var(--teal); font-size: 12px; font-weight: 750; padding: 5px 0; }
.simulation-title { flex: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.simulation-title h1 { font-size: 22px; margin: 0; }
.track-label { color: var(--teal-dark); background: var(--teal-soft); border-radius: 4px; padding: 5px 7px; font-size: 10px; font-weight: 800; }
.track-label::before { content: ""; }
.sim-id { color: var(--muted); font-size: 10px; }
.simulation-progress { width: 150px; color: var(--muted); font-size: 10px; }
.mini-progress { height: 4px; background: var(--line); margin-top: 9px; border-radius: 3px; overflow: hidden; }
.mini-progress i { display: block; width: 33%; height: 100%; background: var(--teal); }
.simulation-grid { display: grid; grid-template-columns: 255px minmax(430px, 1fr) 280px; gap: 12px; align-items: start; }
.case-context, .conversation-panel, .feedback-panel { min-height: 620px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.case-context { padding: 19px; }
.context-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.context-heading .eyebrow { margin: 0; }
.source-tag { color: var(--teal-dark); border: 1px solid #c9ded8; border-radius: 4px; padding: 4px 6px; font-size: 9px; font-weight: 800; }
.case-context h2 { font-size: 17px; margin-bottom: 3px; }
.role-label { color: var(--muted); font-size: 11px; margin-bottom: 27px; }
.context-block { border-top: 1px solid var(--line); padding: 13px 0; }
.context-block span, .property-card span, .skill-list > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.context-block strong { font-size: 12px; line-height: 1.4; }
.context-block p { font-size: 11px; line-height: 1.45; color: #5d6967; margin: 0; }
.property-card { padding: 13px; background: #f4f7f4; border-radius: 7px; margin: 8px 0 20px; }
.property-card strong, .property-card b, .property-card small { display: block; }
.property-card strong { font-size: 12px; margin-bottom: 8px; }
.property-card b { color: var(--teal); font-size: 14px; }
.property-card small { color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 5px; }
.skill-list { border-top: 1px solid var(--line); padding-top: 15px; }
.skill-list div { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-list .skill-tag { background: var(--orange-soft); color: #9c5d27; }
.conversation-panel { padding: 22px 25px; display: flex; flex-direction: column; }
.conversation-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.conversation-header h2 { font-size: 18px; max-width: 680px; line-height: 1.3; }
.conversation-header .eyebrow { margin-bottom: 9px; }
.transcript { padding: 22px 0; display: grid; gap: 13px; }
.message { display: flex; gap: 10px; max-width: 83%; }
.message.agent { margin-left: auto; flex-direction: row-reverse; }
.speaker-dot { flex: 0 0 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--teal-dark); background: var(--teal-soft); }
.message.agent .speaker-dot { color: #8d5529; background: var(--orange-soft); }
.message-body { padding: 11px 13px; background: #f3f5f2; border-radius: 4px 10px 10px 10px; font-size: 12px; color: #45514f; line-height: 1.5; }
.message.agent .message-body { background: var(--teal-soft); border-radius: 10px 4px 10px 10px; }
.answer-area { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.turn-actions { margin: 12px 0; padding: 16px; border: 1px solid #cfe1dc; border-radius: 8px; background: var(--teal-soft); }
.turn-actions strong { display: block; font-size: 14px; color: var(--teal-dark); }
.turn-actions p { font-size: 12px; line-height: 1.6; margin: 8px 0 12px; }
.turn-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.turn-action-buttons button { white-space: normal; justify-content: center; flex: 1 1 180px; }
.answer-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 750; margin-bottom: 10px; }
.answer-label .muted { font-size: 10px; font-weight: 400; }
.answer-options { display: grid; gap: 8px; }
.free-answer-row { display: flex; gap: 9px; align-items: stretch; margin-bottom: 8px; }
.free-answer-row textarea { flex: 1; min-width: 0; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.45; outline: none; }
.free-answer-row textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,111,106,.1); }
.record-button { min-width: 94px; border: 1px solid #cfe1dc; border-radius: 6px; background: var(--teal-soft); color: var(--teal-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 10px; }
.record-button span { font-size: 18px; line-height: 1; color: var(--teal); }
.record-button.recording { border-color: #db9e78; background: var(--orange-soft); color: #94582c; }
.record-button.recording span { color: var(--orange); animation: pulse-record 1s infinite; }
@keyframes pulse-record { 50% { opacity: .35; } }
.record-status { min-height: 17px; color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.answer-actions { display: flex; gap: 8px; margin-top: 12px; }
.answer-actions .primary-button, .answer-actions .secondary-button { flex: 1; justify-content: center; margin: 0; }
.answer-actions .secondary-button { font-size: 10px; padding-left: 8px; padding-right: 8px; }
.analysis-model { color: #a0aaa6; font-size: 9px; border-top: 1px solid var(--line); padding-top: 10px; }
.answer-option { border: 1px solid var(--line); background: #fff; color: #475452; text-align: left; padding: 11px 12px; border-radius: 6px; font-size: 11px; line-height: 1.4; display: flex; gap: 10px; }
.answer-option:hover, .answer-option.selected { border-color: var(--teal); background: #f2f8f6; }
.option-mark { width: 18px; height: 18px; border: 1px solid #cdd7d3; border-radius: 50%; display: grid; place-items: center; flex: 0 0 18px; color: transparent; font-size: 11px; }
.answer-option.selected .option-mark { border-color: var(--teal); background: var(--teal); color: white; }
.feedback-panel { padding: 23px; }
.feedback-empty { padding-top: 135px; text-align: center; color: var(--muted); }
.feedback-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; margin: 0 auto 15px; }
.feedback-empty h3 { color: var(--ink); margin-bottom: 7px; }
.feedback-empty p { font-size: 11px; line-height: 1.5; }
.feedback-panel.has-feedback { background: #f9fbf9; }
.feedback-result { display: grid; gap: 15px; }
.feedback-result .result-title { display: flex; align-items: center; justify-content: space-between; }
.result-title h3 { margin: 0; }
.result-score { font-size: 19px; font-weight: 800; color: var(--teal); }
.result-score.bad { color: var(--orange); }
.feedback-copy { color: #53605e; font-size: 11px; line-height: 1.55; }
.feedback-label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; }
.coach-box { padding: 13px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-size: 11px; line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.result-action { margin-top: 3px; border: 0; background: transparent; color: var(--teal); text-align: left; padding: 0; font-size: 11px; font-weight: 750; }
.toast { position: fixed; right: 25px; bottom: 25px; padding: 12px 16px; border-radius: 7px; background: var(--ink); color: white; font-size: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

[hidden] { display: none !important; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #7ab6a9; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mobile-navigation { display: none; }
.load-error { margin: 18px 35px; padding: 15px; border: 1px solid #e3b793; border-radius: 8px; background: var(--orange-soft); font-size: 13px; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 228px; flex-basis: 228px; }
.nav-list { gap: 6px; }
.nav-item { font-size: 12px; padding: 12px 10px; }
.crm-badge.fallback { color: #987342; }
.view { max-width: 1500px; }
.view-heading .muted { max-width: 700px; margin-bottom: 0; }
.continue-main { padding-right: 75px; max-width: none; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.level-card { display: flex; align-items: start; gap: 14px; padding: 23px 18px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.level-card:hover { border-color: #9fbeb4; box-shadow: var(--shadow); transform: translateY(-2px); }
.level-number { color: #b0c5bb; font-size: 25px; font-weight: 600; }
.rank-2 .level-number { color: #cdb391; }
.rank-3 .level-number { color: #a4a6c4; }
.level-card small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.level-card strong { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 9px; }
.level-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.level-card > b { margin-left: auto; color: var(--teal); }
.track-stages { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.track-card h2 { margin-bottom: 20px; }
.track-summary { font-size: 12px; }
.track-stage small { overflow-wrap: anywhere; }
.curriculum-levels { margin-top: 25px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
.curriculum-level { display: grid; grid-template-columns: .85fr 1.15fr; padding: 26px; gap: 30px; border-bottom: 1px solid var(--line); }
.curriculum-level:last-child { border-bottom: 0; }
.curriculum-level .eyebrow { font-size: 9px; }
.curriculum-level h2 { margin-top: 10px; }
.curriculum-level .muted { font-size: 12px; margin-bottom: 0; }
.curriculum-link { display: flex; width: 100%; justify-content: space-between; gap: 18px; text-align: left; border: 0; background: #f5f7f4; border-radius: 6px; padding: 14px; color: var(--teal-dark); margin: 0 0 8px; font-size: 12px; }
.curriculum-link small { white-space: nowrap; color: var(--muted); }
.campaign-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.campaign-toolbar .track-switcher { margin: 0; }
.campaign-tab { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 8px 13px; font-size: 12px; }
.campaign-tab.active { background: white; color: var(--teal-dark); box-shadow: 0 2px 6px #23302b12; }
.level-switcher { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.level-tab { border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); padding: 8px 11px; font-size: 11px; }
.level-tab.active { background: var(--teal-soft); border-color: #a8cfc3; color: var(--teal-dark); }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.campaign-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-top: 3px solid #76a89a; border-radius: 10px; background: white; box-shadow: var(--shadow); }
.campaign-card.seller { border-top-color: #c7976d; }
.campaign-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 25px; }
.campaign-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.pill.neutral { background: #f0f2ee; color: #7a8480; }
.campaign-duration { color: var(--muted); font-size: 10px; white-space: nowrap; }
.campaign-card-heading h2 { font-size: 20px; line-height: 1.3; margin: 9px 0 12px; }
.campaign-summary { color: #697572; font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
.campaign-card .skill-tags { margin-bottom: auto; }
.campaign-stages { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0; }
.campaign-stage { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #e0e7e0; border-radius: 50%; background: #f6f8f4; color: #8f9b92; font-size: 10px; }
.campaign-stage.done { background: var(--teal); color: white; border-color: var(--teal); }
.campaign-card-footer { padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; align-items: center; }
.campaign-card-footer > span { font-size: 11px; color: var(--teal-dark); }
.campaign-card-footer small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.empty-state { padding: 30px; text-align: center; font-size: 13px; color: var(--muted); border-radius: 9px; line-height: 1.6; }
.legal-caption { border-left: 3px solid #d6bea0; padding: 12px 18px; background: #f0ece3; color: #7c715f; font-size: 12px; line-height: 1.7; margin-bottom: 25px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.knowledge-card { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 25px; }
.knowledge-card > .eyebrow { font-size: 9px; color: #9b7f5b; }
.knowledge-card h2 { margin: 12px 0; font-size: 19px; line-height: 1.3; }
.knowledge-card p, .knowledge-card li { color: #64716a; font-size: 12px; line-height: 1.7; }
.knowledge-card ul { padding-left: 19px; }
.knowledge-card li { margin-bottom: 9px; }
summary { color: var(--teal-dark); font-size: 12px; font-weight: 650; cursor: pointer; padding: 6px 0; }
.knowledge-practice { display: grid; gap: 6px; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 15px; }
.knowledge-practice button { text-align: left; }
.source-link a { color: var(--teal); }
.source-link small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.knowledge-question { font-weight: 600; }
.learning-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -8px 0 25px; padding: 24px 26px; border: 1px solid #cfe1dc; border-radius: 10px; background: #e9f3ef; box-shadow: var(--shadow); }
.learning-intro h2 { color: var(--teal-dark); font-size: 21px; margin: 7px 0; }
.learning-intro p { max-width: 760px; margin: 0; color: #5f716c; font-size: 12px; line-height: 1.7; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.learning-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--surface); box-shadow: var(--shadow); }
.learning-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.learning-number { color: var(--teal); font-size: 28px; font-weight: 800; letter-spacing: -.06em; }
.learning-card h2 { margin: 15px 0 8px; font-size: 19px; line-height: 1.3; }
.learning-summary, .learning-simple p, .learning-example p, .learning-columns p { color: #64716a; font-size: 12px; line-height: 1.7; }
.learning-summary { margin-bottom: 16px; }
.learning-simple, .learning-steps, .learning-example { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.learning-simple { padding: 15px 14px 0; background: #f7faf7; border-radius: 7px; }
.learning-simple p { margin-bottom: 14px; }
.learning-steps ul { padding-left: 19px; margin: 8px 0 0; }
.learning-steps li { color: #64716a; font-size: 12px; line-height: 1.6; margin-bottom: 7px; }
.learning-example { padding: 15px 16px 1px; background: #fff8f0; border-left: 3px solid #d6a778; border-top: 0; border-radius: 4px; }
.learning-example p { color: #745e4b; margin-bottom: 14px; }
.learning-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.learning-columns p { margin: 6px 0 0; font-size: 11px; }
.learning-source { margin: 17px 0 0; font-size: 10px; }
.learning-source a { color: var(--teal); }
.learning-practice-button { margin-top: 12px; }
.history-row small { display: block; color: var(--muted); margin-top: 6px; font-size: 10px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 15px; align-items: start; }
.auth-card, .profile-card, .team-panel, .account-note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 24px; }
.auth-tabs { display: flex; gap: 5px; padding: 4px; background: #edf0eb; border-radius: 8px; margin-bottom: 25px; }
.auth-tab { border: 0; border-radius: 6px; background: transparent; color: var(--muted); padding: 9px 13px; font-size: 11px; font-weight: 750; }
.auth-tab.active { color: var(--teal-dark); background: white; box-shadow: 0 2px 6px rgba(35, 48, 43, .07); }
.auth-intro h2 { margin-bottom: 8px; font-size: 20px; }
.auth-intro p, .account-note p { color: var(--muted); font-size: 12px; line-height: 1.7; }
#authForm { display: grid; gap: 14px; }
#authForm label { display: grid; gap: 6px; color: #65706f; font-size: 11px; font-weight: 700; }
#authForm input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfcfa; font: inherit; font-size: 13px; }
#authForm input:focus { outline: 2px solid #b8d8ce; border-color: var(--teal); }
.auth-error { padding: 10px 12px; color: #9c5d27; background: var(--orange-soft); border-radius: 6px; font-size: 11px; line-height: 1.5; }
.auth-manager-note { margin-top: 14px; }
.account-note { min-height: 240px; background: var(--teal); color: white; }
.account-note .note-kicker { color: #a9d4ca; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.account-note h2 { margin-top: 25px; font-size: 21px; line-height: 1.25; }
.account-note p, .account-note li { color: #d8eae5; font-size: 12px; line-height: 1.65; }
.account-note ul { padding-left: 17px; }
.account-note .secondary-button { color: var(--teal-dark); margin-top: 14px; }
.account-note .primary-button { background: white; color: var(--teal-dark); border-color: white; margin-top: 12px; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.avatar.large { width: 52px; height: 52px; font-size: 15px; }
.profile-top h2 { margin: 5px 0; }
.profile-top p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 27px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.profile-stats b, .profile-stats span { display: block; }
.profile-stats b { font-size: 21px; }
.profile-stats span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.sync-status { color: var(--teal); font-size: 11px; margin-bottom: 16px; }
.team-panel { grid-column: 1 / -1; overflow: hidden; }
.team-table { overflow-x: auto; }
.team-row { min-width: 680px; display: grid; grid-template-columns: minmax(180px, 1.5fr) 90px 90px 120px 150px; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 13px 0; color: #65706f; font-size: 11px; }
.team-row strong, .team-row small { display: block; }
.team-row small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.team-row b.good { color: var(--teal); }
.team-row b.mid { color: var(--orange); }
.team-head { color: var(--muted); font-size: 10px; font-weight: 750; }
.team-agent { border-right: 0; border-left: 0; border-bottom: 0; width: 100%; background: transparent; text-align: left; }
.team-agent:hover { background: var(--teal-soft); }
.team-agent[hidden] { display: none; }
.team-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.team-toolbar input, #profileForm input { border: 1px solid var(--line); background: #fbfcfa; border-radius: 6px; padding: 11px 12px; font: inherit; min-width: 0; }
.team-toolbar input { flex: 1; min-width: 180px; }
.team-weak { color: var(--teal) !important; }
.team-footnote, .guest-note { font-size: 11px; line-height: 1.6; margin: 20px 0 0; color: var(--muted); }
.profile-edit { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; font-size: 12px; }
#profileForm { display: grid; gap: 12px; margin-top: 15px; }
#profileForm label { display: grid; gap: 8px; }
.agent-detail-heading { margin-top: 24px; }
.agent-section-title { margin-top: 30px; }
.agent-campaign { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.agent-campaign b { white-space: nowrap; color: var(--teal); }
.attempt-detail { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.65; }
.attempt-detail summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; cursor: pointer; }
.attempt-detail summary small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.attempt-detail summary b { color: var(--teal); }
.attempt-answer { white-space: pre-wrap; background: var(--teal-soft); padding: 14px; border-radius: 7px; }
.profile-top { min-width: 0; overflow-wrap: anywhere; }
.campaign-label { color: var(--muted); font-size: 10px; }
.simulation-title { column-gap: 8px; row-gap: 8px; }
.simulation-title h1 { flex-basis: 100%; font-size: 23px; line-height: 1.3; }
.simulation-progress { flex-shrink: 0; }
.simulation-progress small { display: block; margin-top: 8px; font-size: 10px; line-height: 1.4; }
.simulation-route { display: flex; gap: 4px; padding: 14px 0 17px; margin-bottom: 13px; border-top: 1px solid var(--line); overflow-x: auto; }
.simulation-route:empty { display: none; }
.route-step { flex: 1 0 75px; text-align: center; color: #9ba39a; padding: 0 3px; }
.route-step span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e4e8df; font-size: 10px; margin: 0 auto 6px; }
.route-step small { display: block; font-size: 9px; line-height: 1.4; }
.route-step.current { color: var(--teal-dark); font-weight: 600; }
.route-step.current span { color: white; background: var(--teal); box-shadow: 0 0 0 3px #dcece3; }
.route-step.done span { color: var(--teal-dark); background: #c7ddd0; }
.deal-strip { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0 0 17px; padding: 13px 16px; border: 1px solid #dce4d8; border-radius: 8px; color: #82907d; background: #edf1e8; font-size: 11px; }
.deal-strip b { color: var(--teal-dark); margin-right: 4px; }
.deal-mode { margin-left: auto; }
.simulation-grid { grid-template-columns: 220px minmax(0, 1fr) 285px; }
.case-context, .conversation-panel, .feedback-panel { min-height: 0; }
.case-context { padding: 18px; }
.case-context .context-heading { margin-bottom: 18px; }
.case-context .role-label { margin-bottom: 20px; }
.stage-focus { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.stage-focus-kicker { display: block; color: #b08151; font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.stage-focus p { font-size: 11px; color: #6b786d; line-height: 1.7; margin: 9px 0; }
.stage-focus small { display: block; font-size: 11px; color: #7d826e; line-height: 1.6; }
.conversation-panel { padding: 21px; }
.conversation-header { gap: 10px; }
.conversation-header h2 { font-size: 18px; }
.conversation-header .quiet-button { font-size: 10px; flex-shrink: 0; }
.transcript { max-height: 430px; overflow-y: auto; padding: 20px 4px 20px 0; overscroll-behavior: contain; }
.stage-divider { color: #98a08e; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; text-align: center; border-top: 1px solid #ebeee4; padding-top: 12px; margin: 4px 0; }
.message { max-width: 95%; }
.message-body { font-size: 13px; overflow-wrap: anywhere; }
.free-answer-row textarea { font-size: 13px; min-height: 105px; }
.record-button { min-width: 80px; }
.record-status { line-height: 1.5; min-height: 30px; }
.options-details { margin-top: 12px; }
.options-details summary { color: #899380; font-weight: 500; font-size: 11px; margin-bottom: 10px; }
.options-details .text-button { font-size: 10px; margin-top: 9px; }
.answer-option { font-size: 12px; line-height: 1.6; }
.option-mark { color: #8e9b8c; }
.feedback-panel { padding: 20px; }
.feedback-empty { padding: 55px 0; }
.feedback-result { gap: 15px; }
.feedback-result .result-title { align-items: start; gap: 10px; }
.feedback-copy, .feedback-result li { font-size: 12px; line-height: 1.7; color: #6b7669; }
.feedback-result ul { padding-left: 15px; margin: 8px 0 0; }
.feedback-result li { margin-bottom: 6px; }
.feedback-copy { margin-bottom: 0; }
.assessment-source { font-size: 10px; color: var(--teal); line-height: 1.5; }
.assessment-source.provisional { color: #a7824c; }
.criterion-results { display: grid; gap: 11px; }
.criterion { display: flex; align-items: start; gap: 8px; font-size: 11px; line-height: 1.6; color: #8d9788; }
.criterion > span { font-size: 14px; line-height: 1.3; }
.criterion.met { color: var(--teal-dark); }
.criterion small { display: block; color: #98a28d; font-size: 10px; margin-top: 2px; }
.risk-box { padding: 12px; border-left: 3px solid #ca9563; border-radius: 3px; background: #fbefe0; color: #9e7348; font-size: 12px; line-height: 1.6; }
.risk-box p { color: inherit; font-size: 12px; margin: 6px 0 0; }
.risk-box li { color: #977344; }
.model-answer p { font-size: 12px; line-height: 1.7; color: #738068; }
.model-answer summary { font-size: 11px; }
.retry-caption { font-size: 11px; color: #ac8351; line-height: 1.6; margin: 0; }
.feedback-result .primary-button { white-space: normal; line-height: 1.6; font-size: 11px; }
dialog { max-width: 560px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); padding: 25px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 100px #11282233; }
dialog::backdrop { background: #13241c66; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; }
#rubricContent p, #rubricContent li { font-size: 13px; line-height: 1.7; }
.completion-score { font-size: 52px; color: var(--teal); font-weight: 650; }
.completion-score small { font-size: 16px; color: #99a28c; }
.completion-banner { display: flex; align-items: center; gap: 20px; padding: 25px; background: #e5eee0; border: 1px solid #d5e1ca; border-radius: 10px; }
.completion-banner > span { display: grid; place-items: center; width: 45px; height: 45px; background: #c1d7b3; border-radius: 50%; color: var(--teal-dark); flex-shrink: 0; }
.completion-banner p { color: #79876e; font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.completion-metrics { display: flex; flex-wrap: wrap; gap: 35px; margin: 25px 0; color: #929b84; font-size: 12px; }
.completion-metrics b { display: block; color: var(--ink); font-size: 24px; margin-bottom: 6px; }
.result-stage-list { background: white; border: 1px solid var(--line); border-radius: 9px; }
.result-stage-list article { display: grid; grid-template-columns: 30px 1fr 50px; gap: 15px; padding: 18px 22px; align-items: start; border-bottom: 1px solid var(--line); }
.result-stage-list article:last-child { border: 0; }
.stage-result-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e5edde; color: var(--teal-dark); font-size: 11px; }
.result-stage-list h3 { margin: 0 0 5px; }
.result-stage-list p { color: #87947a; font-size: 12px; line-height: 1.6; margin: 0 0 5px; }
.result-stage-list small { color: #a1a991; font-size: 10px; }
.result-stage-list b { text-align: right; font-size: 14px; color: var(--teal); }
.completion-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 1440px) {
  .simulation-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .feedback-panel { grid-column: 2; }
  .feedback-result { grid-template-columns: 1fr; }
  .simulation-title h1 { font-size: 21px; }
}

@media (max-width: 1120px) {
  .sidebar { width: 215px; flex-basis: 215px; }
  .topbar, .view { padding-left: 28px; padding-right: 28px; }
  .simulation-grid { grid-template-columns: 220px minmax(360px, 1fr); }
  .feedback-panel { grid-column: 2; min-height: auto; }
  .feedback-empty { padding: 25px; }
}
@media (max-width: 820px) {
  .sidebar { width: 66px; flex-basis: 66px; padding: 18px 10px; }
  .workspace-label, .nav-item span:not(.nav-symbol), .sidebar-bottom { display: none; }
  .nav-item { justify-content: center; padding: 12px 5px; }
  .nav-symbol { font-size: 18px; }
  .topbar { height: 60px; padding: 0 18px; }
  .crm-badge { display: none; }
  .view { padding: 30px 18px 45px; }
  .view-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  h1 { font-size: 27px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 32px; }
  .recommend-grid, .progress-layout, .track-preview-grid, .track-grid, .track-principles { grid-template-columns: 1fr; }
  .track-stages { gap: 0; }
  .track-stage small { font-size: 8px; }
  .case-list-card { grid-template-columns: 1fr; }
  .case-open { width: 100%; }
  .simulation-top { flex-wrap: wrap; gap: 13px; }
  .simulation-title { order: 2; width: calc(100% - 80px); }
  .simulation-progress { order: 3; width: 100%; }
  .simulation-grid { grid-template-columns: 1fr; }
  .case-context, .conversation-panel, .feedback-panel { min-height: auto; }
  .conversation-panel { padding: 18px; }
  .feedback-panel { grid-column: auto; }
  .account-layout { grid-template-columns: 1fr; }
  .team-panel { grid-column: auto; }
}
@media (max-width: 520px) {
  .sidebar { display: none; }
  .topbar { padding: 0 15px; }
  .breadcrumb .slash, .breadcrumb > strong { display: none; }
  .header-brand img { width: 135px; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 112px; padding: 14px; }
  .metric-card strong { font-size: 20px; }
  .continue-main { padding: 18px 19px; }
  .continue-main h2 { font-size: 16px; }
  .round-arrow { right: 13px; }
  .simulation-view { padding: 18px 12px 35px; }
  .simulation-title h1 { font-size: 18px; }
  .conversation-header { flex-direction: column; }
  .free-answer-row { flex-direction: column; }
  .record-button { min-height: 42px; flex-direction: row; }
  .answer-actions { flex-direction: column; }
  .message { max-width: 100%; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-date { grid-column: 1 / -1; }
}

@media (max-width: 1120px) {
  .campaign-grid { grid-template-columns: 1fr; }
  .simulation-grid { grid-template-columns: 195px minmax(0, 1fr); }
  .level-grid { grid-template-columns: 1fr; gap: 8px; }
  .level-card { padding: 16px; }
  .level-card p { margin-bottom: 0; }
}
@media (max-width: 820px) {
  .sidebar { width: 66px; flex-basis: 66px; height: 100vh; }
  .knowledge-grid, .learning-grid, .curriculum-level { grid-template-columns: 1fr; }
  .curriculum-level { padding: 20px; gap: 12px; }
  .simulation-grid { grid-template-columns: 1fr; }
  .feedback-panel { grid-column: 1; }
  .case-context { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; }
  .case-context .context-heading, .case-context .stage-focus, .case-context .skill-list { grid-column: 1 / -1; }
  .case-context h2, .case-context .role-label { margin-bottom: 8px; }
  .case-context .context-block { padding: 10px 0; }
  .case-context .property-card { margin: 4px 0; }
  .deal-mode { margin-left: 0; }
  .track-stages { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .simulation-title h1 { font-size: 21px; }
}
@media (max-width: 900px) {
  .call-coach { grid-template-columns: 1fr auto; }
  .call-coach-heading { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mobile-navigation { display: block; }
  .mobile-navigation select { max-width: 170px; border: 1px solid var(--line); border-radius: 6px; padding: 7px; font-size: 11px; color: var(--teal-dark); background: white; }
  .topbar { gap: 12px; }
  .topbar .breadcrumb { font-size: 11px; }
  .account-chip { display: none; }
  .case-meta { flex-wrap: wrap; gap: 6px 10px; }
  .continue-main { padding-right: 58px; }
  .campaign-card { padding: 19px; }
  .campaign-card-heading h2 { font-size: 18px; }
  .campaign-toolbar .track-switcher { width: 100%; justify-content: space-around; }
  .campaign-toolbar .campaign-tab { padding: 8px 10px; }
  .seller-focus-banner { align-items: flex-start; }
  .learning-intro { align-items: flex-start; flex-direction: column; }
  .learning-intro .primary-button { width: 100%; justify-content: center; }
  .learning-columns { grid-template-columns: 1fr; gap: 9px; }
  .seller-focus-arrow { display: none; }
  .call-coach { grid-template-columns: 1fr; gap: 14px; }
  .call-coach-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .call-coach-action { justify-self: start; white-space: normal; text-align: left; }
  .level-switcher { width: 100%; gap: 4px; }
  .level-tab { padding: 7px 9px; font-size: 10px; }
  .case-context { grid-template-columns: 1fr; }
  .case-context > * { grid-column: 1 !important; }
  .case-context .role-label { margin-top: -5px; }
  .skill-row { grid-template-columns: 145px 1fr 35px; gap: 10px; }
  .skill-row strong { font-size: 11px; }
  .completion-score { font-size: 38px; }
  .completion-banner { padding: 18px; gap: 12px; }
  .completion-banner p { font-size: 12px; }
  .result-stage-list article { grid-template-columns: 25px 1fr 40px; padding: 15px 12px; gap: 8px; }
  .simulation-top { gap: 8px; }
  .simulation-title { width: 100%; order: 2; }
  .simulation-title h1 { font-size: 20px; }
  .conversation-header { flex-direction: row; }
  .conversation-header h2 { font-size: 17px; }
  .conversation-header .quiet-button { margin: 0; font-size: 10px; }
  .deal-strip { gap: 10px; }
  .transcript { max-height: 370px; }
}
