#zh-section-search, #accessibility-panel:modal {
  box-sizing: border-box;
  max-width: calc(100% - 2rem);
  max-height: 85vh;
  overflow: auto;
}
#zh-section-search {
  width: 34rem;
  padding: 1rem;
}
#zh-section-search label { display: block; margin-bottom: .25rem; }
#zh-section-query {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.5rem;
  padding: .5rem;
  font: inherit;
}
#zh-section-results {
  padding-inline-start: 1.5rem;
  overflow-wrap: anywhere;
}
#zh-section-results li { margin-block: .5rem; }

@media (max-width: 480px) {
  html:root:not([data-accessible="true"]) .review-section-header .header-tools {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    gap: 6px !important;
  }
  html:root:not([data-accessible="true"]) .review-section-header .accessibility-bar {
    grid-column: 1 / -1;
  }
  html:root:not([data-accessible="true"]) .review-section-header .header-tools .languages {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 0 !important;
  }
  html:root:not([data-accessible="true"]) .review-section-header .header-tools a.language-control {
    min-width: 0 !important;
    padding-inline: 5px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }
}
