/* Small shared panels for operations, feedback and player progress. */
.insight-panel {
  border: 1px solid rgba(15, 43, 46, 0.12);
  border-radius: 22px;
  background: #fffdf7;
  overflow: hidden;
  min-width: 0;
}
.insight-panel > summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 800;
  color: var(--kp-text);
  list-style: none;
}
.insight-panel > summary::-webkit-details-marker {
  display: none;
}
.insight-panel > summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
}
.insight-panel[open] > summary::after {
  content: '−';
}
.insight-panel > summary small {
  display: block;
  color: var(--kp-muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 4px;
}
.insight-symbol {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--kp-yellow);
  font-size: 1.45rem;
}
.insight-body,
.quiz-readiness-body {
  padding: 0 20px 20px;
}
.insight-body p,
.quiz-readiness-body p {
  margin: 10px 0;
}
.insight-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 14px 0;
}
.insight-toolbar .btn,
.progress-tabs .btn {
  min-height: 42px;
  font-size: 0.82rem;
  padding: 10px 16px;
}
.insight-note {
  color: var(--kp-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.check-ok {
  color: #246d35;
  font-weight: 700;
}
.check-failed {
  color: #b62329;
  font-weight: 700;
}
.daily-overview-days {
  display: grid;
  gap: 12px;
}
.daily-overview-day {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(15, 43, 46, 0.1);
  border-radius: 16px;
}
.daily-overview-day > span,
.daily-overview-day > strong {
  display: block;
  margin-bottom: 8px;
}
.daily-overview-day p {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.daily-overview-day small {
  color: var(--kp-muted);
}
.inbox-filters {
  align-items: end;
}
.inbox-filters label,
.inbox-message label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 0;
}
.inbox-filters label {
  flex: 1 1 140px;
}
.inbox-filters select,
.inbox-message select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  padding: 8px;
  background: white;
  border: 1px solid rgba(15, 43, 46, 0.18);
}
.inbox-list {
  display: grid;
  gap: 14px;
}
.inbox-message {
  background: white;
  border: 1px solid rgba(15, 43, 46, 0.1);
  padding: 16px;
  border-radius: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inbox-message h3 {
  margin: 6px 0;
  font-size: 1rem;
}
.inbox-content {
  white-space: pre-wrap;
  line-height: 1.6;
}
.quiz-readiness {
  margin: 12px 0;
  border-top: 1px solid rgba(15, 43, 46, 0.1);
  font-size: 0.82rem;
}
.quiz-readiness summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 700;
}
.quiz-readiness-body {
  padding: 0 0 8px;
}
.quiz-readiness-body p {
  font-size: 0.8rem;
  line-height: 1.5;
}
.quiz-readiness.insight-panel {
  padding: 0 18px;
  margin-bottom: 24px;
}
.readiness-issue {
  display: block;
  color: var(--kp-muted);
  margin: 6px 0;
  line-height: 1.5;
}
.player-progress {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 43, 46, 0.12);
}
.profile-results-card .player-progress {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.profile-results-card #player-progress-title {
  margin-top: 0;
}
.player-progress h3 {
  font-size: 1.1rem;
  margin: 16px 0 12px;
}
.progress-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.progress-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 43, 46, 0.1);
  overflow-wrap: anywhere;
}
.progress-result strong {
  font-size: 0.94rem;
}
.progress-result small {
  color: var(--kp-muted);
  grid-column: 1/-1;
}
.progress-result-score {
  color: #246d35;
  font-weight: 700;
  font-size: 0.86rem;
}
.category-progress {
  display: grid;
  gap: 14px;
}
.category-progress-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  font-size: 0.85rem;
}
.category-progress-item progress {
  width: 100%;
  height: 9px;
  grid-column: 1/-1;
  accent-color: #388b43;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}
.category-progress-item progress::-webkit-progress-bar {
  background: #e9eddc;
}
.category-progress-item progress::-webkit-progress-value {
  background: #388b43;
  border-radius: 10px;
}
.question-report-link {
  border: 0;
  background: none;
  color: var(--kp-muted);
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 10px 2px;
}
.hero-daily-card > .question-report-link {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
}
.question-report-link:disabled {
  opacity: 0.45;
  cursor: default;
}
.online-answer-popup > .question-report-link {
  display: block;
  width: 100%;
  text-align: center;
}
.question-report-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--kp-text);
  background: #fffdf7;
  box-shadow: 0 24px 80px rgba(15, 43, 46, 0.3);
}
.question-report-dialog::backdrop {
  background: rgba(15, 43, 46, 0.55);
  backdrop-filter: blur(4px);
}
.question-report-body {
  padding: 28px;
}
.question-report-body h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.question-report-body label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.question-report-body textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(15, 43, 46, 0.18);
  background: white;
  padding: 12px;
  border-radius: 14px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}
.question-report-body [role='status'] {
  line-height: 1.5;
  font-size: 0.9rem;
}
.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.report-actions .btn {
  min-height: 44px;
  font-size: 0.85rem;
  padding: 10px 16px;
}
@media (max-width: 650px) {
  .insight-panel > summary {
    padding: 16px;
  }
  .insight-body {
    padding: 0 16px 16px;
  }
  .progress-result {
    grid-template-columns: 1fr;
  }
  .category-progress-item {
    grid-template-columns: 1fr;
  }
  .question-report-body {
    padding: 20px;
  }
}

.daily-plan-heading {
  margin: 8px 0 0;
  font-size: 1rem;
}
.daily-overview-day > .daily-plan-quiz {
  color: var(--kp-muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.daily-plan-choices {
  margin: 12px 0;
  border-top: 1px solid rgba(15, 43, 46, 0.1);
  padding-top: 10px;
}
.daily-plan-choices summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.daily-plan-choices ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.daily-plan-choices li {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.daily-plan-letter {
  flex: 0 0 24px;
  text-align: center;
  border-radius: 7px;
  background: var(--kp-yellow);
  font-weight: 800;
}
