/* Aspas Idiomas — escala visual desktop (proposta para homologação).
   Carregar após os estilos de cada página autenticada.
   Não altera dados, permissões nem regras de negócio. */
@media screen and (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  @supports (zoom: 0.85) {
    html {
      zoom: 0.85;
    }
  }
}
/* teste-chat-normal */

/* Aspas Premium Dark — isolated from the light theme. */
html[data-aspas-theme="dark"] {
  color-scheme: dark;
  --aspas-bg:#100c17; --aspas-surface:#1b1323; --aspas-raised:#24182d;
  --aspas-border:#4a3452; --aspas-text:#f5eff8; --aspas-muted:#c5b7cb;
  --aspas-accent:#ed91ee; --aspas-brand:#84007b; --aspas-focus:#f6a7fa;
  --bs-body-bg:var(--aspas-bg); --bs-body-color:var(--aspas-text);
  --bs-secondary-color:var(--aspas-muted); --bs-tertiary-bg:var(--aspas-raised);
  --bs-border-color:var(--aspas-border); --bs-primary:#b42bac;
  --bs-link-color:var(--aspas-accent); --bs-link-hover-color:#ffd0ff;
  background:var(--aspas-bg);
}
html[data-aspas-theme="dark"] body {
  background:var(--aspas-bg) !important; color:var(--aspas-text) !important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  --bs-body-bg:var(--aspas-bg); --bs-body-color:var(--aspas-text);
  --bs-border-color:var(--aspas-border); --bs-secondary-color:var(--aspas-muted);
  --bs-card-bg:var(--aspas-surface);
}
html[data-aspas-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.section-title,.card-title,.user-name,.level-title,.achievement-name) {
  color:var(--aspas-text); font-family:"Nunito Sans",Inter,system-ui,sans-serif;
  letter-spacing:-.025em; font-weight:700;
}
html[data-aspas-theme="dark"] :is(.navbar-modern,.navbar,.navbar-simple,.navbar-complete,.sticky-header) {
  background:linear-gradient(105deg,#190d24 0%,#45033f 65%,#240d30 100%) !important;
  color:var(--aspas-text) !important; border-bottom:1px solid var(--aspas-border);
  box-shadow:0 3px 16px #0003;
}
html[data-aspas-theme="dark"] :is(.navbar-modern,.navbar,.navbar-simple,.navbar-complete) :is(.navbar-brand,.logo,.nav-link,.user-name,.user-role,.section-title,.navbar-text) {color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] :is(.sidebar,.sidebar-panel,.sidebar-left,.content-card,.content-container,.content,.card,.stats-card,.stat-card,.stats-box,.statistics-card,.filter-card,.achievement-card,.post,.post-card,.post-card-small,.post-card-default,.quick-link-card,.class-card,.event-card,.modal-content,.dropdown-menu,.list-group-item,.exercise-card,.module-card,.language-card,.resource-card,.level-card,.calendar-container,.calendar-day,.class-info,.notification-card,.comment-list,.comment-form,.accordion-item,.accordion-body,.popover,.offcanvas) {
  background:var(--aspas-surface) !important; color:var(--aspas-text) !important;
  border-color:var(--aspas-border) !important;
  --bs-card-color:var(--aspas-text); --bs-card-bg:var(--aspas-surface);
  --bs-card-cap-bg:var(--aspas-raised); --bs-list-group-bg:var(--aspas-surface);
  --bs-list-group-color:var(--aspas-text); --bs-list-group-border-color:var(--aspas-border);
}
html[data-aspas-theme="dark"] :is(.sidebar,.content-card,.level-card,.achievement-card,.stats-card,.quick-link-card,.filter-card,.card,.post-card,.content) {
  border:1px solid var(--aspas-border); border-radius:14px; box-shadow:0 6px 22px #0002;
}
html[data-aspas-theme="dark"] :is(.sidebar-header,.sidebar h2,.sidebar h5,.card-header,.modal-header,.modal-footer,.accordion-button,.calendar-header,.table thead) {
  background:var(--aspas-raised) !important; color:var(--aspas-text) !important;
  border-color:var(--aspas-border) !important;
}
html[data-aspas-theme="dark"] :is(.sidebar-item,.resource-item,.sidebar .nav a,.dropdown-item,.page-link,.accordion-button) {
  color:var(--aspas-text) !important; text-decoration:none;
}
html[data-aspas-theme="dark"] :is(.sidebar-item,.resource-item,.sidebar .nav a) :is(i,svg) {color:var(--aspas-accent)}
html[data-aspas-theme="dark"] :is(.sidebar-item,.resource-item,.sidebar .nav a,.dropdown-item,.page-link):hover {
  background:#382040 !important; color:#fff !important;
}
html[data-aspas-theme="dark"] :is(.sidebar-item.active,.sidebar .nav a[aria-current="page"],.nav-pills .nav-link.active,.page-item.active .page-link) {
  background:linear-gradient(110deg,#84007b,#b500aa) !important;
  color:#fff !important; border-color:#b84db4 !important; box-shadow:0 3px 12px #84007b44;
}
html[data-aspas-theme="dark"] :is(.sidebar-item.active,.sidebar .nav a[aria-current="page"]) :is(i,svg){color:#fff}
html[data-aspas-theme="dark"] :is(.sidebar-divider,.dropdown-divider,hr,.border,.border-bottom,.border-top){border-color:var(--aspas-border) !important}
html[data-aspas-theme="dark"] :is(.welcome-card,.welcome-banner,.welcome-section,.dashboard-welcome,.welcome-header,.hero-card,.hero-section,.dashboard-header) {
  background:linear-gradient(115deg,#300f38 0%,#570251 58%,#84007b 100%) !important;
  color:#fff !important; border:1px solid #91428a; border-radius:14px; box-shadow:0 6px 22px #0003;
}
html[data-aspas-theme="dark"] :is(.welcome-card,.welcome-banner,.welcome-section,.dashboard-welcome,.welcome-header,.hero-card,.dashboard-header) :is(h1,h2,h3,p,.label,.value) {color:#fff !important}
html[data-aspas-theme="dark"] :is(.stat-item,.level-card-body,.card-body,.modal-body,.class-description) {
  color:var(--aspas-text);
}
html[data-aspas-theme="dark"] .level-card-body {background:var(--aspas-surface) !important}
html[data-aspas-theme="dark"] .level-card-header {background:linear-gradient(115deg,#36153e,#53204e) !important;color:#fff !important}
html[data-aspas-theme="dark"] .level-card-header :is(h1,h2,h3,h4,h5,h6,p,span) {color:#fff !important}
html[data-aspas-theme="dark"] .level-card:not(.locked):not(.disabled):not([aria-disabled="true"]):has(.btn-level:not([disabled]):not(.disabled)) {border-color:#9e4799}
html[data-aspas-theme="dark"] :is(.locked,.locked-level,.disabled,[aria-disabled="true"],:disabled) {cursor:not-allowed}
html[data-aspas-theme="dark"] :is(.locked-overlay,.level-lock-overlay,.lock-overlay) {background:#100c17b8 !important}
html[data-aspas-theme="dark"] :is(.text-muted,.text-secondary,.text-dark,.stat-label,.stats-label,.achievement-description,.class-time,.class-teacher,.progress-title,.modal-class-info-label,.exercise-info-label,.form-text) {color:var(--aspas-muted) !important}
html[data-aspas-theme="dark"] :is(.text-primary,.text-purple,.text-info) {color:var(--aspas-accent) !important}
html[data-aspas-theme="dark"] .text-success{color:#8de1ae !important}
html[data-aspas-theme="dark"] .text-danger{color:#ffabab !important}
html[data-aspas-theme="dark"] .text-warning{color:#ffda87 !important}
html[data-aspas-theme="dark"] :is(.bg-white,.bg-light) {background-color:var(--aspas-raised) !important;color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] :is(.badge.bg-light,.badge.bg-white) {color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] :is(.form-control,.form-select,.comment-input,input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),textarea,select) {
  background-color:#140e1c !important;color:var(--aspas-text) !important;border-color:#65466e !important;
}
html[data-aspas-theme="dark"] :is(input,textarea)::placeholder {color:#a99ab2 !important;opacity:1}
html[data-aspas-theme="dark"] :is(.form-label,label,.form-check-label){color:var(--aspas-text)}
html[data-aspas-theme="dark"] :is(.btn-primary,.btn-level:not(.disabled):not(:disabled):not([aria-disabled="true"])) {
  background:linear-gradient(110deg,#84007b,#b000a5) !important;color:#fff !important;border-color:#a944a3 !important;
}
html[data-aspas-theme="dark"] :is(.btn-outline-primary,.btn-outline-secondary,.btn-light,.btn-outline-light) {
  background:transparent !important;color:#f4c1f3 !important;border-color:#a464a3 !important;
}
html[data-aspas-theme="dark"] :is(.btn-outline-primary,.btn-outline-secondary,.btn-light,.btn-outline-light):hover {background:#432247 !important;color:#fff !important}
html[data-aspas-theme="dark"] :is(.btn.disabled,.btn:disabled,.btn[aria-disabled="true"]) {background:#392c42 !important;color:#d1c0d5 !important;border-color:#52405a !important}
html[data-aspas-theme="dark"] .progress {background:#4b3a53 !important}
html[data-aspas-theme="dark"] .progress-bar:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info) {background-color:#d54bca !important}
html[data-aspas-theme="dark"] :is(.table,.table-hover,.table-striped) {
  --bs-table-bg:var(--aspas-surface);--bs-table-color:var(--aspas-text);--bs-table-border-color:var(--aspas-border);
  --bs-table-striped-bg:#261a30;--bs-table-striped-color:var(--aspas-text);
  --bs-table-hover-bg:#34243e;--bs-table-hover-color:#fff;color:var(--aspas-text) !important;
}
html[data-aspas-theme="dark"] .table :is(th,td){border-color:var(--aspas-border)}
html[data-aspas-theme="dark"] :is(.alert-info,.alert-primary){background:#29203d !important;color:#e6d3ff !important;border-color:#705b94 !important}
html[data-aspas-theme="dark"] .alert-success{background:#17372b !important;color:#b0f0c9 !important;border-color:#497e63 !important}
html[data-aspas-theme="dark"] .alert-warning{background:#3e3019 !important;color:#ffdfa0 !important;border-color:#927043 !important}
html[data-aspas-theme="dark"] .alert-danger{background:#421f2a !important;color:#ffc0c8 !important;border-color:#9e5b6b !important}
html[data-aspas-theme="dark"] a:not(.btn):not(.sidebar-item):not(.nav-link):not(.dropdown-item):not(.resource-item):not(.navbar-brand){color:var(--aspas-accent)}
html[data-aspas-theme="dark"] :is(.btn-close){filter:invert(1) grayscale(1) brightness(1.7)}
html[data-aspas-theme="dark"] :focus-visible{outline:2px solid var(--aspas-focus) !important;outline-offset:3px}
html[data-aspas-theme="dark"] ::selection{background:#84007b;color:#fff}

/* Compact icon-only theme control, separate from dropdown hit areas. */
button.asp-theme-switch{appearance:none;display:inline-flex !important;align-items:center;justify-content:center;position:relative;z-index:12;isolation:isolate;pointer-events:auto !important;flex:0 0 38px;width:38px;height:38px;min-width:38px;min-height:38px;padding:0 !important;margin:0 6px;border:0 !important;border-radius:50%;background:transparent !important;box-shadow:none !important;font:20px/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;cursor:pointer;vertical-align:middle;touch-action:manipulation}
button.asp-theme-switch:hover{background:#84007b25 !important}
button.asp-theme-switch:focus-visible{outline:2px solid #ed91ee !important;outline-offset:2px}
html[data-aspas-theme="dark"] button.asp-theme-switch:hover{background:#ffffff18 !important}
button.asp-theme-switch.asp-theme-fallback{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));z-index:1000;background:#f5e8f5 !important}
html[data-aspas-theme="dark"] button.asp-theme-switch.asp-theme-fallback{background:#26142d !important}
@media(max-width:575px){button.asp-theme-switch{margin:0 3px}}

/* Global student navigation geometry: page scroll, no clipped sidebar. */
html[data-aspas-page="student_dashboard"] .sidebar,
html[data-aspas-page="student_learning_path"] .sidebar,
html[data-aspas-page="student_progress"] .sidebar {
  height:auto !important;max-height:none !important;overflow:visible !important;position:static !important;
}
html[data-aspas-page="student_exercises"] body {padding-top:calc(var(--header-height,60px) + 20px) !important}
html[data-aspas-page="student_exercises"] body > .container-fluid.py-4 {margin-top:0 !important}
@media(max-width:767px){
  html[data-aspas-page="student_exercises"] body {padding-top:calc(var(--header-height,60px) + 10px) !important}
}
html[data-aspas-theme="dark"] {
  scrollbar-color:#79517f #100c17;
}
html[data-aspas-theme="dark"] body {
  --bg-light:var(--aspas-bg) !important;--bg-card:var(--aspas-surface) !important;
  --text-dark:var(--aspas-text) !important;--text-light:#fff !important;
  --primary-color:#e292e8;--primary-light:#b000a5;--primary-dark:#570251;
  --purple-shadow:#0003;--green-border:#9b529b;
}
html[data-aspas-theme="dark"] :is(.sidebar,.content-card,.exercises-content,.tabs-container,.modal-body,.table-responsive)::-webkit-scrollbar-track {background:#1b1323}
html[data-aspas-theme="dark"] :is(.sidebar,.content-card,.exercises-content,.tabs-container,.modal-body,.table-responsive)::-webkit-scrollbar-thumb {background:#79517f;border-radius:8px}
html[data-aspas-theme="dark"] :is(.exercises-content,.tabs-container,.welcome-message,.flag-card,.level-description,.progress-card,.progress-header,.achievements-card,.recent-exercises,.exercise-container,#exercise-container,.question-card,.question-item,.option-container,.reading-text,#readingTextContainer,#audioFileContainer,.audio-container,.answer-container,.dictation-answer,.dictation-info,#dictationAnswerField,#dictationAnswerContainer,.points-info-box,.meta-item,.info-item,.summary-card,.summary-content,.result-card,.report-info-card,.period-value,.table-container,.report-footer,.file-preview,.file-requirements,.recurrence-options,.days-of-week .form-check,.professor-container,.course-checkbox,.image-preview-container,.theme-item,.word-item,.icon-preview-container,.icon-preview,.filter-section,.filter-container,.no-items-placeholder,.expanded-theme-section,.attempts-history,.hint-container,.card-back,.flashcard-back,.grammar-item,.grammar-header,.grammar-footer,.grammar-actions,.dictionary-result,.definition-card,.correction-suggestion,.topic-item,.exercise-question,.exercise-explanation,.flashcard-filter,.search-box,.translation-container,.verse-item,.discussion-content,.comment-input-area,.item-card,.item-example,.empty-state,.class-item,.class-list-item,.post-container,.comment-history-item,.history-item-content,.curiosity-container,.result-box,.api-selector,.form-container,.note-toolbar,.note-editor .note-editable,.note-statusbar .note-resizebar,.ck-editor__editable_inline,.toast,.custom-toast,.floating-menu .menu-option,.language-item,.languages-section,.courses-section,.logout-container,.teacher-info,.breadcrumb,.swal2-popup,.fc .fc-scrollgrid,.fc .fc-col-header-cell,.fc .fc-daygrid-day,.fc .fc-timegrid-slot) {
  background:var(--aspas-surface) !important;color:var(--aspas-text) !important;border-color:var(--aspas-border) !important;
}
html[data-aspas-theme="dark"] :is(.level-description,.tabs-container,.flag-card,.option-container,.question-card,.exercise-question,.exercise-explanation,.reading-text,.definition-card,.topic-item,.grammar-item,.word-item,.report-info-card,.item-card,.filter-container,.form-container) {
  box-shadow:0 4px 15px #0002;
}
html[data-aspas-theme="dark"] :is(.exercises-header,.summary-header) {background:linear-gradient(110deg,#570251,#84007b) !important;color:#fff !important;border-color:#91428a !important}
html[data-aspas-theme="dark"] :is(.level-description,.exercises-content,.tabs-container,.flag-card,.module-card,.reading-text,.exercise-container,.question-card,.grammar-item,.definition-card,.topic-item,.item-card,.report-info-card,.summary-card,.result-card) :is(h1,h2,h3,h4,h5,h6,p,.language-name,.exercise-count,.description,.label) {color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] :is(.level-description,.flag-card,.module-card,.question-card,.definition-card,.item-card) :is(.text-muted,.exercise-count,small) {color:var(--aspas-muted) !important}
html[data-aspas-theme="dark"] :is(.nav-tabs,.tabs-container,.custom-tabs) {border-color:var(--aspas-border) !important}
html[data-aspas-theme="dark"] :is(.nav-tabs,.tabs-container,.custom-tabs) .nav-link {background:transparent !important;color:var(--aspas-muted) !important;border-color:transparent}
html[data-aspas-theme="dark"] :is(.nav-tabs,.tabs-container,.custom-tabs) .nav-link.active {background:#412044 !important;color:#f7c7f8 !important;border-color:#9b529b !important}
html[data-aspas-theme="dark"] :is(.nav-tabs,.tabs-container,.custom-tabs) .nav-link.disabled {background:transparent !important;color:#a99ab2 !important}
html[data-aspas-theme="dark"] :is(.flag-card.selected,.module-card.selected,.option-item.selected,.question-card .option.selected) {background:#412044 !important;border-color:#be6bbf !important;color:#fff !important}
html[data-aspas-theme="dark"] :is(.option-item,.question-card .option,.question-options .form-check) {background:var(--aspas-raised) !important;color:var(--aspas-text) !important;border-color:var(--aspas-border) !important}
html[data-aspas-theme="dark"] :is(.option-item,.question-card .option,.class-item,.topic-item,.definition-card,.list-group-item,.search-tips):hover {background:#382040 !important;color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] :is(.option-item.correct,.question-card .option.correct,.correct-answer,.result-feedback.correct) {background:#17372b !important;color:#b0f0c9 !important;border-color:#497e63 !important}
html[data-aspas-theme="dark"] :is(.option-item.incorrect,.question-card .option.incorrect,.wrong-answer,.result-feedback.incorrect) {background:#421f2a !important;color:#ffc0c8 !important;border-color:#9e5b6b !important}
html[data-aspas-theme="dark"] :is(.green-divider,.sidebar-divider) {background:#4a3452 !important;border-color:#4a3452 !important}
html[data-aspas-theme="dark"] :is(.section-header h3,.module-card i,.language-name,.exercise-count,.fc .fc-daygrid-day-number,.fc .fc-col-header-cell-cushion) {color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] .table :is(th,td),html[data-aspas-theme="dark"] .table-custom :is(th,td) {background-color:var(--aspas-surface);color:var(--aspas-text);border-color:var(--aspas-border)}
html[data-aspas-theme="dark"] .table th,html[data-aspas-theme="dark"] .table-custom th {background:var(--aspas-raised) !important;color:var(--aspas-text) !important}
html[data-aspas-theme="dark"] :is(footer,.footer,.footer-simples) {background:var(--aspas-bg) !important;color:var(--aspas-muted) !important}
html[data-aspas-theme="dark"] :is(.page-link,.pagination .page-item.disabled .page-link) {background:var(--aspas-surface);border-color:var(--aspas-border);color:var(--aspas-muted)}
html[data-aspas-theme="dark"] .level-card.locked::before {background-color:#100c174d !important}
html[data-aspas-theme="dark"] .level-card.locked::after {color:#f5eff8}

/* Dark resource tiles: distinct jewel tones, no pale gradient or text washout. */
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item {
  --resource-bg:#2e203e;--resource-edge:#63447c;--resource-icon:#d2b1ff;--resource-hover:#3c2a52;
  background:var(--resource-bg) !important;
  color:#f7f3fb !important;border:1px solid var(--resource-edge) !important;
  border-radius:10px;box-shadow:none !important;text-decoration:none !important;
  opacity:1 !important;filter:none !important;
  min-height:82px;padding:12px 8px;line-height:1.35;
}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item:nth-child(1),
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item[href*="vocabulary_page.php"] {
  --resource-bg:#2e203e;--resource-edge:#63447c;--resource-icon:#d2b1ff;--resource-hover:#3c2a52;
}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item:nth-child(2),
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item[href*="grammar_page.php"] {
  --resource-bg:#1b2c45;--resource-edge:#38587d;--resource-icon:#a4c9ff;--resource-hover:#243d5c;
}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item:nth-child(3),
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item[href*="word_search.php"] {
  --resource-bg:#17352f;--resource-edge:#38685a;--resource-icon:#91e3c5;--resource-hover:#21483e;
}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item:nth-child(4),
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item[href*="music_page.php"] {
  --resource-bg:#3d2437;--resource-edge:#784761;--resource-icon:#f4b5d6;--resource-hover:#512d49;
}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item :is(i,svg) {color:var(--resource-icon) !important;opacity:1 !important}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item :is(span,p) {color:#f7f3fb !important;text-decoration:none !important;opacity:1 !important}
html[data-aspas-theme="dark"] .sidebar .sidebar-resources-grid .resource-item:is(:hover,:focus-visible,.active) {background:var(--resource-hover) !important;border-color:var(--resource-icon) !important;color:#fff !important}
html[data-aspas-theme="dark"] .sidebar .language-badge {background:#2c2037 !important;color:#f5eaf9 !important;border:1px solid #67456c;box-shadow:none !important}

/* Community is temporarily hidden from student navigation; data is retained. */
:is(a,button,[role="link"],.sidebar-item,.resource-item)[href*="student_community.php"],
:is(a,button,[role="link"],.sidebar-item,.resource-item)[onclick*="student_community.php"],
html[data-aspas-page="student_dashboard"] .additional-sections .card:has(a[href*="student_community.php"]) {
  display:none !important;
}
.aspas-coming-soon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:250px;margin-top:22px;border:1px dashed #d9c6dc;border-radius:12px;background:#faf7fc;color:#570251;text-align:center;padding:24px}
.aspas-coming-soon h2{font-size:24px;font-weight:700;letter-spacing:-.02em;margin:0;color:#570251}
.aspas-coming-soon-icon{font-size:28px;line-height:1.2}
html[data-aspas-theme="dark"] .aspas-coming-soon{background:#24182d;border-color:#63447c;color:#f5eff8}
html[data-aspas-theme="dark"] .aspas-coming-soon h2{color:#f5eff8 !important}

/* Learning path uses the original dashboard header, grid and sidebar. */
.aspas-learning-path-card{height:auto}

.aspas-learning-path-card .aspas-coming-soon{margin:0;min-height:250px}

/* Read-only daily streak, shared by desktop and mobile. */
.aspas-streak-card{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#fff7e9;border:1px solid #f5c988;border-radius:14px;padding:16px 20px;margin:0 0 18px;color:#583218;position:relative;z-index:1}
.aspas-streak-main{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 180px}
.aspas-streak-main>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.aspas-streak-fire{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:14px;background:#ffe2b4;color:#b34c08;font-size:29px}
.aspas-streak-eyebrow{font-size:.8rem;font-weight:700;color:#784719}
.aspas-streak-main strong{font-size:1.8rem;line-height:1.1;font-weight:800;color:#82370b}
.aspas-streak-message{font-size:.8rem;color:#704626;line-height:1.4}
.aspas-streak-week{display:grid;grid-template-columns:repeat(7,minmax(30px,1fr));gap:6px;flex:1 1 230px;max-width:330px}
.aspas-streak-day{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.7rem;font-weight:600;color:#795b45}
.aspas-streak-dot{display:grid;place-items:center;width:31px;height:31px;border:1px solid #e7d0b1;background:#fff;color:#c3ab91;border-radius:50%;font-size:7px}
.aspas-streak-day.is-done .aspas-streak-dot{background:#b6500b;border-color:#b6500b;color:white;font-size:12px}
.aspas-streak-day.is-today .aspas-streak-dot{outline:2px solid #b6500b;outline-offset:2px}
.aspas-streak-day.is-future .aspas-streak-dot{background:transparent;border-style:dashed}
html[data-aspas-theme="dark"] .aspas-streak-card{background:#302117;border-color:#885633;color:#ffe5c3}
html[data-aspas-theme="dark"] .aspas-streak-fire{background:#59351d;color:#ffc37d}
html[data-aspas-theme="dark"] :is(.aspas-streak-eyebrow,.aspas-streak-message,.aspas-streak-day){color:#e4bd97}
html[data-aspas-theme="dark"] .aspas-streak-main strong{color:#ffd09a}
html[data-aspas-theme="dark"] .aspas-streak-dot{background:#21170f;border-color:#705039;color:#9d7656}
html[data-aspas-theme="dark"] .aspas-streak-day.is-done .aspas-streak-dot{background:#a64c12;border-color:#d58445;color:#fff}
html[data-aspas-theme="dark"] .aspas-streak-day.is-today .aspas-streak-dot{outline-color:#ffc37d}
.aspas-mobile-nav,.aspas-mobile-extra{display:none}
@media(max-width:767px){
  html.aspas-student-mobile-ready{--aspas-mobile-bottom:calc(68px + env(safe-area-inset-bottom,0px));--aspas-mobile-surface:#fff;--aspas-mobile-text:#322b39;--aspas-mobile-line:#e8e0ea;--aspas-mobile-active:#84007b}
  html.aspas-student-mobile-ready[data-aspas-theme="dark"]{--aspas-mobile-surface:#1b1323;--aspas-mobile-text:#ddd0e4;--aspas-mobile-line:#4a3452;--aspas-mobile-active:#f3b4f2}
  html.aspas-student-mobile-ready body{padding-bottom:var(--aspas-mobile-bottom)!important;min-width:0}
  html.aspas-student-mobile-ready .aspas-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));inset:auto 0 0;z-index:998;background:var(--aspas-mobile-surface);border-top:1px solid var(--aspas-mobile-line);padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 18px #0002;min-height:64px}
  html.aspas-student-mobile-ready .aspas-mobile-nav :is(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;min-width:0;padding:3px 0;background:transparent!important;border:0;color:var(--aspas-mobile-text)!important;text-decoration:none!important;font:600 11px/1.2 system-ui,sans-serif;text-align:center;cursor:pointer}
  html.aspas-student-mobile-ready .aspas-mobile-nav :is([aria-current="page"],[aria-expanded="true"]){color:var(--aspas-mobile-active)!important}
  html.aspas-student-mobile-ready .aspas-mobile-icon{font-size:23px;line-height:1;font-weight:700}
  html.aspas-student-mobile-ready .aspas-mobile-panel:not(.aspas-mobile-open){display:none!important}
  html.aspas-student-mobile-ready .aspas-mobile-panel.aspas-mobile-open{display:block!important;scroll-margin-top:calc(var(--header-height,60px) + 12px)}
  html.aspas-student-mobile-ready .aspas-mobile-extra.aspas-mobile-open{position:fixed;z-index:997;bottom:var(--aspas-mobile-bottom);left:10px;right:10px;max-height:65dvh;overflow:auto;padding:16px;background:var(--aspas-mobile-surface);border:1px solid var(--aspas-mobile-line);border-radius:14px;color:var(--aspas-mobile-text);box-shadow:0 8px 24px #0003}
  html.aspas-student-mobile-ready .aspas-mobile-extra a{display:block;padding:12px 8px;color:var(--aspas-mobile-text)!important;text-decoration:none;border-bottom:1px solid var(--aspas-mobile-line)}
  html.aspas-student-mobile-ready :is(.container-fluid,.container){max-width:100%;padding-left:12px;padding-right:12px}
  html.aspas-student-mobile-ready :is(.row,.col-lg-9,.col-lg-3,.main-content,.content-container,.exercises-content,.exercise-container,.question-card,.card-body,.module-card){min-width:0}
  html.aspas-student-mobile-ready :is(.level-cards,.additional-sections){grid-template-columns:minmax(0,1fr)!important}
  html.aspas-student-mobile-ready :is(.navbar-modern .header-container){padding:0 10px;gap:6px}
  html.aspas-student-mobile-ready :is(.navbar-modern .header-right){min-width:0;gap:3px}
  html.aspas-student-mobile-ready .navbar-modern .logo img{max-width:92px;max-height:36px;object-fit:contain}
  html.aspas-student-mobile-ready .navbar-modern .user-info{margin-right:3px!important}
  html.aspas-student-mobile-ready .navbar-modern :is(.user-name,.user-role,.header-center){display:none!important}
  html.aspas-student-mobile-ready .navbar-modern .action-buttons .btn{white-space:nowrap;font-size:12px;padding:6px 8px}
  html.aspas-student-mobile-ready button.asp-theme-switch{flex:0 0 34px;width:34px;min-width:34px;height:38px;margin:0}
  html.aspas-student-mobile-ready .asp-theme-fallback{bottom:calc(var(--aspas-mobile-bottom) + 8px)}
  html.aspas-student-mobile-ready :is(.table-responsive,.calendar-container,.table-container,.fc-scrollgrid){max-width:100%;overflow-x:auto}
  html.aspas-student-mobile-ready :is(.exercise-container,.question-card,.exercises-content,.content-card,.level-description){padding:14px}
  html.aspas-student-mobile-ready :is(.reading-text,.question-text,.exercise-question,.option-item,.question-card .option){overflow-wrap:anywhere}
  html.aspas-student-mobile-ready :is(.option-item,.question-card .option,.btn-level,.module-card,.flag-card){min-height:44px}
  html.aspas-student-mobile-ready :is(.form-control,.form-select,textarea){font-size:16px;max-width:100%}
  html.aspas-student-mobile-ready :is(.flags-container,.modules-grid){gap:12px;max-width:100%}
  html.aspas-student-mobile-ready .flag-card{width:min(145px,100%);padding:10px}
  html.aspas-student-mobile-ready .flag-wrapper{height:auto;max-width:100%}
  html.aspas-student-mobile-ready .tabs-container{padding:10px}
  html.aspas-student-mobile-ready .tabs-container .nav-link{padding:10px 8px;margin:0;font-size:.8rem}
  html.aspas-student-mobile-ready .welcome-section{padding:16px;margin-bottom:20px}
  html.aspas-student-mobile-ready .welcome-section h2{font-size:1.4rem}
  html.aspas-student-mobile-ready .welcome-section>p{font-size:.9rem;margin-bottom:14px}
  .aspas-streak-card{gap:14px;padding:13px;margin-bottom:12px}
  .aspas-streak-main{flex-basis:100%}
  .aspas-streak-week{flex-basis:100%;max-width:none;gap:3px;grid-template-columns:repeat(7,minmax(0,1fr))}
  .aspas-streak-dot{width:28px;height:28px}
  html[data-aspas-page="student_dashboard"] .welcome-section .d-md-none .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
  html[data-aspas-page="student_dashboard"] .welcome-section .d-md-none .row>.col-12{width:100%;padding:0}
  html[data-aspas-page="student_dashboard"] .welcome-section .d-md-none .row>.col-12:last-child{grid-column:1/-1}
  html[data-aspas-page="student_dashboard"] .welcome-section .stat-item{padding:8px;font-size:.8rem}
}

/* Temporarily hide the scheduled lessons card only on the student dashboard. */
html[data-aspas-page="student_dashboard"] .aspas-dashboard-scheduled-lessons{display:none !important}
html[data-aspas-page="student_dashboard"] .additional-sections:not(:has(> .card:not(.aspas-dashboard-scheduled-lessons))){display:none !important}

/* Wrapped / referral use the authenticated dashboard layout. */
html[data-aspas-page="student_wrapped"] .sidebar,html[data-aspas-page="student_referral"] .sidebar{height:auto!important;max-height:none!important;overflow:visible!important;position:static!important}
.aspas-extra-nav{text-decoration:none!important}
.aspas-wrapped-shell{height:auto!important;min-width:0}
.aspas-wrapped-cover{background:linear-gradient(145deg,#170d25,#570251 65%,#84007b);color:#fff;border-radius:18px;padding:clamp(18px,4vw,42px);overflow:hidden}
.aspas-wrapped-cover h2{color:#fff!important;font-size:clamp(1.8rem,5vw,3.5rem);font-weight:800;line-height:1.05;margin:12px 0}
.aspas-wrapped-cover p,.aspas-wrapped-cover small{color:#f5d9f3!important}
.aspas-wrapped-kicker{font-size:.76rem;letter-spacing:.12em;color:#f4baf1;font-weight:700}
.aspas-wrapped-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}
.aspas-wrapped-metric{background:#ffffff16;border:1px solid #ffffff30;border-radius:13px;padding:16px;min-width:0;display:flex;flex-direction:column;gap:5px;color:#fff}
.aspas-wrapped-metric strong{font-size:clamp(1.7rem,5vw,3rem);line-height:1.1;font-weight:800;color:#fff}
.aspas-wrapped-metric span{font-size:.85rem;color:#f5d9f3;overflow-wrap:anywhere}
.aspas-wrapped-share{margin-top:18px;min-height:44px;white-space:normal}
.aspas-wrapped-feedback{font-size:.85rem;margin-top:10px}
.aspas-wrapped-unavailable{margin-top:20px;padding:16px;border:1px solid #b9a9c4;border-radius:12px}
.aspas-wrapped-unavailable p{margin-bottom:0;font-size:.85rem}
@media(max-width:767px){.aspas-wrapped-grid{gap:8px}.aspas-wrapped-metric{padding:12px}.aspas-wrapped-share{width:100%}}

/* Exercises: remove redundant level descriptions for every level and theme. */
html[data-aspas-page="student_exercises"] .exercises-content .level-description{display:none!important;margin:0!important;padding:0!important}
html[data-aspas-page="student_exercises"] .exercises-content .tabs-container{margin-bottom:14px}

/* Aspas Music - responsive local-first catalog. */
html[data-aspas-page="music_page"] .sidebar{height:auto!important;max-height:none!important;overflow:visible!important;position:static!important}
html[data-aspas-page="music_page"] .sidebar a[href*="music_page.php"]{outline:2px solid #ad49b0;outline-offset:2px}
.aspas-music-shell{--am-bg:#fff;--am-edge:#e7e0eb;--am-text:#2b2034;--am-muted:#675b70;--am-accent:#84007b;min-width:0;color:var(--am-text)}
html[data-aspas-theme="dark"] .aspas-music-shell{--am-bg:#1b1422;--am-edge:#493450;--am-text:#f6edf8;--am-muted:#c9b9cf;--am-accent:#f0acec}
.aspas-music-hero{background:linear-gradient(125deg,#24102f,#570251 80%,#84007b);padding:clamp(16px,3vw,32px);border-radius:16px;color:#fff;margin-bottom:22px}
.aspas-music-hero h1{color:#fff!important;font-size:clamp(1.5rem,3vw,2.5rem);margin:10px 0 6px;font-weight:800}
.aspas-music-hero p{color:#ead6ec!important;margin:0 0 20px}
.aspas-music-kicker{color:#f0b7ed;font-size:.75rem;letter-spacing:.13em;font-weight:700}
.aspas-music-search{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
.aspas-music-search input,.aspas-music-search select{min-width:0;width:100%;border:1px solid #ffffff45!important;border-radius:9px;background:#fff!important;color:#29162d!important;padding:11px 12px;font-size:14px;min-height:44px}
html[data-aspas-theme="dark"] .aspas-music-search :is(input,select){background:#21172b!important;color:#f6edf8!important;border-color:#77547e!important}
.aspas-music-search button{background:#fff;color:#570251;border:0;border-radius:9px;padding:10px 18px;font-weight:700;min-height:44px}
.aspas-music-section-title h2,.aspas-music-detail-head h2{font-weight:800;font-size:1.45rem;color:var(--am-text)!important;margin-bottom:4px}
.aspas-music-section-title p,.aspas-music-detail-head p{font-size:.88rem;color:var(--am-muted)!important}
.aspas-music-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(170px,100%),1fr));gap:12px}
.aspas-music-tile{display:flex;flex-direction:column;gap:6px;min-width:0;border:1px solid var(--am-edge);border-radius:13px;padding:10px;background:var(--am-bg);color:var(--am-text)!important;text-decoration:none!important;transition:border-color .15s}
.aspas-music-tile:hover,.aspas-music-tile:focus-visible{border-color:var(--am-accent)}
.aspas-music-art{aspect-ratio:1;background:linear-gradient(140deg,#30203d,#5a285e);color:#edb5ef;position:relative;overflow:hidden;border-radius:9px;display:grid;place-items:center;font-size:2rem}
.aspas-music-art img{width:100%;height:100%;object-fit:cover}
.aspas-music-play{position:absolute;right:9px;bottom:9px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#84007b;color:#fff;font-size:14px}
.aspas-music-tile strong{line-height:1.3;overflow-wrap:anywhere;color:var(--am-text)!important}
.aspas-music-artist{font-size:.82rem;color:var(--am-muted);overflow-wrap:anywhere}
.aspas-music-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}
.aspas-music-tags span{font-size:.68rem;border:1px solid var(--am-edge);border-radius:20px;padding:3px 7px;color:var(--am-muted)}
.aspas-music-notice,.aspas-music-surface{background:var(--am-bg);color:var(--am-text);border:1px solid var(--am-edge);border-radius:13px;padding:18px;margin-bottom:14px;min-width:0}
.aspas-music-notice a,.aspas-music-surface a,.aspas-music-back,.aspas-music-pagination a{color:var(--am-accent)!important}
.aspas-music-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:18px;color:var(--am-muted)}
.aspas-music-detail-head{display:flex;align-items:center;gap:15px;margin:18px 0}
.aspas-music-detail-head img,.aspas-music-cover-fallback{width:100px;height:100px;border-radius:12px;object-fit:cover;flex:none}
.aspas-music-cover-fallback{background:#382044;color:#edb5ef;display:grid;place-items:center;font-size:2rem}
.aspas-music-study-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.aspas-music-surface h3{font-size:1.05rem;color:var(--am-text)!important;font-weight:700;margin:0 0 15px}
.aspas-music-surface p{color:var(--am-muted)!important;font-size:.9rem}
.aspas-music-video{aspect-ratio:16/9;min-height:200px;margin-bottom:10px}
.aspas-music-video iframe{width:100%;height:100%;min-height:200px;border:0;border-radius:8px}
.aspas-music-secondary{display:block;margin-top:10px}
.aspas-music-surface details{border:1px solid var(--am-edge);border-radius:9px;padding:10px;margin-bottom:9px;overflow-wrap:anywhere}
.aspas-music-surface summary{cursor:pointer;font-weight:600;color:var(--am-text);min-height:24px}
.aspas-music-lyrics{white-space:normal;line-height:1.8;padding:12px 0;color:var(--am-text)}
.aspas-music-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:8px}
@media(max-width:767px){.aspas-music-search{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.aspas-music-search input,.aspas-music-search button{grid-column:1/-1}.aspas-music-search :is(input,select){font-size:16px}.aspas-music-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.aspas-music-study-grid{grid-template-columns:1fr}.aspas-music-tile{padding:8px}.aspas-music-tile strong{font-size:.88rem}.aspas-music-detail-head img,.aspas-music-cover-fallback{width:76px;height:76px}.aspas-music-surface{padding:12px}}

/* Global header: full-width alignment, independent of centered page content. */
:is(.navbar-modern,.navbar-complete,.navbar-simple,.sticky-header) .header-container {
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
  box-sizing:border-box!important;padding-inline:20px!important;
}
:is(.navbar-modern,.navbar-complete,.navbar-simple,.sticky-header) .header-container > :is(.logo,.header-left,.navbar-brand){margin-left:0!important;flex-shrink:0}
:is(.navbar-modern,.navbar-complete,.navbar-simple,.sticky-header) .header-container > .header-right{min-width:0;margin-left:auto}
@media(max-width:767px){:is(.navbar-modern,.navbar-complete,.navbar-simple,.sticky-header) .header-container{padding-inline:10px!important}}
.aspas-music-collections{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.aspas-music-collections a{padding:10px 15px;border-radius:10px;border:1px solid var(--am-edge);text-decoration:none!important;color:var(--am-text)!important;background:var(--am-bg);font-weight:600;font-size:.9rem}
.aspas-music-collections a[aria-current="page"]{background:#84007b;color:#fff!important;border-color:#84007b}
.aspas-rec-art{aspect-ratio:1.45;font-size:2.6rem}
.aspas-rec-en{background:linear-gradient(135deg,#26394b,#46405f);color:#acd4fa}
.aspas-rec-es{background:linear-gradient(135deg,#542e3e,#6b3d30);color:#ffcbad}
.aspas-music-search input[type=hidden]{display:none!important}

/* Music language navigation: direct GET links, no JS or stale filter dependency. */
.aspas-music-language-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.aspas-music-language-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 20px;border-radius:9px;border:1px solid #ffffff65;background:#ffffff12;color:#fff!important;text-decoration:none!important;font-weight:700}
.aspas-music-language-tabs a[aria-current="page"]{background:#fff;color:#570251!important;border-color:#fff}
.aspas-music-search-two-languages{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto}
@media(max-width:767px){.aspas-music-language-tabs a{flex:1}.aspas-music-search-two-languages{grid-template-columns:minmax(0,1fr) auto}.aspas-music-search-two-languages input:not([type=hidden]){grid-column:1/-1}.aspas-music-search-two-languages button{grid-column:auto}}

.aspas-music-player-status{font-size:.85rem;color:var(--am-muted);margin:10px 0 0}.aspas-rec-art img{width:100%;height:100%;object-fit:cover}

/* Dashboard: remove only the two decorative background circles in both themes. */
html[data-aspas-page="student_dashboard"] .welcome-section::before,
html[data-aspas-page="student_dashboard"] .welcome-section::after{content:none!important;display:none!important}

/* Shared student menu: the dashboard's appearance and full navigation on every page. */
html .sidebar.aspas-shared-sidebar{height:auto!important;max-height:none!important;overflow:visible!important;position:static!important;padding:0!important;border-radius:14px!important;min-width:0;margin-bottom:18px}
html .sidebar.aspas-shared-sidebar.aspas-sidebar-fits{position:sticky!important;top:calc(var(--header-height,60px) + 20px)}
.aspas-shared-nav{display:block!important;padding:0 0 16px}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-header{padding:15px 20px!important;border-radius:13px 13px 0 0!important;background:linear-gradient(110deg,#570251,#84007b)}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-header h5{font:700 1rem/1.3 "Nunito Sans",Inter,system-ui,sans-serif!important;color:#fff!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.aspas-shared-menu-items{padding-top:12px}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item{display:flex!important;align-items:center;gap:10px;padding:12px 16px!important;margin:5px 10px!important;min-height:42px;box-sizing:border-box;border-radius:9px!important;font-size:.88rem!important;font-weight:600;text-decoration:none!important;line-height:1.35;white-space:normal;transform:none!important}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item i{width:24px!important;flex:0 0 24px;text-align:center;margin:0!important;font-size:1.1rem}
html:not([data-aspas-theme="dark"]) .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item{color:#2c2631!important}
html:not([data-aspas-theme="dark"]) .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item i{color:#84007b}
html:not([data-aspas-theme="dark"]) .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item.active{color:#fff!important;background:linear-gradient(110deg,#84007b,#d700d6)!important}
html:not([data-aspas-theme="dark"]) .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item.active i{color:#fff}
html[data-aspas-theme="dark"] .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-header{background:var(--aspas-raised)!important}
html[data-aspas-theme="dark"] .sidebar.aspas-shared-sidebar .aspas-shared-nav .sidebar-item.active{background:linear-gradient(110deg,#84007b,#b500aa)!important;color:#fff!important}
.aspas-shared-nav .sidebar-divider{height:1px;margin:15px!important;border:0;background:#e5dfe7}
.aspas-shared-nav .sidebar-resources{padding:0 14px!important;margin:0!important}
.aspas-shared-nav :is(.sidebar-resources h6,.aspas-shared-languages-title){font-size:.87rem!important;font-weight:700!important;margin:0 0 12px!important;padding:0!important;color:inherit!important;background:transparent!important}
.aspas-shared-nav .aspas-shared-languages-title{padding:0 15px!important}
.aspas-shared-nav .sidebar-resources-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .resource-item{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:82px;padding:12px 6px!important;border-radius:9px!important;text-align:center;line-height:1.35;font-size:.82rem!important;text-decoration:none!important;transform:none!important}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .resource-item i{font-size:1.7rem!important;line-height:1.2;margin:0!important}
html:not([data-aspas-theme="dark"]) .sidebar.aspas-shared-sidebar .aspas-shared-nav .resource-item{background:linear-gradient(135deg,#d500db,#84007b)!important;color:#fff!important;border:1px solid #84007b}
html:not([data-aspas-theme="dark"]) .sidebar.aspas-shared-sidebar .aspas-shared-nav .resource-item i{color:#fff}
html .sidebar.aspas-shared-sidebar .aspas-shared-nav .resource-item[aria-current="page"]{outline:2px solid #c66bc4;outline-offset:1px}
.aspas-shared-nav .user-languages{display:flex!important;flex-wrap:wrap;gap:6px;padding:0 15px!important;margin:0!important}
.aspas-shared-nav .language-badge{display:inline-flex!important;align-items:center;gap:5px;padding:5px 10px!important;border-radius:50px!important;font-size:.8rem!important;line-height:1.35;margin:0!important;max-width:100%;height:auto!important}
.aspas-shared-nav .language-badge img{width:20px!important;height:15px!important;object-fit:cover;margin:0!important}
html:not([data-aspas-theme="dark"]) .aspas-shared-nav .language-badge{background:linear-gradient(135deg,#84007b,#570251);color:#fff}
.aspas-language-status{font-size:.8rem;color:inherit}
html .sidebar.aspas-shared-sidebar>.pt-3{padding:0 15px 10px!important}
@media(max-width:767px){html .sidebar.aspas-shared-sidebar{position:static!important;top:auto!important}}

/* Music: native captions, verified credits and official lyric-video choices. */
.aspas-music-credits{display:flex;flex-direction:column;gap:5px;font-size:.86rem;color:var(--am-muted)}
.aspas-music-credits a{color:var(--am-accent)!important}
.aspas-music-versions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.aspas-music-versions button{border:1px solid var(--am-edge);background:var(--am-bg);color:var(--am-text);border-radius:9px;padding:9px 12px;min-height:44px;font-weight:600}
.aspas-music-versions button[aria-pressed=true]{background:#84007b;color:#fff;border-color:#84007b}
.aspas-music-listening ol{padding-left:20px;line-height:1.6;font-size:.9rem;color:var(--am-text)}

/* Aspas Music: full historical lyrics with independent line-level disclosure. */
.aspas-study-cta{display:inline-flex;align-items:center;gap:8px;color:#fff!important;background:#ffffff20;border:1px solid #ffffff65;padding:10px 14px;border-radius:9px;text-decoration:none!important;font-weight:600;margin-bottom:14px}
.aspas-study-title{margin:18px 0}.aspas-study-title a{color:var(--am-accent)!important}.aspas-study-title h2{font-size:clamp(1.5rem,3vw,2.2rem);font-weight:800;margin:10px 0;color:var(--am-text)!important}.aspas-study-title p{color:var(--am-muted)!important}
.aspas-study-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);gap:16px;align-items:start}
.aspas-study-lyrics-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.aspas-study-lyrics-head h3{margin:0}.aspas-study-lyrics-head span{font-size:.8rem;color:var(--am-muted)}
.aspas-study-line{border-bottom:1px solid var(--am-edge);padding:4px 0}.aspas-study-line>details{border:0;margin:0;padding:0}.aspas-study-line>details>summary{display:flex;align-items:baseline;gap:12px;cursor:pointer;padding:11px 8px;min-height:44px;font-size:1rem;line-height:1.6;color:var(--am-text);white-space:normal;overflow-wrap:anywhere}.aspas-study-line>details>summary::after{content:'+';margin-left:auto;color:var(--am-accent);font-weight:700}.aspas-study-line>details[open]>summary::after{content:'−'}.aspas-study-line>details[open]{background:color-mix(in srgb,var(--am-accent) 7%,var(--am-bg));border-radius:8px}.aspas-study-line-no{font-size:.75rem;color:var(--am-muted);font-variant-numeric:tabular-nums;flex:none}
.aspas-study-translation{padding:6px 12px 12px 34px}.aspas-study-translation>span{font-size:.7rem;letter-spacing:.1em;color:var(--am-accent);font-weight:700}.aspas-study-translation>p{font-size:1rem;color:var(--am-text)!important;margin:5px 0 12px}.aspas-study-rule{background:var(--am-bg);margin:0!important}.aspas-study-rule summary{color:var(--am-accent);font-size:.85rem}.aspas-study-rule p{margin:8px 0 0;line-height:1.6}
@media(max-width:767px){.aspas-study-grid{grid-template-columns:1fr}.aspas-study-line>details>summary{font-size:.95rem}.aspas-study-cta{width:100%;justify-content:center}}

/* Independent desktop scrolling: document on the right, complete student navigation on the left. */
@media(min-width:992px){
  html body .aspas-student-sidebar-scroll,
  html[data-aspas-page] body .sidebar.aspas-shared-sidebar.aspas-student-sidebar-scroll{
    --aspas-sidebar-top:calc(var(--header-height,60px) + 20px);
    position:sticky!important;top:var(--aspas-sidebar-top)!important;
    align-self:flex-start!important;
    height:auto!important;
    max-height:var(--aspas-sidebar-available,calc(100vh - var(--aspas-sidebar-top)))!important;
    min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior-y:contain;scrollbar-gutter:stable;
    scrollbar-width:thin;scrollbar-color:#ba8cba #eee6ef;
  }
  html[data-aspas-theme="dark"] body .aspas-student-sidebar-scroll{
    scrollbar-color:#79517f #1b1323;
  }
  html body .aspas-student-sidebar-scroll::-webkit-scrollbar{width:8px}
  html body .aspas-student-sidebar-scroll::-webkit-scrollbar-thumb{background:#ba8cba;border-radius:8px}
  html body .aspas-student-sidebar-scroll::-webkit-scrollbar-track{background:#eee6ef;border-radius:8px}
  html[data-aspas-theme="dark"] body .aspas-student-sidebar-scroll::-webkit-scrollbar-thumb{background:#79517f}
  html[data-aspas-theme="dark"] body .aspas-student-sidebar-scroll::-webkit-scrollbar-track{background:#1b1323}
  html body .aspas-student-sidebar-scroll:focus-visible{outline:2px solid #ad49b0;outline-offset:-2px}
}

/* End the desktop student page at its content. */
@media (min-width: 992px) {
  html.aspas-student-mobile-ready body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  html.aspas-student-mobile-ready body > :is(footer, .footer),
  html.aspas-student-mobile-ready .footer-simples {
    display: none !important;
  }
}
