*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #e5fbff 0, #f7fcff 35%, #ffffff 100%);
  color: #053b5e;
}

.kc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 16px 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(76, 201, 240, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 227, 150, 0.2), transparent 55%);
}

.kc-header {
  width: 100%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.kc-logo-wrap {
  width: 60px;
  height: 60px;
  margin: 0;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(135deg, #0061ff, #00e396);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(0, 97, 255, 0.25);
}

.kc-logo {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.kc-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kc-title {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  margin: 0 0 4px;
  background: linear-gradient(135deg, #0061ff, #00e396);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kc-subtitle {
  margin: 0;
  max-width: 520px;
  font-weight: 300;
  font-size: 0.95rem;
  color: #245b7a;
}

.kc-main {
  width: 100%;
  max-width: 1040px;
}

.kc-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 18px 18px;
  box-shadow: 0 18px 45px rgba(10, 77, 104, 0.12);
  border: 1px solid rgba(0, 97, 255, 0.07);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

@media (min-width: 768px) {
  .kc-card {
    padding: 22px 24px;
  }
}

.kc-card-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #053b5e;
}

.kc-card-text {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: #476c89;
}

.kc-card-header {
  margin-bottom: 18px;
}

.kc-welcome-box {
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 97, 255, 0.03);
  border: 1px solid rgba(0, 97, 255, 0.16);
}

.kc-welcome-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #053b5e;
}

.kc-welcome-list {
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #476c89;
}

.kc-welcome-list li {
  margin-bottom: 3px;
}

.kc-welcome-footer {
  margin: 0;
  font-size: 0.86rem;
  color: #04527f;
}

.kc-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kc-detail-title {
  font-size: 1.1rem;
}

.kc-detail-duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #6e879f;
}

.kc-overview-header {
  margin-bottom: 4px;
  padding: 4px 2px 2px;
  border-bottom: 1px dashed rgba(0, 97, 255, 0.14);
}

.kc-overview-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #476c89;
}

.kc-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 227, 150, 0.08);
  border: 1px solid rgba(0, 227, 150, 0.4);
  font-size: 0.78rem;
  color: #036444;
  margin-bottom: 6px;
}

.kc-timer-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.kc-timer-value {
  font-weight: 700;
}

.kc-live-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 97, 255, 0.06);
  color: #04527f;
  font-weight: 500;
}

.kc-topic-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.kc-topic-button {
  width: auto;
  align-self: flex-start;
  min-width: 190px;
}

.kc-loading {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0, 97, 255, 0.04);
  border: 1px dashed rgba(0, 97, 255, 0.4);
}

.kc-loading-icon {
  font-size: 1.2rem;
}

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

.kc-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0061ff, #00e396);
  animation: kc-bounce 1.6s infinite ease-in-out;
}

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

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

.kc-loading-text {
  margin: 0;
  font-size: 0.86rem;
  color: #075078;
}

.kc-loading-text--hint {
  font-style: italic;
  color: #064a72;
  animation: kc-hint-fade 3.5s ease-in-out infinite;
}

.kc-loading-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.kc-loading-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: #075078;
}

.kc-loading-list li {
  margin-bottom: 2px;
}

.kc-loading-bar {
  margin-top: 6px;
  width: 100%;
  max-width: 260px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 97, 255, 0.1);
  overflow: hidden;
}

.kc-loading-bar-fill {
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #0061ff, #00e396);
  animation: kc-loading-bar-slide 1.8s ease-in-out infinite;
}

@keyframes kc-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes kc-hint-fade {
  0%,
  15% {
    opacity: 0;
  }
  30%,
  70% {
    opacity: 1;
  }
  85%,
  100% {
    opacity: 0;
  }
}

@keyframes kc-loading-bar-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(120%);
  }
}

.kc-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 97, 255, 0.2);
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #053b5e;
  box-shadow: 0 6px 16px rgba(10, 77, 104, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.kc-input::placeholder {
  color: #8aa2b8;
}

.kc-input:focus {
  border-color: rgba(0, 97, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 97, 255, 0.25),
    0 10px 24px rgba(10, 77, 104, 0.16);
  background-color: #ffffff;
}

.kc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kc-btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.2s ease,
    color 0.2s ease;
  font-weight: 500;
}

.kc-btn-primary {
  background: linear-gradient(135deg, #0061ff, #00e396);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 97, 255, 0.35);
}

.kc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 97, 255, 0.45);
}

.kc-btn-ghost {
  background: rgba(0, 97, 255, 0.04);
  color: #04527f;
  border: 1px solid rgba(0, 97, 255, 0.2);
}

.kc-btn-ghost:hover {
  background: rgba(0, 97, 255, 0.08);
}

.kc-footer {
  margin-top: 28px;
  text-align: center;
}

.kc-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 227, 150, 0.08);
  color: #007c4a;
  border: 1px solid rgba(0, 227, 150, 0.35);
}

.kc-error {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 71, 87, 0.06);
  border: 1px solid rgba(255, 71, 87, 0.5);
  color: #b00020;
  font-size: 0.86rem;
}

