/**
 * l13rc ????? ????????????????????
 * ????l13rc-lesson-shell.css ????????
 */
#l13rc-book .rule-box {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0.45rem 0;
  line-height: 1.45;
}
#l13rc-book .rule-box.violet {
  background: var(--violet-bg, #ede9fe);
  border-left: 5px solid var(--violet, #7c3aed);
  color: #4c1d95;
}
#l13rc-book .rule-box.amber {
  background: #fffbeb;
  border-left: 5px solid #d97706;
  color: #92400e;
}
#l13rc-book .rule-box.teal {
  background: #f0fdfa;
  border-left: 5px solid #0d9488;
  color: #134e4a;
}

#l13rc-book .zh-hint {
  font-size: 0.86rem;
  color: #6d4c41;
  font-weight: 700;
  margin: 0.2rem 0 0.45rem;
  line-height: 1.45;
}

/* ??????????????????????????????!important ??? readable-global?? */
#l13rc-book .en-blur:not(.is-shown) {
  filter: blur(8px) !important;
  opacity: 0.15 !important;
  user-select: none;
  pointer-events: none;
}
#l13rc-book .en-blur.is-shown {
  filter: none !important;
  opacity: 1 !important;
  user-select: text;
  pointer-events: auto;
}
#l13rc-book .zh-hint.en-blur:not(.is-shown) {
  filter: blur(5px) !important;
  opacity: 0.35 !important;
}
#l13rc-book .en-line {
  font-size: var(--lesson-fs-en-line, 1.12rem);
  font-weight: 800;
  color: #1e293b;
  margin: 0.4rem 0;
  line-height: 1.5;
}

#l13rc-book .hl-had {
  background: #ede9fe;
  color: #6d28d9;
  padding: 0 0.12rem;
  border-radius: 4px;
  font-weight: 900;
}
#l13rc-book .hl-past {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0 0.12rem;
  border-radius: 4px;
  font-weight: 900;
}
#l13rc-book .hl-pp {
  background: #ccfbf1;
  color: #0f766e;
  padding: 0 0.12rem;
  border-radius: 4px;
  font-weight: 900;
}
#l13rc-book .hl-be {
  background: #ccfbf1;
  color: #0d9488;
  padding: 0 0.12rem;
  border-radius: 4px;
  font-weight: 900;
}
#l13rc-book .mark-passive {
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 900;
  padding: 0 0.1rem;
  border-radius: 4px;
}
#l13rc-book .mark-active {
  background: #fef3c7;
  color: #b45309;
  font-weight: 900;
  padding: 0 0.1rem;
  border-radius: 4px;
}
#l13rc-book .hl-bad {
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 900;
  padding: 0 0.1rem;
  border-radius: 4px;
  text-decoration: line-through;
}

#l13rc-book .channel-btn {
  display: inline-block;
  margin: 0.5rem auto;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  border: 3px solid var(--l13rc-accent-ink, #0f766e);
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(15, 118, 110, 0.35);
}
#l13rc-book .channel-links {
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
  margin-top: 0.5rem;
}
#l13rc-book .channel-links a {
  color: var(--l13rc-accent-ink, #0f766e);
  font-weight: 800;
}

