.work-search-trigger {
  gap: 0.65rem;
  margin-left: auto;
}
.work-search-trigger svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.work-search-trigger kbd {
  font: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 0.65rem;
}
.work-search-dialog {
  width: 58rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 4px solid var(--blue);
  box-shadow: 0 1rem 5rem #0005;
}
.work-search-dialog::backdrop {
  background: #111827a6;
}
.work-search-dialog * {
  min-width: 0;
}
.ws-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.6rem 1.8rem 1.1rem;
  background: var(--tint);
}
.ws-heading h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  text-wrap: balance;
}
.ws-heading .eyebrow {
  margin: 0;
  font-size: 0.72rem;
}
.ws-organisation {
  font-size: 0.85rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ws-close {
  flex-shrink: 0;
}
.ws-form {
  padding: 1.3rem 1.8rem 0.5rem;
}
.ws-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.ws-query-row {
  display: flex;
  gap: 0.65rem;
}
.ws-query-row input {
  width: 100%;
  flex: 1;
  min-height: 48px;
}
.ws-query-row button {
  background: #1040c0;
  color: #fff;
  border-color: #1040c0;
}
.ws-query-row button:hover {
  background: #153591;
}
.ws-form .hint {
  margin: 0.65rem 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.ws-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1.8rem;
}
.ws-filters button {
  font-size: 0.84rem;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 100px;
}
.ws-filters button[aria-pressed='true'] {
  background: var(--tint);
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.ws-count {
  font-variant-numeric: tabular-nums;
}
.ws-status {
  margin: 0.7rem 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.ws-results {
  padding: 0 1.8rem 1rem;
  min-height: 4rem;
}
.ws-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-list li {
  border-top: 1px solid var(--line);
}
.ws-list a {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr) 1rem;
  gap: 0.4rem 1rem;
  padding: 1rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}
.ws-list a:hover,
.ws-list a:focus-visible {
  background: var(--tint);
}
.ws-result-kind {
  grid-row: span 2;
  color: var(--blue);
  font-size: 0.82rem;
  padding-top: 0.15rem;
}
.ws-list strong {
  font-weight: 550;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}
.ws-result-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
}
.ws-open {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
}
.ws-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.84rem;
}
.ws-pages button {
  min-height: 44px;
}
.ws-empty {
  padding: 1rem 0;
  line-height: 1.5;
}
.ws-empty h3 {
  margin: 0.5rem 0;
}
.ws-empty p {
  max-width: 52ch;
  color: var(--muted);
}
.ws-footnote {
  margin: 0;
  padding: 1rem 1.8rem;
  border-top: 1px solid var(--line);
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .work-search-trigger kbd {
    display: none;
  }
  .work-search-dialog {
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  .ws-heading,
  .ws-form,
  .ws-filters,
  .ws-results,
  .ws-footnote {
    padding-left: min(1rem, 4vw);
    padding-right: min(1rem, 4vw);
  }
  .ws-heading {
    flex-wrap: wrap;
  }
  .ws-heading > div {
    flex: 1 1 16rem;
  }
  .ws-heading .ws-close {
    margin-left: auto;
  }
  .ws-status {
    margin-inline: min(1rem, 4vw);
  }
  .ws-query-row {
    flex-wrap: wrap;
  }
  .ws-query-row input {
    flex-basis: 100%;
  }
  .ws-list a {
    grid-template-columns: minmax(0, 1fr) 1rem;
  }
  .ws-result-kind {
    grid-row: 1;
    grid-column: 1;
  }
  .ws-list strong {
    grid-column: 1;
  }
  .ws-result-meta {
    grid-column: 1;
  }
  .ws-open {
    grid-column: 2;
    grid-row: 1 / 4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-search-dialog {
    scroll-behavior: auto;
  }
}