.kc-plan-ready {
  margin: 14px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 227, 150, 0.06);
  border: 1px solid rgba(0, 227, 150, 0.4);
}

.kc-plan-ready-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #036444;
  margin-bottom: 2px;
}

.kc-plan-ready-text {
  font-size: 0.84rem;
  color: #036444;
}

.kc-plan-ready-text--secondary {
  margin-top: 4px;
  font-size: 0.8rem;
}

.kc-plan-ready-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}

.kc-plan-ready-btn {
  padding-inline: 18px;
  font-size: 0.88rem;
}

.kc-plan-ready-metrics {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kc-plan-ready-metric {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 227, 150, 0.1);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.kc-plan-ready-metric-label {
  font-size: 0.78rem;
  color: #036444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kc-plan-ready-metric-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #02432e;
}

.kc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 18px;
  margin-top: 20px;
}

.kc-sidebar {
  padding: 10px;
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.95);
  border: 1px solid rgba(0, 97, 255, 0.05);
}

.kc-sidebar-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #56728c;
}

.kc-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kc-step {
  width: 100%;
  border-radius: 14px;
  border: none;
  background: transparent;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

.kc-step:hover {
  background: rgba(0, 97, 255, 0.04);
}

.kc-step--active {
  background: rgba(0, 97, 255, 0.08);
  box-shadow: 0 10px 20px rgba(10, 77, 104, 0.12);
  transform: translateY(-1px);
}

.kc-step-index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0061ff, #00e396);
  color: #ffffff;
}

.kc-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kc-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #053b5e;
}

.kc-step-summary {
  font-size: 0.8rem;
  color: #6e879f;
}

.kc-content {
  padding: 12px 4px 4px;
}

.kc-content-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #053b5e;
}

.kc-content-overview {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: #476c89;
}

.kc-content-block {
  margin-top: 10px;
}

.kc-content-block h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #075078;
}

.kc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #476c89;
}

.kc-list--resources {
  list-style: disc;
}

.kc-placeholder {
  margin: 0;
  font-size: 0.94rem;
  color: #6e879f;
}

.kc-content--full {
  padding-top: 4px;
}

.kc-topic-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.kc-topic-chip {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 97, 255, 0.18);
  background: #f7fbff;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #04527f;
  cursor: pointer;
}

.kc-topic-chip--active {
  background: linear-gradient(135deg, #0061ff, #00e396);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(0, 97, 255, 0.3);
}

.kc-topic-chip-index {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #04527f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.kc-topic-chip--active .kc-topic-chip-index {
  color: #0061ff;
}

.kc-topic-chip-title {
  white-space: nowrap;
}

.kc-topic-list {
  padding: 10px;
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.95);
  border: 1px solid rgba(0, 97, 255, 0.05);
}

.kc-topic-list-inner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kc-topic-card {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 97, 255, 0.14);
  background: #f7fbff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.kc-topic-card:hover {
  background: #f0f6ff;
}

.kc-topic-card--active {
  background: linear-gradient(135deg, #0061ff, #00e396);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(0, 97, 255, 0.32);
  transform: translateY(-1px);
}

.kc-topic-card-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kc-topic-card-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: #04527f;
}

.kc-topic-card--active .kc-topic-card-index {
  color: #0061ff;
}

.kc-topic-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #053b5e;
}

.kc-topic-card--active .kc-topic-card-title {
  color: #ffffff;
}

.kc-topic-card-meta {
  font-size: 0.78rem;
  color: #6e879f;
}

.kc-topic-card--active .kc-topic-card-meta {
  color: rgba(255, 255, 255, 0.9);
}

.kc-topic-card--static {
  cursor: default;
}

.kc-topic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.kc-topic-nav-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 97, 255, 0.2);
  background: rgba(0, 97, 255, 0.02);
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #04527f;
  cursor: pointer;
}

.kc-topic-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.kc-topic-position {
  font-size: 0.8rem;
  color: #6e879f;
}

.kc-quiz {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 97, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.kc-quiz-question {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: #053b5e;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kc-quiz-question-index {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e879f;
}

.kc-quiz-question-text {
  font-weight: 600;
}

.kc-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kc-quiz-option {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 97, 255, 0.18);
  background: #f7fbff;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.kc-quiz-option:hover {
  background: #f0f6ff;
}

.kc-quiz-option--selected {
  border-color: rgba(0, 97, 255, 0.5);
  box-shadow: 0 8px 18px rgba(0, 97, 255, 0.18);
}

.kc-quiz-option--correct {
  border-color: rgba(0, 227, 150, 0.8);
  background: rgba(0, 227, 150, 0.08);
}

.kc-quiz-option--incorrect {
  border-color: rgba(255, 71, 87, 0.8);
  background: rgba(255, 71, 87, 0.08);
}

.kc-quiz-option-label {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: #04527f;
}

.kc-quiz-option-text {
  font-size: 0.9rem;
  color: #053b5e;
}

.kc-quiz-explanation {
  margin-top: 8px;
  font-size: 0.86rem;
  color: #075078;
}

