.btn { align-items: center; border: 0; border-radius: 8px; display: inline-flex; font-weight: 700; gap: 10px; justify-content: center; min-height: 46px; padding: 0 26px; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg,#ff5b0b,#f54100); box-shadow: 0 9px 18px -8px rgba(255,75,10,.62); color: #fff; }
.btn-primary:hover { background: var(--color-orange-600); }
.btn-primary:disabled { background: #e7e9ed; box-shadow: none; color: #aeb4bf; cursor: not-allowed; transform: none; }
.btn-outline { background: #fff; border: 1.5px solid var(--color-orange-500); color: var(--color-orange-500); }
.btn-ghost { background: transparent; color: #006dc4; padding-left: 0; padding-right: 0; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.header-continue { border-radius: 11px; }
.pill { align-items: center; background: rgba(255,255,255,.85); border: 1px solid #98cef5; border-radius: var(--radius-pill); color: #0874c9; display: inline-flex; font-size: .79rem; font-weight: 700; gap: 8px; letter-spacing: .02em; padding: 10px 16px; white-space: nowrap; }
.pill-orange { background: #fff; border-color: var(--color-orange-500); border-radius: 7px; color: var(--color-orange-500); }
.badge { border-radius: 7px; display: inline-flex; font-size: .75rem; font-weight: 600; padding: 5px 10px; text-transform: uppercase; }
.badge-risk-high { background: var(--color-risk-high-bg); border: 1px solid #ffb8b8; color: var(--color-risk-high-fg); }
.badge-risk-medium { background: var(--color-risk-medium-bg); color: var(--color-risk-medium-fg); }
.tag { background: #fff0f0; border-radius: 6px; color: var(--color-risk-high-fg); display: inline-flex; font-size: .78rem; padding: 8px 12px; }
.breadcrumb { align-items: center; color: var(--color-navy-700); display: flex; flex-wrap: wrap; font-size: .93rem; gap: 11px; }
.breadcrumb a { color: #006cc4; }

.lesson-topbar { align-items: center; background: rgba(255,255,255,.97); border-bottom: 1px solid #d5dde5; display: grid; grid-template-columns: 1fr auto auto; height: 68px; padding: 0 36px; position: relative; z-index: 10; }
.lesson-topbar .brand { font-size: 1.38rem !important; gap: 13px; }
.lesson-topbar .brand-mark { border-radius: 5px; height: 41px; width: 39px; }
.lesson-topbar .brand-mark svg { height: 30px; width: 25px; }
.lesson-progress { align-items: center; display: flex; gap: 16px; justify-self: end; margin-right: 26px; }
.lesson-progress-label { color: var(--color-navy-950); font-size: .91rem; white-space: nowrap; }
.progress-track { background: #dfe2e7; border-radius: 999px; height: 7px; overflow: hidden; width: 202px; }
.progress-fill { background: var(--color-orange-500); border-radius: inherit; height: 100%; transition: width var(--transition-base); }
.lesson-end-link { border-left: 1px solid #dde2e8; color: var(--color-navy-950); font-size: .93rem; padding-left: 26px; white-space: nowrap; }
.checklist { display: flex; flex-direction: column; gap: 13px; list-style: none; margin: 0; padding: 0; }
.checklist li { align-items: flex-start; display: flex; font-size: .85rem; gap: 9px; }
.check-icon { align-items: center; border: 1px solid var(--color-orange-500); border-radius: 50%; color: var(--color-orange-500); display: flex; flex: 0 0 auto; height: 19px; justify-content: center; width: 19px; }
.check-icon svg { height: 11px; width: 11px; }

.chat-bubble { border-radius: 12px; font-size: .97rem; line-height: 1.4; max-width: 78%; padding: 13px 15px; }
.chat-bubble-user { align-self: flex-end; background: #eaf7ff; border-bottom-right-radius: 3px; color: var(--color-navy-900); }
.chat-bubble-agent { align-self: flex-start; background: #f3f3f5; border-bottom-left-radius: 3px; color: var(--color-navy-900); }
.chat-bubble-agent.chat-bubble-risk { background: var(--color-risk-high-bg); border: 1px dashed var(--color-risk-high-fg); color: var(--color-risk-high-fg); }
.chat-timestamp { color: #69748b; display: block; font-size: .75rem; margin-top: 3px; text-align: right; }
.coach-bubble { align-items: center; background: #fff; border: 1px solid #cfd6df; border-radius: 13px; box-shadow: var(--shadow-panel); display: flex; gap: 13px; padding: 13px 18px; }
.coach-avatar { background:#fff; border:2px solid #d7eaf5; border-radius:50%; flex:0 0 auto; height:48px; object-fit:cover; object-position:50% 24%; width:48px; }
.coach-name { color: var(--color-orange-500); display: block; font-size: .87rem; font-weight: 700; margin-bottom: 3px; }
.coach-text { color: var(--color-navy-900); display: block; font-size: .85rem; line-height: 1.35; }
.loading-dots span { animation: loading-blink 1.2s infinite ease-in-out; background: currentColor; border-radius: 50%; display: inline-block; height: 6px; margin-right: 3px; opacity: .5; width: 6px; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes loading-blink { 0%,80%,100%{opacity:.25} 40%{opacity:1} }
.reveal { animation: reveal-up .55s cubic-bezier(.22,1,.36,1) forwards; opacity: 0; transform: translateY(16px); }
@keyframes reveal-up { to { opacity:1; transform:translateY(0); } }

@media (max-width: 760px) {
  .lesson-topbar { grid-template-columns: 1fr auto; height: auto; min-height: 68px; padding: 8px 16px; }
  .lesson-topbar .brand { font-size: 1.05rem !important; }
  .lesson-progress { grid-column: 1 / -1; grid-row: 2; margin: 7px 0 3px; width: 100%; }
  .progress-track { flex: 1; width: auto; }
  .lesson-end-link { border: 0; font-size: .82rem; padding: 0; }
}
