/* A-only visual finish: darker glass, selective champagne edges, static glints. */
html:root[data-ui-template="glass-gold"] body{background:linear-gradient(#010609c9,#010609df),url('../ui/templates/glass-atmosphere.svg') center/cover fixed!important}
html:root[data-ui-template="glass-gold"] .app{background:linear-gradient(145deg,#071217f5,#02090df7)!important;border-color:#d9e5dfb3;box-shadow:inset 1px 0 0 #fff2,inset 0 1px 0 #fff9,0 0 0 1px #02080c,0 20px 60px #000c}
html:root[data-ui-template="glass-gold"] :is(.finance-shell,.profile-detail-card,.member-profile-form,.member-accounts-content,.gh-section,.gh-announcement,.profile-menu-row,.a-exchange-flow){background:linear-gradient(155deg,#ffffff19 0%,#ffffff04 18%,transparent 36%),linear-gradient(120deg,#233c42e8,#091820f5 65%,#12272bf2)!important;border-color:#c7d2bca3!important;box-shadow:inset 0 1px 0 #fff5,inset 1px 0 0 #f8e6b926,inset 0 -1px 0 #000a,0 0 0 1px #030b0f,0 10px 24px #0009}
html:root[data-ui-template="glass-gold"] :is(.gh-balance,#exchangePage .finance-shell){position:relative;background:linear-gradient(155deg,#fff4cc2b 0%,#fff4cc06 21%,transparent 38%),radial-gradient(ellipse at 95% 0%,#d7b45b35,transparent 56%),linear-gradient(125deg,#254248f2,#07131bf5 72%)!important;border-color:#f7dfa5db!important;box-shadow:inset 0 1px 0 #fff5d5b3,inset 1px 0 0 #fff5d540,inset 0 -1px 0 #000b,0 0 0 1px #010609,0 0 15px #dbb56316,0 12px 30px #000a}
html:root[data-ui-template="glass-gold"] :is(.gh-balance,#exchangePage .finance-shell)::after{content:'';position:absolute;top:9px;right:22px;width:17px;height:17px;pointer-events:none;background:radial-gradient(circle,#fff9df 0 6%,#f5db9a88 12%,transparent 46%),linear-gradient(90deg,transparent 45%,#ffe9af 50%,transparent 55%),linear-gradient(transparent 45%,#ffe9af 50%,transparent 55%);filter:drop-shadow(0 0 4px #eac47888);opacity:.75;transform:rotate(12deg)}
html:root[data-ui-template="glass-gold"] :is(.gh-rate,.atx-row,.amh-row){background:linear-gradient(130deg,#2c403840,#091822ab)!important;border-color:#bca57559!important}
html:root[data-ui-template="glass-gold"] :is(.gh-section-heading h3,.am-profile-heading h3,.amh-heading h3,.gh-actions .gh-icon,.am-menu-label svg,.a-exchange-intro strong span){color:#f1d293!important}
html:root[data-ui-template="glass-gold"] #glassHomeBalance>strong{color:#ffe9b7;text-shadow:0 1px 14px #dfb96224}
html:root[data-ui-template="glass-gold"] .gh-exchange-action{border-color:#f4d28db3!important;background:linear-gradient(135deg,#bea15b3b,#142526c9)!important;color:#ffe4a6!important;box-shadow:inset 0 1px 0 #ffe6a947,0 0 14px #d8ac4d12}
html:root[data-ui-template="glass-gold"] :is(.btn.gold,.gold-btn,.finance-submit,.exchange-submit){background:linear-gradient(115deg,#ffe9b7,#d7ae64)!important;border-color:#ffe9ba!important;box-shadow:inset 0 1px 0 #fff9,0 3px 15px #d7ae642b}
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-method:has(input:checked){border-color:#f6d592!important;background:linear-gradient(135deg,#ae8e4038,#10242bd9)!important;box-shadow:inset 0 1px 0 #ffe9ad50,0 0 11px #dfb85c21}
html:root[data-ui-template="glass-gold"] :is(input,select,textarea){background:#07141edb!important;border-color:#a9b8ae69!important}
html:root[data-ui-template="glass-gold"] .navbar{background:linear-gradient(165deg,#ffffff20,transparent 32%),linear-gradient(125deg,#20373bf2,#061118fa)!important;border-color:#e7d8b2b8!important;box-shadow:inset 0 1px 0 #fff5c778,0 -8px 25px #0009}
html:root[data-ui-template="glass-gold"] .navbar .nav.on{color:#ffe2a0!important;filter:drop-shadow(0 0 5px #dfb75a33)}
/* Reflections stay near edges, leaving the reading area clear. */
html:root[data-ui-template="glass-gold"] :is(.gh-actions button,.yh-payment-method){border-color:#bbc9be99!important;box-shadow:inset 0 1px 0 #ffffff38,inset 0 -1px 0 #0009,0 4px 12px #0006}


/* Wealth gold: a shared dark material, champagne reflections, restrained accents. */
html:root[data-ui-template="glass-gold"] #home :is(.gh-balance,.gh-section){background:linear-gradient(166deg,transparent 0 3%,#fff0c47a 3.25%,transparent 3.8% 100%),linear-gradient(125deg,#51401c 0%,#252419 27%,#060e13 70%)!important;border-color:#f5e3b8cc!important;box-shadow:inset 0 1px 0 #fff6d8cc,inset 1px 0 0 #fff0c757,inset 0 -1px 0 #000c,0 0 0 1px #010609,0 9px 22px #000a;backdrop-filter:none;-webkit-backdrop-filter:none}
html:root[data-ui-template="glass-gold"] #home .gh-balance{background:linear-gradient(166deg,transparent 0 3%,#fff0c799 3.25%,transparent 3.8% 100%),linear-gradient(125deg,#775719 0%,#3d3219 25%,#071015 70%)!important;border-color:#fff0c7!important}
html:root[data-ui-template="glass-gold"] #home .gh-rate{background:linear-gradient(135deg,#3c321b 0%,#091015 70%)!important;border-color:#e7d6aaad!important;box-shadow:inset 0 1px 0 #e8d4a640,0 3px 9px #0005}
html:root[data-ui-template="glass-gold"] #home .gh-actions button{background:linear-gradient(155deg,#ffe9b447 0%,transparent 9%),linear-gradient(130deg,#49391c,#091317 75%)!important;border-color:#f0dfb4c4!important}
html:root[data-ui-template="glass-gold"] #home .gh-actions .gh-exchange-action{background:linear-gradient(155deg,#fff2cd40 0%,transparent 12%),linear-gradient(130deg,#725623,#221d13)!important;border-color:#f5d691!important}

/* Share the approved wealth-gold material across the member service pages. */
html:root[data-ui-template="glass-gold"]{
 --wealth-surface:linear-gradient(166deg,transparent 0 3%,#fff0c47a 3.25%,transparent 3.8% 100%),linear-gradient(125deg,#51401c 0%,#252419 27%,#060e13 70%);
 --wealth-inset:linear-gradient(135deg,#3c321b 0%,#091015 70%);
 --wealth-shadow:inset 0 1px 0 #fff6d8cc,inset 1px 0 0 #fff0c757,inset 0 -1px 0 #000c,0 0 0 1px #010609,0 9px 22px #000a;
}
html:root[data-ui-template="glass-gold"] :is(#exchangePage,#depositPage,#withdrawPage,#profile,#memberProfileEdit,#receivingAccounts,#records) :is(.finance-shell,.profile-detail-card,.profile-menu,.member-profile-form,.member-accounts-content,.a-exchange-flow,.atx-row,.am-history-row){background:var(--wealth-surface)!important;border-color:#f5e3b8cc!important;box-shadow:var(--wealth-shadow)!important;backdrop-filter:none;-webkit-backdrop-filter:none}
html:root[data-ui-template="glass-gold"] #exchangePage .finance-shell{background:linear-gradient(166deg,transparent 0 3%,#fff0c799 3.25%,transparent 3.8% 100%),linear-gradient(125deg,#775719 0%,#3d3219 25%,#071015 70%)!important;border-color:#fff0c7!important}
html:root[data-ui-template="glass-gold"] :is(#exchangePage,#depositPage,#withdrawPage,#profile,#memberProfileEdit,#receivingAccounts,#records) :is(.rate-card,.exchange-input,.atx-tabs,.currency-logo-options,.member-account-card){background:var(--wealth-inset)!important;border-color:#e7d6aaad!important;box-shadow:inset 0 1px 0 #e8d4a640,0 3px 9px #0005}
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-method{background:linear-gradient(155deg,#ffe9b447 0%,transparent 9%),linear-gradient(130deg,#49391c,#091317 75%)!important;border-color:#f0dfb4c4!important;box-shadow:inset 0 1px 0 #fff4d278,inset 0 -1px 0 #000a}
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-method:has(input:checked){background:linear-gradient(155deg,#fff2cd66 0%,transparent 9%),linear-gradient(130deg,#725623,#221d13)!important;border-color:#fff0c7!important;box-shadow:inset 0 1px 0 #fff5d5a6,0 0 0 1px #c39b5159}
html:root[data-ui-template="glass-gold"] #exchangePage :is(.exchange-swap,.exchange-input select){background:var(--wealth-inset)!important;border-color:#ead6a6a8!important;color:#f8dfaa}
html:root[data-ui-template="glass-gold"] :is(#profile,#memberProfileEdit,#receivingAccounts) :is(.am-profile-heading button,.logout-btn,.custom-file-button){background:var(--wealth-inset)!important;border-color:#e7d6aaad!important}
html:root[data-ui-template="glass-gold"] #profile .profile-menu-row{background:transparent!important;box-shadow:none;border-bottom-color:#e8d2a23d!important}
html:root[data-ui-template="glass-gold"] #profile .profile-detail-card>div{border-bottom-color:#e8d2a23d!important}
html:root[data-ui-template="glass-gold"] .atx-dialog,
html:root[data-ui-template="glass-gold"] :is(.yh-deposit-dialog,.yh-provider-order){background:var(--wealth-surface)!important;border-color:#fff0c7!important;box-shadow:var(--wealth-shadow),0 22px 70px #000b!important;backdrop-filter:none;-webkit-backdrop-filter:none}
html:root[data-ui-template="glass-gold"] :is(.atx-filters,.atx-pagination,.am-history) button:not([role=tab]),
html:root[data-ui-template="glass-gold"] :is(.atx-row,.am-history-row)>button{background:var(--wealth-inset)!important;border-color:#dfcba0a6!important;color:#f7dfac}

/* Compact cards retain flexible height for translated names and fee descriptions. */
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-method{min-height:62px!important;padding:8px 9px!important}
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-method>span{gap:3px}
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-method b{line-height:1.35}
html:root[data-ui-template="glass-gold"] :is(#depositPage,#withdrawPage) .yh-payment-methods{gap:7px;margin-bottom:10px}
html:root[data-ui-template="glass-gold"] .am-history-row{padding:7px 9px;margin:6px 0}
html:root[data-ui-template="glass-gold"] .am-history-row p{margin:3px 0}
html:root[data-ui-template="glass-gold"] .am-history-row footer button{min-height:27px;padding:4px 8px}
html:root[data-ui-template="glass-gold"] .atx-row{padding:8px 9px;margin-bottom:6px;gap:8px}
html:root[data-ui-template="glass-gold"] .atx-method{margin-top:2px}
html:root[data-ui-template="glass-gold"] .atx-meta{margin-top:4px}
html:root[data-ui-template="glass-gold"] .atx-symbol{width:30px;height:30px;font-size:22px}
html:root[data-ui-template="glass-gold"] #transfer .transfer-shell{background:var(--wealth-surface)!important;border-color:#f5e3b8cc!important;box-shadow:var(--wealth-shadow)!important;backdrop-filter:none;-webkit-backdrop-filter:none}
html:root[data-ui-template="glass-gold"] #transfer :is(.transfer-ticket,.confirm-card,.success-card){background:var(--wealth-inset)!important;border-color:#e7d6aaad!important;box-shadow:inset 0 1px 0 #fff0c757,0 4px 12px #0007;backdrop-filter:none;-webkit-backdrop-filter:none}
html:root[data-ui-template="glass-gold"] #transfer :is(.picker-trigger,.btn.dark){background:var(--wealth-inset)!important;border-color:#e7d6aaad!important;color:#f7dfac}
html:root[data-ui-template="glass-gold"] #transfer :is(.balance-label,.transfer-balance-copy,.balance-mask,.currency-left){color:#f5d99c!important}
html:root[data-ui-template="glass-gold"] #transfer .transfer-brand img{content:url('../ui/templates/glass-yh.svg')}
/* Keep authenticated pages neutral until account appearance has been resolved. */
html[data-ui-appearance-pending] :is(.page,.navbar){visibility:hidden!important}
#uiAppearanceWait{display:none}
html[data-ui-appearance-pending] #uiAppearanceWait{display:block;position:fixed;inset:45% 12px auto;text-align:center;color:#e7d6aa;font:13px system-ui;z-index:1000}
/* Give narrow-screen labels and account references their own readable rows. */
@media(max-width:360px){
 html:root[data-ui-template="glass-gold"] #transferFormView .transfer-field{grid-template-columns:minmax(0,1fr);gap:5px}
 html:root[data-ui-template="glass-gold"] #transferFormView .field-error{grid-column:1}
 html:root[data-ui-template="glass-gold"] .atx-filters .atx-search{grid-column:1/3}
 html:root[data-ui-template="glass-gold"] .atx-filters label:nth-child(3){grid-column:1/-1}
 html:root[data-ui-template="glass-gold"] #depositPage .deposit-amount-row{grid-template-columns:minmax(0,1fr) minmax(76px,auto)}
}
/* Account actions must fit translated labels without oversized legacy pills. */
html:root[data-ui-template="glass-gold"] #receivingAccounts .member-account-card>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
html:root[data-ui-template="glass-gold"] #receivingAccounts .member-account-card button{width:auto!important;min-width:0!important;min-height:32px!important;height:auto!important;margin:0!important;padding:6px 8px!important;font-size:11px!important;line-height:1.4!important;border-radius:7px;background:var(--wealth-inset)!important;border:1px solid #dfcba0a6;color:#f7dfac}
html:root[data-ui-template="glass-gold"] #receivingAccounts .member-account-card [data-account-delete]{color:#ffbcb5;border-color:#e6a39b80}
html:root[data-ui-template="glass-gold"] #receivingAccounts #memberAddAccount{min-height:36px;padding:8px 10px;font-size:12px;border-radius:9px}
html:root[data-ui-template="glass-gold"] :is(#profile,#receivingAccounts) :is(.profile-member-cell,.profile-email-line,.member-account-card){min-width:0;overflow-wrap:anywhere}
@media(max-width:360px){
 html:root[data-ui-template="glass-gold"] #memberProfileEdit .top{gap:8px}
 html:root[data-ui-template="glass-gold"] #memberProfileEdit .top .title{font-size:17px;line-height:1.35}
}
/* Wealth-gold navigation hierarchy; scoped to A so Classic remains the fallback. */
html:root[data-ui-template="glass-gold"] :is(.top .title,.atx-heading h2){color:#ffe2a0!important;text-shadow:0 1px 1px #000,0 0 12px #e5b85424}
html:root[data-ui-template="glass-gold"] #referenceAccount{color:#ffe8b8!important;text-shadow:0 1px 2px #000}
html:root[data-ui-template="glass-gold"] .navbar .nav-game-entry .nav-center{width:52px!important;height:52px!important;min-height:52px;transform:translateY(-13px)!important;margin-bottom:-13px;border:1px solid #ffe2a0!important;border-radius:50%;background:linear-gradient(145deg,#4b3819,#080e10)!important;box-shadow:0 -3px 14px #f1c46a33,inset 0 1px 2px #fff4!important;display:flex;align-items:center;justify-content:center}
html:root[data-ui-template="glass-gold"] .navbar .nav-center .a-nav-icon{display:none}
html:root[data-ui-template="glass-gold"] .navbar .nav-center img{display:block!important;content:normal!important;width:40px!important;height:40px!important;object-fit:contain}
html:root[data-ui-template="glass-gold"] #home .gh-actions button{position:relative;overflow:hidden}
html:root[data-ui-template="glass-gold"] #home .gh-actions button[aria-pressed="true"]::after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(140deg,#ffe4a552,#c7922220);box-shadow:inset 0 0 0 2px #ffe2a0;pointer-events:none}
html:root[data-ui-template="glass-gold"] .gh-more-services{display:block;margin:-3px 0 7px auto;padding:5px 8px;border:0;background:transparent;color:#ffe2a0;font-size:12px;min-height:30px}
html:root[data-ui-template="glass-gold"] .atx-legacy-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
html:root[data-ui-template="glass-gold"] .atx-legacy-links h3{width:100%;margin:0;font-size:13px;color:#ffe2a0}
html:root[data-ui-template="glass-gold"] .atx-legacy-links button{flex:1 1 100px;min-height:36px;padding:7px;font-size:12px;color:#f5dfb5;background:#1b1912;border:1px solid #d3ba7e88;border-radius:8px}

/* Preserve the original service/activity/history card structures, with A materials. */
html:root[data-ui-template="glass-gold"] :is(#services,#activity,.record-page){min-width:0;color:#f3e6c9}
html:root[data-ui-template="glass-gold"] #services .service,
html:root[data-ui-template="glass-gold"] #activity :is(.first-deposit-ad,.activity-card),
html:root[data-ui-template="glass-gold"] .record-page :is(.record-entry,.booking-record-card,.round-card){background:var(--wealth-surface)!important;border:1px solid #f5e3b8c4!important;box-shadow:var(--wealth-shadow)!important;backdrop-filter:none;-webkit-backdrop-filter:none;min-width:0;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] #serviceGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html:root[data-ui-template="glass-gold"] #serviceGrid .service{height:auto!important;min-height:130px!important;max-width:100%;padding:14px 8px!important;color:#ffe3a6;align-items:flex-start;text-align:left;font-size:13px!important;line-height:1.4;white-space:normal}
html:root[data-ui-template="glass-gold"] #serviceGrid .service .big{font-size:30px!important;margin-bottom:18px!important}
html:root[data-ui-template="glass-gold"] #services .section{font-size:18px;color:#f6d99b}
html:root[data-ui-template="glass-gold"] .record-page .record-filter-grid{gap:8px;margin:12px 0 16px;grid-template-columns:repeat(2,minmax(0,1fr))}
html:root[data-ui-template="glass-gold"] .record-page .record-filter{background:var(--wealth-inset)!important;border-color:#e7d6aaad;color:#f7dfac;border-radius:10px;padding:10px 9px;min-width:0;font-size:12px;white-space:normal;line-height:1.4}
html:root[data-ui-template="glass-gold"] .record-page .record-filter>span{min-width:0;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] .record-page .record-filter-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
html:root[data-ui-template="glass-gold"] .record-page :is(.record-entry,.booking-record-card){padding:13px;margin-bottom:10px;border-radius:13px}
html:root[data-ui-template="glass-gold"] .record-page :is(.record-entry-head,.booking-record-card .head){gap:8px;flex-wrap:wrap}
html:root[data-ui-template="glass-gold"] .record-page .record-entry-head b{font-size:15px;color:#ffe3a6}
html:root[data-ui-template="glass-gold"] .record-page :is(.record-entry-meta,.muted,.round-card-foot){color:#d1c6ac;line-height:1.5;overflow-wrap:anywhere;font-size:12px}
html:root[data-ui-template="glass-gold"] .record-page .round-card-head{background:#251f13;color:#ffe3a6;gap:8px;flex-wrap:wrap;font-size:12px}
html:root[data-ui-template="glass-gold"] .record-page .round-card-foot{background:#0b1112;border-top:1px solid #d8ba7540}
html:root[data-ui-template="glass-gold"] .record-page .round-card-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:12px;padding:13px}
html:root[data-ui-template="glass-gold"] #activity .first-deposit-ad{padding:20px 17px;border-radius:19px}
html:root[data-ui-template="glass-gold"] #activity .first-deposit-ad h2 strong{font-size:clamp(25px,7vw,34px);letter-spacing:1px}
html:root[data-ui-template="glass-gold"] #activity .first-deposit-ad-top{letter-spacing:.7px;flex-wrap:wrap}
html:root[data-ui-template="glass-gold"] #activity .first-deposit-ad-actions .btn{height:auto;min-height:42px;font-size:12px;line-height:1.4;padding:9px 7px;white-space:normal;border-radius:10px}
html:root[data-ui-template="glass-gold"] .record-page .top .title{font-size:19px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
@media(max-width:360px){html:root[data-ui-template="glass-gold"] .record-page .record-filter-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}html:root[data-ui-template="glass-gold"] #serviceGrid .service{font-size:12px!important;padding:12px 6px!important}}
html:root[data-ui-template="glass-gold"] #activity .first-deposit-ad-actions .btn.dark{background:var(--wealth-inset)!important;border:1px solid #e7d6aaad;color:#f7dfac}

/* Original security controls, A-only material and responsive spacing. */
html:root[data-ui-template="glass-gold"] #profile .profile-logo-large{content:normal!important;object-fit:contain}
html:root[data-ui-template="glass-gold"] :is(#securitySettings .settings-card,#passwordForm .settings-form,.security-modal .security-panel){background:var(--wealth-surface)!important;border:1px solid #f5e3b8cc!important;box-shadow:var(--wealth-shadow)!important;backdrop-filter:none;-webkit-backdrop-filter:none;color:#f7e8c8;min-width:0;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] #securitySettings .settings-card{padding:15px 13px;margin-bottom:11px;border-radius:13px;font-size:15px;gap:10px}
html:root[data-ui-template="glass-gold"] #securitySettings .settings-card .left{min-width:0;gap:9px;line-height:1.4}
html:root[data-ui-template="glass-gold"] #securitySettings .settings-card .icon{font-size:22px}
html:root[data-ui-template="glass-gold"] #securitySettings .settings-card .right{color:#e9d29e;font-size:12px;flex-shrink:0;display:flex;align-items:center;gap:6px}
html:root[data-ui-template="glass-gold"] #passwordForm .settings-form{padding:16px;border-radius:15px}
html:root[data-ui-template="glass-gold"] #passwordForm .field{margin-bottom:13px}
html:root[data-ui-template="glass-gold"] #passwordForm .field[style*="display: none"],html:root[data-ui-template="glass-gold"] #passwordForm .field[style*="display:none"]{display:none!important}
html:root[data-ui-template="glass-gold"] #passwordForm .field label{color:#f2dbab!important;font-size:13px!important;line-height:1.45}
html:root[data-ui-template="glass-gold"] :is(#passwordForm .field input,.security-panel input){background:var(--wealth-inset)!important;border:1px solid #d8c08ca6!important;color:#fff0ce!important;border-radius:10px;padding:11px;min-height:44px!important;width:100%;box-sizing:border-box;font-size:16px}
html:root[data-ui-template="glass-gold"] :is(#passwordForm input,.security-panel input)::placeholder{color:#bdb39c;opacity:1;font-size:12px}
html:root[data-ui-template="glass-gold"] :is(#passwordForm .auth-btn,.security-actions .primary){background:linear-gradient(130deg,#ffe4a3,#bf903b)!important;color:#211a0e!important;border:1px solid #ffe9b8;min-height:42px;padding:10px;font-size:13px;line-height:1.4;white-space:normal;border-radius:10px}
html:root[data-ui-template="glass-gold"] .security-actions .secondary{background:var(--wealth-inset)!important;border:1px solid #d8c08ca6;color:#f2dbab;white-space:normal;line-height:1.4;font-size:13px}
html:root[data-ui-template="glass-gold"] .security-modal .security-panel{width:min(430px,100%);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:20px 16px 24px;border-radius:20px 20px 0 0}
html:root[data-ui-template="glass-gold"] .security-panel p{font-size:13px;line-height:1.6;color:#d5c9af}
html:root[data-ui-template="glass-gold"] .security-panel h3{font-size:18px;line-height:1.4;color:#ffe2a0}
html:root[data-ui-template="glass-gold"] .security-panel .secret-code{background:var(--wealth-inset);font-size:13px;letter-spacing:1px;color:#ffe2a0}
html:root[data-ui-template="glass-gold"] #passwordForm .top .title{font-size:19px;line-height:1.35;min-width:0;overflow-wrap:anywhere}

/* Auxiliary routes keep Classic markup and functionality. */
html:root[data-ui-template="glass-gold"] :is(#authorizedPerson,#aboutUs,#financeHub,#bookingHome,.booking-form-page,#agent,#gameAgent,#games,#gameCategory,#gamewallet,#gifts,#messageCenter){min-width:0;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] :is(.authorized-empty,.authorized-card,.about-info,.finance-hub-card,.booking-choice,.booking-form,.booking-form-card,.agent-panel,.agent-box,.metric,.game-category-card,.game-wallet-filter,.message-card,.message-item){background:var(--wealth-surface)!important;border:1px solid #f5e3b8b8!important;box-shadow:var(--wealth-shadow)!important;color:#f3e4c4;backdrop-filter:none;-webkit-backdrop-filter:none;min-width:0}
html:root[data-ui-template="glass-gold"] .authorized-empty{padding:32px 15px;border-radius:16px;line-height:1.6;color:#d5c8ab}
html:root[data-ui-template="glass-gold"] .authorized-empty .shield{font-size:52px;opacity:.8}
html:root[data-ui-template="glass-gold"] .about-info{padding:14px;border-radius:14px}
html:root[data-ui-template="glass-gold"] .about-info div{gap:10px;flex-wrap:wrap}
html:root[data-ui-template="glass-gold"] :is(.finance-hub-grid,.service-choice){gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
html:root[data-ui-template="glass-gold"] :is(.finance-hub-card,.booking-choice){padding:16px 10px;border-radius:14px;white-space:normal;line-height:1.5;min-width:0;height:auto}
html:root[data-ui-template="glass-gold"] :is(.booking-form-page .field input,.booking-form-page .field select,.booking-form-page .field textarea,.booking-form-page label input,.booking-form-page label select){box-sizing:border-box;max-width:100%;min-width:0;background:var(--wealth-inset)!important;border-color:#d8c08ca6!important;color:#f7e8c8;font-size:16px}
html:root[data-ui-template="glass-gold"] .booking-form-page .top .title{font-size:19px;line-height:1.4;min-width:0}
html:root[data-ui-template="glass-gold"] :is(.language-box,.support-panel,.record-picker-panel,.currency-panel,.contact-box,.sheet,.wallet-panel,.launch-box,.checkin-box,.nickname-first-box){background:var(--wealth-surface)!important;border:1px solid #f5e3b8b8!important;box-shadow:var(--wealth-shadow)!important;color:#f7e8c8;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;backdrop-filter:none;-webkit-backdrop-filter:none}
html:root[data-ui-template="glass-gold"] :is(.support-panel,.record-picker-panel,.language-box){max-height:calc(100dvh - 24px);overflow:auto}
html:root[data-ui-template="glass-gold"] .support-panel{width:min(430px,100%);padding:16px}
html:root[data-ui-template="glass-gold"] .support-panel button{background:var(--wealth-inset)!important;border:1px solid #ddc99a80;color:#ffe2a0;font-size:14px;padding:12px;gap:8px;white-space:normal;min-width:0}
html:root[data-ui-template="glass-gold"] .auth-shell{background:linear-gradient(145deg,#081015,#02080b)!important}
html:root[data-ui-template="glass-gold"] .auth-card{background:var(--wealth-surface)!important;border:1px solid #f5e3b8b8!important;box-shadow:var(--wealth-shadow)!important;min-width:0}
html:root[data-ui-template="glass-gold"] .auth-card .field input{background:var(--wealth-inset)!important;border-color:#d8c08ca6!important;color:#fff0ce}
html:root[data-ui-template="glass-gold"] .auth-card :is(label,.auth-link-btn){color:#f2dbab!important}
html:root[data-ui-template="glass-gold"] .auth-card .auth-btn{background:linear-gradient(130deg,#ffe4a3,#bf903b)!important;color:#211a0e!important;line-height:1.4}
html:root[data-ui-template="glass-gold"] .game-wallet-table-head{grid-template-columns:repeat(4,minmax(0,1fr));font-size:12px;gap:6px;white-space:normal;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] #agent .metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html:root[data-ui-template="glass-gold"] #agent .metric{font-size:12px;padding:12px 6px;border-radius:10px}
html:root[data-ui-template="glass-gold"] :is(#gifts .games,#gameCategoryBalances){min-width:0}
html:root[data-ui-template="glass-gold"] .booking-ticket{background:var(--wealth-surface)!important;color:#f3e4c4!important;border:1px solid #f5e3b8b8!important;box-shadow:var(--wealth-shadow)!important;border-radius:16px;padding:16px;gap:12px}
html:root[data-ui-template="glass-gold"] .booking-ticket:before{display:none}
html:root[data-ui-template="glass-gold"] .booking-ticket label{grid-template-columns:minmax(0,1fr);gap:6px;font-size:13px;line-height:1.4}
html:root[data-ui-template="glass-gold"] .booking-ticket :is(input,select){box-sizing:border-box;min-width:0;width:100%;background:var(--wealth-inset)!important;color:#f7e8c8!important;border:1px solid #d8c08ca6!important;min-height:42px;padding:10px;font-size:16px}
html:root[data-ui-template="glass-gold"] #messageCenter{width:100%;box-sizing:border-box}
html:root[data-ui-template="glass-gold"] .authorizer-card{background:var(--wealth-surface)!important;border:1px solid #f5e3b8b8!important;box-shadow:var(--wealth-shadow)!important;min-width:0;overflow-wrap:anywhere;border-radius:16px;padding:16px;color:#f3e4c4}
html:root[data-ui-template="glass-gold"] .authorizer-card .line{gap:10px;flex-wrap:wrap}
html:root[data-ui-template="glass-gold"] .authorizer-card .line b{min-width:0;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] #gifts .card.profile{background:var(--wealth-surface)!important;border-color:#f5e3b8b8!important;box-shadow:var(--wealth-shadow)!important}

/* Auxiliary navigation does not open legacy local-only submissions. */
html:root[data-ui-template="glass-gold"] .a-aux-group{margin:14px 0;min-width:0}
html:root[data-ui-template="glass-gold"] .a-aux-group h3{font-size:15px;color:#ffe2a0;margin:0 0 9px}
html:root[data-ui-template="glass-gold"] .a-aux-group button{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;min-height:44px;padding:11px 12px;margin:7px 0;border:1px solid #dec89591;border-radius:11px;background:var(--wealth-inset);color:#f7e5bd;font-size:13px;text-align:left;line-height:1.45;white-space:normal}
html:root[data-ui-template="glass-gold"] .a-aux-group .a-aux-name{flex:1;min-width:0;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] .a-aux-group small{font-size:11px;color:#d0be97;flex-shrink:0}
html:root[data-ui-template="glass-gold"] .a-aux-group button:disabled{opacity:.72;cursor:default}
html:root[data-ui-template="glass-gold"] #aboutUs.a-about-ready .about-info{display:none}
html:root[data-ui-template="glass-gold"] .a-about-content{background:var(--wealth-surface);border:1px solid #f5e3b8b8;box-shadow:var(--wealth-shadow);border-radius:15px;padding:16px;overflow-wrap:anywhere}
html:root[data-ui-template="glass-gold"] .a-about-content p{color:#d9c9a8;font-size:13px;line-height:1.5}
html:root[data-ui-template="glass-gold"] .a-about-pair{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;margin:14px 0}

/* Compact transaction filters and a single scrollable row of original record categories. */
html:root[data-ui-template="glass-gold"] .atx-filters{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.85fr) minmax(0,1.05fr) auto;gap:5px;align-items:end}
html:root[data-ui-template="glass-gold"] .atx-filters label:nth-child(n){grid-column:auto;min-width:0}
html:root[data-ui-template="glass-gold"] .atx-filters select{height:30px;min-height:30px;padding:3px 1px;font-size:10px}
html:root[data-ui-template="glass-gold"] .atx-filters button{height:30px;min-height:30px;padding:4px 7px;font-size:10px;white-space:nowrap}
html:root[data-ui-template="glass-gold"] .atx-legacy-links{display:block}
html:root[data-ui-template="glass-gold"] .atx-legacy-links h3{margin-bottom:7px}
html:root[data-ui-template="glass-gold"] .atx-record-strip{display:flex;align-items:center;gap:4px;min-width:0}
html:root[data-ui-template="glass-gold"] .atx-record-scroll{display:flex;gap:5px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
html:root[data-ui-template="glass-gold"] .atx-record-scroll::-webkit-scrollbar{display:none}
html:root[data-ui-template="glass-gold"] .atx-record-scroll button{flex:1 0 auto;min-height:30px;height:30px;padding:4px 7px;font-size:11px;white-space:nowrap}
html:root[data-ui-template="glass-gold"] .atx-legacy-links .atx-scroll-arrow{flex:0 0 22px;width:22px;height:30px;min-height:30px;padding:0;font-size:22px;line-height:1}
html:root[data-ui-template="glass-gold"] .atx-scroll-arrow:disabled{opacity:.3;cursor:default}
