/* Visual audit fixes: route shells, empty states, dialogs and small screens. */
body.tk-theme{display:flow-root}
body.tk-theme main .empty{background:linear-gradient(135deg,#0b223d,#07192d)!important;border:1px solid #294d70!important;border-radius:16px!important;color:#b9cee5!important}
body.tk-theme main .empty .empty-icon{background:#102d4b!important;color:#8fc6fb!important;border-color:#365d83!important}
body.tk-theme main .empty :is(h2,h3){color:#edf6ff!important}
body.tk-theme main .empty p{color:#b9cee5!important}
body.tk-theme #bottom-nav{background:#05162bf7!important;border-top:1px solid #294d70!important;box-shadow:0 -5px 25px #0004!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
body.tk-theme #bottom-nav a{color:#abc4df!important}
body.tk-theme #bottom-nav a[aria-current=page],body.tk-theme #bottom-nav a.active{background:#123b67!important;color:#65baff!important;border-radius:10px}
body.tk-theme #bottom-nav svg{stroke:currentColor!important}
body.tk-theme #desktop-nav{align-items:center!important;gap:5px!important}
body.tk-theme #desktop-nav a{align-self:center!important;display:inline-flex!important;align-items:center!important;min-height:40px!important;height:auto!important;padding:10px 12px!important;line-height:1.3!important}
body.tk-theme .pass_wrapper small{color:#a9c2df!important;line-height:1.6!important}
body.tk-theme .nav_right .button.yellow{background:linear-gradient(135deg,#236edf,#1856bc)!important;border:1px solid #438bed!important;color:#fff!important}
body.tk-theme .nav_right .button.black{background:#071b30!important;border:1px solid #365a7c!important;color:#dcecff!important}
body.tk-theme .ai-native dialog .ai-detail-grid>div{padding:16px!important;min-width:0}
body.tk-theme .ai-native dialog .ai-detail-grid span{display:block;color:#b7cfe9!important;font-size:13px!important;line-height:1.6!important}
body.tk-theme .ai-native dialog .ai-detail-grid strong{display:block;color:#f1f7ff!important;font-size:24px!important;line-height:1.35!important;margin:8px 0!important;overflow-wrap:anywhere}
body.tk-theme .ai-native dialog :is(p.ai-dialog-note,a.ai-dialog-note){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#b7cfe9!important;line-height:1.65!important;margin:10px 0!important;padding:0!important;overflow-wrap:anywhere}
body.tk-theme .ai-native dialog a.ai-dialog-note{display:inline-block;color:#72beff!important;text-underline-offset:3px}
body.tk-theme .ai-native dialog span.ai-dialog-note{display:inline-block;padding:4px 9px!important;line-height:1.4!important;color:#bfddfb!important}
body.tk-theme .ai-native dialog :is(.ai-quote-chart,.ai-personal-terms){padding:16px!important;margin-top:16px!important}
body.tk-theme .ai-native .ai-quote-chart svg{display:block;width:100%;background:#06162a!important;border:1px solid #294e73;border-radius:9px;margin:12px 0!important}
body.tk-theme .ai-native .ai-quote-chart h3{margin:0 0 12px!important}
body.tk-theme .top .ssv-page-nav{position:static!important;inset:auto!important;margin:0!important;padding:0!important;max-width:none!important;width:auto!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.tk-theme .top .ssv-page-nav a{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px!important;min-height:40px;font-size:13px;line-height:1.3;border-radius:9px!important;white-space:nowrap;text-decoration:none}
@media(min-width:768px){body.tk-theme .top:has(.ssv-page-nav){padding:16px max(24px,calc((100vw - 1200px)/2))!important;gap:20px;min-height:76px;flex-wrap:wrap}body.tk-theme .top:has(.ssv-page-nav) .brand{white-space:nowrap;font-size:21px!important}body.tk-theme .top:has(.ssv-page-nav) .back{white-space:nowrap;font-size:13px!important}}
@media(max-width:767px){
 body.tk-theme #tk-mobile-header>select{display:none!important}
 body.tk-theme #tk-mobile-header{width:100%;min-width:0;padding-inline:14px!important;gap:6px!important}
 body.tk-theme .tk-mobile-brand{min-width:0;flex:1 1 auto;font-size:14px!important;gap:7px!important}
 body.tk-theme .tk-mobile-brand>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
 body.tk-theme .tk-mobile-brand img{flex:none;width:26px;height:29px}
 body.tk-theme .tk-mobile-tools{flex:0 0 auto;gap:5px!important}
 body.tk-theme .pass_wrapper>.nav_mobile{display:none!important}
 body.tk-theme.ssv-standalone>header.top .brand,body.tk-theme.ssv-standalone>header.top select{display:none!important}
 body.tk-theme.ssv-standalone>header.top{background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;padding:12px 20px 0!important;justify-content:flex-end!important}
 body.tk-theme.ssv-standalone>header.top:not(:has(.back)):not(:has(button)):not(:has(a:not(.brand))){display:none!important}
 body.tk-theme .home.home-mobile .mobile-content.ai-native-host{margin-top:0!important}
 body.tk-theme .ai-native{padding-top:24px!important}
 body.tk-theme #token-home .tk-hero{min-height:0!important}
 body.tk-theme #token-home .tk-hero-copy{padding-bottom:205px!important}
 body.tk-theme #token-home .tk-hero:after{background:linear-gradient(0deg,#031020 0%,transparent 36%)!important}
 body.tk-theme .pass_wrapper .wel_title{font-size:clamp(27px,7.3vw,34px)!important;line-height:1.35!important}
 body.tk-theme #bottom-nav a{min-width:0;font-size:10px!important}
 body.tk-theme .ssv-page-nav{bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))!important;border-radius:0!important}
 body.tk-theme .ssv-page-nav a{font-size:10px!important;min-width:0;padding:6px 3px!important}
 body.tk-theme .wrap,.page-shell-main{padding-bottom:100px!important}
}
@media(max-width:480px){body.tk-theme .ai-native dialog{padding:20px!important;max-height:calc(100dvh - 32px)!important}body.tk-theme .ai-native dialog .ai-detail-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}body.tk-theme .ai-native dialog .ai-detail-grid>div{padding:14px!important}}
@media(max-width:350px){body.tk-theme #tk-mobile-header{padding-inline:10px!important}body.tk-theme .tk-mobile-brand{font-size:12px!important;gap:5px!important}body.tk-theme .tk-mobile-brand small{font-size:6px!important;letter-spacing:1px!important}body.tk-theme .tk-mobile-tools{gap:2px!important}body.tk-theme .tk-mobile-tools a{width:25px!important}body.tk-theme .tk-mobile-tools select{width:62px!important;max-width:62px!important}}
body.tk-theme .ai-native dialog .ai-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
@media(max-width:480px){body.tk-theme .ai-native dialog .ai-detail-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:767px){body.tk-theme:has(#bottom-nav)>header:not(#tk-mobile-header)>.brand{display:none!important}body.tk-theme:has(#bottom-nav)>header:not(#tk-mobile-header){background:transparent!important;border:0!important;box-shadow:none!important;padding:12px 20px 0!important;min-height:0!important;justify-content:flex-end!important}}
body.tk-theme .nav_pc .actions_content .action.sign{background:linear-gradient(135deg,#236edf,#1856bc)!important;color:#fff!important;border:1px solid #438bed!important}
body.tk-theme .nav_pc .actions_content .action.login{background:#071b30!important;color:#dcecff!important;border:1px solid #365a7c!important}
@media(min-width:768px){body.tk-theme .nav_bottom{min-width:0!important;width:100%!important}body.tk-theme .nav_bottom .nav_content{min-width:0!important;width:calc(100% - 40px)!important;max-width:1240px!important;padding:20px!important}body.tk-theme .nav_bottom .content_top,body.tk-theme .nav_bottom .content_bottom{max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;gap:20px!important}body.tk-theme .nav_bottom :is(.top_left,.top_right,.bottom_left,.bottom_right){min-width:0!important;max-width:100%!important}}
@media(min-width:768px) and (max-width:1100px){body.tk-theme .nav_pc{display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important}body.tk-theme .nav_mobile_top{display:none!important}body.tk-theme .nav_pc .nav_content{height:auto!important;min-height:0!important;width:100%!important;min-width:0!important;flex-wrap:wrap!important;gap:12px!important;padding:14px 24px!important}body.tk-theme .nav_pc .nav_left{flex:1 1 100%!important;width:100%!important;min-width:0!important;gap:16px!important;justify-content:space-between!important}body.tk-theme .nav_pc .logo{font-size:19px!important;flex-shrink:0!important}body.tk-theme .nav_pc .nav_tab_content{display:flex!important;min-width:0!important;gap:12px!important;flex-wrap:wrap!important;justify-content:flex-end!important}body.tk-theme .nav_pc .nav_tab_content .nav_item{font-size:12px!important;margin:0!important}body.tk-theme .nav_pc .nav_right{margin-left:auto!important;justify-content:flex-end!important;max-width:100%!important;gap:16px!important}body.tk-theme .nav_pc .actions_content{gap:12px!important}}
body.tk-theme #token-home .tk-ribbon-item{min-width:0}
body.tk-theme #token-home .tk-ribbon-item span{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;hyphens:auto}
body.tk-theme #token-home .tk-shortcuts :is(a,button)>span:last-child{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;hyphens:auto;line-height:1.4}
@media(max-width:767px){body.tk-theme .nav_mobile[data-mobile-bottom-docked=true] .nav_item_content{width:100%!important;min-width:0!important}body.tk-theme .nav_mobile[data-mobile-bottom-docked=true] .nav_caption{width:100%!important;min-width:0!important;max-width:100%;word-break:normal!important;white-space:normal!important;overflow-wrap:normal!important;hyphens:auto;line-height:1.2!important}body.tk-theme #token-home .tk-shortcuts :is(a,button)>span:last-child{min-height:2.8em}}
body.tk-theme.tk-info-page #app :is(.home,.main){width:100%!important;min-width:0!important;max-width:100%!important;padding:28px 24px 100px!important;margin:0!important;box-sizing:border-box}
body.tk-theme.tk-info-page #app .breadcrumb{width:100%!important;min-width:0!important;max-width:1100px!important;margin:0 auto 24px!important;padding:0!important;flex-wrap:wrap;gap:8px;line-height:1.6!important}
body.tk-theme.tk-info-page #app .content{width:100%!important;min-width:0!important;max-width:1100px!important;margin:0 auto!important;padding:0!important;color:#bdd2e9!important}
body.tk-theme.tk-info-page #app .content :is(p,span,font,b,li,div){color:#bdd2e9!important;line-height:1.8!important;overflow-wrap:anywhere}
body.tk-theme.tk-info-page #app .content :is(b,strong,h1,h2,h3,h4,font[size="4"]){color:#eff6ff!important;line-height:1.5!important}
body.tk-theme.tk-info-page #app .content .title{color:#eff6ff!important;font-size:clamp(26px,4.4vw,36px)!important;font-weight:700!important;line-height:1.35!important;margin:0 0 24px!important;padding:0!important;min-height:0!important;height:auto!important}
body.tk-theme.tk-info-page #app .content :is(p,li){font-size:15px!important;margin:0 0 20px!important}
body.tk-theme.tk-info-page #app .content-img{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:auto!important;min-height:0!important;max-height:360px;margin:24px 0!important;padding:0!important}
body.tk-theme.tk-info-page #app .content-img img{display:block;max-width:100%!important;width:auto!important;height:auto!important;max-height:320px;object-fit:contain}
body.tk-theme.tk-info-page #app .footer{width:100%!important;max-width:100%!important;min-width:0!important;text-align:start!important;margin:0!important;padding:0!important}
.tk-help-hub{width:min(1100px,100%);margin:auto;padding:32px 24px 110px;color:#bdd2e9;font-size:16px}
.tk-help-hub h1{font-size:32px;line-height:1.35;margin:0 0 28px}
.tk-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.tk-theme .tk-help-grid a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:110px;padding:24px;background:#0b223c;border:1px solid #294d70;border-radius:16px;color:#d8eaff;text-decoration:none;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.tk-help-grid a::after{content:'↗';font-size:22px;color:#62baff}
@media(max-width:767px){body.tk-theme.tk-info-page #app :is(.home,.main){padding:24px 20px 100px!important}.tk-help-hub{padding:28px 20px 110px}.tk-help-grid{grid-template-columns:minmax(0,1fr)}body.tk-theme .tk-help-grid a{min-height:86px;padding:20px}}
body.tk-theme.tk-info-page #app :is(.main,.home){position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.tk-theme .tk-mobile-tools select{display:block!important}

/* Wrapped breadcrumbs must retain their full height. */
body.tk-theme.tk-info-page #app .breadcrumb{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;height:auto!important;min-height:24px!important;line-height:1.6!important;float:none!important;position:static!important;margin-bottom:24px!important}
body.tk-theme.tk-info-page #app .breadcrumb .crumb{display:inline-flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;float:none!important;height:auto!important;line-height:1.6!important;max-width:100%!important}
body.tk-theme.tk-info-page #app .content{clear:both!important}
body.tk-theme.tk-info-page #app .content>.title{width:100%!important;max-width:100%!important;margin:0 0 24px!important;float:none!important;position:static!important;word-break:normal!important;overflow-wrap:break-word!important;text-align:center!important}

/* Allow translated wallet actions to wrap on narrow screens. */
body.tk-theme .ssv-funds-heading{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;min-width:0!important}
body.tk-theme .ssv-funds-heading h3{flex:1 1 160px!important;min-width:0!important;margin:0!important;overflow-wrap:anywhere!important}
body.tk-theme .ssv-funds-heading button{flex:0 1 auto!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:480px){body.tk-theme .withdraw-button{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important}}

body.tk-theme .filters label{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.tk-theme .filters :is(select,input){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
@media(max-width:480px){body.tk-theme .filters{grid-template-columns:minmax(0,1fr)!important}body.tk-theme .filters button{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}}

@media(max-width:480px){body.tk-theme .filters{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important}body.tk-theme .filters label{display:block!important;width:100%!important;max-width:100%!important}body.tk-theme .filters label>span{display:block!important;margin-bottom:8px!important}}

/* Real account identity is informational, never a selector. */
body.tk-theme .account .select-button{display:none!important}
body.tk-theme .tk-account-identity{display:block;width:100%;box-sizing:border-box;padding:20px 24px;margin:0 0 16px;border:1px solid #294d70;border-radius:16px;background:#0b223c;color:#e5f2ff;font-size:18px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
body.tk-theme .account .descriptions{height:auto!important;min-height:0!important;padding:20px!important;box-sizing:border-box!important;max-width:100%!important}
body.tk-theme .account .descriptions-title{font-size:clamp(24px,6vw,34px)!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}
body.tk-theme .account .descriptions-lists{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 16px!important;width:100%!important;min-width:0!important}
body.tk-theme .account .descriptions-lists .list{width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important}
body.tk-theme .account :is(.list-lable,.list-content,.ssv-funds-field span,.ssv-funds-field strong,.ai-orders-empty strong,.ai-orders-empty p,.list-title){white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;max-width:100%!important;line-height:1.6!important}
body.tk-theme .account .ssv-funds-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.tk-theme .account .ssv-funds-field{min-width:0!important;box-sizing:border-box!important}
@media(max-width:360px){body.tk-theme .account .descriptions-lists,body.tk-theme .account .ssv-funds-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Both password types share the existing change-password dialog. */
body.tk-theme .account_verification{width:min(620px,calc(100vw - 24px))!important;max-width:100%!important;max-height:90dvh!important;overflow-y:auto!important;box-sizing:border-box!important}
body.tk-theme .account_verification .pass_wrapper,body.tk-theme .account_verification .pass_container{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.tk-theme .account_verification [hidden]{display:none!important}
.tk-password-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 26px}
body.tk-theme .tk-password-tabs button{background:#0b223c;border:1px solid #315473;border-radius:10px;color:#c8d9ed;padding:12px 10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
body.tk-theme .tk-password-tabs button[aria-selected=true]{background:#236ce3;color:#fff;border-color:#5595ff}
.tk-funds-password-panel{width:100%;min-width:0;box-sizing:border-box}
.tk-funds-password-panel h2{font-size:22px;line-height:1.5;margin:0 0 12px;color:#e5f2ff}
.tk-funds-password-panel p{font-size:14px;line-height:1.7;color:#bdcfe3;overflow-wrap:anywhere}
body.tk-theme .tk-funds-password-panel #funds-password-form{display:grid;gap:18px;max-width:100%!important}
.tk-funds-password-panel label{display:grid;gap:8px;color:#d6e5f5;min-width:0}
body.tk-theme .tk-funds-password-panel input{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid #315473;border-radius:10px;background:#06172a;color:#ecf5ff;padding:12px;min-height:48px;font:inherit}
body.tk-theme .tk-funds-password-panel button{min-height:48px;background:#236ce3;color:#fff;border:1px solid #5595ff;border-radius:10px;font:inherit;padding:10px 18px;cursor:pointer}
body.tk-theme .tk-funds-password-panel .ssv-funds-error{color:#ff9393}

body.tk-theme .account_verification,body.tk-theme .account_verification .pass_wrapper,body.tk-theme .account_verification .pass_container{background:#071b30!important;color:#d8e8f7!important}
body.tk-theme .account_verification{border:1px solid #315473!important;border-radius:18px!important}
body.tk-theme .account_verification .wel_title{color:#edf6ff!important;line-height:1.4!important}
body.tk-theme .tk-funds-password-panel .card{background:#0b223c!important;border:1px solid #294d70!important;padding:18px!important;border-radius:14px!important;box-sizing:border-box!important}
body.tk-theme .tk-funds-password-panel h2{color:#edf6ff!important}
body.tk-theme .tk-funds-password-panel p{color:#bfd2e6!important}

/* Wallet fields stack cleanly; quote preview always owns a full row. */
body.tk-theme .main-blance .content-body .body-inputs{display:grid!important;grid-template-columns:minmax(120px,.45fr) minmax(0,1fr)!important;align-items:center!important;gap:12px 18px!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:18px!important;box-sizing:border-box!important;border:1px solid #294d70!important;border-radius:14px!important;background:#0b223c!important;margin:14px 0!important}
body.tk-theme .main-blance .body-inputs>:is(div,label,input,select){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.tk-theme .main-blance .body-inputs>.inputs-title,body.tk-theme .main-blance .body-inputs>label{width:auto!important;height:auto!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;line-height:1.6!important;color:#c6dbf0!important}
body.tk-theme .main-blance .body-inputs>div:not(.inputs-title){display:flex!important;width:100%!important;gap:8px!important;align-items:center!important}
body.tk-theme .main-blance .body-inputs .inputs-grey,body.tk-theme .main-blance .body-inputs select{width:100%!important;min-width:0!important;max-width:100%!important;min-height:48px!important;box-sizing:border-box!important;border-radius:10px!important;line-height:1.5!important}
body.tk-theme .main-blance .body-inputs input.inputs-grey{flex:1 1 0!important}
body.tk-theme .main-blance .body-inputs .contents{width:100%!important;min-width:0!important;position:relative!important}
body.tk-theme .main-blance .body-inputs .inpust-btton{flex:0 0 70px!important;min-width:60px!important;height:auto!important;min-height:48px!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;padding:10px!important;background:#12314c!important;color:#dfedfa!important;border:1px solid #315473!important;border-radius:10px!important}
body.tk-theme .main-blance .ssv-usdt-withdraw>p{grid-column:1/-1!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;margin:0!important;padding:16px!important;box-sizing:border-box!important;white-space:pre-line!important;word-break:normal!important;overflow-wrap:break-word!important;font-size:14px!important;line-height:1.9!important;color:#bcdaf6!important;background:#06172a!important;border:1px solid #244563!important;border-radius:10px!important}
body.tk-theme .main-blance .ssv-usdt-withdraw select{background:#06172a!important;color:#e5f2ff!important;border:1px solid #315473!important;padding:12px!important;font:inherit!important}
body.tk-theme .main-blance .content-body>.withdraw-button,body.tk-theme .main-blance .content-body>button.recharge{width:100%!important;min-height:52px!important;box-sizing:border-box!important;border-radius:12px!important;line-height:1.5!important;white-space:normal!important;padding:14px 20px!important;font-size:16px!important;font-weight:600!important}
body.tk-theme .main-blance .content-body>p{font-size:14px!important;line-height:1.8!important;color:#b6cadf!important;overflow-wrap:break-word!important;margin:18px 0!important}
@media(max-width:640px){body.tk-theme .main-blance .content-body .body-inputs{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:16px!important}body.tk-theme .main-blance .body-inputs>.inputs-title,body.tk-theme .main-blance .body-inputs>label{text-align:start!important}body.tk-theme .main-blance .ssv-usdt-withdraw>*{grid-column:1!important}}
