#overlay:has([data-search-workspace]) {
  width: min(47rem, calc(100% - 1.5rem));
}
.sw-workspace {
  display: grid;
  gap: .8rem;
  min-width: 0;
  color: #192820;
  font-size: 1rem;
}
.sw-workspace [hidden] { display: none !important; }
.sw-workspace :is(input, textarea, button) { font: inherit; }
.sw-workspace :is(button, input, textarea, summary):focus-visible {
  outline: 2px solid #20705a;
  outline-offset: 2px;
}
.sw-workspace button { color: inherit; }
.sw-modes, .sw-tools, .sw-tools > div, .sw-control-row, .sw-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.sw-modes {
  align-self: start;
  justify-self: start;
  background: #f0f3f0;
  border-radius: .65rem;
  padding: .2rem;
}
.sw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: .33rem .72rem;
  border-radius: .48rem;
  border: 1px solid #dbe3dd;
  background: white;
  font-size: .875rem !important;
  font-weight: 560 !important;
  line-height: 1.26;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.sw-button:hover { background: #f0f6f2; }
.sw-button:disabled { opacity: .5; cursor: default; }
.sw-modes .sw-button { border-color: transparent; background: transparent; }
.sw-modes [aria-pressed="true"] { background: white; box-shadow: 0 1px 3px #1738271c; }
.sw-primary, .sw-primary:hover { color: white !important; background: #285f4c; border-color: #285f4c; }
.sw-tools { justify-content: space-between; }
.sw-tools [aria-expanded="true"], .sw-tools [data-sw-action="leave-queue"] {
  background: #ebf4ee;
  border-color: #a9c3b6;
  color: #214d38;
}
.sw-searchbox {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid #bdcec2;
  border-radius: .7rem;
  padding: .05rem .8rem;
  background: #fbfdfb;
}
.sw-searchbox:focus-within { border-color: #297255; outline: 2px solid #c7e2d1; }
.sw-searchbox svg, .sw-row-icon svg { flex: none; }
.sw-searchbox input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 2.8rem;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.sw-searchbox input:focus-visible { outline: 0; }
.sw-filters, #sw-saved-panel {
  padding: .8rem;
  background: #f6f8f6;
  border: 1px solid #e1e8e2;
  border-radius: .65rem;
}
.sw-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr));
  gap: .65rem .7rem;
  margin-bottom: .7rem;
}
.sw-fields label, .sw-save label, .sw-batch-label {
  display: grid;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 540;
  min-width: 0;
}
.sw-fields input, .sw-save input, .sw-batch-label textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: #17261d;
  border: 1px solid #c8d5cb;
  border-radius: .44rem;
  padding: .4rem .5rem;
  background: white;
}
.sw-batch-label textarea { resize: vertical; min-height: 5.5rem; }
.sw-control-row small { font-size: .825rem; color: #536257; }
.sw-batch-label + .sw-control-row { margin-top: .5rem; justify-content: space-between; }
.sw-save { display: flex; gap: .4rem; flex-wrap: wrap; align-items: end; }
.sw-saved-list > div { display: flex; align-items: center; gap: .4rem; margin-bottom: .45rem; }
.sw-saved-list > div > :first-child { flex: 1; justify-content: flex-start; }
.sw-muted, .sw-status { color: #536257; font-size: .875rem; line-height: 1.4; }
.sw-status { margin: 0; font-weight: 525; }
.sw-status:empty, .sw-pages:empty, .sw-batch-results:empty, #sw-filters-panel:not(:has(form:not([hidden]))), [data-sw-facet-lists] { display: none; }
.sw-options {
  display: grid;
  align-content: start;
  max-height: max(12rem, 43dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-top: 1px solid #e1e8e2;
}
.sw-options:empty { display: none; }
.sw-options [role="option"], .sw-batch-hit {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: .65rem .45rem;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  gap: .7rem;
  cursor: pointer;
}
.sw-options [role="option"]:hover, .sw-batch-hit:hover { background: #f5f8f5; }
.sw-options [aria-selected="true"] {
  background: #edf5ec;
  box-shadow: inset .18rem 0 #327051;
}
.sw-row-icon {
  display: inline-grid;
  flex: none;
  place-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .52rem;
  background: #eef3ee;
  color: #34624f;
}
.sw-row-copy { display: grid; min-width: 0; gap: .18rem; overflow-wrap: anywhere; }
.sw-row-copy strong { color: #192820; font-size: .95rem; font-weight: 600; }
.sw-row-copy > span { color: #526157; font-size: .84rem; }
.sw-row-copy small { color: #306043; font-size: .79rem; }
.sw-pages { justify-content: flex-end; font-size: .875rem; }
.sw-pages > span { color: #526157; padding-inline: .25rem; }
.sw-batch-results { display: grid; gap: .55rem; }
.sw-batch-results section { min-width: 0; border: 1px solid #dae4dc; border-radius: .55rem; }
.sw-batch-results details { padding: .45rem .6rem; }
.sw-batch-results summary { cursor: pointer; font-size: .875rem; }
.sw-batch-title { display: flex; justify-content: space-between; gap: .4rem; flex-wrap: wrap; background: #f3f6f3; padding: .55rem .6rem; border-radius: .55rem; }
.sw-batch-title strong { font-size: .9rem; overflow-wrap: anywhere; }
.sw-batch-title span { font-size: .85rem; color: #435a4a; }
@media (max-width: 380px) {
  #overlay:has([data-search-workspace]) .sc-dialog-body,
  #overlay:has([data-search-workspace]) .sc-dialog-head { padding-inline: .75rem; }
  .sw-tools { align-items: flex-start; }
  .sw-pages { justify-content: space-between; }
  .sw-row-icon { display: none; }
}
