/* A single teaching library with compact records and focused use flows. */
.record-collection { max-width: 1180px; margin-inline: auto; }
.collection-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:8px 0 26px; }
.collection-heading h1 { margin:7px 0 8px; font-size:clamp(27px,3vw,36px); letter-spacing:-1px; line-height:1.15; }
.collection-heading p { margin:0; font-size:14px; color:var(--muted); }
.collection-heading-actions { display:flex; gap:10px; flex-shrink:0; }
.collection-heading-actions button { gap:7px; font-size:13px; }
.collection-tabs { display:flex; gap:25px; border-bottom:1px solid var(--line); margin-bottom:27px; overflow-x:auto; scrollbar-width:thin; }
.collection-tabs button { border:0; border-bottom:3px solid transparent; padding:13px 2px 15px; background:transparent; color:var(--muted); font:inherit; font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; }
.collection-tabs button[aria-pressed="true"] { border-color:var(--primary,#3059da); color:var(--ink); }
.collection-tabs button:focus-visible { outline:3px solid #84a0f2; outline-offset:-3px; }
.collection-toolbar { display:flex; align-items:center; gap:12px; }
.collection-search { display:flex; align-items:center; gap:10px; flex:1; min-width:0; background:var(--surface,#fff); border:1px solid var(--line); border-radius:12px; padding:0 14px; color:var(--muted); }
.collection-search input { border:0; background:transparent; box-shadow:none; width:100%; min-width:0; padding:13px 0; font-size:14px; }
.collection-search:focus-within { outline:2px solid #84a0f2; outline-offset:2px; }
.collection-search input:focus { outline:0; box-shadow:none; }
.collection-filter select { margin:0; min-height:47px; border-radius:12px; font-size:13px; width:auto; }
.collection-results { display:flex; justify-content:space-between; align-items:center; min-height:53px; font-size:12px; color:var(--muted); }
.collection-results .text-button { font-size:12px; }
.record-collection .collection-unit { border-radius:15px; margin-bottom:12px; }
.record-collection .unit-header { background:var(--surface,#fff); padding:21px; gap:17px; }
.record-collection .unit-header:hover { background:var(--surface-soft,#f7f9fc); }
.record-collection .unit-header h3 { font-size:18px; line-height:1.4; letter-spacing:-.3px; margin:3px 0 6px; }
.collection-record-icon { display:grid; place-items:center; flex:0 0 47px; height:47px; border-radius:50%; background:#e8eef4; color:#36526b; }
.collection-record-icon svg { width:30px; height:30px; }
.collection-unit-meta { display:block; font-size:12px; color:var(--muted); line-height:1.5; }
.collection-unit-controls,.collection-lesson-controls { display:flex; align-items:center; gap:9px; flex-shrink:0; }
.collection-use { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 13px; min-height:40px; font-size:12px; border-radius:9px; }
.collection-use .icon { height:15px; width:15px; }
.collection-more { font-size:18px; letter-spacing:1px; width:34px; min-width:34px; padding:5px; }
.collection-unit-controls>.unit-chevron { color:var(--muted); margin-left:4px; }
.record-collection .teacher-lesson { padding:17px 21px; gap:14px; }
.collection-track-number { color:#8a9cae; width:28px; flex-shrink:0; font-size:12px; font-variant-numeric:tabular-nums; }
.collection-lesson-title { border:0; background:transparent; color:var(--ink); padding:0; text-align:left; font:inherit; font-size:14px; font-weight:650; cursor:pointer; line-height:1.5; }
.collection-lesson-title:hover { text-decoration:underline; text-underline-offset:3px; }
.record-collection .teacher-lesson p { font-size:11px; line-height:1.6; margin-top:5px; }
.collection-unit-footer { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:11px 21px; background:#f9fbfd; }
.collection-unit-footer button { display:inline-flex; align-items:center; gap:6px; font-size:12px; }
.collection-unit-footer>span { color:var(--muted); font-size:11px; }
.collection-use-dialog h2,.collection-more-dialog h2 { font-size:24px; line-height:1.3; overflow-wrap:anywhere; }
.collection-use-options { display:grid; gap:11px; margin:24px 0 18px; }
.collection-use-options>button { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--surface,#fff); color:var(--ink); text-align:left; cursor:pointer; font:inherit; }
.collection-use-options>button:hover { background:#f1f5fa; border-color:#9eb1c6; }
.collection-use-options>button>span { flex:1; }
.collection-use-options strong { display:block; font-size:15px; margin-bottom:5px; }
.collection-use-options small { display:block; font-size:12px; color:var(--muted); line-height:1.5; }
.collection-use-options>button>.icon { color:#4b6b8c; flex-shrink:0; }
.collection-option-list { display:grid; gap:10px; margin-top:24px; }
.collection-option-list>button { justify-content:flex-start; gap:10px; text-align:left; }
.collection-class-units { margin-top:25px; }
.collection-class-units>summary { display:flex; align-items:center; gap:10px; cursor:pointer; font-weight:650; font-size:14px; padding:15px 0; }
.collection-class-units>summary>span { color:var(--muted); font-size:12px; }
.record-collection .class-bar { margin-top:0; flex-wrap:wrap; }
@media(max-width:800px) {
 .collection-heading { align-items:flex-start; flex-direction:column; gap:18px; }
 .collection-heading-actions { width:100%; }
 .collection-tabs { gap:21px; }
 .collection-unit-controls { gap:4px; }
 .collection-record-icon { display:none; }
}
@media(max-width:520px) {
 .collection-heading { margin-top:3px; }
 .collection-heading-actions>button { flex:1; }
 .collection-tabs { gap:18px; margin-bottom:20px; }
 .collection-tabs button { font-size:12px; }
 .collection-toolbar { flex-wrap:wrap; gap:10px; }
 .collection-search { flex-basis:100%; }
 .collection-filter { width:100%; }
 .collection-filter select { width:100%; min-height:39px; padding-block:8px; }
 .record-collection .unit-header { display:grid; grid-template-columns:minmax(0,1fr); padding:17px; gap:13px; }
 .record-collection .unit-header h3 { font-size:16px; }
 .collection-unit-controls { justify-content:flex-end; gap:7px; }
 .collection-unit-controls>.unit-chevron { margin-left:auto; order:-1; }
 .record-collection .teacher-lesson { display:grid; grid-template-columns:22px minmax(0,1fr); padding:16px; gap:9px; }
 .record-collection .teacher-lesson .grow { flex-basis:auto; }
 .collection-lesson-controls { grid-column:2; justify-content:flex-end; margin-top:4px; }
 .collection-track-number { width:auto; align-self:start; padding-top:3px; }
 .collection-use { min-height:38px; }
 .collection-unit-footer { padding:10px 16px; }
 .collection-unit-footer>span { max-width:55%; text-align:right; }
 .collection-use-options>button { padding:14px; gap:10px; }
 .collection-use-options>button>svg:last-child { display:none; }
 .collection-use-dialog h2,.collection-more-dialog h2 { font-size:21px; }
}
