.wf-network {
  position: sticky;
  top: 0;
  z-index: 90;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid #d8c6fa;
  border-radius: 10px;
  background: #f6f1ff;
  color: #4c1d95;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(76, 29, 149, .12);
}

.wf-install {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #ded4f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(64, 35, 107, .09);
}

.wf-install[hidden], .wf-network[hidden], .wf-filter-sheet[hidden] { display: none !important; }
.wf-install img { border-radius: 18px; }
.wf-install-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.wf-install-copy strong { color: #24113f; font-size: 18px; }
.wf-install-copy span { color: #5b6472; font-size: 14px; line-height: 1.4; }
.wf-install-copy .wf-ios-help { margin-top: 5px; color: #4c1d95; font-weight: 700; }
.wf-install button, .wf-sheet-done {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  background: #6d28d9;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.wf-filter-sheet { position: fixed; inset: 0; z-index: 1500; }
.wf-sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(18, 12, 27, .58); }
.wf-sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(84dvh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -14px 50px rgba(0, 0, 0, .24);
  padding-bottom: env(safe-area-inset-bottom);
}
.wf-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid #e3e6eb; }
.wf-sheet-header h2 { margin: 0; color: #24113f; font-size: 20px; }
.wf-sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1eafd; color: #4c1d95; font-size: 18px; cursor: pointer; }
.wf-sheet-body { overflow: auto; overscroll-behavior: contain; padding: 10px 16px; }
.wf-mobile-sort {
  margin: 0 0 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e3e6eb;
}
.wf-mobile-sort label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #24113f;
  font-size: 15px;
  font-weight: 800;
}
.wf-mobile-sort select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #a78bfa;
  border-radius: 10px;
  padding: 10px 40px 10px 12px;
  background: #fff;
  color: #16181d;
  font: inherit;
  font-weight: 600;
}
.wf-sheet-body .dc-side { display: block !important; border: 0; padding: 0; background: #fff; }
.wf-sheet-body .dc-opt { min-height: 44px; padding: 4px 2px; }
.wf-sheet-body .dc-opt input { width: 22px; height: 22px; }
.wf-sheet-panel footer { padding: 10px 16px 14px; border-top: 1px solid #e3e6eb; background: #fff; }
.wf-sheet-done { width: 100%; }
body.wf-sheet-open { overflow: hidden; }

.wf-recent { display: flex; align-items: center; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.wf-recent::-webkit-scrollbar { display: none; }
.wf-recent-label { flex: 0 0 auto; color: #6b7280; font-size: 12px; font-weight: 700; }
.wf-recent button { flex: 0 0 auto; min-height: 36px; border: 1px solid #d9c8fa; border-radius: 999px; padding: 7px 12px; background: #fff; color: #4c1d95; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .dc-finder-toggle { min-height: 48px; }
  .dc-quick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .dc-quick::-webkit-scrollbar { display: none; }
  .dc-quick a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .dc-finder-root { padding-right: 10px; padding-left: 10px; }
  .dc-finder { overflow: visible; padding: 16px 12px 20px; }
  .dc-search {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0 -6px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 18px rgba(32, 20, 48, .10);
    backdrop-filter: blur(12px);
  }
  .dc-search input[type=text] { min-width: 0; min-height: 50px; grid-column: 1 / -1; }
  .dc-search select, .dc-search .dc-btn { min-height: 48px; }
  .dc-search select { min-width: 0; width: 100%; }
  .dc-search .dc-btn { padding-right: 18px; padding-left: 18px; }
  .wf-install { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; padding: 12px; }
  .wf-install img { width: 58px; height: 58px; }
  .wf-install button { grid-column: 1 / -1; width: 100%; }
  .wf-install-copy strong { font-size: 16px; }
}

@media (min-width: 901px) {
  .wf-filter-sheet { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-sheet-panel { transition: none; }
}
