/* AONE review 06 / 07 / 08: library navigation and readable CBT results. */
body:not(.kcbt-body):not(.ebook-reader-workspace) .a1-learning-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 4px;
  gap: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1745b8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}
body:not(.kcbt-body):not(.ebook-reader-workspace) .a1-learning-text-link:hover {
  color: #092a7a;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.a1-learning-text-link:focus-visible,
.a1-library-tabs a:focus-visible,
.a1-library-pagination a:focus-visible,
.a1-cbt-actions :is(a, button):focus-visible,
.a1-review-toolbar button:focus-visible,
.a1-answer-review summary:focus-visible {
  outline: 3px solid #2355dc;
  outline-offset: 3px;
}
body:not(.kcbt-body):not(.ebook-reader-workspace) .a1-learning-empty {
  padding: 48px 24px;
}
.a1-learning-empty .a1-learning-text-link { margin-top: 14px; }
.a1-learning-empty p { line-height: 1.7; }
.a1-learning-empty-wrap { padding: 12px; background: #fff; border-radius: 24px; }
.a1-library-panel { min-width: 0; }
.a1-library-pagination { display: flex; justify-content: center; align-items: center; margin-top: 24px; gap: 16px; font-size: 14px; }
.a1-library-pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #1745b8; text-decoration: underline; text-underline-offset: 4px; }
body:not(.kcbt-body):not(.ebook-reader-workspace) .a1-learning-records > a {
  gap: 20px;
  color: #202a3b;
}
.a1-learning-records > a > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.a1-learning-records .a1-record-value { flex: 0 0 auto; text-align: right; }
.a1-learning-records .a1-record-value em { display: block; margin: 0 0 6px; color: #955200; }
.a1-learning-records .a1-record-value span { color: #1745b8; font-weight: 600; }
body:not(.kcbt-body):not(.ebook-reader-workspace) .cbt-card > .a1-cbt-badges {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
  gap: 8px;
}
body:not(.kcbt-body):not(.ebook-reader-workspace) .cbt-card > .a1-cbt-actions {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e3e8ef;
  gap: 10px;
}
.a1-cbt-actions:not(:has(a, form)) { display: none !important; }
body:not(.kcbt-body):not(.ebook-reader-workspace) .cbt-card > .a1-cbt-actions > :is(a, form) {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
body:not(.kcbt-body):not(.ebook-reader-workspace) .cbt-card > .a1-cbt-actions :is(a, button) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #1745d4;
  background: #1745d4;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
body:not(.kcbt-body):not(.ebook-reader-workspace) .cbt-card > .a1-cbt-actions .a1-cbt-secondary {
  color: #1745b8;
  background: #fff;
}
.a1-result-review { margin-top: 32px; }
.a1-result-review .review-heading { gap: 16px; flex-wrap: wrap; }
.a1-result-review .review-heading span { color: #566174; font-size: 14px; }
.a1-review-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px; }
.a1-review-toolbar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.a1-review-toolbar button { min-height: 44px; padding: 9px 16px; border: 1px solid #cbd3e1; border-radius: 10px; background: #fff; color: #344055; font: inherit; font-size: 14px; cursor: pointer; }
.a1-review-toolbar button:hover { background: #eef3ff; }
.a1-review-filters button[aria-pressed="true"] { border-color: #1745d4; color: #1745b8; background: #edf2ff; font-weight: 750; }
.a1-review-count { margin: 0 0 12px; color: #566174; font-size: 14px; }
.a1-answer-review-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.a1-answer-review { min-width: 0; border: 1px solid #d9e0e9; border-left: 4px solid #2e7764; border-radius: 14px; background: #fff; color: #202a3b; scroll-margin-top: 120px; }
.a1-answer-review.is-wrong { border-left-color: #b7393e; }
.a1-answer-review summary { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 46px 18px 20px; gap: 8px 12px; cursor: pointer; list-style: none; border-radius: 12px; }
.a1-answer-review summary::-webkit-details-marker { display: none; }
.a1-review-label { color: #465367; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.a1-review-status { align-self: start; padding: 3px 8px; border-radius: 5px; background: #eaf5ee; color: #176144; font-size: 12px; font-weight: 750; }
.is-wrong .a1-review-status { background: #fff0ef; color: #a32a34; }
.a1-review-prompt-preview { display: -webkit-box; grid-column: 1 / -1; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #202a3b; font-size: 16px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.a1-review-chevron { position: absolute; right: 18px; top: 26px; color: #536177; font-size: 24px; line-height: 1; }
.a1-answer-review[open] .a1-review-chevron { transform: rotate(180deg); }
.a1-answer-review[open] summary { border-bottom: 1px solid #e3e8ef; border-radius: 12px 12px 0 0; }
.a1-review-detail { padding: 20px; }
.a1-review-detail .a1-review-question { margin: 0 0 20px; color: #202a3b; font-size: 16px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.a1-review-detail dl { display: grid; gap: 10px; margin: 0; }
.a1-review-detail dl > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); padding: 14px 16px; gap: 12px; border-radius: 9px; background: #f2f5f9; }
.a1-review-detail dt { margin: 0; color: #465367; font-size: 14px; font-weight: 750; line-height: 1.7; }
.a1-review-detail dd { margin: 0; color: #263246; font-size: 15px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.a1-review-detail .a1-review-selected dd { color: #344a75; }
.is-wrong .a1-review-detail .a1-review-selected { background: #fff4f2; }
.is-wrong .a1-review-detail .a1-review-selected dd { color: #a32a34; }
.a1-review-detail .a1-review-correct-answer { background: #edf7f1; }
.a1-review-detail .a1-review-correct-answer :is(dt, dd) { color: #176144; }
.a1-review-detail .a1-review-explanation { background: #eff4fd; }
.a1-review-detail .a1-review-explanation dt { color: #1745b8; }
.a1-review-toolbar[hidden], .a1-answer-review[hidden], [data-a1-review-empty][hidden] { display: none !important; }
@media (max-width: 640px) {
  body:not(.kcbt-body):not(.ebook-reader-workspace) .a1-learning-empty { padding: 36px 18px; }
  .a1-learning-empty-wrap { padding: 8px; }
  body:not(.kcbt-body):not(.ebook-reader-workspace) .a1-learning-records > a { align-items: flex-start; flex-direction: column; padding: 20px; gap: 12px; }
  .a1-learning-records .a1-record-value { display: flex; flex-wrap: wrap; align-items: center; width: 100%; gap: 6px 12px; text-align: left; }
  .a1-learning-records .a1-record-value em, .a1-learning-records .a1-record-value span { margin: 0; }
  .a1-learning-records .a1-record-value span { margin-left: auto; }
  .a1-review-toolbar { align-items: flex-start; flex-direction: column; }
  .a1-review-toolbar button { padding: 9px 12px; }
  .a1-answer-review summary { padding: 16px 38px 16px 16px; }
  .a1-review-chevron { right: 12px; }
  .a1-review-detail { padding: 16px; }
  .a1-review-detail dl > div { grid-template-columns: 1fr; gap: 4px; padding: 14px; }
}
@media print {
  .a1-review-toolbar, .a1-learning-text-link { display: none !important; }
  .a1-answer-review { break-inside: avoid; }
}
