/* HSK-BASE-001/003/007/010 · bug/accessibility: complete native-select labels. */
body[data-page] #main-content .resolver-select {
  position: relative;
  display: grid;
  min-width: 0;
  margin-top: 4px;
}
body[data-page] #main-content .resolver-select > select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  /* Retain the native arrow, border, popup, focus and disabled semantics. */
  -webkit-text-fill-color: transparent;
}
body[data-page] #main-content .resolver-select > select :is(option, optgroup) {
  -webkit-text-fill-color: #242021;
  color: #242021;
}
body[data-page] #main-content .resolver-select__value {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  padding: 10px 40px 10px 0;
  box-sizing: border-box;
  color: #242021;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.45;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}
body[data-page] #main-content .resolver-select.is-disabled .resolver-select__value { color: #6b6762; }

/* Keep long standard labels readable inside the existing scene-picker dialog. */
@media (max-width: 600px) {
  body[data-page].multipage-site #main-content .practice-scenario-track > label {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }
  body[data-page].multipage-site #main-content .practice-scenario-track > label select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
}
/* Native values remain visible if a high-contrast system overrides text fill. */
@media (forced-colors: active) {
  body[data-page] #main-content .resolver-select > select {
    position: static;
    height: auto;
    -webkit-text-fill-color: CanvasText;
  }
  body[data-page] #main-content .resolver-select__value {
    min-height: 0;
    padding-block: 4px;
    color: CanvasText;
  }
}
