/**
 * XTART English Hub - Dark Mode & UI Components Stylesheet
 */

/* --- Top Header Navigation & Controls --- */
.home-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.top-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn, .pwa-install-btn, .account-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover, .pwa-install-btn:hover, .account-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.account-pill {
  background: #f8fafc;
  font-size: 11px;
}

.account-pill .sign-out-link {
  color: #b91c1c;
  margin-left: 6px;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Compact Resume Banner Below Courses --- */
#continueHubBox {
  margin-top: 18px;
}

.continue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.continue-banner:hover {
  transform: translateY(-1px);
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.continue-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.continue-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(53, 216, 194, 0.15), rgba(139, 92, 246, 0.15));
  color: #7650df;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
}

.continue-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-context {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.continue-action-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: #7650df;
  color: #ffffff;
  transition: background 0.15s ease;
}

.continue-banner:hover .continue-action-pill {
  background: #643fc7;
}

@media (max-width: 600px) {
  .continue-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }
  .continue-action-pill {
    align-self: flex-end;
  }
}

/* --- Progress Bar & Completion Badges --- */
.unit-progress-box {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.unit-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.unit-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #35d8c2, #8b5cf6);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.unit-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: block;
}

.completedBadge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.completeToggleBtn {
  align-self: flex-start;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
}

