@media (min-width: 960px) {
  .desktop-preview .desktop-header {
    justify-content: flex-start;
    gap: 18px;
  }
  .desktop-preview .desktop-header > strong {
    flex: none;
    white-space: nowrap;
  }
  .desktop-preview .desktop-header-actions {
    margin-left: auto;
  }
  .desktop-preview .store-header-switch {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: min(380px, 42vw);
    padding: 7px 10px;
    overflow: hidden;
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    background: #fff;
    color: #505b68;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .desktop-preview .store-header-switch:hover {
    border-color: #dfc600;
    background: #fffde9;
  }
  .desktop-preview .store-header-switch:focus-visible {
    outline: 2px solid #ffe815;
    outline-offset: 2px;
  }
  .store-header-active .restored-pinhaofan > .merchant-panel,
  .store-header-active .toolbox-page:not(.restored-pinhaofan) > .merchant-panel,
  .store-header-active .toolbox-page > .batch-home > .batch-store-selector,
  .store-header-active .product-management > .pm-desktop-store,
  .store-header-active .store-copy-page > .store-copy-storebar,
  .store-header-active .desktop-menu .dm-store-trigger,
  .store-header-active .suite-page .store-switch-button,
  .store-header-active .suite-composer .suite-canvas-header select[aria-label="选择门店"] {
    display: none !important;
  }
  .store-header-active .desktop-menu label:has(> .dm-store-trigger) {
    display: none !important;
  }
  .store-header-active .merchant-directory .md-filters label:has(> input[placeholder="请输入分店名称或 ID"]),
  .store-header-active .merchant-directory .md-filters .md-search,
  .store-header-active .auto-meal-toolbar label:has(> input[placeholder="搜索店名或门店 ID"]) {
    display: none !important;
  }
  .desktop-preview .store-picker,
  .desktop-preview .pm-store-mask {
    z-index: 60 !important;
  }
  .store-header-dropdown {
    position: fixed;
    z-index: 100;
    width: min(340px, calc(100vw - 20px));
    max-height: min(60vh, 440px);
    padding: 12px;
    overflow: auto;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px #28304725;
  }
  .store-header-dropdown > input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #f7f8fa;
    color: #20242a;
    font: inherit;
  }
  .store-header-dropdown > button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border: 0;
    border-radius: 6px;
    background: #ffe815;
    color: #20242a;
    font-weight: 700;
    cursor: pointer;
  }
  .store-header-options { max-height: 340px; overflow: auto; }
  .store-header-options button {
    display: block;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    color: #303744;
    text-align: left;
    cursor: pointer;
  }
  .store-header-options button:hover,
  .store-header-options button.selected { background: #fffbe0; }
  .store-header-options p { padding: 12px; color: #737b85; }
  .shell-dark .store-header-switch,
  .shell-dark .store-header-dropdown,
  .shell-dark .store-header-options button { background: #202a32; border-color: #34424d; color: #e5edf3; }
  .shell-dark .store-header-dropdown > input { background: #26343e; border-color: #40505c; color: #e5edf3; }
}
@media (max-width: 959px) {
  .store-header-switch { display: none; }
}
