/* One shared scope selector follows the composer from home to conversation. */
.knowledge-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -3px 0 17px; }
.scope-caption { color: #a1aaa5; font-size: 11px; margin-right: 3px; }
.scope-option { display: inline-flex; position: relative; align-items: center; gap: 7px; min-height: 34px; padding: 5px 11px; border: 1px solid #ffffff16; border-radius: 9px; color: #b2bab5; font-size: 12px; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.scope-option input { width: 13px; height: 13px; margin: 0; accent-color: #9adeb3; cursor: inherit; }
.scope-option svg { width: 14px; height: 14px; }
.scope-option:has(:checked) { color: #d0efdb; border-color: #9adeb335; background: #9adeb30a; }
.scope-option:hover { border-color: #9adeb366; background: #9adeb311; }
.scope-option:has(:focus-visible) { outline: 2px solid #9adeb3; outline-offset: 3px; }
.scope-option:has(:disabled) { opacity: .55; cursor: wait; }
.turn-scope { margin: 0 0 12px; color: #91a69a; font-size: 11px; line-height: 1.6; }
.library-view { padding-top: 30px; }
.library-view .section-heading { margin-bottom: 24px; }
.library-view .section-heading h2 { margin-top: 0; margin-bottom: 8px; }
.library-collections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.library-collections button { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 76px; padding: 14px 20px; text-align: left; border: 1px solid #ffffff18; border-radius: 14px; background: #ffffff02; color: #9fa9a3; transition: border-color .18s, background .18s; }
.library-collections button[aria-pressed="true"] { border-color: #9adeb353; background: #9adeb309; color: #d0efdb; }
.library-collections button:hover { border-color: #9adeb380; }
.library-collections svg { width: 22px; height: 22px; flex-shrink: 0; }
.library-collections strong { display: block; font-size: 15px; font-weight: 600; }
.library-collections small { display: block; margin-top: 5px; font-size: 11px; color: #98a49c; line-height: 1.5; text-wrap: balance; }
.collection-count { margin-left: auto; white-space: nowrap; font-size: 11px; color: #98a49c; }
.handbook-source-note { margin: -4px 0 22px; padding: 13px 16px; border: 1px solid #9adeb31c; border-radius: 10px; background: #9adeb304; }
.handbook-source-note p, .contact-page .handbook-source { margin: 0; color: #98aaa0; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.contact-page .handbook-source { margin-top: 10px; }
.handbook-source a, .handbook-source-link, .notice-body a { color: #bfe6cc; text-decoration: underline; text-decoration-color: #bfe6cc60; text-underline-offset: 3px; overflow-wrap: anywhere; }
.handbook-source a:hover, .handbook-source-link:hover, .notice-body a:hover { color: #e0f8e9; }
.campus-source-note { margin: -5px 0 18px; font-size: 12px; color: #99ada1; line-height: 1.8; }
.library-modules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 20px; }
.library-module { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 14px 16px; border: 1px solid #ffffff17; border-radius: 13px; background: #ffffff02; text-align: left; color: #bfcdc3; transition: border-color .18s,background .18s; }
.library-module:hover { background: #ffffff05; border-color: #a1dbb14d; }
.library-module.active { border-color: #9adeb370; background: #9adeb30b; }
.module-heading { display: flex; align-items: center; gap: 9px; line-height: 1.6; }
.module-heading svg { width: 18px; height: 18px; color: #9dd5b1; }
.module-heading strong { font-size: 14px; font-weight: 550; }
.module-description { margin-top: 6px; color: #93a198; font-size: 11px; line-height: 1.7; }
.module-count { margin-top: 9px; font-size: 12px; color: #b4d1be; font-variant-numeric: tabular-nums; }
.library-filters { align-items: center; gap: 10px; margin: 20px 0; }
.library-source-filter { display: flex; align-items: center; gap: 12px; min-width: 0; margin-left: auto; color: #a4b4aa; font-size: 11px; }
.library-source-filter select { width: min(330px,40vw); min-width: 0; min-height: 42px; padding: 8px 34px 8px 12px; border: 1px solid #ffffff24; border-radius: 9px; color: #dae7df; background: #1b201d; font: inherit; font-size: 12px; text-overflow: ellipsis; }
.library-summary { line-height: 1.7; scroll-margin-top: 20px; }
.library-loading { margin: 0 0 20px; color: #abc4b4; font-size: 12px; line-height: 1.8; }
.library-loading > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-loading button { flex-shrink: 0; color: #cef0da; background: none; border: 1px solid #9adeb340; border-radius: 8px; padding: 7px 14px; }
.library-loading progress { display: block; appearance: none; width: 100%; height: 3px; margin-top: 12px; border: 0; border-radius: 2px; overflow: hidden; background: #ffffff12; accent-color: #9adeb3; }
.library-loading progress::-webkit-progress-bar { background: #ffffff12; }
.library-loading progress::-webkit-progress-value { background: #9adeb3; }
.library-loading progress::-moz-progress-bar { background: #9adeb3; }
.document-card { min-width: 0; }
.document-details h3 { overflow-wrap: anywhere; }
.document-details .document-origin { color: #a7c3b2; line-height: 1.7; overflow-wrap: anywhere; }
.document-details .document-meta { margin-top: 7px; color: #8d9c93; font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.library-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 22px; margin: 30px 0 8px; }
.library-pagination button { min-width: 80px; min-height: 42px; padding: 10px 16px; border: 1px solid #ffffff25; border-radius: 9px; background: #ffffff04; color: #c1decd; font-size: 12px; }
.library-pagination button:hover:not(:disabled) { background: #9adeb316; border-color: #9adeb360; }
.library-pagination button:disabled { opacity: .35; cursor: default; }
.library-pagination span { color: #9bafa2; font-size: 12px; font-variant-numeric: tabular-nums; }
.reader-original { display: inline-block; margin-left: 16px; color: #b6e1c5; text-decoration: underline; text-underline-offset: 3px; }
.reader-footer > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .knowledge-scopes { gap: 6px; margin: -5px 0 10px; }
  .scope-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .scope-option { min-height: 44px; padding: 7px 10px; }
  .library-collections { gap: 9px; margin-bottom: 18px; }
  .library-collections button { flex-wrap: wrap; gap: 9px; padding: 14px; align-content: start; }
  .library-collections button > span:nth-child(2) { flex-basis: 100%; }
  .library-collections .collection-count { order: -1; flex-basis: 100%; margin: 0; }
  .library-collections svg { display: none; }
  .library-collections strong { font-size: 14px; }
  .library-collections small { font-size: 10px; text-wrap: wrap; }
  .library-modules { gap: 7px; margin-bottom: 18px; }
  .library-module { align-items: center; justify-content: center; padding: 13px 7px; text-align: center; }
  .module-heading strong { font-size: 12px; }
  .module-heading svg, .module-description { display: none; }
  .module-count { margin-top: 7px; font-size: 10px; }
  .campus-source-note { font-size: 11px; margin-bottom: 18px; }
  .library-filters { align-items: stretch; gap: 12px; }
  .library-filters:has(.library-source-filter) { flex-direction: column; overflow: visible; }
  .library-filters:has(.library-source-filter) > .filter-chip { align-self: flex-start; }
  .library-source-filter { margin: 0; width: 100%; flex-direction: column; align-items: flex-start; gap: 8px; }
  .library-source-filter select { width: 100%; min-height: 44px; font-size: 14px; }
  .library-pagination { gap: 12px; }
  .library-pagination button { min-height: 44px; }
  .reader-original { display: block; margin: 8px 0 0; }
}