.completeToggleBtn:hover {
  border-color: var(--hub-action, #6847b4);
  color: var(--hub-action, #6847b4);
}

.completeToggleBtn.done {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
html[data-theme="dark"] {
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #242f44;
  background-color: #0b0f17;
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background-color: #0b0f17;
  color: #f8fafc;
}

html[data-theme="dark"] .xtart-logo {
  color: #f8fafc;
}

html[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .pwa-install-btn,
html[data-theme="dark"] .account-pill {
  background: #141c2c;
  border-color: #242f44;
  color: #f8fafc;
}

html[data-theme="dark"] .account-pill {
  background: #101623;
}

html[data-theme="dark"] .account-pill .sign-out-link {
  color: #f87171;
}

/* Header & Containers */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .hub-home-refresh > .site-header {
  background: radial-gradient(ellipse at 8% 0%, #35d8c218, transparent 48%),
              radial-gradient(ellipse at 96% 100%, #8b5cf615, transparent 48%),
              #131a29 !important;
  border-color: #242f44 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .hub-home-refresh #coursesView,
html[data-theme="dark"] .hub-home-refresh .classroom-games,
html[data-theme="dark"] .hub-home-refresh #unitsView,
html[data-theme="dark"] .hub-home-refresh #activitiesView {
  background: linear-gradient(125deg, #131a29 52%, #35d8c20d) !important;
  border-color: #242f44 !important;
}

/* Cards */
html[data-theme="dark"] .card,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .unit-card,
html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .quizloop-feature,
html[data-theme="dark"] .continueCard {
  background: linear-gradient(#131a29, #131a29) padding-box,
              linear-gradient(125deg, #35d8c244, #8b5cf655, #d05adf44) border-box !important;
  border-color: transparent !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .hub-home-refresh #courses .course-card {
  background:
    linear-gradient(135deg, var(--game-dark-start), var(--game-dark-end)) padding-box,
    linear-gradient(125deg, var(--game-glow), color-mix(in srgb, var(--game-accent) var(--game-border-opacity), transparent) 72%) border-box !important;
}

html[data-theme="dark"] .hub-home-refresh #activities .activity-card {
  background:
    linear-gradient(135deg, var(--game-dark-start), var(--game-dark-end)) padding-box,
    linear-gradient(125deg, var(--game-glow), color-mix(in srgb, var(--game-accent) var(--game-border-opacity), transparent) 72%) border-box !important;
}

html[data-theme="dark"] .hub-home-refresh #units .unit-card {
  background:
    linear-gradient(135deg, var(--game-dark-start), var(--game-dark-end)) padding-box,
    linear-gradient(125deg, var(--game-glow), color-mix(in srgb, var(--game-accent) var(--game-border-opacity), transparent) 72%) border-box !important;
}

html[data-theme="dark"] .hub-home-refresh .games-grid a.quizloop-feature[data-game] {
  background:
    linear-gradient(135deg, var(--game-dark-start), var(--game-dark-end)) padding-box,
    linear-gradient(125deg, var(--game-glow), color-mix(in srgb, var(--game-accent) var(--game-border-opacity), transparent) 72%) border-box !important;
}

html[data-theme="dark"] .hub-home-refresh #tesEquipment .tes-game-card[data-game] {
  background:
    linear-gradient(135deg, var(--game-dark-start), var(--game-dark-end)) padding-box,
    linear-gradient(125deg, var(--game-glow), color-mix(in srgb, var(--game-accent) var(--game-border-opacity), transparent) 72%) border-box !important;
}

html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .account-pill,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .theme-toggle-btn,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .pwa-install-btn,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .readingToggle,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .displayOptions > summary {
  border-color: #34425b !important;
  background: #141c2c !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .account-pill:hover,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .theme-toggle-btn:hover,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .pwa-install-btn:hover,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .readingToggle:hover,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .displayOptions > summary:hover,
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .displayOptions[open] > summary {
  border-color: #8b5cf6 !important;
  background: #241d38 !important;
  color: #e2d7ff !important;
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .subtitle,
html[data-theme="dark"] .breadcrumb {
  color: #94a3b8 !important;
}

/* Badges & Status */
html[data-theme="dark"] .status {
  background: #241d38 !important;
  color: #c4b5fd !important;
}

html[data-theme="dark"] .status.ready {
  background: #062b1b !important;
  color: #4ade80 !important;
}

html[data-theme="dark"] .completedBadge,
html[data-theme="dark"] .completeToggleBtn.done {
  background: #062b1b !important;
  color: #4ade80 !important;
  border-color: #15803d !important;
}

html[data-theme="dark"] .completeToggleBtn {
  border-color: #242f44;
  color: #94a3b8;
}

html[data-theme="dark"] .unit-progress-bar {
  background: #1c2538;
}

html[data-theme="dark"] .newBadge {
  background: #0c332c !important;
  color: #35d8c2 !important;
}

html[data-theme="dark"] .lastOpened {
  background: #341a39 !important;
  color: #f472b6 !important;
}

/* Forms & Inputs */
html[data-theme="dark"] .auth-card {
  background: #131a29 !important;
  border-color: #242f44 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .auth-input,
html[data-theme="dark"] .search-content > input,
html[data-theme="dark"] .hubSearchFilters select,
html[data-theme="dark"] select,
html[data-theme="dark"] input {
  background: #1a2337 !important;
  border-color: #2e3c56 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .back {
  background: #1a2337 !important;
  border-color: #2e3c56 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .back:hover {
  background: #242f44 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .activity-icon {
  background: #1a2337 !important;
  border-color: #2e3c56 !important;
}

/* Dialogs & Admin */
html[data-theme="dark"] dialog,
html[data-theme="dark"] .hubPreview {
  background: #131a29 !important;
  border-color: #242f44 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .trashRow {
  border-color: #242f44 !important;
}

html[data-theme="dark"] .xtart-footer {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .vocab-speak-btn:hover {
  background: rgba(139, 92, 246, 0.25) !important;
}

/* Dark mode for continue banner */
html[data-theme="dark"] .continue-banner {
  background: #131a29;
  border-color: #242f44;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .continue-banner:hover {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

html[data-theme="dark"] .continue-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
}

html[data-theme="dark"] .continue-title {
  color: #f8fafc;
}

html[data-theme="dark"] .continue-context {
  color: #94a3b8;
}

html[data-theme="dark"] .continue-action-pill {
  background: #6847b4;
  color: #ffffff;
}

html[data-theme="dark"] .continue-banner:hover .continue-action-pill {
  background: #4d3580;
}

html[data-theme="dark"] .completeToggleBtn:hover {
  border-color: #c4b5fd;
  color: #c4b5fd;
}



/* Shared XTART learning-activity surfaces (not standalone game pages). */
.activity-theme-toggle{margin-left:auto;flex:0 0 auto}
html[data-theme="dark"] .page-header{background:radial-gradient(ellipse at 8% 0%,#35d8c218,transparent 48%),radial-gradient(ellipse at 96% 100%,#8b5cf615,transparent 48%),#131a29!important;border-color:#242f44!important;color:#f8fafc!important;box-shadow:0 8px 30px rgba(0,0,0,.4)!important}
html[data-theme="dark"] .page-header h1,html[data-theme="dark"] .page-header .subtitle,html[data-theme="dark"] .activity-nav a{color:#f8fafc!important}
html[data-theme="dark"] .activity-instructions,html[data-theme="dark"] .sharedReference,html[data-theme="dark"] .sharedExercise,html[data-theme="dark"] .captionCard,html[data-theme="dark"] .lessonBox,html[data-theme="dark"] .skill-game,html[data-theme="dark"] .skill-bin,html[data-theme="dark"] .sharedTeacherRow{background:#131a29!important;border-color:#242f44!important;color:#f8fafc!important}
html[data-theme="dark"] .sharedTeacherPanel>summary{background:#141c2c!important;border-color:#2e3c56!important;color:#f8fafc!important}
html[data-theme="dark"] .sharedTeacherPanel[open]>summary,html[data-theme="dark"] .sharedTeacherPanel>summary:hover{background:#241d38!important;border-color:#8b5cf6!important}
html[data-theme="dark"] .skill-collected{background:#101623!important;border-color:#242f44!important;color:#f8fafc!important}
html[data-theme="dark"] .sharedExercise input,html[data-theme="dark"] .sharedExercise textarea,html[data-theme="dark"] .sharedExercise select,html[data-theme="dark"] .captionCard textarea,html[data-theme="dark"] .sharedTeacherRow input,html[data-theme="dark"] .sharedTeacherRow textarea,html[data-theme="dark"] .sharedTeacherRow select{background:#1a2337!important;border-color:#2e3c56!important;color:#f8fafc!important;color-scheme:dark}
html[data-theme="dark"] .sharedOptions button:not(.correct):not(.incorrect),html[data-theme="dark"] .sharedMatch .match-card:not(.matched):not(.wrong),html[data-theme="dark"] .skill-choices button:not(.correct):not(.incorrect){background:#1a2337!important;border-color:#2e3c56!important;color:#e2e8f0!important}
html[data-theme="dark"] .sharedOptions button.selected,html[data-theme="dark"] .sharedMatch .match-card.selected,html[data-theme="dark"] .skills-menu a[aria-current="page"]{background:#2a2041!important;border-color:#8b5cf6!important;color:#ddd0ff!important}
html[data-theme="dark"] .sharedOptions button.correct,html[data-theme="dark"] .sharedMatch .match-card.matched,html[data-theme="dark"] .skill-choices button.correct{background:#0c332c!important;border-color:#15803d!important;color:#4ade80!important}
html[data-theme="dark"] .sharedOptions button.incorrect,html[data-theme="dark"] .sharedMatch .match-card.wrong,html[data-theme="dark"] .skill-choices button.incorrect{background:#3a1b24!important;border-color:#9f3546!important;color:#fca5a5!important}
html[data-theme="dark"] .sharedNotice,html[data-theme="dark"] .activity-instructions{background:#1a2337!important;border:1px solid #2e3c56;color:#cbd5e1!important}
html[data-theme="dark"] .activity-instructions strong{color:#c4b5fd!important}
html[data-theme="dark"] .activity-instructions{border-left:4px solid #8b5cf6!important}
html[data-theme="dark"] .sharedNotice.good{background:#0c332c!important;border-color:#15803d!important;color:#4ade80!important}
html[data-theme="dark"] .sharedNotice.bad{background:#3a1b24!important;border-color:#9f3546!important;color:#fca5a5!important}
html[data-theme="dark"] .sharedMini,html[data-theme="dark"] .sharedCounter,html[data-theme="dark"] .skill-prompt,html[data-theme="dark"] .skill-empty{color:#94a3b8!important}
html[data-theme="dark"] .wordBox,html[data-theme="dark"] .skills-menu,html[data-theme="dark"] .skill-bin li{background:#1a2337!important;color:#e2e8f0!important}
html[data-theme="dark"] .skills-menu{border-color:#2e3c56!important}
html[data-theme="dark"] .skill-bin header span{background:#241d38!important;color:#c4b5fd!important}
html[data-theme="dark"] .skill-progress{background:#1c2538!important}
html[data-theme="dark"] .captionCard img{background:#0b0f17!important}
html[data-theme="dark"] .vocab-accent-button,html[data-theme="dark"] .vocab-speak-btn{background:#1a2337!important;border-color:#3f2f63!important;color:#c4b5fd!important}
html[data-theme="dark"] .teacher-mode{background:#241d38!important;color:#c4b5fd!important}
html[data-theme="dark"] .unit-label{color:#b9a0ff!important}
html[data-theme="dark"] .readingToggle,html[data-theme="dark"] .displayOptions,html[data-theme="dark"] .skipLink{background:#141c2c!important;border-color:#2e3c56!important;color:#f8fafc!important}
html[data-theme="dark"] .displayOptions input{background:#1a2337!important;color:#f8fafc!important}


/* Dark surfaces for navigation, filters and teacher workspaces. */
html[data-theme="dark"] {
  --hub-surface: #131a29;
  --hub-surface-soft: #101623;
  --hub-action-soft: #241d38;
}
html[data-theme="dark"] .hub-route {
  border-color: #2e3c56 !important;
  background: #101623 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .hub-route a,
html[data-theme="dark"] .hub-route button { color: #c4b5fd !important; }
html[data-theme="dark"] .hub-route a:hover,
html[data-theme="dark"] .hub-route button:hover { background: #241d38 !important; color: #f8fafc !important; }
html[data-theme="dark"] .hub-route > [aria-current="page"] {
  border-color: #3f2f63 !important;
  background: #1a2337 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .unit-category-filters {
  border-color: #2e3c56 !important;
  background: #101623 !important;
}
html[data-theme="dark"] .unit-category-filter:not([aria-pressed="true"]) {
  border-color: #2e3c56 !important;
  background: #1a2337 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .unit-category-filter:hover:not([aria-pressed="true"]) {
  border-color: #8b5cf6 !important;
  background: #241d38 !important;
  color: #ddd0ff !important;
}
html[data-theme="dark"] .compact-search {
  border-color: #2e3c56 !important;
  background: #131a29 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .compact-search > summary { color: #e2e8f0 !important; }
html[data-theme="dark"] .compact-search > summary::after { color: #c4b5fd !important; }
html[data-theme="dark"] .hub-home-refresh #coursesView .home-section-heading .compact-search {
  border: 0 !important;
  background: transparent !important;
}
html[data-theme="dark"] .hub-home-refresh #coursesView .home-section-heading .compact-search > summary {
  border-color: #3f2f63 !important;
  background: #1a2337 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .hub-home-refresh #coursesView .home-section-heading .compact-search .search-content {
  border-color: #2e3c56;
  background: #131a29;
  color: #f8fafc;
}
html[data-theme="dark"] .search-shortcut-hint,
html[data-theme="dark"] .search-shortcut-hint kbd { color: #cbd5e1 !important; }
html[data-theme="dark"] .search-shortcut-hint kbd {
  border-color: #3f2f63 !important;
  border-radius: 6px;
  background: #1a2337 !important;
}

html[data-theme="dark"] #teacherToggle,
html[data-theme="dark"] .hub-editor {
  border-color: #242f44 !important;
  background: #101623 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] #teacherToggle[aria-expanded="true"] {
  border-color: #8b5cf6 !important;
  background: #241d38 !important;
  color: #ddd0ff !important;
}
html[data-theme="dark"] .hub-editor-selection,
html[data-theme="dark"] .hub-editor-section,
html[data-theme="dark"] .hub-editor-actions,
html[data-theme="dark"] .inlineHelp {
  border-color: #2e3c56 !important;
  background: #131a29 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .hub-editor-unit-settings .field,
html[data-theme="dark"] .hub-activity-edit {
  border-color: #2e3c56 !important;
  background: #101623 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .hub-activity-fields { border-color: #2e3c56 !important; }
html[data-theme="dark"] .hub-editor-heading,
html[data-theme="dark"] .hub-editor-heading h2,
html[data-theme="dark"] .hub-editor-section-heading h3,
html[data-theme="dark"] .hub-editor-section-title h3,
html[data-theme="dark"] .hub-activity-fields label,
html[data-theme="dark"] .hub-editor-selection label,
html[data-theme="dark"] .hub-editor-unit-settings label { color: #f8fafc !important; }
html[data-theme="dark"] .hub-editor .hub-editor-intro,
html[data-theme="dark"] .hub-editor-section-heading p { color: #94a3b8 !important; }
html[data-theme="dark"] .hub-activity-order { color: #94a3b8 !important; }
html[data-theme="dark"] .hub-activity-state {
  background: #241d38 !important;
  color: #c4b5fd !important;
}
html[data-theme="dark"] .hub-editor select,
html[data-theme="dark"] .hub-editor input,
html[data-theme="dark"] .hub-editor textarea {
  border-color: #2e3c56 !important;
  background: #1a2337 !important;
  color: #f8fafc !important;
  color-scheme: dark;
}
html[data-theme="dark"] .hub-editor input[type="checkbox"] { accent-color: #8b5cf6; }
html[data-theme="dark"] .hub-notice,
html[data-theme="dark"] #hubLinkChecks { color: #cbd5e1 !important; }
html[data-theme="dark"] .inlineHelp > summary { color: #e2e8f0 !important; }
html[data-theme="dark"] .sharedTeacherPanel {
  border-color: #242f44 !important;
  background: #101623 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .sharedTeacherPanel > summary {
  border-color: #2e3c56 !important;
  background: #141c2c !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .sharedTeacherPanel[open] > summary,
html[data-theme="dark"] .sharedTeacherPanel > summary:hover {
  border-color: #3f2f63 !important;
  background: #241d38 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .sharedTeacherRow > summary { color: #e2e8f0 !important; }
html[data-theme="dark"] .sharedTeacherRow > summary:hover { color: #ddd0ff !important; }
html[data-theme="dark"] .hub-editor .inlineHelp,
html[data-theme="dark"] .hub-editor .inlineHelp p { color: #cbd5e1 !important; }
html[data-theme="dark"] .formTable th,
html[data-theme="dark"] .formTable td { border-color: #2e3c56 !important; }


/* Ensure every Skills navigation state remains readable on the dark surface. */
html[data-theme="dark"] .skills-menu a {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .skills-menu a:hover:not([aria-current="page"]) {
  background: #241d38 !important;
  color: #f8fafc !important;
}


/* Activity instruction card in the shared learning-page system. */
html[data-theme="dark"] .app .activity-intro h2 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .app .activity-intro .subtitle {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .app .activity-intro .activity-instructions {
  border: 1px solid #2e3c56 !important;
  border-left: 4px solid #a78bfa !important;
  border-radius: 14px !important;
  background: #1a2337 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .app .activity-intro .activity-instructions strong {
  color: #c4b5fd !important;
}
html[data-theme="dark"] .app .activity-instructions {
  border-left: 4px solid #8b5cf6 !important;
}

.ui-icon{width:1.1em;height:1.1em;vertical-align:-.18em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.account-pill .sign-in-link,.account-pill .sign-out-link{background:none;border:0;padding:2px 4px;font:inherit;color:inherit}
.account-pill .sign-out-link{color:#b91c1c}
.account-pill button:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:4px}

html[data-theme="dark"] .hub-home-refresh .hub-word {
  background-image: linear-gradient(115deg, #6ee7d8, #c4b5fd 48%, #f0abfc);
}
