:root {
    --ink: #19212b;
    --muted: #74808d;
    --line: #e5e9ed;
    --paper: #f7f9fa;
    --white: #ffffff;
    --navy: #17324d;
    --teal: #1d8a81;
    --teal-light: #e5f3f1;
    --yellow: #a36f05;
    --yellow-light: #fff4d9;
    --red: #bd4a4a;
    --red-light: #fff0f0;
    --shadow: 0 12px 32px rgba(30, 48, 63, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--teal); }
code { color: #2f536b; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; word-break: break-all; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 246px; background: var(--navy); color: #dfe9f0; display: flex; flex-direction: column; padding: 27px 18px 19px; flex: 0 0 246px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 600; letter-spacing: .2px; padding: 0 10px 31px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.52); color: #fff; font-size: 11px; letter-spacing: 1px; }
.brand-mark.large { width: 43px; height: 43px; font-size: 14px; background: var(--navy); }
.account-chip { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: 18px 10px; display: flex; align-items: center; gap: 11px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #2a526c; color: #fff; font-weight: 700; }
.account-chip strong, .account-chip small { display: block; }
.account-chip strong { color: #fff; font-size: 13px; font-weight: 600; }
.account-chip small { color: #9fb3c2; font-size: 11px; margin-top: 2px; }
.nav { padding-top: 20px; display: grid; gap: 5px; }
.nav a { color: #afc2d0; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-left: 2px solid transparent; transition: background .15s, color .15s; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: #61c2b7; }
.nav-icon { display: inline-flex; width: 17px; justify-content: center; color: #77a1b7; font-size: 16px; }
.nav a.active .nav-icon { color: #77d0c6; }
.sidebar-bottom { margin-top: auto; padding: 18px 10px 0; }
.logout { color: #9fb3c2; font-size: 13px; }
.logout:hover { color: #fff; }
.main { flex: 1; min-width: 0; padding: 0 42px 56px; }
.topbar { max-width: 1280px; margin: 0 auto; min-height: 111px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: 1.7px; margin: 0 0 7px; }
.topbar h1 { font-size: 25px; font-weight: 650; letter-spacing: 0; margin: 0; }
.topbar-meta { display: flex; gap: 20px; align-items: center; color: var(--muted); font-size: 12px; }
.status-dot { color: var(--teal); }
.status-dot:before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin: 0 7px 1px 0; }
.main > section, .main > .alert { max-width: 1280px; margin-left: auto; margin-right: auto; }
.page-intro, .welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 35px 0 25px; }
.page-intro.compact { padding-bottom: 30px; }
h2 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: 0; }
h3 { margin: 0; font-size: 17px; line-height: 1.35; }
p { margin: 0; }
.muted { color: var(--muted); }
.button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; font-weight: 600; font-size: 13px; transition: background .15s, color .15s, border-color .15s; }
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover { background: #176f68; }
.button.subtle { background: #edf1f3; color: #385469; }
.button.subtle:hover { background: #e1e7ea; }
.button.danger-outline { border: 1px solid #e4baba; background: #fff; color: var(--red); }
.button.danger-outline:hover { background: var(--red-light); }
.button.light { background: #fff; color: var(--navy); }
.button.light:hover { background: #eef6f5; }
.button.small { min-height: 31px; padding: 0 12px; font-size: 12px; }
.button.full { width: 100%; }
.alert { padding: 12px 15px; margin-top: 22px !important; border-left: 3px solid; font-size: 13px; transition: opacity .4s; }
.alert.success { background: var(--teal-light); border-color: var(--teal); color: #23685f; }
.alert.error { background: var(--red-light); border-color: var(--red); color: #9a3b3b; }
.alert.fade-out { opacity: .25; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); padding: 21px 22px 18px; min-height: 142px; }
.stat > span, .stat > small { display: block; }
.stat > span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 29px; font-weight: 600; margin: 7px 0 4px; letter-spacing: 0; }
.stat small { color: #99a3ac; font-size: 11px; }
.stat small a { color: var(--teal); }
.stat.accent { border-top: 2px solid #e9b744; }
.content-grid { display: grid; gap: 14px; margin-top: 28px; }
.two-col { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); }
.section-block, .form-section, .table-section, .credential-section { background: var(--white); border: 1px solid var(--line); }
.section-block { padding: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 25px 19px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quick-link { min-height: 112px; background: #fff; padding: 18px; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-content: center; }
.quick-link:hover { background: #f7fbfa; }
.quick-link > span { grid-row: 1 / 3; font-size: 22px; color: var(--teal); }
.quick-link strong { font-size: 14px; }
.quick-link small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.note-block { background: #f0f6f5; border-color: #d4e8e4; }
.note-block h3 { margin-bottom: 13px; }
.note-block p:not(.eyebrow) { color: #58706e; line-height: 1.8; font-size: 13px; }
.text-link { color: var(--teal); font-size: 13px; font-weight: 600; }
.note-block .text-link { display: inline-block; margin-top: 22px; }
.table-section { margin-top: 8px; }
.table-toolbar { min-height: 67px; padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.table-toolbar h3 { color: var(--ink); font-size: 16px; margin-bottom: 2px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 17px; vertical-align: middle; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 25px; }
th:last-child, td:last-child { padding-right: 25px; }
th { color: #88939d; font-weight: 600; font-size: 11px; background: #fbfcfc; }
td { font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.cell-sub { display: block; color: #a1aab1; font-size: 11px; margin-top: 2px; }
.money { color: #253f53; font-weight: 650; }
.positive { color: var(--teal); }
.negative { color: var(--red); }
.align-right { text-align: right; }
.actions { color: var(--teal); }
.actions a { margin-left: 14px; }
.actions a:hover, .text-link:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 3px 8px; font-size: 11px; line-height: 1.3; }
.pill.green { color: #23766e; background: var(--teal-light); }
.pill.yellow { color: var(--yellow); background: var(--yellow-light); }
.pill.gray { color: #6f7c85; background: #eef1f3; }
.empty { padding: 48px 25px; color: var(--muted); text-align: center; }
.pagination-bar { min-height: 78px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; overflow-x: auto; }
.page-summary, .page-size-form, .page-nav { display: flex; align-items: center; }
.page-summary { flex: 0 0 auto; min-width: max-content; gap: 14px; color: #677681; font-size: 12px; white-space: nowrap; }
.page-summary > span:first-child { flex: 0 0 auto; }
.page-summary strong { color: #2d4250; font-weight: 650; }
.page-size-form { flex: 0 0 auto; gap: 7px; color: #7d8b94; }
.page-size-form select { width: 70px; min-height: 38px; flex: 0 0 70px; color: #506571; padding: 0 9px; }
.page-nav { flex: 0 0 auto; gap: 6px; }
.page-number, .page-arrow { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dce4e7; color: #677781; font-size: 14px; background: #fff; }
.page-number:hover, .page-arrow:hover { border-color: #8ec9c1; color: var(--teal); background: #f4fbfa; }
.page-number.current { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 650; }
.page-arrow { font-size: 25px; line-height: 1; color: #526b79; }
.page-arrow.disabled { color: #c0cbd0; background: #f7f9fa; }
.page-ellipsis { width: 24px; color: #89979f; text-align: center; font-size: 20px; }
@media (min-width: 761px) and (max-width: 1150px) {
    .pagination-bar { gap: 10px; padding: 10px 14px; }
    .page-summary { gap: 9px; font-size: 11px; }
    .page-size-form { gap: 5px; }
    .page-size-form select { width: 58px; min-height: 34px; flex-basis: 58px; padding: 0 7px; }
    .page-nav { gap: 4px; }
    .page-number, .page-arrow { width: 32px; height: 34px; font-size: 13px; }
    .page-arrow { font-size: 21px; }
    .page-ellipsis { width: 15px; font-size: 17px; }
}
.log-privacy { color: #6f817e; background: #e7f4f1; padding: 5px 9px; font-size: 11px; }
.request-log-section { margin-top: 8px; }
.request-toolbar { align-items: center; }
.request-filter { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.request-filter label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.request-filter select { width: min(290px, 28vw); min-height: 36px; padding: 0 10px; font-size: 12px; }
.request-bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 25px; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.request-bulk-bar form { display: flex; align-items: center; gap: 12px; margin: 0; }
.request-selection-status { color: #8a969e; font-size: 11px; }
.request-select-all { display: inline-flex; align-items: center; gap: 7px; color: #647681; font-size: 12px; cursor: pointer; }
.request-select-all input, .request-row-checkbox { width: 16px; min-width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: var(--teal); cursor: pointer; }
.request-select-all input:disabled, .request-row-checkbox:disabled { cursor: not-allowed; opacity: .45; }
.request-select-cell { width: 58px; text-align: center; }
.request-log-table .request-select-cell { padding-left: 12px; padding-right: 12px; }
.request-log-table .link-button { white-space: nowrap; }
.user-list-toolbar > div strong, .user-list-toolbar > div span { display: block; }
.user-list-toolbar > div strong { color: var(--ink); font-size: 14px; }
.user-search-form { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.user-search-form input[type="search"] { width: min(320px, 30vw); min-height: 36px; }
.request-log-table th, .request-log-table td { white-space: nowrap; }
.request-log-table .request-id { display: block; max-width: 180px; }
.request-log-table td:nth-child(4) { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.response-details { min-width: 90px; }
.response-details summary { color: var(--teal); cursor: pointer; font-size: 12px; font-weight: 600; }
.response-details pre { background: #182b3d; color: #e6f3ef; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 10px 0 0; max-width: 420px; max-height: 300px; overflow: auto; padding: 13px; white-space: pre-wrap; word-break: break-word; }
.form-section { margin-top: 8px; padding: 25px; }
.form-section.narrow { max-width: 620px; }
.stack-form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; color: #53616d; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #dbe1e5; background: #fff; color: var(--ink); padding: 0 12px; font-size: 13px; border-radius: 0; }
textarea { min-height: 82px; padding-top: 10px; padding-bottom: 10px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,138,129,.1); }
label small { color: #9aa5ac; font-size: 11px; font-weight: 400; margin-top: -2px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.reset-form { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.reset-form-source { display: none; }
.permission-section { border: 1px solid var(--line); background: #f8fafb; padding: 15px; }
.permission-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.permission-heading > span { color: var(--ink); font-size: 13px; font-weight: 650; }
.permission-heading small { color: #96a2aa; font-size: 11px; font-weight: 400; }
.permission-list { display: grid; gap: 7px; }
.permission-item { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 8px 10px; background: #fff; border: 1px solid #e4eaed; cursor: pointer; }
.permission-item:hover { border-color: #b9deda; background: #fbfefd; }
.permission-item > input { position: absolute !important; opacity: 0 !important; width: 1px !important; min-width: 1px !important; height: 1px !important; min-height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; overflow: hidden !important; }
.permission-check { width: 16px; height: 16px; border: 1px solid #cbd5da; background: #fff; flex: 0 0 16px; position: relative; }
.permission-item > input:checked + .permission-check { border-color: var(--teal); background: var(--teal); }
.permission-item > input:checked + .permission-check:after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.permission-copy { flex: 1; min-width: 0; }
.permission-copy strong, .permission-copy code { display: block; }
.permission-copy strong { font-size: 12px; }
.permission-copy code { color: #80919b; font-size: 10px; margin-top: 1px; }
.permission-state { font-size: 10px; white-space: nowrap; }
.permission-state.open { color: var(--teal); }
.permission-state.closed { color: #a0a9ae; }
.permission-toggle { display: flex; align-items: flex-start; grid-template-columns: none; gap: 10px; padding: 11px 12px; border: 1px solid #dfe7ea; background: #fff; cursor: pointer; }
.permission-toggle:hover { border-color: #b9deda; background: #fbfefd; }
.permission-toggle > input { position: absolute !important; opacity: 0 !important; width: 1px !important; min-width: 1px !important; height: 1px !important; min-height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; overflow: hidden !important; }
.permission-toggle > input[type="checkbox"] { appearance: none !important; -webkit-appearance: none !important; }
.toggle-box { width: 17px; height: 17px; border: 1px solid #cbd5da; background: #fff; flex: 0 0 17px; position: relative; }
.permission-toggle > input:checked + .toggle-box { border-color: var(--teal); background: var(--teal); }
.permission-toggle > input:checked + .toggle-box:after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.permission-toggle > span:last-child { display: block; }
.permission-toggle strong, .permission-toggle small { display: block; }
.permission-toggle strong { color: var(--ink); font-size: 12px; }
.permission-toggle small { color: #96a2aa; font-size: 11px; font-weight: 400; margin-top: 2px; }
.credential-readout { border-left: 3px solid var(--teal); background: #f5f8f8; display: grid; gap: 4px; padding: 12px 15px; }
.credential-readout-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.credential-readout-main { display: grid; gap: 4px; min-width: 0; }
.credential-readout span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.credential-readout span:first-child { margin-top: 0; }
.credential-readout code { color: #23475c; }
.reset-form-inline { margin: 0; }
.balance-preview { background: #f0f6f5; border: 1px solid #d9ebe8; padding: 16px 17px; display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.balance-preview span { font-weight: 650; }
.balance-preview strong { color: var(--teal); font-size: 15px; }
.inline-actions { display: flex; justify-content: flex-end; gap: 12px; }
.link-button { border: 0; background: transparent; padding: 0; cursor: pointer; font-weight: 600; font-size: 12px; }
.green-text { color: var(--teal); }
.danger-text { color: var(--red); }
.table-input { width: 105px; min-height: 33px; padding: 0 8px; }
.api-name-input { width: min(190px, 18vw); }
.switch { display: inline-flex; align-items: center; grid-template-columns: none; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 30px; height: 17px; background: #cbd3d8; position: relative; transition: background .15s; }
.switch span:after { content: ''; width: 13px; height: 13px; background: #fff; position: absolute; top: 2px; left: 2px; transition: left .15s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span:after { left: 15px; }
.switch em { font-style: normal; font-size: 12px; color: var(--muted); }
.settings-grid { padding: 0 25px 25px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.settings-grid .wide { grid-column: 1 / -1; }
.switch-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); padding: 12px 14px; }
.switch-setting > span { font-weight: 650; }
.gift-rules-setting { border: 1px solid var(--line); background: #fbfcfc; padding: 17px 18px 18px; margin: 0; min-width: 0; }
.gift-rules-setting legend { padding: 0 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.gift-rules-hint { margin: -2px 0 14px; font-size: 11px; }
.gift-rules-list { display: grid; gap: 9px; }
.gift-rule-row { display: grid; grid-template-columns: minmax(180px, 1fr) 24px minmax(180px, 1fr) auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid #e2e9eb; background: #fff; }
.gift-rule-row label { gap: 5px; }
.gift-rule-row label > span { color: #75848d; font-size: 11px; font-weight: 600; }
.gift-rule-row input { min-height: 36px; }
.gift-rule-arrow { color: var(--teal); font-size: 17px; line-height: 36px; text-align: center; }
.remove-gift-rule { color: #7e6a6a; align-self: end; }
.remove-gift-rule:hover { color: var(--red); background: var(--red-light); }
.add-gift-rule { margin-top: 11px; }
.add-gift-rule span { color: var(--teal); font-size: 17px; line-height: 1; margin-right: 5px; }
.recharge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.recharge-form-section { padding: 24px; }
.recharge-rule { display: grid; grid-template-columns: repeat(2, minmax(170px, .65fr)) minmax(250px, 1.2fr); gap: 10px; margin-bottom: 20px; }
.recharge-rule-card { border: 1px solid #dfe7ea; background: #fbfcfc; padding: 14px 15px 13px 52px; min-height: 86px; position: relative; }
.recharge-rule small, .recharge-rule strong { display: block; }
.recharge-rule small { color: #8997a0; font-size: 10px; font-weight: 700; letter-spacing: .8px; margin-bottom: 5px; }
.recharge-rule strong { color: #1b2834; font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.rule-icon { position: absolute; left: 15px; top: 16px; width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-light); color: var(--teal); font-size: 15px; font-weight: 700; }
.rule-icon.muted { background: #edf2f4; color: #627381; }
.rule-icon.warm { background: #fff4dd; color: #b48320; }
.gift-rule-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.gift-rule-pills span { background: #ffffff; border: 1px solid #dfe7ea; color: #244555; display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.recharge-balance { background: var(--navy); color: #fff; padding: 22px; min-height: 135px; }
.recharge-balance small, .recharge-balance strong, .recharge-balance span { display: block; }
.recharge-balance small { color: #9fb3c2; font-size: 10px; }
.recharge-balance strong { font-size: 31px; margin-top: 18px; }
.recharge-balance span { color: #75b9b2; font-size: 9px; }
.payment-type { border: 0; padding: 0; margin: 0; display: flex; gap: 9px; }
.payment-type legend { color: var(--ink); font-size: 13px; margin-bottom: 7px; }
.payment-type label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 9px 13px; cursor: pointer; }
.payment-type input { width: 15px; min-height: 15px; }
.offline-recharge-notice { margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--teal); background: #f4f8f8; color: #415965; }
.offline-recharge-notice strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.offline-recharge-notice p { margin: 0; color: #687b84; font-size: 12px; line-height: 1.7; }
.official-payment-choice { display: inline-flex !important; align-items: center; gap: 8px; border-color: #b8ddd7 !important; background: #f5fbfa; color: #275d58 !important; }
.official-payment-choice input { width: 15px; min-height: 15px; }
.official-payment-choice span { display: inline-flex; align-items: center; gap: 8px; }
.official-payment-choice img { width: 20px; height: 18px; padding: 3px; background: var(--teal); }
.payment-channel-setting { border: 1px solid var(--line); padding: 12px 14px 14px; margin: 0; display: flex; gap: 22px; }
.payment-channel-setting legend { padding: 0 5px; color: var(--ink); font-size: 13px; font-weight: 650; }
.payment-channel-setting label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.payment-channel-setting input { width: 16px; min-height: 16px; }
.payment-provider-setting { border: 1px solid #d8e7e6; background: #f8fbfb; padding: 15px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-provider-setting legend { grid-column: 1 / -1; padding: 0 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.payment-provider-choice { display: flex !important; align-items: flex-start; gap: 10px; border: 1px solid #dfe7ea; background: #fff; padding: 12px 13px; cursor: pointer; }
.payment-provider-choice:hover { border-color: #a8d4cf; background: #fbfefd; }
.payment-provider-choice input { flex: 0 0 16px; width: 16px; min-height: 16px; margin-top: 2px; }
.payment-provider-choice span { display: grid; gap: 2px; font-weight: 400; }
.payment-provider-choice strong { color: var(--ink); font-size: 13px; }
.payment-provider-choice small { color: var(--muted); font-size: 11px; font-weight: 400; }
.wechat-payment-setting { border: 1px solid #d8e7e6; background: #fbfdfd; padding: 17px 18px 18px; margin: 0; min-width: 0; }
.wechat-payment-setting legend { padding: 0 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.wechat-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.wechat-payment-hint { margin-top: 14px; font-size: 11px; line-height: 1.7; }
.payment-history { margin-top: 14px; }
.payment-test-form { border-top: 1px solid var(--line); padding: 17px 25px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.payment-redirect { max-width: 520px; margin: 80px auto; padding: 34px; text-align: center; background: #fff; border: 1px solid var(--line); }
.payment-redirect form { margin-top: 18px; }
.wechat-pay-page { width: min(100%, 520px); overflow: hidden; background: #fff; border: 1px solid #dfe7e9; box-shadow: var(--shadow); }
.wechat-pay-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; background: #08b969; color: #fff; }
.wechat-pay-brand { display: flex; align-items: center; gap: 10px; }
.wechat-pay-brand strong { font-size: 17px; font-weight: 650; }
.wechat-pay-logo { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; background: rgba(255,255,255,.18); }
.wechat-pay-logo img { width: 23px; height: 21px; }
.wechat-pay-secure { color: rgba(255,255,255,.82); font-size: 11px; }
.wechat-pay-amount { padding: 29px 25px 23px; text-align: center; }
.wechat-pay-amount small, .wechat-pay-detail-amount small { display: block; color: #89959c; font-size: 12px; }
.wechat-pay-amount strong { display: block; margin-top: 4px; color: #17222d; font-size: 38px; line-height: 1.2; letter-spacing: 0; }
.wechat-pay-qr-card { margin: 0 20px; padding: 23px 18px 20px; border: 1px solid #edf0f1; text-align: center; }
.wechat-pay-qr-card h2, .wechat-pay-detail h2, .wechat-pay-result h2 { margin: 0; color: #17222d; font-size: 20px; line-height: 1.35; }
.wechat-pay-qr-card > p { margin-top: 7px; color: #7a8991; font-size: 12px; }
.wechat-pay-qrcode { width: 230px; min-height: 230px; margin: 21px auto 17px; display: flex; align-items: center; justify-content: center; background: #fff; }
.wechat-pay-qrcode canvas, .wechat-pay-qrcode img { display: block; width: 230px; height: 230px; }
.wechat-pay-tip { color: #9aa5ab !important; }
.wechat-pay-status { min-height: 22px; margin: 16px 22px 22px; color: #718089; text-align: center; font-size: 12px; }
.wechat-pay-status.success { color: var(--teal); font-weight: 650; }
.wechat-pay-status.error { color: var(--red); }
.wechat-pay-detail { padding: 27px 28px 19px; }
.wechat-pay-detail .eyebrow { margin-bottom: 5px; }
.wechat-pay-detail h2 { font-size: 24px; }
.wechat-pay-detail-amount { padding: 28px 0 22px; border-bottom: 1px solid #edf0f1; text-align: center; }
.wechat-pay-detail-amount strong { display: block; margin-top: 3px; color: #111a22; font-size: 46px; line-height: 1.1; letter-spacing: 0; }
.wechat-pay-merchant { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0 0; color: #87939a; font-size: 12px; }
.wechat-pay-merchant strong { color: #1d2934; font-size: 13px; font-weight: 600; text-align: right; }
.wechat-pay-button { width: calc(100% - 56px); min-height: 49px; margin: 0 28px; border: 0; background: #16be62; color: #fff; cursor: pointer; font-size: 16px; font-weight: 650; }
.wechat-pay-button:hover { background: #0eaa55; }
.wechat-pay-button:disabled { cursor: default; opacity: .65; }
.wechat-pay-button img { width: 23px; height: 21px; margin-right: 8px; vertical-align: -5px; }
.wechat-pay-cancel { display: block; margin: 18px 0 23px; color: #83919a; text-align: center; font-size: 12px; }
.wechat-pay-cancel:hover { color: var(--teal); }
.wechat-pay-result { padding: 58px 30px 62px; text-align: center; }
.wechat-pay-result-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 15px; border: 2px solid #c6d0d4; border-radius: 50%; color: #75848c; font-size: 25px; font-weight: 650; }
.wechat-pay-result.success .wechat-pay-result-mark { border-color: #7bc9be; color: var(--teal); }
.wechat-pay-result p { margin: 9px 0 25px; color: #7c8a91; font-size: 13px; }
.wechat-pay-result .button { min-width: 150px; }
.welcome-row { padding-top: 35px; }
.user-hero { margin-top: 8px; background: var(--navy); color: #fff; min-height: 174px; padding: 27px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.user-hero .label, .user-hero .muted { display: block; color: #9fb3c2; font-size: 12px; }
.user-hero strong { display: block; font-size: 40px; font-weight: 600; margin: 4px 0 4px; }
.recharge-inline form { display: flex; gap: 8px; }
.recharge-inline input { width: 150px; border: 0; }
.credential-section { margin-top: 14px; }
.credential-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 25px 25px; }
.credential-grid > div { border: 1px solid var(--line); padding: 14px; }
.credential-grid > div > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.copy-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.copy-row code { flex: 1; min-width: 0; }
.copy-button { flex: 0 0 auto; border: 1px solid #d9e3e5; color: var(--teal); background: #fff; cursor: pointer; padding: 4px 8px; font-size: 11px; }
.copy-button:hover { background: var(--teal-light); }
.balance-mini { color: var(--muted); font-size: 12px; }
.balance-mini strong { color: var(--teal); font-size: 18px; margin-left: 7px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 14px; }
.doc-main, .doc-aside-inner { background: #fff; border: 1px solid var(--line); }
.doc-section { padding: 25px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; }
.doc-section h3 { margin-bottom: 12px; }
.doc-section p { color: #596873; margin-bottom: 13px; }
.doc-section .muted { color: var(--muted); }
.doc-section h4 { margin: 22px 0 10px; font-size: 13px; }
.schema-table td { white-space: normal; }
.schema-table td:first-child { min-width: 155px; }
.field-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 15px; background: #f5f8f8; border: 1px solid var(--line); }
.field-cloud code { background: #fff; border: 1px solid #dce5e5; padding: 3px 6px; }
.code-block { background: #182b3d; color: #e9f0f2; padding: 15px 17px; overflow-x: auto; }
.code-block code { color: #e6f3ef; white-space: pre; }
.code-label { color: #78c8bd; display: block; font-size: 10px; letter-spacing: 1.3px; margin-bottom: 5px; }
.code-large { min-height: 180px; }
.doc-aside { position: sticky; top: 20px; }
.doc-aside-inner { padding: 23px; }
.doc-aside h3 { margin-bottom: 20px; }
.doc-aside label { margin-bottom: 15px; }
.aside-divider { border-top: 1px solid var(--line); margin: 23px 0; }
.api-item { border-bottom: 1px solid var(--line); padding: 11px 0; }
.api-item:last-child { border-bottom: 0; }
.api-item strong, .api-item code, .api-item span { display: block; }
.api-item .button { display: inline-flex; margin-top: 8px; text-decoration: none; }
.api-item strong { font-size: 13px; }
.api-item code { margin-top: 2px; }
.api-item span { color: var(--teal); font-size: 11px; margin-top: 4px; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 17px; position: relative; }
.login-wrap { width: 100%; max-width: 410px; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.login-brand .eyebrow { margin: 0; color: var(--navy); }
.login-panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px; }
.panel-heading { margin-bottom: 25px; }
.panel-heading h1 { margin: 0 0 4px; font-size: 25px; }
.panel-heading p { color: var(--muted); }
.login-panel .alert { margin: 0 0 17px !important; }
.login-footer { color: #9da7ad; text-align: center; font-size: 11px; margin-top: 20px; }
.auth-alert { position: fixed; top: 20px; width: min(410px, calc(100% - 34px)); }
@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .main { padding: 0 24px 45px; } .sidebar { width: 210px; flex-basis: 210px; } .stat-grid { grid-template-columns: repeat(2, 1fr); } .doc-layout { grid-template-columns: 1fr; } .doc-aside { position: static; } }
@media (max-width: 680px) { .shell { display: block; } .sidebar { width: auto; min-height: 0; padding: 15px 15px 12px; } .brand { padding: 0 5px 14px; } .account-chip { padding: 11px 5px; } .nav { display: flex; overflow-x: auto; padding: 10px 0 0; gap: 3px; } .nav a { white-space: nowrap; padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; } .nav a:hover, .nav a.active { border-bottom-color: #61c2b7; } .sidebar-bottom { position: absolute; top: 18px; right: 15px; padding: 0; } .topbar { min-height: 88px; } .topbar-meta { display: none; } .main { padding: 0 15px 35px; } .page-intro, .welcome-row { align-items: flex-start; flex-direction: column; padding: 25px 0 19px; } .page-intro .button, .welcome-row .button { align-self: stretch; } h2 { font-size: 24px; } .stat-grid, .two-col, .credential-grid, .settings-grid { grid-template-columns: 1fr; } .settings-grid .wide { grid-column: auto; } .section-block, .form-section { padding: 18px; } .section-heading { padding: 18px 18px 15px; } .table-toolbar { padding: 13px 18px; } .request-toolbar, .user-list-toolbar { align-items: flex-start; flex-direction: column; } .request-filter, .user-search-form { width: 100%; margin-left: 0; } .request-filter select, .user-search-form input[type="search"] { width: 100%; } .request-bulk-bar { align-items: flex-start; flex-direction: column; padding: 11px 18px; } .request-bulk-bar form { width: 100%; justify-content: space-between; } .request-select-all { align-self: flex-start; } .user-search-form { flex-wrap: wrap; } .user-search-form input[type="search"] { flex: 1 0 100%; } th:first-child, td:first-child { padding-left: 18px; } th:last-child, td:last-child { padding-right: 18px; } .table-scroll { overflow-x: auto; } .user-hero { align-items: flex-start; flex-direction: column; padding: 23px; } .recharge-inline, .recharge-inline form { width: 100%; } .recharge-inline input { flex: 1; width: auto; } .balance-preview { align-items: flex-start; flex-direction: column; } .login-panel { padding: 25px 20px; } }

/* User console */
.user-view { background: #f3f6f8; }
.user-view .brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.user-view .brand-copy strong { font-size: 13px; color: #fff; }
.user-view .brand-copy small { color: #84a9bc; font-size: 9px; letter-spacing: 1.8px; margin-top: 3px; }
.user-view .sidebar-bottom { display: grid; gap: 16px; }
.sidebar-live { display: flex; align-items: center; gap: 8px; color: #86a8b8; font-size: 11px; }
.sidebar-live span { width: 6px; height: 6px; border-radius: 50%; background: #57c4b5; box-shadow: 0 0 0 4px rgba(87,196,181,.13); }
.crumb-slash { color: #a2b5be; padding: 0 4px; }
.topbar-divider { width: 1px; height: 14px; background: #d9e1e5; }
.topbar-logout { color: #74808d; font-size: 12px; }
.topbar-logout:hover { color: var(--teal); }
.user-view .main { padding-bottom: 70px; }
.user-view .topbar, .user-view .main > section, .user-view .main > .alert { max-width: 1120px; }
.user-view .topbar { min-height: 104px; }
.user-view .topbar h1 { font-size: 22px; }
.user-view .topbar .eyebrow { color: #6d7d8b; }
.user-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; padding: 38px 0 28px; }
.welcome-copy, .welcome-actions { display: flex; }
.welcome-copy > div { display: block; }
.welcome-copy { align-items: flex-start; gap: 18px; }
.welcome-index, .ledger-title > .welcome-index { color: #a4b1b9; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 6px; letter-spacing: 1px; }
.welcome-actions { align-items: center; gap: 19px; }
.welcome-note { color: #9aa8b0; font-size: 11px; }
.user-welcome h2 { font-size: 31px; letter-spacing: 0; }
.user-welcome p:not(.eyebrow) { color: #7b8994; margin-top: 8px; }
.user-welcome .button { min-height: 42px; padding: 0 18px; }
.button-symbol { font-size: 16px; line-height: 1; margin-right: 8px; }
.user-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 15px; }
.points-card { min-height: 205px; background: #18344d; color: #fff; padding: 26px 29px 24px; position: relative; overflow: hidden; }
.points-card:after { content: ''; position: absolute; right: 27px; top: 25px; width: 76px; height: 76px; border: 1px solid rgba(117, 210, 199, .35); transform: rotate(45deg); }
.points-card:before { content: ''; position: absolute; right: -27px; bottom: -33px; width: 124px; height: 124px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.points-top, .points-bottom { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.card-kicker { color: #9db5c3; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.points-mark { color: #74d0c5; font-size: 21px; }
.points-value { display: flex; align-items: baseline; gap: 10px; position: relative; z-index: 1; margin: 42px 0 35px; padding-right: 125px; }
.points-card strong { display: block; color: #fff; font-size: 47px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.points-value > span { color: #72c9bf; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.points-bottom { color: #a9bac5; font-size: 12px; }
.points-bottom .status-dot { color: #74d0c5; }
.points-bottom .status-dot:before { background: #74d0c5; }
.points-recharge { position: absolute; right: 24px; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: 0 12px; color: #fff; background: #1d8a81; font-size: 11px; font-weight: 650; white-space: nowrap; transform: translateY(-50%); }
.points-recharge:hover { background: #26a096; }
.account-summary { min-height: 205px; background: #fff; border: 1px solid #dfe6ea; padding: 23px 25px 19px; display: flex; flex-direction: column; }
.summary-head { display: flex; align-items: flex-start; justify-content: space-between; }
.service-badge { color: #1d8a81; border: 1px solid #bfe3de; padding: 3px 6px; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.summary-label { display: flex; align-items: center; gap: 12px; }
.summary-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #1d8a81; background: #e5f3f1; font-size: 21px; }
.summary-label small, .summary-label strong { display: block; }
.summary-label small { color: #8b98a1; font-size: 11px; margin-bottom: 1px; }
.summary-label strong { font-size: 15px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid #edf0f2; padding: 11px 0 0; margin-top: 14px; color: #8a969e; font-size: 12px; }
.summary-row code { color: #2b5369; text-align: right; font-size: 11px; }
.endpoint { display: flex; align-items: center; gap: 7px; }
.endpoint b { color: #1d8a81; font-size: 9px; letter-spacing: .7px; }
.service-list { display: grid; gap: 7px; margin-top: 13px; overflow: auto; max-height: 68px; }
.service-list-item { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.4fr) auto; align-items: center; gap: 8px; color: #607681; font-size: 11px; }
.service-list-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-list-item code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-list-item b { color: #1d8a81; font-size: 10px; white-space: nowrap; }
.service-list-empty { color: #a0abb1; font-size: 11px; padding: 9px 0; }
.summary-value { color: #304b5c; }
.summary-link { color: #1d8a81; font-size: 12px; font-weight: 650; margin-top: auto; padding-top: 14px; }
.summary-link span, .text-link span { margin-left: 5px; }
.user-credential { margin-top: 15px; }
.user-credential .section-heading { padding: 24px 27px 19px; }
.user-credential .section-heading h3 { font-size: 18px; }
.credential-actions { display: flex; align-items: center; gap: 10px; }
.credential-actions form { margin: 0; }
.secure-badge { color: #258278; background: #e7f4f1; padding: 5px 9px; font-size: 11px; white-space: nowrap; }
.secure-badge i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #36a596; margin: 0 5px 1px 0; }
.user-credential .credential-grid { padding: 0 27px 27px; }
.key-field { background: #f7f9fa; border: 1px solid #e1e8eb; padding: 15px 17px; }
.key-field > span { display: block; color: #8d9aa2; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 9px; }
.key-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.key-label > span { color: #8d9aa2; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.key-label small { color: #a7b0b6; font-size: 10px; }
.key-label + .copy-row { margin-top: 0; }
.key-field .copy-row code { color: #244b63; font-size: 13px; }
.key-field .copy-button { padding: 6px 10px; }
.user-calls { margin-top: 15px; }
.user-calls .table-toolbar { min-height: 82px; padding: 19px 27px; align-items: flex-end; }
.activity-actions { display: flex; align-items: center; gap: 20px; }
.table-count { color: #a0abb1; font-size: 11px; }
.user-calls .table-toolbar .eyebrow { margin-bottom: 3px; }
.user-calls .table-toolbar h3 { font-size: 18px; margin-bottom: 2px; }
.user-calls table td { height: 57px; }
.user-calls table td:first-child { color: #536773; }
.activity-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #55b9ad; margin-right: 10px; box-shadow: 0 0 0 4px #e5f3f1; }
.points-unit { color: #92a0a8; font-size: 9px; letter-spacing: 1px; margin-left: 4px; }
.ledger-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 38px 0 28px; }
.ledger-title { display: flex; align-items: flex-start; gap: 18px; }
.ledger-head h2 { font-size: 31px; }
.ledger-head .muted { margin-top: 8px; }
.ledger-balance { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; }
.ledger-balance small { color: #8a98a1; font-size: 11px; }
.ledger-balance strong { color: #1d8a81; font-size: 23px; font-weight: 650; }
.ledger-balance strong em { font-style: normal; font-size: 9px; letter-spacing: 1.5px; margin-left: 5px; color: #75b9b2; }
.ledger-balance a { grid-column: 1 / -1; color: #1d8a81; font-size: 12px; text-align: right; margin-top: 7px; }
.ledger-table { margin-top: 0; }
.ledger-table td { color: #536773; }
.ledger-table th { background: #f9fbfb; }
.ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; }
.ledger-summary > div { background: #fff; border: 1px solid #dfe6ea; padding: 17px 19px; display: flex; align-items: center; gap: 12px; }
.ledger-summary-icon { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.ledger-summary-icon.plus { background: #e5f3f1; color: #1d8a81; }
.ledger-summary-icon.minus { background: #eef2f4; color: #496474; }
.ledger-summary-icon.return { background: #fff4dd; color: #b48320; }
.ledger-summary strong, .ledger-summary small { display: block; }
.ledger-summary strong { font-size: 12px; }
.ledger-summary small { color: #9aa6ad; font-size: 10px; margin-top: 2px; }
.user-view .table-section { box-shadow: 0 8px 24px rgba(35, 57, 70, .035); }
@media (max-width: 760px) {
    .user-view .topbar { min-height: 87px; }
    .user-welcome, .ledger-head { align-items: flex-start; flex-direction: column; padding: 28px 0 21px; }
    .welcome-actions { align-items: flex-start; flex-direction: column; gap: 10px; width: 100%; }
    .welcome-note { display: none; }
    .user-welcome h2, .ledger-head h2 { font-size: 26px; }
    .user-welcome .button { align-self: stretch; }
    .user-overview { grid-template-columns: 1fr; }
    .user-welcome .welcome-copy { gap: 10px; }
    .points-card, .account-summary { min-height: 185px; }
    .points-card strong { margin: 32px 0 28px; }
    .points-value { padding-right: 112px; }
    .points-recharge { right: 18px; }
    .user-credential .section-heading { align-items: flex-start; flex-direction: column; padding: 20px 18px 16px; }
    .credential-actions { width: 100%; justify-content: space-between; }
    .user-credential .credential-grid { padding: 0 18px 18px; }
    .secure-badge { align-self: flex-start; }
    .user-calls .table-toolbar { align-items: flex-start; flex-direction: column; padding: 17px 18px; }
    .activity-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ledger-summary { grid-template-columns: 1fr; gap: 9px; }
    .ledger-balance { align-self: stretch; grid-template-columns: auto auto; }
    .ledger-balance a { text-align: left; }
    .user-view .table-scroll { overflow-x: auto; }
    .permission-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .permission-item { align-items: flex-start; }
    .permission-state { margin-left: 26px; }
    .recharge-layout, .recharge-rule { grid-template-columns: 1fr; }
    .recharge-rule-card { min-height: 76px; }
    .recharge-balance { order: -1; }
    .payment-settings-grid { grid-template-columns: 1fr; }
    .switch-setting { align-items: flex-start; flex-direction: column; }
    .gift-rule-row { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) auto; gap: 7px; padding: 9px; }
    .gift-rule-row .button { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 680px) {
    .payment-provider-setting, .wechat-payment-grid { grid-template-columns: 1fr; }
    .wechat-pay-detail { padding-left: 22px; padding-right: 22px; }
    .wechat-pay-button { width: calc(100% - 44px); margin-left: 22px; margin-right: 22px; }
}
@media (max-width: 480px) {
    .gift-rule-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .gift-rule-row label:first-child { grid-column: 1; grid-row: 1; }
    .gift-rule-row .gift-rule-arrow { display: none; }
    .gift-rule-row label:nth-of-type(2) { grid-column: 1; grid-row: 2; }
    .gift-rule-row .remove-gift-rule { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Refined user workspace proportions */
@media (min-width: 761px) {
    .user-view .sidebar { width: 196px; flex-basis: 196px; padding: 24px 13px 17px; }
    .user-view .brand { padding: 0 8px 27px; gap: 9px; }
    .user-view .brand-mark { width: 28px; height: 28px; }
    .user-view .brand-copy strong { font-size: 12px; }
    .user-view .account-chip { padding: 16px 8px; gap: 9px; }
    .user-view .avatar { width: 31px; height: 31px; }
    .user-view .nav { padding-top: 17px; gap: 3px; }
    .user-view .nav a { padding: 9px 8px; gap: 9px; font-size: 13px; }
    .user-view .main { padding: 0 34px 58px; }
    .user-view .topbar, .user-view .main > section, .user-view .main > .alert { max-width: 1060px; }
    .user-view .topbar { min-height: 92px; }
    .user-view .topbar h1 { font-size: 20px; }
    .user-welcome { padding: 31px 0 24px; }
    .user-welcome h2 { font-size: 29px; }
    .user-welcome p:not(.eyebrow) { font-size: 13px; }
    .user-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
    .points-card, .account-summary { min-height: 191px; }
    .points-card { padding: 23px 25px 21px; }
    .points-value { margin: 34px 0 27px; }
    .points-card strong { font-size: 42px; }
    .account-summary { padding: 20px 22px 17px; }
    .user-credential .section-heading { padding: 20px 24px 16px; }
    .user-credential .credential-grid { padding: 0 24px 24px; }
    .user-calls .table-toolbar { min-height: 74px; padding: 17px 24px; }
    .user-calls table td { height: 52px; }
    .ledger-head { padding: 31px 0 23px; }
    .ledger-summary { gap: 12px; margin-bottom: 12px; }
}

/* Compact pass for the user overview */
@media (min-width: 761px) {
    .user-view .main { padding-left: 30px; padding-right: 30px; }
    .user-view .topbar, .user-view .main > section, .user-view .main > .alert { max-width: 1020px; }
    .user-welcome { padding-top: 25px; padding-bottom: 19px; }
    .user-welcome h2 { font-size: 27px; }
    .user-overview { gap: 10px; }
    .points-card, .account-summary { min-height: 154px; }
    .points-card { padding: 19px 22px 18px; }
    .points-card:after { right: 22px; top: 18px; width: 58px; height: 58px; }
    .points-card:before { right: -31px; bottom: -42px; width: 105px; height: 105px; }
    .points-value { margin: 25px 0 21px; }
    .points-card strong { font-size: 36px; }
    .points-mark { font-size: 17px; }
    .account-summary { padding: 17px 20px 14px; }
    .summary-row { padding-top: 8px; margin-top: 9px; }
    .summary-link { padding-top: 8px; }
    .user-credential { margin-top: 11px; }
    .user-credential .section-heading { padding: 17px 21px 13px; }
    .user-credential .credential-grid { padding: 0 21px 21px; }
    .key-field { padding: 12px 14px; }
    .user-calls { margin-top: 11px; }
    .user-calls .table-toolbar { min-height: 67px; padding: 14px 21px; }
    .user-calls table td { height: 47px; }
}
@media (max-width: 760px) {
    .points-card, .account-summary { min-height: 160px; }
    .points-card { padding: 20px 22px 18px; }
    .points-card:after { width: 58px; height: 58px; right: 20px; top: 18px; }
    .points-card:before { width: 100px; height: 100px; right: -28px; bottom: -39px; }
    .points-value { margin: 25px 0 22px; }
    .points-card strong { font-size: 36px; }
    .account-summary { padding: 18px 19px 15px; }
    .summary-row { padding-top: 8px; margin-top: 9px; }
    .service-list { max-height: 62px; }
    .service-list-item { grid-template-columns: minmax(88px, 1fr) minmax(105px, 1.3fr) auto; }
    .pagination-bar { align-items: flex-start; flex-direction: column; padding: 16px 18px; gap: 15px; }
    .page-summary { align-items: flex-start; flex-wrap: wrap; gap: 10px 18px; white-space: normal; }
    .page-size-form { width: 100%; }
    .page-nav { flex-wrap: wrap; gap: 6px; }
    .page-number, .page-arrow { width: 36px; height: 36px; }
}