.kc-quiz-reaction {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: #053b5e;
}

.kc-quiz-emoji {
  font-size: 1.3rem;
}

.kc-quiz-reaction-text {
  flex: 1;
}

.kc-confetti {
  position: absolute;
  inset: -6px 0 auto;
  pointer-events: none;
}

.kc-confetti-piece {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: #0061ff;
  opacity: 0;
  animation: kc-confetti-fall 0.8s ease-out forwards;
}

.kc-confetti-piece:nth-child(3n) {
  background: #00e396;
}

.kc-confetti-piece:nth-child(3n + 1) {
  background: #ff9f43;
}

.kc-confetti-piece:nth-child(3n + 2) {
  background: #ff6b81;
}

.kc-confetti-piece:nth-child(odd) {
  transform: translateX(-80px);
}

.kc-confetti-piece:nth-child(even) {
  transform: translateX(60px);
}

.kc-confetti-piece:nth-child(5n) {
  animation-delay: 0.05s;
}

.kc-confetti-piece:nth-child(7n) {
  animation-delay: 0.1s;
}

@keyframes kc-confetti-fall {
  0% {
    transform: translate3d(0, -20px, 0) rotateZ(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 80px, 0) rotateZ(240deg);
    opacity: 0;
  }
}

.kc-quiz-nav {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.kc-quiz-nav-btn {
  flex: 1;
  font-size: 0.86rem;
}

.kc-quiz-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.kc-results-cta {
  margin-top: 16px;
  text-align: center;
}

.kc-results-btn {
  padding-inline: 22px;
}

.kc-results {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid rgba(0, 97, 255, 0.08);
}

.kc-results-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #053b5e;
}

.kc-results-summary {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #476c89;
}

.kc-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kc-results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 10px;
  background: #ffffff;
}

.kc-results-topic {
  color: #053b5e;
}

.kc-results-score {
  font-weight: 600;
  color: #04527f;
}

.kc-code-block {
  margin: 8px 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0b1727;
  color: #f5f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.8rem;
  overflow-x: auto;
}

.kc-topic-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f7fbff;
  border: 1px solid rgba(0, 97, 255, 0.14);
  font-size: 0.86rem;
}

.kc-topic-line-index {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 97, 255, 0.08);
  color: #04527f;
  font-weight: 600;
  font-size: 0.8rem;
}

.kc-topic-line-title {
  flex: 1;
  color: #053b5e;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-topic-line-meta {
  flex-shrink: 0;
  color: #6e879f;
  font-size: 0.78rem;
}

.kc-topic-summary {
  margin: 4px 0 2px;
  font-size: 0.86rem;
  color: #476c89;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-chat {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.kc-chat-message {
  max-width: 100%;
}

.kc-chat-message--coach {
  align-self: flex-start;
  background: rgba(248, 252, 255, 0.96);
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 97, 255, 0.1);
}

.kc-summary {
  align-items: center;
}

.kc-certificate {
  max-width: 640px;
  width: 100%;
  padding: 18px 20px 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(10, 77, 104, 0.18);
  border: 1px solid rgba(0, 97, 255, 0.18);
}

.kc-certificate-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.kc-certificate-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0061ff, #00e396);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-certificate-logo {
  max-width: 80%;
  max-height: 80%;
}

.kc-certificate-title {
  margin: 0;
  font-size: 1.1rem;
  color: #053b5e;
}

.kc-certificate-subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: #476c89;
}

.kc-certificate-body {
  margin-top: 6px;
}

.kc-certificate-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #476c89;
}

.kc-certificate-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 227, 150, 0.08);
  border: 1px solid rgba(0, 227, 150, 0.5);
  font-size: 0.86rem;
  color: #036444;
  margin-bottom: 10px;
}

.kc-certificate-footer {
  margin-top: 10px;
  text-align: right;
}

.kc-certificate-sign {
  font-size: 0.86rem;
  color: #04527f;
  font-weight: 600;
}

.kc-summary-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.kc-chat-step {
  border-left: 3px solid rgba(0, 97, 255, 0.4);
}

.kc-chat-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.kc-audio-controls {
  margin: 4px 0 6px;
}

.kc-btn-audio {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.kc-chat-controls {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.kc-chat-controls--topic-cta {
  justify-content: space-between;
}

.kc-quiz-score {
  margin-top: 12px;
}

.kc-quiz-review-block {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 97, 255, 0.18);
}

.kc-chat-controls--split {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.kc-timer-bar-wrap {
  margin-bottom: 8px;
}

.kc-timer-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 97, 255, 0.08);
  overflow: hidden;
}

.kc-timer-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #0061ff, #00e396);
  transition: width 0.25s ease;
}

.kc-timer-bar-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6e879f;
}

@media (max-width: 768px) {
  .kc-layout {
    grid-template-columns: 1fr;
  }

  .kc-sidebar {
    order: 2;
  }

  .kc-content {
    order: 1;
  }

  .kc-topic-row {
    flex-direction: column;
  }

  .kc-topic-button {
    width: 100%;
  }
}


