[data-collect-view], .mc-entry-holder {
  --mc-primary: var(--el-color-primary, #409eff);
  --mc-hover: var(--el-color-primary-dark-2, #337ecc);
  --mc-soft: var(--el-color-primary-light-9, #ecf5ff);
  --mc-text: var(--el-text-color-primary, #303133);
  --mc-muted: var(--el-text-color-regular, #606266);
  --mc-border: var(--el-border-color, #dcdfe6);
  --mc-surface: var(--el-bg-color, #fff);
  --mc-page: var(--el-bg-color-page, #f5f7fa);
  --mc-radius: 16px;
}
body[data-collect-view] { margin: 0; color: var(--mc-text); background: var(--mc-page); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.6; }
[data-collect-view] *, .mc-entry { box-sizing: border-box; }
[data-collect-view] [hidden] { display: none !important; }
.mc-shell { width: min(1100px, 100%); margin: 0 auto; padding: 20px; }
.mc-pay-shell { width: min(460px, 100%); padding-top: max(32px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mc-brand { display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }
.mc-brand-logo { display: block; width: 160px; height: auto; }
.mc-card { min-width: 0; padding: 20px; background: var(--mc-surface); border: 1px solid var(--el-border-color-lighter, #ebeef5); border-radius: var(--mc-radius); box-shadow: 0 2px 12px rgba(0, 0, 0, .03); }
.mc-card h1 { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.mc-card h2 { margin: 0 0 20px; font-size: 16px; font-weight: 600; }
.mc-pay-card > h1, .mc-pay-card > .mc-subtitle { text-align: center; }
.mc-subtitle { margin: 7px 0 20px; }
.mc-muted, .mc-help, .mc-footer { color: var(--mc-muted); }
.mc-help { margin: 7px 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.mc-footer { margin: 22px 12px 0; font-size: 12px; text-align: center; }
.mc-merchant-id { margin: -10px 0 22px; color: var(--mc-muted); font-size: 12px; text-align: center; }
.mc-label { display: block; margin-bottom: 8px; color: var(--mc-muted); font-size: 14px; font-weight: 400; }
.mc-field { margin: 0 0 20px; }
.mc-field input:not([type='checkbox']), .mc-field select { width: 100%; min-height: 32px; padding: 5px 11px; border: 1px solid var(--mc-border); border-radius: var(--el-border-radius-base, 4px); color: var(--mc-text); background: var(--mc-surface); font: inherit; font-size: 14px; }
.mc-field input:hover, .mc-field select:hover { border-color: var(--el-border-color-hover, #a8abb2); }
.mc-field input:focus, .mc-field select:focus { border-color: var(--mc-primary); outline: none; }
.mc-field input[readonly] { color: #4d5b70; background: #f7f9fc; }
.mc-field input:disabled { color: #8a929f; background: #f4f5f7; cursor: not-allowed; }
.mc-amount-input { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #7c8b9e; border-radius: 6px; background: #fff; }
.mc-amount-input:focus-within { border-color: var(--mc-primary); box-shadow: 0 0 0 2px #d9ecff; }
.mc-currency { color: #606b7d; font-size: 26px; }
.mc-amount-input input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: #202f45; font: inherit; font-size: 34px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.mc-amount-input input:focus-visible { outline-offset: 4px; }
.mc-field-error { min-height: 0; margin: 6px 0 12px; color: #b42318; font-size: 13px; }
.mc-field-error:empty { display: none; }
.mc-types { display: grid; gap: 10px; min-width: 0; padding: 0; margin: 23px 0 24px; border: 0; }
.mc-types legend { padding: 0; }
.mc-type { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 9px 13px; border: 1px solid var(--mc-border); border-radius: 6px; cursor: pointer; }
.mc-type:has(input:checked) { border-color: var(--mc-primary); background: #f4f9ff; }
.mc-type input { width: 17px; height: 17px; margin: 0; accent-color: var(--mc-primary); }
.mc-type-icon { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 6px; color: #fff; font-weight: 600; }
.mc-type-icon.is-wx { background: #16833c; }
.mc-type-icon.is-ali { background: #1677c9; }
.mc-types:disabled .mc-type { cursor: wait; opacity: .65; }
.mc-button, .mc-entry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 5px 15px; border: 1px solid var(--mc-border); border-radius: var(--el-border-radius-base, 4px); color: var(--mc-muted); background: var(--mc-surface); font: inherit; font-size: 14px; line-height: 1.5; text-decoration: none; text-align: center; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.mc-button:hover, .mc-entry:hover { color: var(--mc-primary); border-color: var(--mc-primary); background: #f4f9ff; }
.mc-button:active, .mc-entry:active { background: #dceeff; }
.mc-button:focus-visible, .mc-entry:focus-visible, .mc-poster-color:focus-visible, [data-collect-view] a:focus-visible, [data-collect-view] input:focus-visible, [data-collect-view] select:focus-visible { outline: 3px solid #155fa5; outline-offset: 3px; }
.mc-button:disabled { opacity: .55; cursor: not-allowed; }
.mc-button[aria-busy='true'] { cursor: progress; }
.mc-primary, .mc-entry { border-color: var(--mc-primary); color: #fff; background: var(--mc-primary); }
.mc-primary:hover, .mc-entry:hover { border-color: var(--mc-hover); background: var(--mc-hover); color: #fff; }
.mc-primary:active, .mc-entry:active { background: #155fa5; color: #fff; }
.mc-danger { color: #b42318; border-color: #d8aaa5; }
.mc-danger:hover { color: #922219; border-color: #b42318; background: #fff2f0; }
.mc-small { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.mc-block { display: flex; width: 100%; }
.mc-center { text-align: center; justify-content: center; }
.mc-message { margin: 15px 0; padding: 11px 13px; border: 1px solid #cbdff5; border-radius: 5px; background: #f0f7ff; color: #265d95; font-size: 13px; overflow-wrap: anywhere; }
.mc-message:empty { display: none; }
.mc-message.is-error { color: #a52b22; border-color: #f3cac5; background: #fff3f1; }
.mc-message.is-warning { color: #805617; border-color: #ead4ad; background: #fffaed; }
.mc-message.is-success { color: #246f39; border-color: #bfdcc7; background: #f0faf3; }
.mc-loading { padding: 32px 0; text-align: center; color: var(--mc-muted); }
.mc-checkout-money { margin: -4px 0 18px; color: #1c2e48; font-size: 39px; line-height: 1.4; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mc-qr { display: grid; place-items: center; width: min(252px, 100%); min-height: 252px; margin: 20px auto 10px; padding: 13px; border: 1px solid #e5e9f0; border-radius: 6px; background: #fff; }
.mc-qr img, .mc-qr canvas { display: block; max-width: 100%; height: auto; }
.mc-qr-label { margin: 10px 0 3px; font-size: 14px; }
.mc-result-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 20px auto; border-radius: 50%; font-size: 34px; }
.mc-result-icon.is-success { background: #eaf7ee; color: #28733b; }
.mc-result-icon.is-ended { background: #f2f4f7; color: #667085; }
.mc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mc-return { display: block; margin-top: 18px; color: var(--mc-primary); font-size: 14px; text-align: center; }
.mc-page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.mc-page-head h1 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.mc-page-head p { margin: 0; font-size: 13px; color: var(--mc-muted); }
.mc-page-head a { color: var(--mc-primary); white-space: nowrap; }
.mc-grid { display: grid; gap: 20px; }
.mc-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.mc-settings-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
.mc-checkbox { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.mc-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--mc-primary); }
.mc-code-preview { margin: 0 auto 14px; }
.mc-link-text { display: block; overflow-wrap: anywhere; color: #2367a9; font-size: 13px; text-decoration: underline; }
.mc-poster-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 15px 0; }
.mc-poster-color { min-height: 32px; padding: 5px; border: 1px solid var(--mc-border); border-radius: var(--el-border-radius-base, 4px); color: var(--mc-muted); background: var(--mc-surface); font: inherit; font-size: 13px; cursor: pointer; }
.mc-poster-color:hover { border-color: var(--mc-primary); background: #f4f9ff; }
.mc-poster-color:active { background: #dceeff; }
.mc-poster-color[aria-pressed='true'] { border-color: var(--mc-primary); background: var(--mc-soft); color: #205b96; box-shadow: inset 0 0 0 1px var(--mc-primary); }
.mc-poster-preview { display: block; width: min(280px, 100%); height: auto; margin: 16px auto; border: 1px solid #e5e9f0; border-radius: 6px; }
.mc-dns { display: grid; grid-template-columns: 75px minmax(0, 1fr); margin: 14px 0; border: 1px solid var(--mc-border); border-radius: 5px; font-size: 13px; }
.mc-dns dt, .mc-dns dd { min-width: 0; margin: 0; padding: 9px 10px; border-bottom: 1px solid #e5e9f0; overflow-wrap: anywhere; }
.mc-dns dt { color: #526075; background: #f7f9fc; }
.mc-dns dt:last-of-type, .mc-dns dd:last-of-type { border-bottom: 0; }
.mc-status { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border: 1px solid #d4e1ef; border-radius: 4px; background: #edf5ff; color: #2a6198; font-size: 12px; }
.mc-status.is-active { border-color: #c0dbca; color: #28703b; background: #f0faf3; }
.mc-status.is-disabled, .mc-status.is-error { border-color: #e0c7c5; color: #a2332a; background: #fff3f1; }
.mc-status.is-pending_review, .mc-status.is-approved { border-color: #e6d4b7; color: #805617; background: #fffaed; }
.mc-domain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mc-domain-head h3 { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.mc-domain-list { display: grid; gap: 14px; margin-top: 18px; }
.mc-domain-row { padding: 18px; border: 1px solid var(--mc-border); border-radius: 6px; }
.mc-domain-row p { margin: 7px 0; }
.mc-domain-meta { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 9px 0 12px; color: #596578; font-size: 13px; }
.mc-filter { max-width: 240px; margin: 0; }
.mc-empty { padding: 30px 12px; color: var(--mc-muted); text-align: center; }
.mc-entry-holder { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 15px; }
.mc-entry { min-height: 32px; padding: 5px 15px; font-size: 14px; }
.el-card__header .mc-entry-holder { display: inline-flex; margin: 0 0 0 10px; vertical-align: middle; }
.mc-native-panel { width: 100%; min-width: 0; color: var(--mc-text); font: inherit; }
[data-mc-host] { display: block !important; }
[data-mc-host] > [hidden] { display: none !important; }
.mc-native-panel .mc-management-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.mc-native-panel .mc-page-head { padding: 16px 20px; background: var(--mc-surface); border: 1px solid var(--el-border-color-lighter, #ebeef5); border-radius: var(--mc-radius); }
.mc-native-panel .mc-page-head h1 { font-size: 16px; }
.mc-native-panel .mc-page-head p { margin-top: 4px; font-size: 12px; }
.mc-native-panel[data-collect-embedded='admin'] { --mc-radius: var(--el-border-radius-base, 4px); }
.mc-back { margin-right: 4px; }
.mc-tabs { display: flex; align-items: center; gap: 24px; margin: 0 0 20px; padding: 0 20px; border-bottom: 2px solid var(--el-border-color-light, #e4e7ed); background: var(--mc-surface); border-radius: 8px 8px 0 0; }
.mc-tab { position: relative; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--mc-muted); font: inherit; font-size: 14px; cursor: pointer; }
.mc-tab:hover, .mc-tab[aria-selected='true'] { color: var(--mc-primary); }
.mc-tab[aria-selected='true']::after { position: absolute; right: 0; bottom: -2px; left: 0; height: 2px; background: var(--mc-primary); content: ''; }
.mc-tab:focus-visible { outline: 2px solid var(--mc-primary); outline-offset: 3px; }
.mc-tab-panel { min-width: 0; }
.mc-table-wrap { width: 100%; overflow-x: auto; }
.mc-table { width: 100%; border-collapse: collapse; color: var(--mc-muted); font-size: 14px; text-align: left; }
.mc-table th, .mc-table td { padding: 12px; border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5); vertical-align: middle; }
.mc-table th { background: var(--el-fill-color-light, #f5f7fa); color: var(--mc-text); font-weight: 500; white-space: nowrap; }
.mc-table tbody tr:hover { background: var(--el-fill-color-light, #f5f7fa); }
.mc-table td { min-width: 110px; overflow-wrap: anywhere; }
.mc-table .mc-domain-head { display: block; }
.mc-table .mc-actions { flex-wrap: nowrap; }
.mc-table .mc-help { margin: 4px 0 0; font-size: 12px; }
.mc-pay-card .mc-button { min-height: 44px; font-size: 16px; }
.mc-pay-card .mc-primary { background: #2d6eb3; background: color-mix(in srgb, var(--mc-primary) 70%, #000); border-color: transparent; }
.mc-pay-card .mc-primary:hover { background: #24588f; background: color-mix(in srgb, var(--mc-primary) 58%, #000); }
/* Aggregate amount-entry layout follows the old Collect/Page flow; the QR payment page is native. */
.mc-collect-shell { width: min(480px, 100%); min-height: 100vh; margin: 0 auto; padding: 30px 16px 28px; }
body[data-collect-view='pay'] { background: linear-gradient(180deg, #e7f2ff 0, #f5f7fa 360px); }
.mc-collect-shell .mc-brand { justify-content: flex-start; margin: 0 8px 28px; }
.mc-collect-shell .mc-brand-logo { width: 150px; }
.mc-collect-merchant { display: flex; align-items: center; gap: 14px; margin: 0 8px 22px; }
.mc-collect-avatar { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border: 1px solid #c4defb; border-radius: 14px; background: #fff; color: #2367a9; font-size: 25px; font-weight: 600; }
.mc-collect-merchant-info { min-width: 0; }
.mc-collect-eyebrow { margin: 0 0 3px; color: var(--mc-muted); font-size: 12px; }
.mc-collect-title { margin: 0; color: #223449; font-size: 21px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.mc-collect-meta { margin: 5px 0 0; color: var(--mc-muted); font-size: 12px; }
.mc-collect-card { padding: 26px 22px; border: 1px solid var(--el-border-color-lighter, #ebeef5); border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(39, 77, 123, .05); }
.mc-collect-form { margin: 0; }
.mc-collect-amount-label { display: block; margin: 0 0 12px; color: #606266; font-size: 14px; }
.mc-collect-amount { margin-bottom: 8px; padding: 14px 15px; border: 1px solid #c1ccda; border-radius: 10px; background: #fafcff; }
.mc-collect-amount:focus-within { border-color: #409eff; background: #fff; box-shadow: 0 0 0 3px #ecf5ff; }
.mc-collect-amount .mc-currency { color: #66778d; font-size: 29px; }
.mc-collect-amount-value { font-weight: 600 !important; font-size: 38px !important; }
.mc-collect-methods { display: grid; gap: 12px; margin: 24px 0 20px; padding: 22px 0 0; border: 0; border-top: 1px solid #ebeef5; }
.mc-collect-methods legend { padding: 0 0 8px; color: #606266; font-size: 14px; }
.mc-collect-method { min-height: 74px; gap: 12px; padding: 14px; border: 1px solid #dcdfe6; border-radius: 10px; background: #fff; }
.mc-collect-method:hover { border-color: #a0cfff; background: #f6faff; }
.mc-collect-method:has(input:checked) { border-color: #409eff; background: #ecf5ff; }
.mc-collect-method.is-wxpay:has(input:checked) { border-color: #289947; background: #f1faf3; }
.mc-collect-method.is-alipay:has(input:checked) { border-color: #1677ff; background: #eff6ff; }
.mc-collect-method.is-qqpay:has(input:checked) { border-color: #1782b1; background: #effaff; }
.mc-collect-method-radio { order: 3; flex: 0 0 18px; margin-left: auto !important; }
.mc-collect-method-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 9px; font-size: 20px; }
.mc-collect-method-copy { display: grid; min-width: 0; gap: 3px; }
.mc-collect-method-name { color: #303133; font-size: 15px; font-weight: 500; }
.mc-collect-method-desc { color: #606266; font-size: 12px; font-weight: 400; line-height: 1.4; }
.mc-collect-submit { min-height: 46px; border-radius: 8px; background: #2d6eb3; border-color: #2d6eb3; color: #fff; font-size: 16px; font-weight: 500; }
.mc-collect-submit:hover { border-color: #24588f; background: #24588f; }
.mc-collect-confirmed { margin: 0 0 20px; border-color: #bddac5; background: #f0f9f2; color: #246b38; }
@media (max-width: 760px) {
  .mc-shell { padding: 20px 16px 28px; }
  .mc-pay-shell { padding-top: max(24px, env(safe-area-inset-top)); }
  .mc-card { padding: 20px 18px; }
  .mc-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-page-head { align-items: flex-start; }
  .mc-page-head h1 { font-size: 18px; }
  .mc-actions > .mc-button { flex: 1 1 auto; }
  .mc-entry { min-height: 44px; }
  .mc-native-panel .mc-page-head { padding: 15px; gap: 12px; }
  .mc-native-panel .mc-page-head > .mc-actions { justify-content: flex-end; }
  .mc-native-panel .mc-card { padding: 18px 16px; }
  .mc-native-panel .mc-button, .mc-native-panel .mc-field input:not([type='checkbox']), .mc-native-panel .mc-field select, .mc-poster-color { min-height: 44px; }
  .mc-native-panel .mc-field input:not([type='checkbox']), .mc-native-panel .mc-field select { font-size: 16px; }
  .mc-native-panel .mc-management-shell { padding: 0; }
  .mc-tabs { padding: 0 15px; }
  .mc-collect-shell { padding-top: 22px; }
  .mc-collect-card { padding: 24px 20px; }
}
@media (forced-colors: active) {
  .mc-button:focus-visible, .mc-entry:focus-visible, .mc-poster-color:focus-visible, [data-collect-view] a:focus-visible, [data-collect-view] input:focus-visible, [data-collect-view] select:focus-visible { outline-color: Highlight; }
  .mc-status { border-color: CanvasText; }
}
