.record-store { min-width: 0; }
.rs-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; min-height: 222px; padding: 32px 38px; border-radius: 20px; background: #142337; color: #fff; }
.rs-hero-copy { position: relative; z-index: 1; min-width: 0; }
.rs-hero .eyebrow { color: #b9ed86; font-size: 11px; letter-spacing: 1.7px; }
/* Keep the dark hero legible when a seasonal theme recolours page eyebrows. */
:root .record-store .rs-hero .rs-hero-copy .eyebrow { color: var(--lime, #b9ed86); }
.rs-hero h1 { margin: 8px 0 12px; font-size: clamp(34px, 3.8vw, 48px); letter-spacing: -1.8px; }
.rs-hero p { margin-bottom: 12px; font-size: 18px; font-weight: 500; }
.rs-hero-note { color: #c2cfdd; font-size: 13px; }
.rs-hero-art { position: relative; width: 230px; height: 174px; flex-shrink: 0; }
.rs-sleeve { position: absolute; top: 2px; left: 6px; width: 154px; height: 166px; transform: rotate(-12deg); border: 1px solid #cbf4a750; border-radius: 5px; background: linear-gradient(145deg, #b9ed86 0 46%, #8ac866 46% 49%, #224541 49%); box-shadow: 0 8px 20px #0003; }
.rs-sleeve::before { content: "FRESH IDEAS"; position: absolute; top: 17px; left: 13px; color: #193b30; font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.rs-sleeve::after { content: "VOL. 01"; position: absolute; bottom: 16px; left: 13px; color: #c7eeb2; font-size: 10px; letter-spacing: 2px; }
.rs-disc { position: absolute; top: 5px; right: 0; display: grid; place-items: center; width: 164px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #647286; background: repeating-radial-gradient(circle, #182636 0 3px, #354050 4px, #182636 5px 8px); box-shadow: 0 12px 22px #0004; transform: rotate(12deg); }
.rs-disc span { display: grid; place-content: center; width: 61px; height: 61px; border-radius: 50%; background: #c7b9f3; color: #242a47; font-size: 10px; line-height: 1.2; font-weight: 850; text-align: center; letter-spacing: .7px; }
.rs-disc span::after { content: ""; width: 5px; height: 5px; margin: 5px auto 0; border-radius: 50%; background: #172334; }
.rs-hero-art > i { position: absolute; top: -13px; right: -13px; color: #c7b9f3; font-size: 36px; font-style: normal; transform: rotate(10deg); }
.rs-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 26px; }
.rs-scope-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.rs-scope-tabs button { padding: 9px 15px; border-radius: 999px; font-size: 13px; background: transparent; }
.rs-scope-tabs button[aria-pressed="true"] { background: #142337; color: #fff; border-color: #142337; }
.rs-library-toolbar > button { flex-shrink: 0; }
.rs-filters { display: grid; grid-template-columns: minmax(200px, 1fr) 185px 140px auto; align-items: end; gap: 12px; margin: 22px 0 18px; }
.rs-filters label { font-size: 12px; }
.rs-filters input, .rs-filters select { min-height: 45px; padding: 11px 12px; font-size: 14px; }
.rs-search-input { position: relative; margin-top: 7px; }
.rs-search-input > svg, .rs-search-input > span { position: absolute; top: 14px; left: 13px; width: 18px; height: 18px; color: #718192; pointer-events: none; }
.rs-search-input input { padding-left: 41px; }
.rs-search-button { min-height: 45px; }
.rs-mine-note { padding: 13px 16px; background: #eaf0fa; border-radius: 10px; font-size: 13px; color: #455b7a; }
.rs-results-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 27px 0 16px; }
.rs-results-heading h2 { font-size: 19px; }
.rs-results-heading p { margin: 0; }
.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rs-card { overflow: hidden; min-width: 0; display: flex; flex-direction: column; border: 1px solid #dce3e9; border-radius: 15px; background: #fff; box-shadow: 0 3px 12px #14233704; transition: box-shadow .18s, border-color .18s; }
.rs-card:hover { border-color: #b7c5d3; box-shadow: 0 6px 20px #1423370d; }
.rs-card-art { position: relative; display: flex; align-items: flex-end; height: 126px; padding: 19px; overflow: hidden; }
.rs-art-unit { background: #e0eddd; color: #345b3e; }
.rs-art-lesson { background: #e7e1f4; color: #5a477e; }
.rs-card-art > span { position: absolute; top: 17px; left: 19px; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.rs-card-art > p { position: relative; z-index: 1; width: calc(100% - 80px); margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.rs-mini-record { position: absolute; width: 120px; height: 120px; right: -7px; top: 25px; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, #263648 0 4px, #435264 5px, #263648 6px 9px); transform: rotate(-18deg); box-shadow: -4px 4px 14px #1525381a; }
.rs-mini-record i { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: #b9ed86; }
.rs-art-lesson .rs-mini-record i { background: #c5b4e9; }
.rs-mini-record i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #263648; }
.rs-card-body { display: flex; flex-direction: column; flex: 1; padding: 19px; min-width: 0; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rs-tags > span { padding: 3px 7px; border-radius: 5px; color: #5a6a79; background: #f0f3f6; font-size: 10px; font-weight: 600; line-height: 1.4; }
.rs-tags > .rs-kind { color: #34445a; background: #eaf0f6; }
.rs-tags > .rs-public { color: #435b94; background: #edf1fc; }
.rs-tags > .rs-school { color: #346644; background: #edf5e9; }
.rs-tags > .rs-private { color: #6d6073; background: #f0ebf2; }
.rs-card h3 { margin-top: 14px; margin-bottom: 9px; font-size: 18px; letter-spacing: -.3px; overflow-wrap: anywhere; }
.rs-card-description { margin-bottom: 14px; font-size: 13px; line-height: 1.6; color: #647485; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rs-topic-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.rs-topic-tags span { max-width: 100%; background: #f6f7f9; border: 1px solid #e8ecf1; border-radius: 5px; padding: 3px 7px; color: #61707f; font-size: 10px; overflow-wrap: anywhere; }
.rs-byline { font-size: 12px; color: #4b5c6b; overflow-wrap: anywhere; }
.rs-byline span { display: block; margin-top: 3px; color: #778595; font-size: 11px; }
.rs-card .rs-byline { margin-top: auto; padding-top: 3px; margin-bottom: 15px; }
.rs-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0f3; padding-top: 12px; }
.rs-card-footer > span { font-size: 12px; color: #647485; }
.rs-card-footer .secondary { padding: 7px 11px; font-size: 12px; }
.rs-card-footer .secondary > span { margin-left: 5px; font-size: 15px; }
.rs-card .rs-manage { align-self: flex-start; margin-top: 13px; padding: 0; font-size: 12px; }
.rs-empty, .rs-grid > .rs-loading { grid-column: 1 / -1; text-align: center; padding: 42px 24px; background: #fff; border: 1px dashed #cad6df; border-radius: 14px; }
.rs-empty p { max-width: 420px; margin: 0 auto 19px; color: #647485; font-size: 14px; }
.rs-empty-disc { display: grid; place-items: center; width: 56px; height: 56px; border: 7px double #5c6a7a; border-radius: 50%; margin: 0 auto 17px; background: #182a40; color: #b9ed86; font-size: 21px; }
.rs-more { text-align: center; margin: 23px 0; }
.rs-more p:empty { display: none; }
.rs-more p { margin-top: 12px; }
.rs-how-it-works { display: flex; align-items: center; gap: 16px; margin-top: 25px; padding: 20px 23px; background: #eaf0ed; border-radius: 13px; color: #496253; }
.rs-how-it-works p { margin: 0; font-size: 13px; line-height: 1.75; }
.rs-how-it-works strong { color: #2f4739; }
.rs-how-disc { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; border: 5px double #678d71; border-radius: 50%; font-size: 15px; }

.record-store-dialog { width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dce3e9; border-radius: 18px; background: #fff; color: #1c2d3e; overflow: auto; box-shadow: 0 20px 80px #0a162940; }
.record-store-dialog::backdrop { background: #0b182cb3; backdrop-filter: blur(3px); }
.rs-dialog-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 26px; background: #fff; border-bottom: 1px solid #e6ebef; }
.rs-dialog-heading h2 { font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.rs-close { flex-shrink: 0; font-size: 28px; line-height: 1; }
.rs-dialog-body { padding: 25px 26px; }
.rs-dialog-body h3 { overflow-wrap: anywhere; }
.rs-dialog-body .rs-loading { padding: 30px 0; text-align: center; }
.rs-dialog-body label { font-size: 13px; }
.rs-dialog-body input, .rs-dialog-body select, .rs-dialog-body textarea { font-size: 14px; }
.rs-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.rs-dialog-actions button { min-height: 42px; }
.rs-preview-header > .rs-tags { margin-bottom: 16px; }
.rs-preview-subject { color: #647485; font-size: 13px; }
.rs-brief { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.rs-track-list-heading { font-size: 16px; margin: 24px 0 13px; }
.rs-lesson-list { display: grid; gap: 9px; }
.rs-preview-lesson { border: 1px solid #dfe5ea; border-radius: 10px; overflow: hidden; }
.rs-preview-lesson > summary { display: flex; align-items: center; gap: 12px; padding: 15px; cursor: pointer; list-style: none; background: #f8fafb; }
.rs-preview-lesson > summary::-webkit-details-marker { display: none; }
.rs-preview-lesson summary > span:nth-child(2) { flex: 1; min-width: 0; }
.rs-preview-lesson summary strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.rs-preview-lesson summary small { display: block; color: #71808f; font-size: 11px; margin-top: 3px; }
.rs-track-number { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; background: #e9eef5; border-radius: 50%; color: #556579; font-size: 11px; font-weight: 700; }
.rs-expand { font-size: 22px; color: #6f7d8c; transition: transform .15s; }
.rs-preview-lesson[open] .rs-expand { transform: rotate(45deg); }
.rs-lesson-content { padding: 18px; border-top: 1px solid #e6ebef; }
.rs-lesson-content h4 { margin: 0 0 8px; color: #4c5c6b; font-size: 12px; }
.rs-lesson-content p:last-child { margin-bottom: 0; }
.rs-vocabulary { margin: 0; }
.rs-vocabulary > div { padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.rs-vocabulary > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rs-vocabulary dt { color: #344d79; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.rs-vocabulary dd { margin: 4px 0 0; font-size: 13px; color: #647485; line-height: 1.6; overflow-wrap: anywhere; }
.rs-sharing-note { margin: 20px 0 0; padding: 13px 15px; border-radius: 9px; background: #f2f5f8; color: #657384; font-size: 12px; line-height: 1.7; }
.rs-source-summary h3, .rs-copy-resource h3 { font-size: 19px; margin-top: 7px; }
.rs-source-summary .eyebrow { font-size: 10px; }
.rs-share-form, .rs-copy-form { display: grid; gap: 19px; }
.rs-share-form .rs-dialog-actions, .rs-copy-form .rs-dialog-actions, .rs-share-form .rs-sharing-note, .rs-copy-form .rs-sharing-note { margin-top: 0; }
.rs-source-summary p, .rs-copy-resource p { margin-bottom: 0; }
.rs-audience, .rs-year-fieldset, .rs-class-fieldset, .rs-copy-destination { min-width: 0; margin: 0; padding: 0; border: 0; }
.rs-dialog-body legend { font-size: 13px; font-weight: 650; padding: 0; margin-bottom: 10px; }
.rs-audience { display: grid; gap: 8px; }
.rs-audience-option { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid #dce3e9; border-radius: 9px; cursor: pointer; }
.rs-audience-option:has(:checked) { background: #f0f5ed; border-color: #a7c995; }
.rs-audience-option input, .rs-copy-destination input { width: 17px; height: 17px; padding: 0; margin: 3px 0 0; flex-shrink: 0; accent-color: #315edf; }
.rs-audience-option strong { display: block; font-size: 13px; }
.rs-audience-option small { display: block; margin-top: 3px; color: #6d7b8c; font-size: 12px; font-weight: 400; }
.rs-field-help { display: block; color: #71808f; font-weight: 400; font-size: 11px; margin-top: 6px; }
.rs-year-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-year-choices label { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid #dce3e9; border-radius: 7px; cursor: pointer; }
.rs-year-choices label:has(:checked) { background: #edf3ff; border-color: #9ab2ee; color: #244cc1; }
.rs-year-choices label input { width: 14px; height: 14px; }
.rs-year-fieldset > p { margin: 9px 0 0; font-size: 11px; }
.rs-share-contents { padding: 14px; border-radius: 10px; border: 1px solid #dce3e9; }
.rs-share-contents > summary { font-size: 13px; font-weight: 650; cursor: pointer; }
.rs-share-contents > p { margin: 12px 0; font-size: 12px; }
.rs-share-contents .rs-preview-lesson > summary { padding: 11px; }
.rs-share-contents .rs-lesson-content { padding: 13px; }
.rs-form-status { margin: 0; font-size: 13px; line-height: 1.7; }
.rs-form-status:empty { display: none; }
.rs-form-status.error { padding: 11px 13px; border-radius: 8px; background: #fff1ed; }
.rs-copy-destination { display: flex; gap: 18px; flex-wrap: wrap; }
.rs-copy-destination label { display: flex; align-items: center; gap: 8px; }
.rs-copy-destination input { margin: 0; }
.rs-new-unit { display: grid; gap: 19px; }
.rs-class-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 240px; overflow: auto; padding: 1px; }
.rs-class-options label { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #dce3e9; border-radius: 8px; cursor: pointer; min-width: 0; }
.rs-class-options label:has(:checked) { background: #edf3ff; border-color: #9ab2ee; }
.rs-class-options input { flex-shrink: 0; }
.rs-class-options span { overflow-wrap: anywhere; }
.record-store [hidden], .record-store-dialog [hidden] { display: none !important; }
.record-store-dialog summary:focus-visible { outline: 3px solid #7d9cff; outline-offset: -3px; }

@media (max-width: 1150px) {
  .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-filters { grid-template-columns: minmax(160px, 1fr) 150px 125px; }
  .rs-search-button { grid-column: 1 / -1; justify-self: end; min-width: 100px; }
  .rs-hero { padding: 28px; gap: 16px; }
  .rs-hero-art { transform: scale(.9); transform-origin: right center; width: 195px; }
}
@media (max-width: 700px) {
  .rs-hero { min-height: 210px; padding: 26px; }
  .rs-hero-copy { max-width: 420px; }
  .rs-hero p { font-size: 16px; }
  .rs-hero-art { display: none; }
  .rs-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rs-search { grid-column: 1 / -1; }
  .rs-search-button { grid-column: 1 / -1; width: 100%; }
  .rs-library-toolbar { align-items: flex-start; }
  .rs-scope-tabs { gap: 6px; }
  .rs-scope-tabs button { padding: 8px 11px; font-size: 12px; }
  .rs-grid { gap: 13px; }
  .rs-card-body { padding: 15px; }
  .rs-card-art { height: 111px; padding: 15px; }
  .rs-card-art > span { left: 15px; }
  .rs-card-art > p { font-size: 14px; }
  .rs-mini-record { width: 96px; height: 96px; right: -10px; top: 30px; }
  .rs-card h3 { font-size: 16px; }
  .rs-card-footer { flex-wrap: wrap; }
  .rs-how-it-works { align-items: flex-start; padding: 16px; }
}
@media (max-width: 480px) {
  .rs-hero { padding: 25px 21px; border-radius: 15px; min-height: 205px; }
  .rs-hero h1 { font-size: 37px; }
  .rs-hero .eyebrow { max-width: 210px; line-height: 1.7; font-size: 9px; letter-spacing: 1.4px; }
  .rs-hero-note { font-size: 12px; }
  .rs-library-toolbar { flex-wrap: wrap; gap: 7px; margin-top: 20px; }
  .rs-library-toolbar > button { margin-left: auto; font-size: 12px; }
  .rs-scope-tabs { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rs-scope-tabs button { padding: 8px 3px; white-space: nowrap; font-size: 11px; }
  .rs-filters { margin-top: 14px; }
  .rs-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rs-card-art { height: 112px; }
  .rs-card-body { padding: 19px; }
  .rs-card-art > p { font-size: 18px; }
  .rs-mini-record { width: 123px; height: 123px; top: 19px; right: 6px; }
  .rs-card h3 { font-size: 19px; }
  .rs-card-footer .secondary { min-height: 40px; padding: 8px 13px; }
  .rs-card .rs-manage { min-height: 35px; }
  .rs-results-heading h2 { font-size: 18px; }
  .rs-empty { padding: 29px 18px; }
  .record-store-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 13px; }
  .rs-dialog-heading { padding: 16px; gap: 12px; }
  .rs-dialog-heading h2 { font-size: 19px; }
  .rs-dialog-body { padding: 18px 16px; }
  .rs-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rs-dialog-actions .primary { grid-row: 1; }
  .rs-preview-lesson > summary { padding: 12px; gap: 9px; }
  .rs-lesson-content { padding: 14px; }
  .rs-class-options { grid-template-columns: minmax(0, 1fr); }
  .rs-how-disc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-card, .rs-expand { transition: none; }
}
