/* KX unslop layer (player). Loaded last. Direction: ink-blue night table, cinnabar only for the primary action,
   every RM amount in one gold stamped figure. Moments: the red packets in the room and the two room entries on home.
   Structure of selectors: the :not(#u…) chain only raises specificity above the older theme layers. */
html[data-appearance=dark]{background:#0b0f1a}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4){
 --u-deep:#080b14;--u-bg:#0b0f1a;--u-card:#121826;--u-raised:#1a2131;--u-line:rgba(238,240,245,.08);--u-line2:rgba(238,240,245,.14);
 --u-text:#eef0f5;--u-text2:#a3a9b8;--u-muted:#80889b;--u-accent:#c93a22;--u-accent-hover:#b5331d;--u-gold:#e7c06a;
 --u-pos:#4cc38a;--u-neg:#e5484d;--u-ease:cubic-bezier(.22,1,.36,1);
 --ink0:var(--u-bg);--ink1:var(--u-card);--ink2:var(--u-raised);--ink3:#222a3c;--bg:var(--u-bg);--panel:var(--u-card);--panel2:var(--u-raised);
 --line:var(--u-line);--goldline:var(--u-line);--goldline2:var(--u-line2);--text:var(--u-text);--muted:var(--u-text2);--muted2:var(--u-muted);
 --cinnabar:var(--u-accent);--cinnabar2:var(--u-accent-hover);--gold2:#b8924a;--kx-focus:#eef0f5;
 background:var(--u-bg)!important;color:var(--u-text)}

/* ---------- 2. Color: strip glows, washes, tracked labels and ornaments everywhere except the moments ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble)):not(.kx-envelope-panel *):not(.kx-envelope-panel):not(.kx-default-banner-copy),
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble)):not(.kx-envelope-panel *):not(.kx-envelope-panel):not(.kx-default-banner-copy)::before,
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble)):not(.kx-envelope-panel *):not(.kx-envelope-panel):not(.kx-default-banner-copy)::after{text-shadow:none!important;letter-spacing:0!important;box-shadow:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.avatarUser):not(.avatarUser *):not(.kx-stop-bet-banner):not(.kx-carousel-wrap):not(.kx-carousel-wrap *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble)):not(.kx-envelope-panel *):not(.kx-envelope-panel):not(.kx-room-entry):not(.msgAvatar *):not(.kx-countdown):not(.kx-ranking-scenic),
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.avatarUser):not(.avatarUser *):not(.kx-stop-bet-banner):not(.kx-carousel-wrap):not(.kx-carousel-wrap *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble)):not(.kx-envelope-panel *):not(.kx-envelope-panel):not(.kx-room-entry):not(.msgAvatar *):not(.kx-countdown):not(.kx-ranking-scenic)::before,
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.avatarUser):not(.avatarUser *):not(.kx-stop-bet-banner):not(.kx-carousel-wrap):not(.kx-carousel-wrap *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble)):not(.kx-envelope-panel *):not(.kx-envelope-panel):not(.kx-room-entry):not(.msgAvatar *):not(.kx-countdown):not(.kx-ranking-scenic)::after{background-image:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.kx-sr-only):not(.kx-referral-header),
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.kx-sr-only):not(.kx-referral-header)::before,
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *:not(.kx-sr-only):not(.kx-referral-header)::after{clip-path:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) *{animation-iteration-count:1!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-balance-summary,.kx-wallet-summary,.kx-profile-summary,.kx-referral-link,.kx-content-hero,.kx-carousel-wrap)::after{content:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-button,.btn:not(.packetBubble *):not(.gamePacketCard *),.kx-room-intro,.kx-room-enter)::before{content:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .app{box-shadow:none!important;background:var(--u-bg)!important}

/* ---------- 5. Type: weights 400/500/600, hierarchy from size and colour ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(*):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-envelope-panel *):not(.packetScoreAmt):not(.packetScoreAvatar){font-weight:400!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(b,strong,th,summary,button:not(.packetBubble *),label,.kx-button,.btn,.kx-link,small.kx-news-label,.kx-funds-tab,.kx-room-status,.kx-invite-name,.msgName,.kx-stage-title,.kx-guide-eyebrow){font-weight:500!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(h1,h2,h3,h4,#kxPageTitle,#kxSheetTitle,.kx-section-heading,.kx-profile-name,.kx-default-banner-copy){font-weight:600!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #kxPageTitle{font-size:17px!important;color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #kxPageHeader{background:var(--u-bg)!important;border-bottom:1px solid var(--u-line)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-section-heading,.kx-content-page h2,.legalSection h2,.legalSection h3,.kx-guide-heading){font-size:15px!important;color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-page-caption,.subtle,small,.kx-room-entry p,.kx-list-row small){color:var(--u-text2)!important}

/* Signature: every RM amount is one gold, stamped, tabular figure */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-amount,.kx-wallet-summary b,.kx-balance-split b,.kx-commission-amount strong,.kx-envelope-value,.packetScoreAmt){
 color:var(--u-gold)!important;font-family:var(--f-num)!important;font-weight:500!important;font-variant-numeric:tabular-nums;letter-spacing:0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-rate-strip .kx-rate-row b,.kx-promo-metrics strong,.kx-personal-stats b,.kx-activity-card>b,.kx-commission-card .kx-flow-list>div b,.kx-countdown){
 color:var(--u-text)!important;font-variant-numeric:tabular-nums}

