.learning-reply{margin:1rem 0;border-top:2px solid #003385;padding-top:.6rem}
.learning-reply h4{margin:.8rem 0 .3rem}.learning-reply p{white-space:pre-line}
.learning-active-question{font-weight:650}.learning-checkpoint{border-left:3px solid #e12d36;padding:.7rem;background:#f1f4fa}
.learning-draft-status{font-size:.88rem;color:#4d5e76}
.learner-reply ol{padding-left:1.45rem}.learner-reply li+li{margin-top:.45rem}
.learner-formula{margin:.45rem 0;padding:.65rem .8rem;background:#f1f4fa;border-left:3px solid #003385;color:#162742;font-weight:650;white-space:pre-wrap;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.learner-clues{margin:.45rem 0 1rem}.learner-clues dt{margin-top:.6rem;font-weight:650;overflow-wrap:anywhere}.learner-clues dd{margin:.15rem 0 .5rem}
.learning-matches{margin:.65rem 0;padding-left:1.4rem}
.learning-matches li+li{margin-top:.55rem}
.learning-matches button{font:inherit;text-align:left;color:#003385;background:#fff;border:1px solid #a4b4ce;border-radius:.3rem;padding:.5rem .7rem;min-height:44px;cursor:pointer;white-space:pre-line}
.study-library-in-chat { min-width: 0; overflow-wrap: anywhere; }
.study-library-in-chat .study-library-search {
  display: grid;
  gap: .55rem;
  align-items: end;
  margin: .55rem 0 .7rem;
}
.study-library-search-row,
.study-library-filters { display: grid; align-items: end; gap: .45rem; min-width: 0; }
.study-library-search-row { grid-template-columns: minmax(0, 1fr) auto; }
.study-library-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study-library-in-chat .study-library-search label {
  display: grid;
  gap: .2rem;
  margin: 0;
  color: #3d526e;
  font-size: .84rem;
  font-weight: 650;
}
.study-library-in-chat .study-library-search :is(input[name=q], select[name]),
.study-library-in-chat .study-library-pager input[name=page] {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #adbdcf;
  border-radius: .45rem;
  padding: .32rem .48rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #17273d;
}
.study-library-in-chat .study-library-submit,
.study-library-in-chat .study-library-pager button,
.study-library-in-chat .study-library-page-return {
  min-height: 44px;
  min-width: 0;
  padding: .26rem .48rem;
  border: 1px solid #adbdcf;
  border-radius: .45rem;
  margin: 0;
  font-size: .8rem;
  line-height: 1.2;
  color: #173d70;
  background: white;
}
.study-library-in-chat .study-library-submit { padding-inline: .68rem; background: #003385; border-color: #003385; color: white; }
.study-library-in-chat .study-library-submit:hover { background: #184c96; }
.study-library-in-chat .study-library-pager button:not(:disabled):hover,
.study-library-in-chat .study-library-page-return:hover { background: #edf3fb; }
.study-library-in-chat .study-library-total,
.study-library-in-chat .study-library-status { margin: 0; color: #4a5b72; }
.study-library-result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem .55rem;
  margin-bottom: .4rem;
}
.study-library-in-chat .study-library-pager,
.study-library-in-chat .study-library-page-jump {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .27rem;
  min-width: 0;
  margin: 0;
}
.study-library-in-chat .study-library-pager { flex-wrap: wrap; }
.study-library-in-chat .study-library-page-jump [data-limit] { color: #4a5b72; font-size: .78rem; white-space: nowrap; }
.study-library-in-chat .study-library-pager input[name=page] { width: 6ch; text-align: center; font-variant-numeric: tabular-nums; }
.study-library-in-chat :is(.study-library-total, .study-library-pager, .study-library-page-return)[hidden] { display: none; }
.study-library-in-chat .study-library-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.study-library-results {
  display: grid;
  gap: .28rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.study-library-in-chat .study-library-results button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .37rem .53rem;
  border: 1px solid #ced9e7;
  border-radius: .45rem;
  background: #fff;
  color: #173d70;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.38;
  text-align: start;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.study-library-in-chat .study-library-results button:hover { background: #f2f7fd; }
.study-library-in-chat .study-library-results small { display: block; margin-bottom: .1rem; color: #465d7a; font-size: .73rem; font-weight: 700; }
.study-library-in-chat .study-library-page-return { margin-top: .36rem; }
.learning-followups{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.8rem}.learning-followups button{font:inherit;padding:.45rem .65rem;border:1px solid #003385;background:white;color:#003385;border-radius:.3rem;cursor:pointer}
.learning-reply table{border-collapse:collapse;width:100%;font-size:.9rem}.learning-reply th,.learning-reply td{border:1px solid #cbd4df;padding:.45rem;text-align:left;vertical-align:top}
.learning-reply details{margin:.8rem 0}.learning-reply a{overflow-wrap:anywhere}.learning-reply ul{padding-left:1.2rem}
.learning-unit-chain{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem .55rem;margin:.45rem 0;padding:.75rem .8rem;background:#f1f4fa;border:1px solid #d5deec;border-radius:.35rem;color:#162742;font-variant-numeric:tabular-nums lining-nums;font-size:clamp(.9rem,2.6vw,1.05rem)}
.learning-factor{display:inline-flex;align-items:center;gap:.55rem;max-width:100%;white-space:nowrap}
.learning-times{font-weight:600;color:#4d5e76}
.learning-fraction{display:inline-grid;text-align:center;line-height:1.38;min-width:0}
.learning-fraction :is(.top,.bottom){padding:.05rem .24rem}
.learning-fraction .bottom{border-top:1px solid #52647e}
.learning-fraction s{text-decoration-color:#aa2030;text-decoration-thickness:2px}
.learning-unit-note{margin:.3rem 0 .8rem;color:#4d5e76;font-size:.875rem}
@media(max-width:600px){.learning-followups button{min-height:44px}.learning-reply table{font-size:.8rem}}
.exam-chat-card { margin: .65rem 0 0; }
.exam-chat-card h4 { margin: 0 0 .45rem; font-size: .91rem; color: #28476c; }
.exam-chat-card p + p { margin-top: .65rem; }
.exam-chat-card details { margin-top: .75rem; }
.exam-chat-card summary { color: #163e72; cursor: pointer; font-weight: 650; }
.exam-chat-options { display: grid; gap: .4rem; list-style: none; margin: .75rem 0; padding: 0; }
.exam-chat-options button { display: block; width: 100%; min-height: 44px; text-align: start; background: #f7faff; border: 1px solid #cfddef; border-radius: 8px; padding: .5rem .75rem; color: #1c3d66; font: inherit; overflow-wrap: anywhere; }
.exam-chat-options button:hover { background: #e9f1fd; }
