/* Final shared palette. Keep brand artwork unchanged. */
.password-visibility-wrap{position:relative;min-width:0}
html body #email-signup-form .password-visibility-wrap input{padding-right:50px!important}
html body .password-visibility-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:42px;height:38px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent!important;color:#102d59!important;cursor:pointer}
html body .password-visibility-toggle:hover{background:#edf2fa!important}
html body .hero-actions a.button,html body .hero-actions a.button:hover,html body .hero-actions a.button:focus-visible{background:#102d59!important;background-image:none!important;color:white!important;-webkit-text-fill-color:white!important;border:1px solid #102d59!important;opacity:1!important}
html body.welcome-page #user-avatar,html body.welcome-page #user-avatar *,html body.welcome-page #user-avatar:hover,html body.welcome-page #user-avatar:hover *{color:white!important;-webkit-text-fill-color:white!important;opacity:1!important;visibility:visible!important}
html body #pay-btn,html body #pay-btn:hover,html body #pay-btn:focus-visible,
html body #deposit-btn,html body #deposit-btn:hover,html body #deposit-btn:focus-visible,
html body .btn-pay,html body .btn-pay:hover,html body .btn-pay:focus-visible{
  background:#102d59!important;background-image:none!important;color:#fff!important;border-color:#102d59!important;
}
html body #pay-btn *,html body #deposit-btn *,html body .btn-pay *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.welcome-page #user-avatar,html body.welcome-page #user-avatar:hover,html body.welcome-page #user-avatar:focus-visible{
  background:#102d59!important;background-image:none!important;color:#fff!important;border-color:#102d59!important;
}
:root, html body {
  --tl-bg:#fff;--tl-surface:#fff;--tl-surface-soft:#f5f7fb;--tl-surface-strong:#edf1f7;
  --tl-line:#dfe5ed;--tl-line-strong:#b9c6d8;--tl-ink:#182b49;--tl-muted:#58677c;
  --tl-faint:#66778d;--tl-primary:#102d59;--tl-primary-hover:#1c477e;
  --tl-primary-soft:#edf2fa;--tl-gold:#102d59;--tl-gold-soft:#edf2fa;
  --gold:#102d59;--gold2:#1c477e;--bg:#fff;--bg2:#fff;--bg3:#f5f7fb;
  --text:#182b49;--text2:#58677c;--text3:#66778d;--border:#dfe5ed;
}
html,html body{background:#fff!important;color:#182b49!important}
html body::before,html body::after{background:none!important}
html body :is(.brand-mark,.logo-icon){background:transparent!important;border:0!important;box-shadow:none!important}
html body :is(.btn-text,.button span,.auth-button span,.google-button span){color:inherit!important}
#change-password-form{display:grid;gap:10px}
.email-signup{margin-top:12px}
.email-signup summary{padding:12px;text-align:center;border:1px solid #dfe5ed;border-radius:13px;cursor:pointer;list-style:none}
.email-signup summary:hover{background:#edf2fa}
.email-signup summary{display:flex;align-items:center;justify-content:center;gap:10px}
.google-icon,.email-signup summary svg{flex-shrink:0}
#email-signup-form{display:grid;gap:10px;margin-top:18px}
#email-signup-form input{width:100%;padding:12px;border-radius:8px}
#change-password-form input{width:100%;padding:12px;border:1px solid #b9c6d8;border-radius:8px}
html body :is(.card,.panel,.stat,.wallet-hero,.auth-card,.draw-card,.winner-card,.ticket-card,.withdraw-dialog,.crypto-payment-dialog,.modal-content,.info-box,.toolbar,.ticket-toolbar,.wallet-address,.readonly-row,.w-stat,.footer,footer,nav,.topbar){background:#fff!important;border-color:#dfe5ed!important}
html body :is(.card-header,.section-head,.draw-footer,.card-footer,.wallet-chip,.user-avatar,.account-avatar,.toolbar,thead,th){background:#f5f7fb!important;color:#182b49!important}
html body :is(input,select,textarea){background:#fff!important;color:#182b49!important;border-color:#b9c6d8!important}
html body :is(.btn-primary,.btn-main,.btn-buy,.btn-submit,.btn-send,.btn-topup,.btn-deposit,.btn-withdraw,.btn-confirm,.btn-action,.btn-enter,.google-button,.auth-button,.button,.hero-action.deposit){background:#102d59!important;color:#fff!important;border-color:#102d59!important}
html body :is(.btn-primary,.btn-buy,.btn-submit,.btn-enter,.google-button,.auth-button,.button):hover:not(:disabled){background:#1c477e!important;color:#fff!important}
html body :is(.btn-outline,.btn-gold,.top-wallet-deposit){background:#fff!important;color:#102d59!important;border:1px solid #dfe5ed!important}
html body :is(.btn-outline,.btn-gold,.top-wallet-deposit):hover{background:#102d59!important;color:#fff!important}
html body :is(button,.button,.btn-enter,.btn-outline,.btn-gold){transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
html body :is(button,.button):disabled{opacity:.55!important;cursor:not-allowed!important}
html body :is(.login-stage,.signup-stage){background:rgba(19,26,36,.43)!important;min-height:100dvh;display:grid;place-items:center}
html body :is(.login-card,.signup-card){background:white!important}
html body :is(.email-option summary,.form-label){word-spacing:normal!important;letter-spacing:normal!important}
html body .market-category-bar{background:white!important;border-bottom:1px solid #e6e8ec!important;box-shadow:none!important;animation:none!important}
html body .market-category-inner{align-items:stretch!important;gap:22px!important;overflow-x:auto;scrollbar-width:none}
html body .dynamic-categories{display:flex;align-items:stretch;gap:22px}
html body .market-category-bar :is(.market-nav-item,.market-cat-btn){
  position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
  height:100%;min-height:0;margin:0;padding:0 1px!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#68717e!important;box-shadow:none!important;transform:none!important;
  font-size:14px!important;font-weight:400!important;letter-spacing:normal!important;white-space:nowrap;text-decoration:none!important;
}
html body .market-category-bar :is(.market-nav-item,.market-cat-btn):is(:hover,:focus-visible,.active,[aria-current="page"]){color:#242a32!important;background:transparent!important}
html body .market-category-bar :is(.market-nav-item,.market-cat-btn)::before{display:none!important}
html body .market-category-bar :is(.market-nav-item,.market-cat-btn)::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#242a32!important;opacity:0;transform:none!important}
html body .market-category-bar :is(.active,[aria-current="page"])::after{opacity:1!important}
html body .market-category-bar :is(svg,.icon){display:none!important}
html body .market-nav-divider{align-self:center;width:1px;height:16px;background:#e6e8ec;margin:0}
html body .market-results-row{display:none!important}
html body :focus-visible{outline:2px solid #3976c9!important;outline-offset:4px!important}
.scheduled-note{padding:14px;border:1px solid #dfe5ed;border-radius:12px;color:#102d59;background:#f5f7fb}
@media(max-width:640px){html body .market-category-inner,html body .dynamic-categories{gap:18px!important}}
@media(max-width:680px){
  html body :is(.login-card,.signup-card,.wallet-actions,.hero-actions,.tl-deposit-dialog,.deposit-launch) :is(.button,.auth-button,.google-button,.btn-submit,.btn-deposit,.btn-withdraw,.btn-pay,.email-signup summary,.email-option summary){
    min-height:48px;font-size:15px;line-height:1.3;text-align:center;
    white-space:normal;overflow-wrap:break-word;touch-action:manipulation;
  }
  html body :is(.login-card,.signup-card) :is(.auth-button,.google-button,.btn-submit){width:100%}
  html body :is(.hero-actions,.wallet-actions){flex-wrap:wrap;gap:8px}
  html body :is(.withdraw-dialog,.crypto-payment-dialog,.login-card,.signup-card,.tl-deposit-dialog) :is(input:not([type="checkbox"]),select,textarea){font-size:16px!important;max-width:100%}
  html body :is(.eye-btn,.password-visibility-toggle,.deposit-close){min-height:44px;min-width:44px}
  html body .market-category-bar :is(.market-nav-item,.market-cat-btn){min-height:44px;color:#102d59!important;font-weight:600!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
