    .quoteModalMask {
      position: fixed;
      inset: 0;
      background: rgba(8, 12, 28, 0.62);
      backdrop-filter: blur(10px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000000
    }

    .quoteModal {
      width: min(1500px, 96vw);
      background: #f4f7fb;
      border: 1px solid rgba(148, 163, 184, 0.26);
      border-radius: 24px;
      box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
      overflow: hidden;
      max-height: 96vh;
      display: flex;
      flex-direction: column
    }

    .quoteModalBd {
      padding: 0;
      display: grid;
      grid-template-columns: minmax(308px, 360px) minmax(0, 1.72fr);
      grid-template-rows: 1fr;
      gap: 0;
      flex: 1;
      min-height: 0;
      overflow-y: hidden;
    }

    .quoteSettings {
      display: flex;
      flex-direction: column;
      gap: 12px;
      border-right: 1px solid rgba(203, 213, 225, 0.84);
      padding: 14px;
      overflow-y: auto;
      overflow-x: hidden
    }

    .quoteQuick {
      overflow-y: auto;
      overflow-x: hidden;
      flex: 1 1 auto;
      min-height: 0;
      max-height: none;
      padding: 4px 6px 4px 2px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      align-content: start;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: rgba(148,163,184,0.3) transparent
    }

    .quoteQuick > * {
      min-width: 0;
    }

    .quoteQuick::-webkit-scrollbar { width: 6px; }
    .quoteQuick::-webkit-scrollbar-track { background: transparent; }
    .quoteQuick::-webkit-scrollbar-thumb { background-color: rgba(148,163,184,0.35); border-radius: 3px; }

    .quoteFieldGrid {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .quoteFieldGrid > * {
      flex: 1 1 calc(50% - 5px);
      min-width: 120px;
      box-sizing: border-box;
    }

    .quoteFieldFull {
      grid-column: 1 / -1;
    }

    .quoteFieldCompact {
      padding: 10px 12px;
      min-height: 76px;
      box-sizing: border-box;
      justify-content: center;
    }

    .quoteFieldTight {
      margin-top: 0 !important;
    }

    .quoteField {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 12px;
      border-radius: 16px;
      background: rgba(248, 250, 252, 0.9);
      border: 1px solid rgba(226, 232, 240, 0.95)
    }

    .quoteField label {
      font-size: 12px;
      font-weight: 800;
      color: #475569
    }

    .quoteSelect {
      width: 100%;
    }

    .quoteModal .select:focus,
    .quoteModal .input:focus,
    .quoteModal textarea:focus,
    .quoteModal input[type="text"]:focus,
    .quoteModal input[type="number"]:focus,
    .quoteModal button:focus-visible {
      outline: none;
      border-color: rgba(148, 163, 184, 0.95);
      box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.16);
    }

    .quoteOptionGroup {
      display: flex;
      gap: 8px;
      flex-wrap: wrap
    }

    .quoteOptionGroup .pill {
      cursor: pointer
    }

    .quoteChecks {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 8px 14px;
    }

    .quoteChecks label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #334155;
      font-weight: 700;
      white-space: nowrap;
    }

    .quoteReadOnlyHint {
      margin: 0;
      padding: 7px 10px;
      font-size: 12.5px;
      font-weight: 600;
      color: #475569;
      background: rgba(241,245,249,0.85);
      border-radius: 8px;
      border: 1px dashed rgba(148,163,184,0.4);
      line-height: 1.35;
    }

    .quotePreviewArea {
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 14px;
    }

    .quotePreviewMeta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 10px 42px 10px 14px;
      margin: 0 0 10px 0;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.88);
      border-bottom: 1px solid rgba(226, 232, 240, 0.9);
      border-radius: 12px;
      color: #475569;
    }

    .quotePreviewMetaHint {
      font-size: 11px;
      opacity: 0.8;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .quotePreviewMetaRight {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
      min-width: 0;
    }

    /* 适配预览区 header 的 checkbox 样式 */
    #quoteCardBorderToggle {
      font-size: 12px;
      font-weight: 600;
      color: #475569;
      cursor: pointer;
      padding: 4px 10px;
      border-radius: 8px;
      background: rgba(248, 250, 252, 0.9);
      border: 1px solid rgba(226, 232, 240, 0.95);
      transition: all 0.15s;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    #quoteCardBorderToggle:hover {
      background: rgba(241, 245, 249, 1);
      border-color: rgba(203, 213, 225, 1);
    }

    #quoteCardBorderToggle input[type="checkbox"] {
      margin: 0;
      cursor: pointer;
    }

    #quoteExportClose {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(226, 232, 240, 0.9);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
      cursor: pointer;
      transition: all 0.15s;
      position: absolute;
      top: 50%;
      right: 14px;
      transform: translateY(-50%);
    }

    #quoteExportClose:hover {
      background: #f1f5f9;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .quotePreviewMetaMain {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex-wrap: nowrap;
    }

    .quotePreviewDesktopTools {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(203, 213, 225, 0.9);
      font-size: 11px;
      color: #334155;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .quotePreviewDesktopTools label {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin: 0;
      font-size: 11px;
      font-weight: 700;
      color: #334155;
      white-space: nowrap;
    }

    .quotePreviewDesktopTools input[type="number"] {
      width: 64px;
      min-width: 64px;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(203, 213, 225, 0.95);
      background: #fff;
      font-size: 11px;
      color: #0f172a;
    }

    .quotePreviewWrap {
      border: 0;
      border-radius: 16px;
      background: transparent;
      padding: 4px;
      box-shadow: none;
      max-width: 100%;
      max-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .quotePreviewCanvas {
      width: auto;
      max-width: 100%;
      max-height: 100%;
      display: block;
      border-radius: 16px;
      background: transparent;
      box-shadow: 0 10px 30px rgba(61, 76, 150, 0.16);
    }

    .quotePreviewWrapNoPhone {
      width: 100%; height: 100%;
      max-width: 100%; max-height: 100%;
      padding: 4px;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(226, 232, 240, 0.9);
      box-shadow: 0 18px 40px rgba(148, 163, 184, 0.14);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .quotePreviewWrapNoPhone .quotePreviewCanvas {
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
      border: none;
    }

    .quotePreviewWrap.phone-preview {
      border: 8px solid #0f172a;
      border-radius: 32px;
      padding: 0;
      background: #0f172a;
      box-shadow: inset 0 0 0 1px #334155, 0 12px 24px -8px rgba(0, 0, 0, 0.4);
      position: relative;
    }

    .quotePreviewWrap.phone-preview::after {
      content: '';
      position: absolute;
      top: -1px;
      left: 50%;
      transform: translateX(-50%);
      width: 35%;
      height: 18px;
      background: #0f172a;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      z-index: 2;
    }

    .quotePreviewWrap.phone-preview .quotePreviewCanvas {
      border: none;
      border-radius: 24px;
    }

    body.vb-force-dark .quotePreviewWrap.phone-preview {
      border-color: #020617;
      background: #020617;
      box-shadow: inset 0 0 0 1px #1e293b, 0 12px 24px -8px rgba(0, 0, 0, 0.8);
    }

    body.vb-force-dark .quotePreviewWrap.phone-preview::after {
      background: #020617;
    }

    .quoteHint {
      font-size: 12px;
      color: #6b7280;
      line-height: 1.4
    }

    .quoteFooterActions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .quoteBatchProgressWrap {
      display: none;
      width: 120px;
      padding: 8px 10px;
      border-radius: 14px;
      border: 1px solid rgba(191, 219, 254, 0.9);
      background: rgba(239, 246, 255, 0.95);
    }

    .quoteBatchProgressTrack {
      width: 100%;
      height: 6px;
      background: rgba(191, 219, 254, 0.75);
      border-radius: 999px;
      overflow: hidden;
      margin-top: 6px;
    }

    .quoteBatchProgressBar {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #6366f1, #8b5cf6);
      transition: width 0.2s ease;
    }

    /* Export Category Tabs */
    .quoteCategoryTabs {
      display: flex;
      background: rgba(226, 232, 240, 0.92);
      padding: 4px;
      border-radius: 12px;
      margin-bottom: 0;
      gap: 4px;
    }

    .quoteCategoryTab {
      flex: 1;
      border: none;
      background: none;
      padding: 8px 4px;
      font-size: 13px;
      font-weight: 800;
      color: #64748b;
      cursor: pointer;
      border-radius: 9px;
      transition: all 0.2s;
      white-space: nowrap;
      text-align: center;
    }

    .quoteCategoryTab.active {
      background: #fff;
      color: #111827;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      font-weight: 900;
      border: 1px solid rgba(99, 102, 241, 0.25);
    }

    body.vb-force-dark .quoteCategoryTabs {
      background: #1e293b;
    }

    body.vb-force-dark .quoteCategoryTab.active {
      background: #334155;
      color: #f8fafc;
    }

    .quotePreviewStage {
      background: linear-gradient(180deg, #eef3f9 0%, #e7edf6 100%);
      border: 1px solid rgba(203, 213, 225, 0.92);
      border-radius: 22px;
      min-height: 0;
      flex: 1;
      display: flex;
      align-items: stretch;
      justify-content: stretch;
      overflow: visible;
      padding: 10px;
      position: relative;
    }

    .quotePreviewStageActions {
      position: absolute;
      bottom: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 100;
      pointer-events: auto;
    }

    .quotePreviewStageActions .btn.primary,
    .quotePreviewStageActions #quoteExportSubmit {
      background: #fff !important;
      color: #0f172a !important;
      border: 1px solid rgba(203, 213, 225, 0.95) !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
      font-weight: 700 !important;
      transition: all 0.2s ease;
    }

    .quotePreviewStageActions .btn.primary:hover,
    .quotePreviewStageActions #quoteExportSubmit:hover {
      background: #f8fafc !important;
      border-color: rgba(148, 163, 184, 1) !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
      transform: translateY(-1px);
    }

    .quotePreviewStageActions #quoteBatchProgressWrap {
      width: 200px;
    }

    .quotePhoneMockup ~ .quotePreviewStageActions,
    .quoteDesktopCanvasShell ~ .quotePreviewStageActions {
      z-index: 100;
    }

