







.m-cmp-body {
  --ghs-brand: #1A4FBE;
  --ghs-divider: #ebeef5;
  --ghs-border: #C9CDD4;
  --ghs-text: #1F2329;
  --ghs-text-2: #4E5969;
  --ghs-text-3: #86909C;
  --ghs-black: #000;
  --ghs-bg: #F5F6F8;
}
.m-cmp-body .mobile-footer { display: none; }



.m-cmp-page { display: flex; flex-direction: column; height: calc(100vh - 48px); height: calc(100svh - 48px); overflow: hidden; background: #fff; }



.gha-sheet-open .m-cmp-page { height: max(120px, calc(100vh - 48px - var(--gha-sheet-h, 0px))); height: max(120px, calc(100svh - 48px - var(--gha-sheet-h, 0px))); }
.m-cmp-topbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--border-color); }
.m-cmp-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cmp-topbar-ai { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--primary-color); font-size: 14px; font-weight: 500; padding: 6px 6px; cursor: pointer; }
.m-cmp-topbar-ai svg { width: 16px; height: 16px; }

.m-cmp-topbar-ai.active { color: var(--text-muted); }
.m-cmp-stage { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }


.m-cmp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 30px 28px; text-align: center; color: var(--text-muted); }

.m-cmp-empty-t { font-size: 16px; font-weight: 600; color: #4E5969; margin: 0 0 8px; }
.m-cmp-empty-s { font-size: 13px; line-height: 1.7; color: #86909C; margin: 0; }


.m-cmp-actionbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: #fff; }
.m-cmp-basket-meta { flex: none; font-size: 12px; color: var(--text-muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.m-cmp-basket-meta .iconfont { font-size: 12px; }
.m-cmp-add-btn { flex: 1; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: none; border-radius: 4px; background: var(--primary-color); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.m-cmp-add-btn .iconfont { font-size: 14px; }


.m-cmp-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border-color); }
.m-cmp-result-head .compare-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.m-cmp-result-head .compare-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.m-cmp-result-head .compare-actions { flex: none; display: flex; gap: 16px; }
.m-cmp-link { background: none; border: 0; padding: 0; color: var(--text-muted); font-size: 13px; font-family: var(--font-ui); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.m-cmp-link:active { color: var(--primary-color); }
.m-cmp-link .iconfont { font-size: 14px; }


.m-cmp-chart-sec { background: #fff; }
.m-cmp-chart-sec #compareChart { width: 100%; height: 240px; padding: 8px 12px 0; box-sizing: border-box; }


.m-cmp-stage .compare-mode-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 0; }
.m-cmp-stage .compare-mode-bar .cmb-hint { font-size: 12px; color: var(--text-light); }
.m-cmp-stage .compare-mode-bar .cmb-hint b { font-weight: 600; color: var(--text-dark); }
.m-cmp-stage .compare-mode-bar .cmb-toggle { display: inline-flex; flex: none; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; }
.m-cmp-stage .compare-mode-bar .cmb-btn { border: 0; background: #fff; color: var(--text-light); font-size: 12px; padding: 3px 12px; cursor: pointer; }
.m-cmp-stage .compare-mode-bar .cmb-btn + .cmb-btn { border-left: 1px solid var(--border-color); }
.m-cmp-stage .compare-mode-bar .cmb-btn.active { background: var(--bg-gray-th-2); color: var(--text-dark); }


.m-cmp-stage .ghs-range { padding: 12px 16px 14px; background: #F8F9FA; border-top: 1px solid var(--border-color); }
.m-cmp-stage .ghs-range-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.m-cmp-stage .ghs-range-label { font-size: 12px; color: var(--text-muted); }
.m-cmp-stage .ghs-range-value { font-size: 12px; color: var(--primary-color); font-family: var(--font-ui); }
.m-cmp-stage .ghs-range-chips { display: flex; gap: 4px; margin-left: auto; }
.m-cmp-stage .ghs-chip { border: 1px solid var(--border-color-dark); background: #fff; color: var(--text-muted); border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.m-cmp-stage .ghs-chip.active { background: rgba(26, 79, 190, 0.08); border-color: var(--primary-color); color: var(--primary-color); }
.m-cmp-stage .ghs-range-track { position: relative; height: 14px; background: #e9ebee; border-radius: 4px; cursor: pointer; touch-action: none; }
.m-cmp-stage .ghs-range-fill { position: absolute; top: 0; bottom: 0; background: rgba(26, 79, 190, 0.18); border-radius: 4px; }
.m-cmp-stage .ghs-range-handle { position: absolute; top: 50%; width: 22px; height: 18px; background: #fff; border: 1px solid #b6bcc7; border-radius: 4px; transform: translate(-50%, -50%); }
.m-cmp-stage .ghs-range-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--text-light); }


.m-cmp-table-sec { background: #fff; padding: 12px 0 4px; margin-top: 8px; }
.m-cmp-table-sec .data-section-header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 8px; }
.m-cmp-table-sec .data-title { font-size: 15px; font-weight: 600; color: var(--text-dark); margin: 0; }
.m-cmp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-cmp-table-scroll .data-table { min-width: 100%; }
.m-cmp-table-scroll .data-table .sticky-col { position: sticky; left: 0; z-index: 1; background: var(--bg-gray-th-2); }
.m-cmp-table-scroll .data-table td.locked-cell { cursor: pointer; color: var(--primary-color); }
.m-cmp-table-scroll .data-table td.locked-cell .link-access { color: var(--primary-color); text-decoration: none; font-size: 13px; }
.m-cmp-table-scroll .data-table td.locked-cell .link-access i { font-size: 14px; margin-right: 4px; }









.m-cmp-sheet-mask { position: fixed; inset: 0; z-index: 1010; background: rgba(0, 0, 0, 0.4); display: flex; align-items: flex-end; }
.m-cmp-sheet { width: 100%; height: 72vh; height: 72dvh; background: #fff; border-radius: 8px 8px 0 0; display: flex; flex-direction: column; animation: m-cmp-up 0.22s ease; }
@keyframes m-cmp-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.m-cmp-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.m-cmp-sheet-title { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.m-cmp-sheet-done { border: 0; background: none; color: var(--primary-color); font-size: 14px; font-weight: 500; cursor: pointer; }

.m-cmp-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; }


.ghs-m-pc-hint { flex: none; margin: 0; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.5; color: var(--ghs-text-3); text-align: center; }


.m-cmp-sheet-body .ghs-search-input-wrap { display: flex; align-items: center; gap: 8px; }
.m-cmp-sheet-body .ghs-m-inline-search { position: sticky; top: 0; z-index: 1; background: var(--ghs-bg); border: 1px solid var(--ghs-border); border-radius: 4px; padding: 7px 6px 7px 10px; margin-bottom: 8px; }
.m-cmp-sheet-body .ghs-m-inline-search:focus-within { border-color: var(--ghs-brand); background: #fff; }
.m-cmp-sheet-body .ghs-search-input-wrap > .iconfont { color: var(--ghs-text-3); font-size: 14px; flex: none; }
.m-cmp-sheet-body .ghs-search-input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 13px; padding: 6px 0; color: var(--ghs-text); }
.m-cmp-sheet-body .ghs-search-input::placeholder { color: var(--ghs-text-3); }
.m-cmp-search-clear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; background: none; color: var(--ghs-text-3); cursor: pointer; padding: 0; }
.m-cmp-search-clear .iconfont { font-size: 12px; }


.m-cmp-sheet-body #data-search-results { margin-bottom: 6px; }
.m-cmp-sheet-body .ghs-menu-empty { padding: 14px 10px; text-align: center; color: var(--ghs-text-3); font-size: 12px; }
.m-cmp-sheet-body .ghs-search-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; border: 0; background: none; padding: 8px; cursor: pointer; border-radius: 4px; text-align: left; }
.m-cmp-sheet-body .ghs-search-item:active { background: var(--ghs-bg); }
.m-cmp-sheet-body .ghs-search-item.ghs-picker-item { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.m-cmp-sheet-body .ghs-picker-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-cmp-sheet-body .ghs-search-name { font-size: 13px; color: var(--ghs-text); }
.m-cmp-sheet-body .ghs-search-meta { display: flex; gap: 8px; font-size: 11px; color: var(--ghs-text-3); }
.m-cmp-sheet-body .ghs-picker-add { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ghs-brand); }


.m-cmp-sheet-body.m-cmp-searching #data-basket-list,
.m-cmp-sheet-body.m-cmp-searching .ghs-panel-head,
.m-cmp-sheet-body.m-cmp-searching + .ghs-m-pc-hint { display: none; }   
.m-cmp-sheet-body:not(.m-cmp-searching) #data-search-results { display: none; }


.m-cmp-sheet-body .ghs-panel-head { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.m-cmp-sheet-body .ghs-panel-title { font-size: 13px; color: var(--ghs-black); }
.m-cmp-sheet-body .ghs-panel-meta { font-size: 12px; color: var(--ghs-text-3); }
.m-cmp-sheet-body .ghs-series-list { display: flex; flex-direction: column; gap: 6px; }
.m-cmp-sheet-body .ghs-series-item { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--ghs-divider); border-radius: 4px; }

.m-cmp-sheet-body .ghs-unlock { border: 0; background: none; color: var(--ghs-brand); font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.m-cmp-sheet-body .ghs-denied-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; margin-bottom: 4px; background: #FAFAFB; border: 1px solid var(--ghs-divider); border-radius: 4px; }
.m-cmp-sheet-body .ghs-denied-bar .ghs-unlock { font-weight: 500; }
.m-cmp-sheet-body .ghs-color-dot { position: relative; width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid rgba(0, 0, 0, 0.12); }
.m-cmp-sheet-body .ghs-color-dot input[type='color'] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; }
.m-cmp-sheet-body .ghs-series-info { flex: 1; min-width: 0; }
.m-cmp-sheet-body .ghs-series-name { display: block; font-size: 13px; color: var(--ghs-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cmp-sheet-body .ghs-series-meta { display: flex; gap: 6px; font-size: 11px; color: var(--ghs-text-3); white-space: nowrap; overflow: hidden; }
.m-cmp-sheet-body .ghs-upload-tag { display: inline-block; padding: 0 5px; line-height: 16px; font-size: 11px; color: var(--ghs-brand); background: #EAF1FF; border-radius: 3px; }
.m-cmp-sheet-body .ghs-series-ops { display: flex; gap: 2px; flex: none; align-items: center; }
.m-cmp-sheet-body .ghs-icon-btn { border: 0; background: none; cursor: pointer; line-height: 1; padding: 6px; color: var(--ghs-text-3); border-radius: 4px; font-size: 15px; }
.m-cmp-sheet-body .ghs-icon-danger:active { color: #BA2A20; }
.m-cmp-sheet-body .ghs-empty { padding: 24px 0; text-align: center; color: var(--ghs-text-3); line-height: 1.8; font-size: 13px; }