/* ---------- 1. Spacing + surfaces ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-page-body{padding-left:16px!important;padding-right:16px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-panel,.kx-list-group,.kx-conversation-card,.kx-personal-stats.reference,.kx-ranking-item,.kx-ranking-empty,.kx-verification-reminder,.kx-home-news,.kx-device-record,.card,.listCard,.pinnedItem,.aboutTile,.legalSection,.kx-room-balance,.kx-kyc-guide,.kx-detail-table,.kx-guide-intro,.kx-content-hero,.kx-room-choice,.kx-activity-card,.kx-invite-note,.kx-profile-summary,.kx-ranking-explanation){
 background:var(--u-card)!important;border:1px solid var(--u-line)!important;border-radius:16px!important;box-shadow:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-list-row,.kx-rate-row,.listItem,.kx-flow-list>div){border-color:var(--u-line)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-list-group .kx-list-row{min-height:52px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-balance-split>div,.kx-balance-split>button,.kx-date-row label,.kx-home-news .kx-news-label,.kx-home-news .kxTickerToggle,.kx-notification-state,.legalCallout,.chip,.kx-task-mark,.kx-invite-linkbox,.kx-date-nav input,.kx-date-nav button,.segment,.kx-funds-tabs){
 background:var(--u-raised)!important;border:1px solid var(--u-line)!important;border-radius:10px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.segment button.on,.kx-funds-tab.on,button.on:not(#nav *),.kx-sort-tabs .on){background:var(--u-text)!important;color:var(--u-bg)!important;border-color:transparent!important}

/* ---------- 7. Buttons: one radius, one primary, one secondary ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-button,.btnGold,.btnRed,.kx-confirm-primary,.sheet .btnGold,.sheet .btnRed):not(.packetBubble *):not(.gamePacketCard *){
 background:var(--u-accent)!important;color:#fff!important;border:0!important;border-radius:12px!important;min-height:48px;font-size:16px!important;
 transition:background-color .15s var(--u-ease),transform .15s var(--u-ease)}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-button,.btnGold,.btnRed,.kx-confirm-primary):not(.packetBubble *):active{transform:scale(.98)}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-button.secondary,.sheet .btn:not(.btnGold):not(.btnRed),.sheet .btnDark,.btn.btnDark:not(.packetBubble *),.kx-room-intro){
 background:var(--u-raised)!important;color:var(--u-text)!important;border:1px solid var(--u-line2)!important;border-radius:12px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-button,.btn:not(.packetBubble *)):disabled{background:var(--u-raised)!important;color:var(--u-muted)!important;border:1px solid var(--u-line)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-link,.kx-reference-page .kx-link,.kx-legal-agree button,.stickerUpload){color:var(--u-text2)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-invite-cta{color:#fff!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-invite-dock{background:var(--u-bg)!important;border-top:1px solid var(--u-line)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :focus-visible{outline:2px solid var(--u-text)!important;outline-offset:2px}

/* ---------- 3. Icons: one size, text-role colour, no tiles ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-icon-tile,html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-icon-tile:is(.red,.blue,.amber,.orange,.teal,.gray){
 background:transparent!important;border:0!important;color:var(--u-text2)!important;width:24px!important;height:24px!important;min-width:24px!important;border-radius:0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-icon-tile .uiIcon{width:20px!important;height:20px!important;margin:0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-shortcuts .kx-icon-tile{width:28px!important;height:28px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-shortcuts .kx-icon-tile .uiIcon{width:24px!important;height:24px!important}

/* ---------- Home ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-balance-summary{padding:20px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-balance-summary .kx-button:not(.packetBubble *):not(.gamePacketCard *){min-height:40px!important;font-size:15px!important;background:var(--u-raised)!important;border:1px solid var(--u-line2)!important;color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-list::before{justify-content:flex-start!important;margin:20px 0 4px!important;font:600 15px var(--f-head)!important;color:var(--u-text)!important;gap:0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-default-banner-copy{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.45)!important}
/* Moment: both room entries are red packets — one paper, a fold line, the mascot art kept */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry,html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry:is(.tng,.internal){
 background:linear-gradient(180deg,#bf3a24 0,#a52f1c 58%,#8f2818 58.2%,#8f2818 100%)!important;border:1px solid rgba(255,214,170,.18)!important;border-radius:16px!important;
 box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 10px 24px -12px rgba(0,0,0,.6)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry :is(h3,b){color:#fff6e6!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry :is(p,small){color:rgba(255,240,225,.82)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry .kx-room-intro{background:rgba(0,0,0,.18)!important;border:1px solid rgba(255,240,225,.28)!important;color:#fff6e6!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry .kx-room-enter{background:#fff6e6!important;color:#8f2818!important;border:0!important;border-radius:12px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry .kx-room-status{background:rgba(0,0,0,.28)!important;color:#fff6e6!important;border:0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-room-entry small:first-child{color:#fff6e6!important}

/* ---------- Bottom nav ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #nav{background:var(--u-deep)!important;border-top:1px solid var(--u-line)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #nav button{color:var(--u-muted)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #nav button:is(.on,[aria-current=page]){color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #nav button[data-page=promo]{color:var(--u-text2)!important;font-family:inherit!important;font-size:12px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #nav button[data-page=promo]>:first-child{background:var(--u-accent)!important;border:3px solid var(--u-deep)!important;color:#fff!important}

/* ---------- 8. Visuals: the mascot stays on home, the room entries and empty states only ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(#chat .kx-service-scene,.kx-content-hero img,.kx-guide-intro img,.kx-scene-heading img){display:none!important}

/* ---------- Room ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room{background:var(--u-bg)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room :is(.kx-room-header,.kx-room-fixed){background:var(--u-bg)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-room-stage{background:var(--u-card)!important;border:1px solid var(--u-line)!important;border-radius:14px!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-room-chat .bubble:not(.gamePacketCard):not(.packetBubble):not(.stickerBubble):not(.imageBubble){background:var(--u-card)!important;border:1px solid var(--u-line)!important;color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-room-chat .msg.mine .bubble:not(.gamePacketCard):not(.packetBubble):not(.stickerBubble):not(.imageBubble){background:#22304d!important;border-color:transparent!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .msg:has(.botName) .msgName.botName:after{background:var(--u-raised)!important;color:var(--u-text2)!important;font:500 10px var(--f-num)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room :is(.kx-role-badge,.kx-banker-chip i){background:var(--u-gold)!important;color:#2a1c05!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-room-chat .msgAvatar{box-shadow:none!important;border:1px solid var(--u-line2)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-room-chat .bubble:is(.gamePacketCard,.packetBubble){box-shadow:0 6px 16px -8px rgba(0,0,0,.6)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room :is(.kx-stage-steps li.now,.kx-stage-steps li.done)::before{background:var(--u-accent)!important;border-color:var(--u-accent)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room :is(.kx-stage-steps li.now,.kx-stage-steps li.done)::after{background:var(--u-accent)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-quick-item span{background:var(--u-raised)!important;color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room :is(.kx-quick-panel,.kx-quick-tab){background:var(--u-card)!important;border-color:var(--u-line2)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-room-composer::before,html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #support .supportComposer::before{background:var(--u-bg)!important;border-top:1px solid var(--u-line)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(#room .kx-room-composer #roomInput,#support #supportInput){background:var(--u-raised)!important;border:1px solid var(--u-line2)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(#room .kx-room-composer .circleTool,#support .kx-support-add){background:var(--u-raised)!important;border:1px solid var(--u-line2)!important;color:var(--u-text)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(#room .kx-room-composer #roomLeftToolBtn,#support .supportComposer .kx-support-smile){color:var(--u-text2)!important;background:transparent!important;border:0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(#room .kx-room-composer .sendBtn,#supportSendBtn){background:var(--u-accent)!important;color:#fff!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(#room .kx-room-composer .sendBtn,#supportSendBtn):disabled{background:var(--u-raised)!important;color:var(--u-muted)!important}

/* ---------- Sheets and toast ---------- */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .sheet:not(:has(.kx-envelope-panel)){background:var(--u-card)!important;border:1px solid var(--u-line)!important;border-bottom:0!important;border-radius:20px 20px 0 0!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .toast{background:var(--u-raised)!important;border:1px solid var(--u-line2)!important;color:var(--u-text)!important}

/* ---------- 9. Motion ---------- */
@media (prefers-reduced-motion:reduce){html[data-appearance=dark] .kx-theme *{transition:none!important;animation:none!important}}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #room .kx-countdown{box-shadow:none!important}
/* icon strokes */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .uiIcon{stroke-width:1.75!important;fill:none!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .uiIcon *{fill:none!important;stroke:currentColor!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) #nav button:is(.on,[aria-current=page]) .uiIcon{stroke-width:2!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-activity-card :is(small,i){background:transparent!important;border:0!important;color:var(--u-text2)!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-activity-card :is(.kx-activity-sub,em,a){color:var(--u-text2)!important}

/* ---------- Type pass: one CJK UI stack, one figure face, one size ladder (12 13 14 15 16 17 20 24 28 40) ---------- */
@font-face{font-family:"KX Figure";src:url("fonts/kx-figure-500.woff2") format("woff2");font-weight:400 500;font-display:swap;unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2022,U+2026,U+2212}
@font-face{font-family:"KX Figure";src:url("fonts/kx-figure-600.woff2") format("woff2");font-weight:600 700;font-display:swap;unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2022,U+2026,U+2212}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4){
 --f-ui:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","MiSans","Noto Sans CJK SC","Noto Sans SC","Source Han Sans SC","Microsoft YaHei",sans-serif;
 --f-head:var(--f-ui);--f-num:"KX Figure","DIN Alternate","Roboto",var(--f-ui);font-family:var(--f-ui)!important;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(button,input,select,textarea,h1,h2,h3,h4,b,strong,small,span,p,label,em,div):not(.kx-room-chat .bubble:is(.gamePacketCard,.packetBubble) *):not(.kx-envelope-panel *):not(.kx-default-banner-copy){font-family:inherit}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(p,.kx-page-caption,.legalSection li,.legalSection p,.kx-guide p){line-height:1.6!important}
/* figures */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-amount,.kx-wallet-summary b,.kx-balance-split b,.kx-commission-amount strong,.kx-rate-strip .kx-rate-row b,.kx-promo-metrics strong,.kx-personal-stats b,.kx-activity-card>b,.kx-countdown,.kx-commission-card .kx-flow-list>div b,.bubbleTime,.kx-date-nav input,.kx-withdraw-amount-input input,.kx-uid,.kx-invite-uid){font-family:var(--f-num)!important;font-variant-numeric:tabular-nums lining-nums}
/* 12: meta, never smaller */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(small,.msgName,.kx-stage-hint,.kx-activity-sub,.avatarHint,.kx-guide-note,.kx-news-label,.kxPointsRow span,.kx-room-entry p,.kx-room-status,#nav button,.kx-guide-point p,.kx-guide-hand p,.kx-room-header small){font-size:12px!important;line-height:1.4!important}
/* 16: buttons; 17: titles and emphasised values */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-flow-list>div>b,.supportEmpty b,.kx-ranking-empty b,.kx-guide-heading h2,#room .kx-room-header b,.sheet .kx-room-header b){font-size:17px!important;line-height:1.35!important}
/* 20: names and secondary figures */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-profile-name,.kx-balance-split b,.kx-room-choice b,.kx-room-entry h3){font-size:20px!important;line-height:1.3!important}
/* 24: card figures */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-promo-metrics strong,.kx-guide-formula b,.kx-guide-formula span,.kx-rate-strip .kx-rate-row b,.legalHero h2){font-size:24px!important;line-height:1.2!important}
/* 28: page hero; 40: the one big figure */
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-content-hero h1{font-size:28px!important;line-height:1.2!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-commission-amount strong{font-size:40px!important;line-height:1.1!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) :is(.kx-balance-summary .kx-amount,.kx-wallet-summary>b,.kx-wallet-summary .kx-amount){font-size:32px!important;line-height:1.1!important}
html[data-appearance=dark] .kx-theme:not(#u1):not(#u2):not(#u3):not(#u4) .kx-unavailable{font:400 13px/1.4 var(--f-ui)!important;color:var(--u-muted)!important}
