.dss-lock { overflow: hidden; }

.dss-search-trigger {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.dss-search-trigger:hover { border-color: #16a34a; color: #15803d; background: #f8fff9; }
.dss-search-trigger:focus-visible { outline: 3px solid rgba(34,197,94,.18); outline-offset: 2px; }
.dss-search-trigger__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.dss-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.dss-modal.is-open { display: block; }
.dss-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(17,24,39,.64); backdrop-filter: blur(4px); cursor: default; }
.dss-modal__panel {
  position: relative;
  width: min(920px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 64px));
  margin: 32px auto;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  padding: 28px;
  color: #1f2937;
}
.dss-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dss-modal__eyebrow { margin: 0 0 4px; color: #16a34a; font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dss-modal__title { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.05; font-weight: 800; color: #111827; }
.dss-modal__close { width: 42px; height: 42px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #4b5563; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.dss-modal__close:hover { color: #111827; border-color: #d1d5db; background: #f9fafb; }
.dss-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dss-searchbox { position: relative; display: flex; align-items: center; }
.dss-searchbox__icon { position: absolute; left: 18px; width: 23px; height: 23px; fill: none; stroke: #6b7280; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.dss-searchbox__input {
  width: 100%;
  min-height: 62px;
  border: 1px solid #d1d5db;
  border-radius: 17px;
  background: #fff;
  color: #111827;
  padding: 12px 70px 12px 54px;
  font: inherit;
  font-size: 18px;
  line-height: 1.35;
  outline: none;
  box-shadow: none;
}
.dss-searchbox__input:focus { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.dss-searchbox__input::-webkit-search-cancel-button { display: none; }
.dss-searchbox__shortcut { position: absolute; right: 15px; border: 1px solid #e5e7eb; border-bottom-width: 2px; border-radius: 7px; padding: 4px 7px; color: #6b7280; background: #f9fafb; font-size: 12px; font-weight: 700; }

.dss-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.dss-filter { position: relative; cursor: pointer; user-select: none; }
.dss-filter input { position: absolute; opacity: 0; pointer-events: none; }
.dss-filter span { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #e5e7eb; border-radius: 999px; color: #4b5563; background: #fff; font-size: 13px; font-weight: 700; transition: all .15s ease; }
.dss-filter input:checked + span { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.dss-filter input:focus-visible + span { outline: 3px solid rgba(34,197,94,.16); outline-offset: 2px; }
.dss-filter--all span { color: #111827; }

.dss-status { min-height: 28px; padding: 18px 2px 8px; color: #6b7280; font-size: 14px; }
.dss-status[data-state="loading"]::before { content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 2px solid #d1d5db; border-top-color: #16a34a; border-radius: 999px; vertical-align: -2px; animation: dss-spin .7s linear infinite; }
.dss-status[data-state="error"] { color: #b91c1c; }
@keyframes dss-spin { to { transform: rotate(360deg); } }

.dss-results { display: grid; gap: 22px; padding-bottom: 4px; }
.dss-result-group__title { margin: 0 0 9px; color: #6b7280; font-size: 12px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.dss-result-group__list { border: 1px solid #e5e7eb; border-radius: 18px; overflow: hidden; background: #fff; }
.dss-result { position: relative; display: block; padding: 15px 52px 15px 16px; color: #1f2937; text-decoration: none; border-bottom: 1px solid #f0f1f2; transition: background-color .15s ease; }
.dss-result:last-child { border-bottom: 0; }
.dss-result:hover { background: #f8fff9; }
.dss-result__title { display: block; color: #111827; font-size: 16px; line-height: 1.35; font-weight: 750; }
.dss-result__excerpt { display: block; margin-top: 4px; color: #6b7280; font-size: 13px; line-height: 1.5; }
.dss-result__arrow { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: #16a34a; font-size: 20px; }

@media (max-width: 1279px) and (min-width: 1024px) {
  .dss-search-trigger__label { display: none; }
  .dss-search-trigger { width: 42px; padding: 0; }
}

@media (max-width: 640px) {
  .dss-modal__panel { width: 100%; max-height: 100dvh; min-height: 100dvh; margin: 0; border-radius: 0; padding: 20px 16px 28px; }
  .dss-modal__title { font-size: 30px; }
  .dss-searchbox__input { min-height: 58px; font-size: 16px; padding-right: 18px; }
  .dss-searchbox__shortcut { display: none; }
  .dss-filter span { min-height: 34px; font-size: 12px; }
  .dss-result { padding: 14px 46px 14px 14px; }
}