#l13rc-book .quiz-stage {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.35rem;
}
#l13rc-book .quiz-slot {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#l13rc-book .quiz-slot .quiz-item {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 2px solid #99f6e4;
  background: #fff;
}
#l13rc-book .quiz-slot .quiz-head {
  font-weight: 800;
  margin: 0 0 0.45rem;
  line-height: 1.4;
  text-align: center;
}
#l13rc-book .quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-shrink: 0;
}
#l13rc-book .quiz-progress {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--l13rc-accent-ink, #0f766e);
}
#l13rc-book .carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}
#l13rc-book .carousel-dots button {
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
#l13rc-book .carousel-dots button.active {
  border-color: var(--l13rc-accent, #0d9488);
  background: #f0fdfa;
  color: var(--l13rc-accent-ink, #0f766e);
}
#l13rc-book .carousel-dots button.done {
  background: #ecfdf5;
  border-color: #047857;
  color: #047857;
}
#l13rc-book .tag-pill {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  margin-right: 0.25rem;
}
#l13rc-book .match-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0;
}
#l13rc-book .match-chip {
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
}
#l13rc-book .match-chip.selected {
  outline: 3px solid var(--l13rc-accent, #0d9488);
  border-color: var(--l13rc-accent, #0d9488);
}
#l13rc-book .match-chip.used {
  opacity: 0.4;
  pointer-events: none;
}
#l13rc-book .match-target {
  min-height: 52px;
  padding: 0.5rem;
  margin: 0.35rem 0;
  border-radius: 10px;
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  font-weight: 700;
  cursor: pointer;
}
#l13rc-book .match-target.filled {
  border-style: solid;
  border-color: #cbd5e1;
}
#l13rc-book .match-target.ok {
  border-color: #047857;
  background: #ecfdf5;
}
#l13rc-book .match-target.bad {
  border-color: #b91c1c;
  background: #fef2f2;
}
#l13rc-book .score-box {
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  border: 3px solid var(--l13rc-accent, #0d9488);
  background: #f0fdfa;
}
#l13rc-book .score-box .big {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--l13rc-accent-ink, #0f766e);
  margin: 0;
}

#l13rc-book .tier-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.1rem 0.42rem;
  border-radius: 6px;
  margin-right: 0.35rem;
  background: var(--violet-bg, #ede9fe);
  color: var(--violet-ink, #5b21b6);
}

#l13rc-book .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
  align-items: center;
}
#l13rc-book .btn {
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--edge, #5d4037);
  background: linear-gradient(180deg, #fff, #f8fafc);
  font-weight: 800;
  cursor: pointer;
  font-size: 0.88rem;
  touch-action: manipulation;
  font-family: inherit;
  box-shadow: 0 2px 0 rgba(93, 64, 55, 0.1);
  transition: filter 0.15s ease, transform 0.1s ease;
}
#l13rc-book .btn:hover:not(:disabled) {
  filter: brightness(1.03);
}
#l13rc-book .btn:active:not(:disabled) {
  transform: translateY(1px);
}
#l13rc-book .btn.teal {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #fff;
  border-color: #0f766e;
  box-shadow: 0 3px 0 rgba(15, 118, 110, 0.3);
}
#l13rc-book .btn.violet {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  border-color: #5b21b6;
  box-shadow: 0 3px 0 rgba(91, 33, 182, 0.28);
}
#l13rc-book .btn.ghost {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
  box-shadow: 0 2px 0 rgba(148, 163, 184, 0.2);
}
#l13rc-book .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
#l13rc-book a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ????*/
#l13rc-book .corpus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
#l13rc-book .corpus-tab {
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--edge, #5d4037);
  background: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
#l13rc-book .corpus-tab.active {
  background: var(--violet-bg, #ede9fe);
  border-color: var(--violet, #7c3aed);
  color: var(--violet-ink, #5b21b6);
}
#l13rc-book .corpus-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#l13rc-book .corpus-list--preview {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  max-height: min(48vh, 400px);
  padding-right: 0.15rem;
}
#l13rc-book .panel-corpus-preview {
  display: flex;
  flex-direction: column;
  min-height: min(320px, 48vh);
}
#l13rc-book .corpus-item {
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fafafa;
}
#l13rc-book .corpus-item .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: #f3e8ff;
  color: #6d28d9;
  margin-bottom: 0.35rem;
}
#l13rc-book .corpus-item .en {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1e293b;
}
#l13rc-book .corpus-item .zh {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.2rem;
}
#l13rc-book .corpus-item-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.4rem 0;
}
@media (max-width: 520px) {
  #l13rc-book .corpus-item-figs {
    grid-template-columns: 1fr;
  }
}
#l13rc-book .corpus-fig {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #fff;
}
/* ????????? 4:3 ?? l13rc-scene-images.css */
#l13rc-book .corpus-fig figcaption {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.4rem;
  text-align: center;
  background: #f8fafc;
  color: #475569;
}

