/* Scoped legibility and responsive corrections. No controls or business rules change. */
#app .v22-sidebar nav p {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: #825b6a;
}

#app .lavish-console .refresh-area button,
#app .lavish-console .auto-toggle {
  font-size: 13px;
  line-height: 1.5;
  min-height: 36px;
  padding: 8px 12px;
}

#app .progress-workbench .pw-stats + .pw-note {
  font-size: 13px;
  line-height: 1.7;
}

#app .progress-workbench .pw-hero-actions button {
  font-size: 13px;
  line-height: 1.5;
  min-height: 36px;
}

/* The cover already supplies the horizontal tint; a second animated mask creates bands. */
#app .progress-workbench .pw-rain {
  -webkit-mask-image: none;
  mask-image: none;
}

#app .progress-workbench .pw-rain i {
  will-change: auto;
}

/* Keep the category name above its action so the button cannot squeeze it into a thin column. */
#app .knowledge-center .col-span-4 .space-y-2 > .group > .flex {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

#app .knowledge-center .col-span-4 .space-y-2 > .group > .flex > .min-w-0 {
  grid-column: 2;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

#app .knowledge-center .col-span-4 .space-y-2 > .group > .flex > .gap-1 {
  grid-column: 2;
  justify-self: start;
}

#app .quiz-analysis .filter-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

#app .quiz-analysis .filter-item {
  display: grid;
  min-width: 0;
  gap: 8px;
}

#app .quiz-analysis .filter-item label {
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

#app .quiz-analysis .filter-item .el-autocomplete {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
}

#app .quiz-analysis .refresh-btn {
  justify-content: center;
  margin-left: 0;
  min-height: 40px;
  padding: 9px 16px;
  line-height: 1.5;
  white-space: nowrap;
}

#app .quiz-analysis .action-bar,
#app .quiz-analysis .action-buttons {
  flex-wrap: wrap;
  gap: 12px;
}

#app .quiz-analysis .search-box {
  min-width: 0;
}

@media (max-width: 1100px) {
  #app .knowledge-center .grid.grid-cols-12 > .col-span-4 {
    grid-column: span 5 / span 5;
  }
  #app .knowledge-center .grid.grid-cols-12 > .col-span-8 {
    grid-column: span 7 / span 7;
  }
  #app .quiz-analysis .filter-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #app .quiz-analysis .refresh-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  #app .knowledge-center .grid.grid-cols-12 {
    grid-template-columns: minmax(0, 1fr);
  }
  #app .knowledge-center .grid.grid-cols-12 > .col-span-4,
  #app .knowledge-center .grid.grid-cols-12 > .col-span-8 {
    grid-column: 1 / -1;
  }
  #app .knowledge-center .flex.items-center.justify-between.mb-6 {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  #app .quiz-analysis .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #app .quiz-analysis .tab-btn {
    padding: 12px 8px;
    line-height: 1.5;
  }
}

@media (max-width: 540px) {
  #app .quiz-analysis .filter-section {
    grid-template-columns: minmax(0, 1fr);
  }
  #app .quiz-analysis .refresh-btn {
    justify-self: stretch;
  }
}
