/* Shared visual tokens. Business states keep their distinct success/danger colors. */
:root[data-sgc-theme]{--sgc-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--sgc-ink:#253244;--sgc-muted:#637184;--sgc-line:#e2e7ee;--sgc-paper:#fff;--sgc-canvas:#f5f6f9;--sgc-radius:12px;--sgc-radius-sm:8px;--sgc-shadow:0 5px 22px #25324409;--sgc-focus:0 0 0 3px var(--sgc-tint);--sgc-accent:#b74455;--sgc-hover:#9e3346;--sgc-tint:#faedf0;--sgc-deep:#703342;--sgc-sidebar:#fff}
:root[data-sgc-theme="ocean"]{--sgc-accent:#356ab2;--sgc-hover:#285693;--sgc-tint:#edf3fc;--sgc-deep:#2b4567;--sgc-canvas:#f3f6fa}
:root[data-sgc-theme="jade"]{--sgc-accent:#237b70;--sgc-hover:#1b665d;--sgc-tint:#eaf6f2;--sgc-deep:#26564f;--sgc-canvas:#f3f7f5}
:root[data-sgc-theme="iris"]{--sgc-accent:#735a9e;--sgc-hover:#604887;--sgc-tint:#f3eef9;--sgc-deep:#4b3d63;--sgc-canvas:#f6f5f9}
:root[data-sgc-theme="slate"]{--sgc-accent:#526477;--sgc-hover:#3e5062;--sgc-tint:#edf1f5;--sgc-deep:#324253;--sgc-canvas:#f4f6f8}
html[data-sgc-theme] body{font-family:var(--sgc-font);color:var(--sgc-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[data-sgc-theme] button,html[data-sgc-theme] input,html[data-sgc-theme] select,html[data-sgc-theme] textarea{font-family:inherit}
html[data-sgc-theme] button:focus-visible,html[data-sgc-theme] a:focus-visible{outline:2px solid var(--sgc-accent);outline-offset:3px}
.sgc-theme-nav-v21{display:block!important;float:left!important}
html[data-sgc-theme] .sgc-theme-trigger-v21{display:flex!important;align-items:center;justify-content:center;gap:6px;min-height:50px;padding:0 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--sgc-deep)!important;font-size:13px!important;line-height:1;cursor:pointer}
html[data-sgc-theme] .sgc-theme-trigger-v21:hover,html[data-sgc-theme] .sgc-theme-trigger-v21[aria-expanded="true"]{background:var(--sgc-tint)!important}
.sgc-theme-menu-v21{position:fixed;z-index:2147482000;padding:10px;border:1px solid var(--sgc-line);border-radius:14px;background:var(--sgc-paper);box-shadow:0 14px 48px #25324424;max-height:calc(100dvh - 24px);overflow:auto;animation:sgc-ui-pop-v21 .16s ease-out}
.sgc-theme-menu-v21[hidden]{display:none!important}
.sgc-theme-caption-v21{font-size:12px;color:var(--sgc-muted);padding:4px 8px 8px;margin:0}
.sgc-theme-menu-v21 button{display:flex;width:100%;gap:10px;align-items:center;min-height:44px;border:1px solid transparent;border-radius:9px;color:var(--sgc-ink);background:transparent;padding:9px;font-size:14px;cursor:pointer;text-align:left}
.sgc-theme-menu-v21 button small{margin-left:auto;font-size:11px;color:var(--sgc-muted)}
.sgc-theme-menu-v21 button:hover,.sgc-theme-menu-v21 button[aria-checked="true"]{background:var(--sgc-tint);border-color:var(--sgc-line)}
.sgc-theme-swatch-v21{width:21px;height:21px;border-radius:50%;box-shadow:inset 0 0 0 1px #0000000f}
/* Administration: existing menus, dialogs and PJAX keep their native behavior. */
html[data-sgc-surface="admin"] body,html[data-sgc-surface="admin"] .content-wrapper,html[data-sgc-surface="admin"] .right-side{background:var(--sgc-canvas)!important}
html[data-sgc-surface="admin"] .main-header .navbar,html[data-sgc-surface="admin"] .main-header .logo{background:var(--sgc-paper)!important;color:var(--sgc-deep)!important;border-bottom:1px solid var(--sgc-line)!important}
html[data-sgc-surface="admin"] .main-header .navbar .nav>li>a,html[data-sgc-surface="admin"] .main-header .sidebar-toggle{color:var(--sgc-deep)!important}
html[data-sgc-surface="admin"] .main-sidebar,html[data-sgc-surface="admin"] .left-side{background:var(--sgc-sidebar)!important;border-right:1px solid var(--sgc-line)}
html[data-sgc-surface="admin"] .sidebar-menu>li>a{color:var(--sgc-ink)!important;margin:3px 9px;border-radius:8px;font-weight:500}
html[data-sgc-surface="admin"] .sidebar-menu>li:hover>a,html[data-sgc-surface="admin"] .sidebar-menu>li.active>a{background:var(--sgc-tint)!important;color:var(--sgc-accent)!important;border-left-color:var(--sgc-accent)!important}
html[data-sgc-surface="admin"] .sidebar-menu .treeview-menu{background:transparent!important;padding:3px 7px 6px 17px}
html[data-sgc-surface="admin"] .treeview-menu>li>a{border-radius:7px;color:var(--sgc-muted)!important;padding:9px 8px!important;line-height:1.45}
html[data-sgc-surface="admin"] .treeview-menu>li.active>a,html[data-sgc-surface="admin"] .treeview-menu>li>a:hover{background:var(--sgc-tint)!important;color:var(--sgc-accent)!important}
html[data-sgc-surface="admin"] .sidebar-menu>li.header{background:transparent!important;color:var(--sgc-muted)!important;font-size:11px;letter-spacing:.08em}
html[data-sgc-surface="admin"] .sidebar-form{border:1px solid var(--sgc-line)!important;border-radius:8px!important;background:var(--sgc-canvas)!important}
html[data-sgc-surface="admin"] .sidebar-form input,html[data-sgc-surface="admin"] .sidebar-form button{background:transparent!important}
html[data-sgc-surface="admin"] .box{border:1px solid var(--sgc-line)!important;border-radius:var(--sgc-radius)!important;box-shadow:var(--sgc-shadow)!important;margin-bottom:20px;overflow:visible}
html[data-sgc-surface="admin"] .box-header{padding:15px 18px!important;border-radius:12px 12px 0 0}
html[data-sgc-surface="admin"] .box-title{font-weight:600;font-size:16px!important}
html[data-sgc-surface="admin"] .box-body{padding:16px 18px!important}
html[data-sgc-surface="admin"] .box-footer{padding:12px 18px;border-color:var(--sgc-line);border-radius:0 0 12px 12px}
html[data-sgc-surface="admin"] .btn{border-radius:var(--sgc-radius-sm)!important;font-weight:500;transition:background-color .16s ease,box-shadow .16s ease;min-height:32px}
html[data-sgc-surface="admin"] .btn-primary,html[data-sgc-surface="admin"] .pagination>.active>a,html[data-sgc-surface="admin"] .pagination>.active>span{background:var(--sgc-accent)!important;border-color:var(--sgc-accent)!important;color:#fff!important}
html[data-sgc-surface="admin"] .btn-primary:hover{background:var(--sgc-hover)!important}
html[data-sgc-surface="admin"] .btn-default{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="admin"] .form-control,html[data-sgc-surface="admin"] .select2-selection{border-color:var(--sgc-line)!important;border-radius:8px!important;box-shadow:none;min-height:36px}
html[data-sgc-surface="admin"] .form-control:focus{border-color:var(--sgc-accent)!important;box-shadow:var(--sgc-focus)!important}
html[data-sgc-surface="admin"] .table>thead>tr>th{background:var(--sgc-canvas)!important;color:var(--sgc-muted);font-size:12px;font-weight:600;border-bottom:1px solid var(--sgc-line)!important;padding:12px 10px!important;white-space:nowrap}
html[data-sgc-surface="admin"] .table>tbody>tr>td{border-color:var(--sgc-line)!important;vertical-align:middle;padding:12px 10px!important;line-height:1.55}
html[data-sgc-surface="admin"] .table-striped>tbody>tr:nth-of-type(odd){background:#fafbfd!important}
html[data-sgc-surface="admin"] .table-hover>tbody>tr:hover{background:var(--sgc-tint)!important}
html[data-sgc-surface="admin"] .modal-content,html[data-sgc-surface="admin"] .swal2-modal,html[data-sgc-surface="admin"] dialog{border:1px solid var(--sgc-line)!important;border-radius:16px!important;box-shadow:0 18px 60px #25324429!important}
html[data-sgc-surface="admin"] .modal-header,html[data-sgc-surface="admin"] .modal-footer{border-color:var(--sgc-line)!important;padding:16px 20px}
html[data-sgc-surface="admin"] .modal-body{padding:20px}
html[data-sgc-surface="admin"] .content-header h1{font-size:22px;font-weight:600;color:var(--sgc-ink)}
html[data-sgc-surface="admin"] .content-header h1 small{font-size:12px;color:var(--sgc-muted)}
html[data-sgc-surface="admin"] .sgc-admin-navigation-shortcuts a{border-color:var(--sgc-line)!important;color:var(--sgc-muted)!important;border-radius:7px!important;background:var(--sgc-paper)!important}
html[data-sgc-surface="admin"] .sgc-admin-navigation-shortcuts a:hover,html[data-sgc-surface="admin"] .sgc-admin-navigation-shortcuts a.is-active{color:var(--sgc-accent)!important;background:var(--sgc-tint)!important}
html[data-sgc-surface="admin"] .main-footer{background:var(--sgc-canvas)!important;color:var(--sgc-muted);border-top:1px solid var(--sgc-line)}
/* Member pages: scope to the established custom layouts, keep badge fonts/animations. */
html[data-sgc-surface="front"] body{background:var(--sgc-canvas)!important}
html[data-sgc-surface="front"] [class^="sgc-"]{--sgc-primary:var(--sgc-accent)}
html[data-sgc-surface="front"] .sgc-my-layout,html[data-sgc-surface="front"] .sgc-recharge-layout,html[data-sgc-surface="front"] .sgc-withdraw-layout{font-family:var(--sgc-font)!important;background:var(--sgc-canvas)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] .sgc-recharge-card,html[data-sgc-surface="front"] .sgc-withdraw-card,html[data-sgc-surface="front"] .sgc-my-card{border:1px solid var(--sgc-line)!important;border-radius:var(--sgc-radius)!important;box-shadow:var(--sgc-shadow)!important;background:var(--sgc-paper)!important}
html[data-sgc-surface="front"] .sgc-recharge-submit,html[data-sgc-surface="front"] .sgc-withdraw-submit{background:var(--sgc-accent)!important;border-radius:10px!important;color:#fff!important;box-shadow:0 4px 12px #25324412!important}
html[data-sgc-surface="front"] .sgc-recharge-record-sheet,html[data-sgc-surface="front"] .sgc-withdraw-record-sheet{border-radius:18px 18px 0 0!important;box-shadow:0 -8px 40px #25324417!important;background:var(--sgc-paper)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] .sgc-recharge-layout input,html[data-sgc-surface="front"] .sgc-withdraw-layout input{border-radius:8px!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="front"] .sgc-recharge-layout input:focus,html[data-sgc-surface="front"] .sgc-withdraw-layout input:focus{border-color:var(--sgc-accent)!important;box-shadow:var(--sgc-focus)!important}
html[data-sgc-surface="front"] .sgc-recharge-record-item,html[data-sgc-surface="front"] .sgc-withdraw-record-item{border-radius:10px!important;border-color:var(--sgc-line)!important}
/* Customer service: keep per-agent message color preference intact. */
html[data-sgc-surface="service"]{--teal:var(--sgc-accent);--ink:var(--sgc-ink);--line:var(--sgc-line);--muted:var(--sgc-muted);--panel:var(--sgc-paper);--surface:var(--sgc-canvas)}
html[data-sgc-surface="service"] body,html[data-sgc-surface="service"] .desk,html[data-sgc-surface="service"] .main,html[data-sgc-surface="service"] .messages{background:var(--sgc-canvas)!important}
html[data-sgc-surface="service"] .login-card,html[data-sgc-surface="service"] .session,html[data-sgc-surface="service"] .quick-menu{border-radius:var(--sgc-radius)!important}
html[data-sgc-surface="service"] .primary{background:var(--sgc-accent)!important;border-radius:9px!important}
html[data-sgc-surface="service"] .primary:hover{background:var(--sgc-hover)!important}
html[data-sgc-surface="service"] .session.active{background:var(--sgc-tint)!important;border-color:var(--sgc-accent)!important}
html[data-sgc-surface="service"] .visitor .bubble{background:var(--sgc-paper)!important;color:var(--sgc-ink)!important;border:1px solid var(--sgc-line)!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="service"] .message-avatar{background:var(--sgc-tint)!important;color:var(--sgc-accent)!important;box-shadow:none!important}
html[data-sgc-surface="service"] .bubble{font-size:14px!important;line-height:1.7!important}
html[data-sgc-surface="service"] input,html[data-sgc-surface="service"] textarea{border-color:var(--sgc-line)!important}
html[data-sgc-surface="service"] input:focus,html[data-sgc-surface="service"] textarea:focus{outline:0;border-color:var(--sgc-accent)!important;box-shadow:var(--sgc-focus)!important}
@keyframes sgc-ui-pop-v21{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){html[data-sgc-surface="admin"] .content{padding:12px!important}html[data-sgc-surface="admin"] .box-body{padding:12px!important;overflow-x:auto}html[data-sgc-surface="admin"] .table{min-width:600px}html[data-sgc-surface="admin"] .box-header{padding:13px!important}html[data-sgc-surface="admin"] .modal-dialog{margin:12px!important;width:auto!important}html[data-sgc-surface="admin"] .modal-body{max-height:70dvh;overflow:auto}html[data-sgc-theme] .sgc-theme-trigger-v21{padding:0 10px!important}html[data-sgc-theme] .sgc-theme-trigger-v21>span:last-child{display:none}html[data-sgc-surface="service"] .bubble-row{max-width:96%!important}html[data-sgc-surface="service"] .messages{padding:16px 12px!important}html[data-sgc-surface="service"] .chat-head{gap:8px!important}html[data-sgc-surface="service"] .chat-head-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.sgc-theme-menu-v21{animation:none}html[data-sgc-surface="admin"] .btn{transition:none}}
/* SGC_FRONT_TOKEN_MAP_V21: selectors verified against the current public assets.
   Color and surface overrides only; HOT typography/motion, rainbow borders,
   native password slots, modal geometry and semantic status colors stay owned
   by their existing styles. */
html[data-sgc-surface="front"][data-sgc-theme]{--feature-primary:var(--sgc-accent);--feature-bg:var(--sgc-canvas);--feature-ink:var(--sgc-ink);--feature-muted:var(--sgc-muted);--feature-border:var(--sgc-line);--feature-surface:var(--sgc-paper)}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-shell,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-shell,
html[data-sgc-surface="front"] .sgc-recharge-shell,
html[data-sgc-surface="front"] .sgc-withdraw-shell{background:var(--sgc-canvas)!important;color:var(--sgc-ink)!important;font-family:var(--sgc-font)!important}

/* Home account, membership and navigation entries. */
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-card,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-level.sgc-home-level-v9,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-stats-v9>div{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;border-radius:var(--sgc-radius)!important;color:var(--sgc-ink)!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-account-grid>div,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-link-tile{background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-account-grid>div.is-money,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-announcement,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-badge-v9,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-levels-v9>span.is-current{background:var(--sgc-tint)!important;border-color:var(--sgc-line)!important;color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-account .is-money strong,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-notice-icon{color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-notice-icon{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-identity-v9 small,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-stats-v9 small,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-note-v9,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-account small{color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-levels-v9>span:not(.is-current){background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-member-home-upgrade-v9,
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-shell[data-home-module="homepage"]>.sgc-home-links[data-home-module="partners"] button.sgc-home-mall-entry{background:linear-gradient(120deg,var(--sgc-accent),var(--sgc-hover))!important;color:#fff!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-carousel-dots i.is-active{background:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.sgc-home-active .sgc-home-shell[data-home-module="homepage"]>.sgc-home-links[data-home-module="partners"]>.sgc-home-links-head>h2::after{color:var(--sgc-ink)!important}

/* My card and financial forms: preserve success/error status variants. */
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-shell .sgc-my-hero{background:linear-gradient(120deg,var(--sgc-accent),var(--sgc-hover))!important;border-color:transparent!important;color:#fff!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-orb-large{background:#ffffff24!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-orb-small{border-color:#ffffff18!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-pills span{background:#00000026!important;color:#fff!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-pills span+span{background:#ffffff26!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-balance,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-ledger-balance{background:var(--sgc-tint)!important;color:var(--sgc-deep)!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-balance strong,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-account h2 span,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-menu-icon{color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-actions button:first-child{background:var(--sgc-tint)!important;color:var(--sgc-deep)!important;border:1px solid var(--sgc-line)!important;border-radius:var(--sgc-radius-sm)!important;box-shadow:none!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-actions button:last-child,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-save,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-logout[data-authenticated="false"]{background:var(--sgc-accent)!important;color:#fff!important;border-radius:var(--sgc-radius-sm)!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-menu-item,
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-security-item{border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.sgc-my-active .sgc-my-input,
html[data-sgc-surface="front"] .sgc-recharge-amount-wrap,
html[data-sgc-surface="front"] .sgc-withdraw-amount-wrap,
html[data-sgc-surface="front"] .sgc-withdraw-password{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-shell,.sgc-withdraw-shell) :is(input:focus,.sgc-recharge-channel:focus-visible,.sgc-withdraw-channel:focus-visible){outline-color:var(--sgc-accent)!important;border-color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-header,.sgc-withdraw-header,.sgc-recharge-record-row,.sgc-withdraw-record-row){background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-intro,.sgc-withdraw-intro,.sgc-recharge-card-title,.sgc-withdraw-card-title,.sgc-recharge-sheet-header,.sgc-withdraw-sheet-header) h2,
html[data-sgc-surface="front"] :is(.sgc-recharge-card-title,.sgc-withdraw-card-title,.sgc-recharge-record-amount,.sgc-withdraw-record-amount){color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-channel,.sgc-withdraw-channel){background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-channel,.sgc-withdraw-channel).is-selected,
html[data-sgc-surface="front"] .sgc-recharge-quick button.is-active{background:var(--sgc-tint)!important;border-color:var(--sgc-accent)!important;color:var(--sgc-accent)!important;box-shadow:none!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-note,.sgc-withdraw-account-summary){background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-icon-button,.sgc-withdraw-icon-button,.sgc-withdraw-all,.sgc-withdraw-manage){color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] :is(.sgc-recharge-alert,.sgc-withdraw-alert).is-info{background:var(--sgc-tint)!important;color:var(--sgc-deep)!important;border:1px solid var(--sgc-line)!important}

/* Claim page; the v17 rainbow pseudo-elements and carousel border are excluded. */
html[data-sgc-surface="front"] body.receive-page-route-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15{background:var(--sgc-canvas)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15>.choujiang-box,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15>.box2,
html[data-sgc-surface="front"] body.receive-page-route-v15 .receive-tips-v15{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;border-radius:var(--sgc-radius)!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .choujiang-box .choujiang{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .choujiang-box .choujiang .phoneImg .phoneImg_item{border-color:var(--sgc-line)!important;background:var(--sgc-paper)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-heading-v15.sgc-matching-heading-v1,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-level-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .receive-ticker-v15{background:var(--sgc-tint)!important;color:var(--sgc-deep)!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-title-v1,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-level-name-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-stat-value-v15{color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-description-v1,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-notice-v1,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-stat-label-v15{color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-notice-v1{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-status-v1{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-heading-v1[data-sgc-matching-state-v1="unavailable"] .sgc-matching-status-v1{color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .choujiang-box .choujiang .choujiang-btn,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-level-upgrade-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-level-badge-v15{background:var(--sgc-accent)!important;color:#fff!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-stat-item-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .receive-tips-v15 .receive-tip-row-v15{background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .receive-stat-icon-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .order_container.receive-page-sync-v15 .sgc-matching-notice-label-v1,
html[data-sgc-surface="front"] body.receive-page-route-v15 .receive-ticker-v15 .receive-ticker-icon-v15,
html[data-sgc-surface="front"] body.receive-page-route-v15 .receive-tips-v15 h3 span{color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.receive-page-route-v15 .receive-ticker-track-v15{justify-content:center!important;line-height:1.4!important}

/* Records and their active tabs. Order status pills retain their own colors. */
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active,
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .detail,
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .detail .container,
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .detail .container .xiangqing{background:var(--sgc-canvas)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .topBox,
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .tabBox :is(.tabs,.u-tabs,.u-tabs-scorll-flex),
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .bottomBox_item_list .bottomBox_item .imgBg,
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main :is(.total,.pagination,.noRecord){background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .bottomBox_item_list .bottomBox_item .bodyItem{background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .tabBox .u-tab-item{color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .tabBox .u-tab-item:is(.u-tab-item-active,[aria-selected="true"],[data-record-active="true"],[style*="linear-gradient"]),
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .pagination>.item.active{background:var(--sgc-accent)!important;border-color:var(--sgc-accent)!important;color:#fff!important;box-shadow:none!important}
html[data-sgc-surface="front"] body.pages-detail-detail.sgc-detail-active .xiangqing .main .pagination>.item:not(.active){background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}

/* Native order detail, password and close confirmation: no geometry overrides. */
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal1{background:linear-gradient(180deg,var(--sgc-tint),var(--sgc-paper))!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal1>.imgBg>.titleItem{color:var(--sgc-deep)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal1>.imgBg>.bodyItem{background:var(--sgc-paper)!important;color:var(--sgc-ink)!important;box-shadow:inset 0 0 0 1px var(--sgc-line)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3{box-shadow:0 16px 44px #25324424!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .u-model__title,
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .u-model__footer__button:last-child{background:var(--sgc-accent)!important;color:#fff!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .jp-coded .pay-pwd-grid>uni-view{background-color:var(--sgc-paper)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-keypad-v3,
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .u-model__footer,
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .u-model__footer__button:first-child:not(:last-child){background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-key-v3{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important;box-shadow:var(--sgc-shadow)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-key-v3.is-action,
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-key-v3:not(:disabled):hover,
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-key-v3:not(:disabled):active{background:var(--sgc-tint)!important;border-color:var(--sgc-line)!important;color:var(--sgc-deep)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-key-v3:focus-visible{outline-color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal2{background:var(--sgc-paper)!important;box-shadow:0 16px 48px #25324424!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal2>.content{color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal2>.btns>uni-button.back{background:var(--sgc-canvas)!important;border-color:var(--sgc-line)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container>.u-mask>.modal2>.btns>uni-button.confirm{background:var(--sgc-accent)!important;color:#fff!important;box-shadow:var(--sgc-shadow)!important}

/* Public support chat follows the same tokens; staff-specific message settings remain separate. */
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"]{--service-chat-accent:var(--sgc-accent);--service-chat-accent-dark:var(--sgc-hover);--service-chat-text:var(--sgc-ink);--service-chat-muted:var(--sgc-muted);--service-chat-border:var(--sgc-line);background:var(--sgc-canvas)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] :is(.feature-page-header,.feature-service-banner,.feature-message-bubble,.feature-composer){background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .feature-message-list{background:var(--sgc-canvas)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] :is(.feature-service-avatar,.service-chat-message-avatar,.service-chat-reply:hover,.feature-attach){background:var(--sgc-tint)!important;border-color:var(--sgc-line)!important;color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .is-user:not(.is-deleted) .feature-message-bubble,
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .feature-send{background:var(--sgc-accent)!important;color:#fff!important;border-color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .feature-message-row.is-deleted .feature-message-bubble{background:var(--sgc-canvas)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .feature-message-input{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .feature-message-input:focus{border-color:var(--sgc-accent)!important;box-shadow:var(--sgc-focus)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .service-chat-message-quote{border-left-color:var(--sgc-accent)!important;background:var(--sgc-tint)!important;color:var(--sgc-ink)!important}
html[data-sgc-surface="front"] .feature-page.feature-service-page[data-sgc-service-module-v1="true"] .service-chat-reply-cancel{color:var(--sgc-accent)!important}

/* Fixed menu colors only: keep the established mobile positioning and active icon shape. */
html[data-sgc-surface="front"] body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-v1{background:var(--sgc-paper)!important;border-color:var(--sgc-line)!important;box-shadow:0 -5px 20px #2532440d!important}
html[data-sgc-surface="front"] body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1{color:var(--sgc-muted)!important}
html[data-sgc-surface="front"] body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1.is-active{color:var(--sgc-accent)!important}
html[data-sgc-surface="front"] body.sgc-fixed-menu-route-v1 .sgc-fixed-menu-item-v1.is-active .sgc-fixed-menu-icon-v1{background:var(--sgc-accent)!important;color:#fff!important;box-shadow:var(--sgc-shadow)!important}
/* END_SGC_FRONT_TOKEN_MAP_V21 */

/* Verified live refinements: finance tools and the dedicated payment error slot. */
html[data-sgc-surface="admin"] .box-header .btn-dropbox,
html[data-sgc-surface="admin"] .box-header .btn-instagram,
html[data-sgc-surface="admin"] .box-header .btn-info,
html[data-sgc-surface="admin"] .finance-tab.is-active{background:var(--sgc-accent)!important;border-color:var(--sgc-accent)!important;color:#fff!important}
html[data-sgc-surface="admin"] .finance-tab{border-radius:8px!important;border-color:var(--sgc-line)!important}
html[data-sgc-surface="admin"] .finance-tab:not(.is-active){background:var(--sgc-canvas)!important;color:var(--sgc-muted)!important}
html[data-sgc-surface="admin"] .finance-notice{background:var(--sgc-tint)!important;border-left-color:var(--sgc-accent)!important;color:var(--sgc-deep)!important;border-radius:8px!important}
html[data-sgc-surface="admin"] .finance-stat{border-radius:8px!important;border-color:var(--sgc-line)!important;background:var(--sgc-canvas)!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .slot-content{flex-direction:column!important;align-items:stretch!important}
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .sgc-payment-error-v21{width:100%!important;max-width:none!important;flex:0 0 auto!important;box-sizing:border-box!important;margin:0 0 12px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;text-align:left!important;line-height:1.55!important}

/* Include password-cell borders within the existing native fixed height. */
html[data-sgc-surface="front"] body.pages-order-order .order_container .modal1 .sgc-payment-model-v3 .jp-coded .pay-pwd-grid>uni-view{box-sizing:border-box!important}