/* ??????*/
#l13rc-book .event-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0;
  padding: 0.5rem;
  border-radius: 12px;
  border: 2px dashed #c4b5fd;
  background: #faf5ff;
  min-height: 56px;
}
#l13rc-book .event-chip {
  flex: 1 1 min(100%, 140px);
  max-width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  background: #fff;
  cursor: grab;
  touch-action: manipulation;
  line-height: 1.35;
}
#l13rc-book .event-chip .chip-zh {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
}
#l13rc-book .event-chip span[lang="en"] {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.15rem;
}
#l13rc-book .event-chip.selected {
  outline: 3px solid var(--violet, #7c3aed);
  border-color: var(--violet, #7c3aed);
}
#l13rc-book .event-chip.used {
  opacity: 0.45;
  pointer-events: none;
}
#l13rc-book .timeline-board {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
@media (min-width: 640px) {
  #l13rc-book .timeline-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #l13rc-book .timeline-board:has(.tl-lane:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#l13rc-book .tl-lane h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 900;
  color: #475569;
  text-align: center;
}
#l13rc-book .tl-lane.earlier h4 { color: #5b21b6; }
#l13rc-book .tl-lane.past h4 { color: #b91c1c; }
#l13rc-book .tl-lane.now h4 { color: #b45309; }
#l13rc-book .tl-drop {
  min-height: 76px;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
#l13rc-book .tl-drop.drag-over {
  border-color: var(--violet, #7c3aed);
  background: #f5f3ff;
}
#l13rc-book .tl-drop.filled {
  border-style: solid;
  border-color: #cbd5e1;
  color: #1e293b;
  font-weight: 800;
}
#l13rc-book .tl-drop.ok {
  border-color: #047857;
  background: #ecfdf5;
}
#l13rc-book .tl-drop.bad {
  border-color: #b91c1c;
  background: #fef2f2;
}
#l13rc-book .tl-fb {
  margin: 0.35rem 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  background: #ecfdf5;
  color: #047857;
}
#l13rc-book .tl-fb.warn {
  background: #fffbeb;
  color: #92400e;
}

/* ?? */
#l13rc-book .quiz-item {
  padding: 0.65rem;
  margin: 0.45rem 0;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff;
}
#l13rc-book .quiz-item.done {
  border-color: #047857;
  background: #ecfdf5;
}
#l13rc-book .opt-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
#l13rc-book .opt-row button {
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.35;
}
#l13rc-book .opt-row button.ok {
  background: #ecfdf5;
  border-color: #047857;
}
#l13rc-book .opt-row button.bad {
  background: #fef2f2;
  border-color: #b91c1c;
}
#l13rc-book .opt-row.opt-row--stack {
  flex-direction: column;
}
#l13rc-book .opt-row.opt-row--stack button {
  width: 100%;
  text-align: left;
}
#l13rc-book .tier-label.tier-b {
  background: #dbeafe;
  color: #1e40af;
}
#l13rc-book .tier-label.tier-c {
  background: #fef3c7;
  color: #92400e;
}
#l13rc-book .fb {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

/* ?? / ?? / ????*/
#l13rc-book .summary-pick {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
#l13rc-book .summary-pick label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}
#l13rc-book .summary-pick input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
#l13rc-book .contrast-pair {
  padding: 0.65rem;
  margin: 0.45rem 0;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fafafa;
}
#l13rc-book .contrast-pair .line {
  margin: 0.25rem 0;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.45;
}
#l13rc-book .roadmap {
  margin: 0;
  padding-left: 1.25rem;
  font-weight: 700;
  line-height: 1.65;
}
#l13rc-book .roadmap a {
  color: var(--l13rc-accent-ink, #0f766e);
  font-weight: 800;
}
#l13rc-book .roadmap li {
  margin: 0.35rem 0;
}

/* ??????*/
#l13rc-book .panel-story-intro {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}
#l13rc-book .story-purpose-lead {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}
#l13rc-book .scene-frame--story {
  max-height: min(58vh, 480px);
}

