:root{--status-bar-height:0px;--top-window-height:0px;--window-left:0px;--window-right:0px;--window-margin:0px;--window-top:0px;--window-bottom:0px}body{margin:0;background:#f5f5f5}#app{min-height:100vh}uni-navigator,uni-button,[id^=tabbar_item],.back-btn,.tnxz,.txz{cursor:pointer}.tn-tabbar__placeholder{pointer-events:none}.tn-landscape__mask{display:none!important}#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#222e;color:white;border-radius:8px;padding:12px 20px;max-width:85vw;z-index:999999;display:none;font:14px system-ui}.live-chart{position:relative;width:100%;height:390px;background:white;touch-action:pan-y}.live-chart canvas{display:block;width:100%;height:100%}.chart-status{display:flex;align-items:center;gap:8px;font:12px system-ui;color:#858995;padding:9px 14px;background:white}.chart-status button{border:0;background:#eef0ff;color:#2639f2;border-radius:4px;cursor:pointer}.chart-tip{position:absolute;top:4px;left:10px;background:#fffffff0;padding:5px;font:11px monospace;color:#666;pointer-events:none}.feed-error{color:#d94556}.local-note{font:11px system-ui;color:#969aa3;padding:8px 14px;background:#fff}.account-card{padding:24px;background:#fff;margin:14px;border-radius:13px}.account-card h2{color:#2639f2}.account-card button{padding:12px;background:#2639f2;color:#fff;border:0;border-radius:8px}.live-price{font-variant-numeric:tabular-nums}@media(max-width:600px){.live-chart{height:380px}.kline-data{justify-content:space-between}.chart-status{font-size:11px}}
/* Form pages retain the reference navy header, blue actions and rounded white fields. */
.b-page{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif;background:#f6f7fb;color:#222;height:100vh;overflow-y:auto;box-sizing:border-box;padding-bottom:80px}.b-page *{box-sizing:border-box}.b-header{height:60px;background:#071278;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:30;font-size:18px}.b-header a{color:white;text-decoration:none;font-size:26px;width:32px}.b-header .header-action{font-size:13px;width:auto}.b-content{padding:20px;max-width:900px;margin:0 auto}.b-content.wide{max-width:none}.b-card{background:white;padding:20px;border-radius:13px;margin-bottom:16px}.b-card h2,.b-card h3{font-size:16px;margin:0 0 16px}.b-balance{padding:18px;background:linear-gradient(120deg,#2639f2,#929cfb);color:#fff;border-radius:8px;margin-bottom:20px}.b-balance strong{font-size:32px;display:block;margin-top:8px}.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:18px;font-size:14px;color:#8d929e}.form-field input,.form-field select,.form-field textarea{display:block;width:100%;border:1px solid #ebedf3;background:#fff;border-radius:13px;padding:14px;font:16px inherit;color:#222;min-height:50px;outline:none}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#2639f2;box-shadow:0 0 0 2px #2639f212}.form-field input[type=file]{font-size:13px}.form-field textarea{min-height:100px;resize:vertical}.form-error{color:#d83449;font-size:13px;min-height:18px;white-space:pre-wrap}.primary,.secondary,.danger,.b-page button{font:inherit;cursor:pointer;border:0}.primary{background:#2639f2;color:white;padding:14px 22px;border-radius:9px}.primary.block{width:100%;border-radius:26px}.secondary{background:#edf0ff;color:#2639f2;padding:10px 16px;border-radius:7px}.danger{background:#fff0f1;color:#d23b4b;padding:10px 16px;border-radius:7px}button:disabled{opacity:.5;cursor:wait}.b-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.b-stack{display:flex;gap:10px;flex-wrap:wrap}.b-muted{color:#9297a3;font-size:13px;line-height:1.8}.b-title{border-left:4px solid #2639f2;padding-left:10px;font-size:16px;margin:22px 0 16px}.b-empty{text-align:center;padding:60px 20px;color:#a0a4ae}.b-nav{position:fixed;bottom:0;left:0;right:0;height:56px;display:flex;background:white;border-top:1px solid #eee;z-index:40}.b-nav a{flex:1;text-decoration:none;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:13px}.b-nav a.active{color:#2639f2}.b-list-link{display:flex;padding:15px 0;text-decoration:none;color:#222;justify-content:space-between;border-bottom:1px solid #f1f2f6}.b-list-link:last-child{border:0}.badge{display:inline-block;padding:4px 9px;border-radius:6px;background:#f0f2f7;color:#717785;font-size:12px;white-space:nowrap}.status-approved,.status-active,.status-closed{background:#e8f8ef;color:#16935a}.status-pending,.status-open{background:#fff3df;color:#b37513}.status-rejected,.status-disabled{background:#ffebef;color:#d53b55}.record{border-bottom:1px solid #eef0f5;padding:16px 0}.record:last-child{border:0}.record p{font-size:13px;color:#8b909b;line-height:1.8;margin:7px 0}.record strong{font-variant-numeric:tabular-nums}.record .details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;color:#9297a3;font-size:13px;margin:12px 0}.tabs{display:flex;background:white;padding:0 15px;margin-bottom:15px;border-bottom:1px solid #eee}.tabs button{background:none;color:#999;padding:15px 22px}.tabs button.active{color:#2639f2;border-bottom:2px solid #2639f2}.bank-card{background:linear-gradient(130deg,#2639f2,#6271fa);color:white;padding:22px;border-radius:13px;margin-bottom:18px}.bank-card .bank-number{font-size:24px;letter-spacing:3px;margin:24px 0 15px}.bank-card .badge{background:#ffffff30;color:white}.bank-card button{margin-top:14px}.auth-panel{max-width:440px;margin:35px auto}.auth-logo{width:100px;display:block;margin:20px auto 35px;background:#071278;padding:10px;border-radius:5px}.auth-links{display:flex;justify-content:space-between;font-size:14px;margin-top:20px}.auth-links a{color:#2639f2;text-decoration:none}.app-dialog{border:0;border-radius:15px;width:480px;max-width:calc(100vw - 28px);max-height:90vh;overflow:auto;padding:24px;color:#222;box-shadow:0 20px 80px #0003;font-family:system-ui}.app-dialog::backdrop{background:#07123466}.app-dialog input,.app-dialog select,.app-dialog textarea{font:inherit}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-heading h2{font-size:18px;margin:0}.dialog-heading button{border:0;background:none;color:#999;font-size:25px;cursor:pointer}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.b-notice{padding:12px 16px;background:#edf0ff;border-radius:9px;color:#4f5d95;font-size:13px;line-height:1.7;margin-bottom:18px}.announcement{background:#fff9e8;color:#9b7c32;font-size:13px;padding:10px 15px;cursor:pointer}.proof-preview{max-width:100%;max-height:180px;border-radius:8px}.chat-message{padding:12px 15px;border-radius:10px;background:#f4f5f8;margin:14px 0;line-height:1.7;white-space:pre-wrap}.chat-message.admin{background:#edf0ff;border-left:3px solid #2639f2}.local-note{overflow-wrap:anywhere}.app-dialog .form-field span{color:#8d929e}.inline-error{padding:30px;color:#b52338}.profile-name-link{cursor:pointer}.account-login{padding:30px}.account-login a{display:inline-block;margin:15px 15px 0 0;color:#2639f2}.page-footer{padding:25px;text-align:center;font-size:12px;color:#a0a5af}@media(max-width:600px){.b-content{padding:15px}.b-card{padding:16px}.app-dialog{padding:20px}.record .details{font-size:12px}.b-content .b-stack .primary{flex:1}}
/* Original order sheet: full-width bottom panel, six amount tiles, time tiles. */
dialog.order-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:96vh;margin:0;border:0;border-radius:10px 10px 0 0;padding:20px;background:#fff;box-sizing:border-box;color:#222;font-size:14px;overflow-y:auto}dialog.order-sheet::backdrop{background:#0008}.sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sheet-heading>div{display:flex;align-items:center;gap:5px}.sheet-heading strong{font-size:18px;font-weight:400}.sheet-heading button{border:0;background:none;color:#a8a9ac;font-size:14px;cursor:pointer}.sheet-direction{border-radius:10px;padding:3px 8px;color:#fff;font-size:12px;font-weight:800}.sheet-direction.long{background:#f33b50}.sheet-direction.short{background:#0bb563}.sheet-label{font-size:14px;color:#a8a9ac;margin:0 0 15px}.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;justify-content:center}.sheet-choice{height:65px;border:1px solid #f6f7fb;color:#a8a9ac;background:#f6f7fb;border-radius:12px;font-size:16px;cursor:pointer}.sheet-choice.selected{border-color:#0bb563;color:#0bb563;background:#def5ea}.sheet-choice small{font-size:14px;margin-left:3px}.sheet-amount{margin-top:16px;display:flex;align-items:center;background:#f6f7fb;border-radius:12px;height:55px;padding:0 15px;color:#a8a9ac}.sheet-amount input{border:0;outline:none;background:none;color:#222;font-size:17px;flex:1;min-width:0}.sheet-amount input::placeholder{color:#a8a9ac}.sheet-wallet{display:grid;grid-template-columns:30% 43% 27%;font-size:12px;color:#a8a9ac;margin:7px 0 25px}.sheet-wallet a{text-align:right;color:#f33b50;text-decoration:none;font-size:13px}.sheet-times{margin-bottom:15px}.sheet-totals{display:flex;justify-content:space-between;line-height:20px;margin-bottom:15px}.sheet-totals>div{text-align:center}.sheet-totals small{display:block;color:#a8a9ac;font-size:11px}.sheet-totals strong{display:block;font-size:13px;font-weight:400}.sheet-confirm{height:48px;background:#071278;color:#fff;width:100%;border:0;border-radius:4px;margin-top:10px;font-size:16px;cursor:pointer}.sheet-simulation{font-size:11px;color:#a8a9ac;margin:5px 0;line-height:1.6}.order-sheet .form-error{margin:0;min-height:0}.order-sheet .form-field{margin-top:15px}.order-sheet .form-field input{min-height:44px}.order-sheet *{box-sizing:border-box}
#app.auth-reference{height:100vh;overflow-y:auto;background:#fff}#app.auth-reference uni-app{height:auto;min-height:100vh}#app.auth-reference input{color:#222;font-size:14px}#app.auth-reference input::placeholder{color:#999}#app.auth-reference .login__info__item__button{cursor:pointer}#app.auth-reference .login__info__item__button[aria-disabled=true]{opacity:.6}.auth-globe{position:absolute;top:15px;right:15px;background:none;color:#fff;border:0;font-size:24px;cursor:pointer}.auth-language-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;padding:20px;border-radius:10px 10px 0 0}.auth-language-sheet h3{font-size:16px;margin:0 0 20px}.auth-language-sheet button{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border:0;background:none;width:100%;font-size:16px;cursor:pointer}.auth-language-sheet button span:last-child{color:#071278;font-size:22px}.auth-alert{width:300px;max-width:90vw;padding:0;border-radius:3px;text-align:center}.auth-alert h3{font-size:18px;margin:16px 12px 20px}.auth-alert p{color:#999;font-size:14px;margin:0 15px 24px;line-height:1.8}.auth-alert button{display:block;width:100%;border:0;border-top:1px solid #eee;background:white;color:#071278;padding:13px;font-size:17px;cursor:pointer}

/* Match reference full-width forms at the browser viewport. */
.b-content{max-width:none}
#app.reference-form{height:100vh;overflow:hidden;background:#f6f7fb}.reference-form uni-button{cursor:pointer}.reference-form uni-button[aria-disabled=true]{opacity:.5}.reference-form-error{padding:0 20px}.reference-simulation{font-size:11px;color:#a8a9ac;padding:10px 15px 85px;line-height:1.6}.reference-proof-file{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.reference-proof-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:8px;pointer-events:none}.reference-trade-password{display:block;width:90%;margin:18px auto;border:1px solid #eee;background:white;padding:14px;border-radius:8px;font-size:15px;box-sizing:border-box}.reference-bank-select{font-size:12px;max-width:40%;background:#fff;border:1px solid #eee;padding:6px;border-radius:4px}

.app-dialog,.app-dialog *{box-sizing:border-box}.app-dialog{overflow-x:hidden}.auth-language-sheet{max-height:96vh}

#app.reference-records{height:100vh;overflow:hidden;background:#f6f7fb}.reference-records .reference-record-list.has-records{padding:15px;box-sizing:border-box}.reference-record-list .record{background:white;padding:18px;border-radius:10px;margin:0 0 12px}.reference-record-list .record p{white-space:normal;overflow-wrap:anywhere}.reference-record-list .details{font-size:12px}.reference-record-list .b-row{gap:8px}.reference-records [role=button]{cursor:pointer}.reference-records .tn-tabs__scroll-view__item{font-size:14px!important;padding:0 6px!important;box-sizing:border-box}.reference-record-list:not(.has-records){height:100%}

.reference-records .tn-tabs__scroll-view__box{display:flex!important;width:100%}.reference-records .tn-tabs__scroll-view__item{flex:1!important;text-align:center}.reference-bank-list{padding:15px 15px 0;box-sizing:border-box}.reference-bank-list .bank-card{background:#2639f2 url('/static/payment/bank-bg.png') center/100% 100%;box-sizing:border-box}.reference-bank-list .b-row{gap:8px}.reference-records .reference-record-list .record{box-sizing:border-box}
@media(max-width:600px){}

/* Arrange the icon and wordmark from the supplied image in the header. */
uni-image:has(> img[src="/assets/zebpay-logo.jpg"]) {
  position: relative;
  width: 148px !important;
  height: 38px !important;
  flex: 0 0 148px;
  border-radius: 6px;
  background: #2170e6;
}
uni-image:has(> img[src="/assets/zebpay-logo.jpg"]) > div {
  background-image: none !important;
}
uni-image:has(> img[src="/assets/zebpay-logo.jpg"])::before,
uni-image:has(> img[src="/assets/zebpay-logo.jpg"])::after {
  position: absolute;
  content: "";
  background-image: url("/assets/zebpay-logo.jpg");
  background-repeat: no-repeat;
  pointer-events: none;
}
uni-image:has(> img[src="/assets/zebpay-logo.jpg"])::before {
  left: 7px;
  top: 7px;
  width: 34px;
  height: 25px;
  background-size: 100px 100px;
  background-position: -33px -24px;
}
uni-image:has(> img[src="/assets/zebpay-logo.jpg"])::after {
  left: 43px;
  top: 5px;
  width: 98px;
  height: 29px;
  background-size: 128px 128px;
  background-position: -16px -71px;
}
.admin-brand {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  vertical-align: middle;
}
.admin-logo .admin-brand {
  display: block;
  margin-bottom: 8px;
}
.market-recommendation-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  margin: 12px 0 6px;
}
.market-recommendation-heading > :first-child { margin: 0 !important; }
.market-recommendation-actions { display: flex; gap: 6px; }
.market-recommendation-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid #dce2f3;
  border-radius: 8px;
  background: white;
  color: #233891;
  font: 22px/1 system-ui, sans-serif;
}
.market-recommendation-actions button:disabled { opacity: .45; cursor: default; }
.market-recommendations {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.market-recommendations > uni-navigator {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0;
  padding: 12px !important;
  scroll-snap-align: start;
  font-family: system-ui, sans-serif;
}
.market-recommendations [data-market-name] {
  width: auto !important;
  height: 26px !important;
  margin-bottom: 2px !important;
  white-space: nowrap;
}
.market-recommendations canvas.sparkline,
.market-recommendations > uni-navigator > uni-image { width: 100% !important; }
.market-recommendations > uni-navigator:focus-visible {
  outline: 2px solid #2639f2;
  outline-offset: -2px;
}
@media (min-width: 400px) {
  .market-recommendations { grid-auto-columns: calc((100% - 24px) / 3); }
}
@media (min-width: 540px) {
  .market-recommendations { grid-auto-columns: calc((100% - 36px) / 4); }
}

@media (max-width: 480px) {
  .home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch !important;
  }
  .home-quick-actions > * {
    width: auto !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.site-language {
  position: fixed;
  z-index: 29500;
  top: 8px;
  right: 12px;
  min-width: 46px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #d5dafa;
  border-radius: 8px;
  background: #fff;
  color: #071278;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
.site-language-detail { top: 17px; right: 55px; }
.site-language:focus-visible { outline: 2px solid #596af6; outline-offset: 2px; }
.auth-language-sheet button[aria-pressed="true"] { color: #2639f2; font-weight: 700; }

.market-stat-label > uni-text + uni-text { margin-inline-start: 4px; }

body:has(#app) { background: #edf0f7; }
#app { max-width: 560px; margin-inline: auto; background: #f5f6fb; }
#app .tn-tabbar--fixed, #app .b-nav {
  max-width: 560px;
  margin-inline: auto;
}
.site-language { right: max(12px, calc((100vw - 560px) / 2 + 12px)); }
.site-language-detail { right: max(55px, calc((100vw - 560px) / 2 + 55px)); }
.site-language:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
.site-language::before,
.admin-language-control::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat,
    radial-gradient(ellipse at center, transparent 39%, currentColor 43% 53%, transparent 57%);
}
.deposit-page .b-back { font-size: 24px; }
.deposit-page .form-field input,
.deposit-page .form-field select,
.deposit-page .form-field textarea { font-size: 16px; }
.deposit-proof:not([hidden]) {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 8px auto;
  object-fit: contain;
  border-radius: 8px;
}
@media (min-width: 561px) {
  #app .b-nav, #app .tn-tabbar--fixed, #app .tn-custom-nav-bar--fixed,
  #app uni-view[style*="position: fixed"]:has(> uni-image > img[alt="ZebPay"]),
  #app .tn-custom-nav-bar[style*="position: fixed"] {
    left: max(0px, calc((100vw - 560px) / 2)) !important;
    right: max(0px, calc((100vw - 560px) / 2)) !important;
    width: auto !important;
    max-width: 560px;
  }
  dialog.order-sheet { max-width: 560px; margin-inline: auto; }
}

.deposit-page .b-header { justify-content: center; padding-inline: 74px; }
.deposit-page .b-header h1 { margin: 0; font-size: 17px; text-align: center; line-height: 1.25; }
.deposit-page .b-back {
  position: absolute;
  left: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: white;
}
.deposit-page .b-body { padding: 12px; }

.support-conversation { display: grid; gap: 6px; min-width: 0; }
.support-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: clamp(180px, 43dvh, 460px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border-radius: 12px;
  background: #f4f6fb;
}
.support-thread .chat-message {
  max-width: 88%;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.support-thread .chat-message small { display: block; color: #52617c; font-size: 12px; margin-bottom: 4px; }
.support-thread .outgoing { align-self: flex-end; background: #e5ebff; }
.support-thread .incoming { align-self: flex-start; background: #fff; }
.support-empty, .support-status { color: #64718b; font-size: 13px; margin: 0; }
.support-status:empty { display: none; }
.support-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.support-compose .form-field { margin: 0; }
.support-compose textarea { min-height: 54px; max-height: 120px; font-size: 16px; }
.support-compose .form-error { grid-column: 1 / -1; margin: 0; }
.support-compose .form-error:empty { display: none; }
.support-dialog { max-height: 90dvh; }
.support-thread .chat-message { flex-shrink: 0; }
.support-older { justify-self: center; }
.support-older[hidden] { display: none; }

.access-page {
 min-height: 100dvh;
 background: linear-gradient(155deg,#071278 0,#253cb3 220px,#f0f3fa 220px);
 font-family: system-ui, sans-serif;
}
.access-top {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 14px 16px;
}
.access-home { display: inline-flex; }
.access-language.site-language { position: static; }
.access-body { padding: 34px 16px; }
.access-card {
 max-width: 420px;
 margin: 0 auto;
 padding: clamp(18px,5vw,32px);
 border-radius: 20px;
 background: #fff;
 box-shadow: 0 14px 36px #10246d18;
}
.access-card h1 { margin: 0 0 24px; font-size: clamp(21px,5vw,29px); line-height: 1.25; color: #121c47; }
.access-form input { font-size: 16px; }
.access-form .form-error:empty { display: none; }
.access-alternate,.access-help { display: block; text-align: center; color: #2639ad; text-decoration: none; }
.access-alternate { margin-top: 18px; }
.access-help { margin: 20px auto 0; }
.access-form input {
 box-sizing: border-box;
 width: 100%;
 height: 50px;
}

.market-volume-label { white-space: nowrap; }

@media (max-width: 400px) {
  .kline-data:has(.market-stat-label) > uni-view:nth-child(2) {
    flex: 0 1 40%;
    min-width: 0;
  }
  .kline-data:has(.market-stat-label) > uni-view:last-child {
    flex: 1 1 60%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    align-content: center;
  }
  .kline-data:has(.market-stat-label) > uni-view:last-child > uni-view {
    width: auto !important;
    min-width: 0;
    margin-top: 0 !important;
  }
  .market-stat-label {
    min-height: 24px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 3px;
    align-content: end;
    font-size: 10px !important;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .market-stat-label > uni-text { min-width: 0; }
  .market-stat-label > uni-text + uni-text { margin-inline-start: 0; }
  .market-stat-label > uni-text:last-child { flex: 0 1 auto; }
  .kline-data:has(.market-stat-label) > uni-view:last-child > uni-view:nth-child(even) .market-stat-label {
    justify-content: flex-end;
  }
  .market-stat-label > uni-text { font-size: inherit !important; }
  .market-stat-label + uni-view { white-space: nowrap; font-size: 12px !important; }
}

@media (max-width: 400px) {
  .kline-data:has(.market-stat-label) > uni-view:nth-child(2) > uni-view > uni-view:last-child {
    gap: 4px !important;
  }
  .chart-status button { flex-shrink: 0; white-space: nowrap; }
}

#app .partner-header {
  box-sizing: border-box;
  gap: 10px;
  padding-inline: 12px 82px !important;
}
#app .partner-header > uni-image {
  flex: 0 0 100px;
  width: 100px !important;
  height: 30px !important;
}
#app .partner-header > [data-partner-title] {
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
dialog.payout-prompt {
  position: fixed;
  inset: 0;
  margin: auto;
}
#app .partner-header > uni-image::before {
  left: 5px;
  top: 6px;
  width: 24px;
  height: 18px;
  background-size: 70px 70px;
  background-position: -23px -17px;
}
#app .partner-header > uni-image::after {
  left: 30px;
  top: 5px;
  width: 68px;
  height: 21px;
  background-size: 90px 90px;
  background-position: -11px -50px;
}

.b-header:has(.business-title) {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  padding-inline: 12px;
}
.b-header .business-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .reference-form #topView > .title,
  .reference-records .tn-custom-nav-bar__bar__content uni-view[style*="display: flow-root"][style*="text-align: center"] {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 45px;
    display: grid !important;
    align-content: center;
    padding-inline: 70px;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

#app .market-page {
  height: auto !important;
  min-height: 100dvh;
}
#app .market-page #topView { z-index: 100; }
#app .market-page-body {
  height: auto !important;
  box-sizing: border-box;
  padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
}
#app .market-page-list { height: auto !important; }
#app .market-page .market-recommendations { touch-action: pan-x pan-y; }
.chart-status:empty, .local-note:empty { display: none; }

.exchange-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #07152c;
}
.exchange-banner[hidden], .exchange-banner-dots[hidden] { display: none; }
.exchange-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.exchange-banner-track::-webkit-scrollbar { display: none; }
.exchange-banner-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.exchange-banner-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exchange-banner-feature > img { object-fit: cover; }
.exchange-banner-caption {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 10px 12px 30px;
  color: white;
  background: linear-gradient(180deg, #071126e6, transparent);
  pointer-events: none;
}
.exchange-banner-caption strong {
  font: 600 clamp(13px, 3.4vw, 17px)/1.2 system-ui, sans-serif;
  text-shadow: 0 1px 4px #000b;
}
.exchange-banner-brand {
  position: relative;
  width: 100px;
  height: 28px;
  border-radius: 5px;
  background: #2170e6;
}
.exchange-banner-brand::before, .exchange-banner-brand::after {
  content: "";
  position: absolute;
  background: url("/assets/zebpay-logo.jpg") no-repeat;
}
.exchange-banner-brand::before {
  inset: 5px auto auto 5px;
  width: 24px;
  height: 18px;
  background-size: 70px 70px;
  background-position: -23px -17px;
}
.exchange-banner-brand::after {
  inset: 4px auto auto 30px;
  width: 68px;
  height: 21px;
  background-size: 90px 90px;
  background-position: -11px -50px;
}
.exchange-banner-dots {
  position: absolute;
  inset: auto 0 3px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.exchange-banner-dots button {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.exchange-banner-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 10px;
  background: #ffffff99;
  box-shadow: 0 0 0 1px #07112666;
}
.exchange-banner-dots button[aria-current="true"]::after { width: 20px; background: white; }
.exchange-banner-dots button:focus-visible { outline: 2px solid #b3d9ff; outline-offset: -3px; }

#app .market-page #topView,
#app .market-page-body,
#app .partner-header { touch-action: pan-y; }
.live-chart canvas { touch-action: pan-y; }

.payout-accounts .b-content { display: grid; gap: 16px; }
.payout-account-list { display: grid; gap: 12px; }
.payout-account {
  padding: 16px;
  border: 1px solid #dfe5f5;
  border-radius: 14px;
  background: white;
  color: #15234a;
}
.payout-account > .b-row { flex-wrap: wrap; gap: 8px 12px; }
.payout-account strong { min-width: 0; overflow-wrap: anywhere; }
.payout-account-number {
  margin-block: 14px;
  color: #182d70;
  font: 600 clamp(17px, 5vw, 24px)/1.4 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.payout-account-meta { margin-bottom: 14px; color: #596478; font-size: 13px; }
.payout-account-meta > span { min-width: 0; overflow-wrap: anywhere; }
.payout-account .secondary { min-height: 40px; background: #edf1ff; color: #2639ac; }
.payout-add { display: block; text-align: center; }
.payout-number-dialog { position: fixed; inset: 0; margin: auto; }
.payout-number-dialog h2 { margin: 0; font-size: 18px; }

.support-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-bottom: 0;
}
.support-page .b-header { flex: 0 0 60px; }
.support-page .b-content {
  width: 100%;
  flex: 1;
  display: flex;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
}
.member-support {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #dfe5f4;
  border-radius: 14px;
  overflow: hidden;
}
.member-support-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf7;
  color: #394a70;
  font-size: 13px;
  line-height: 1.5;
}
.member-support-intro p { margin: 0; overflow-wrap: anywhere; }
.member-support .support-conversation {
  flex: 1;
  grid-template-rows: auto minmax(130px, 1fr) auto auto;
  gap: 0;
}
.member-support .support-thread {
  grid-row: 2;
  height: 0;
  min-height: 100%;
  border-radius: 0;
  padding: 14px 12px;
  background: #f4f7fc;
}
.member-support .support-empty { margin: auto; }
.member-support .support-status { grid-row: 3; padding: 6px 12px; }
.member-support .support-compose {
  grid-row: 4;
  padding: 10px 12px;
  border-top: 1px solid #e8edf7;
}
.member-support .support-compose .form-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.member-support .support-compose textarea {
  min-height: 46px;
  padding: 10px 12px;
  border-color: #dce3f1;
  border-radius: 10px;
}
.member-support .support-compose button {
  min-height: 46px;
  max-width: 120px;
  padding: 8px 12px;
  font-size: 14px;
}
.member-support .support-thread .chat-message { border-radius: 12px; }
.member-support .support-thread .incoming { border: 1px solid #e6ebf5; }
.member-support .support-older { margin: 6px; }

@media (min-width: 561px) {
  #app .trade-actions {
    box-sizing: border-box;
    width: min(100%, 560px);
    left: 50%;
    transform: translateX(-50%);
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
    border-top: 1px solid #e8edf6;
  }
  #app .trade-actions > uni-button {
    box-sizing: border-box;
    flex: 1 1 0;
    width: auto !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }
}

#app .trade-actions[hidden] { display: none; }

.withdraw-account-card { box-shadow: none !important; border: 1px solid #e0e6f4; }
.withdraw-account-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 12px !important;
  border-color: #e1e7f5 !important;
  background: #f7f9fe;
}
.withdraw-account-row > uni-text {
  grid-column: 1;
  font-size: 12px !important;
  color: #5b6989;
}
.withdraw-account-row > uni-input {
  grid-column: 1;
  min-width: 0;
  width: 100% !important;
  height: 25px;
  font: 600 14px/1.35 system-ui, sans-serif !important;
  color: #192e70;
}
.withdraw-account-row .uni-input-input { color: inherit; opacity: 1; }
.withdraw-account-row .withdraw-reveal {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 40px;
  min-width: 40px;
  padding: 6px;
  color: #69748a;
  background: transparent;
  border: 0;
}
.withdraw-account-card .reference-bank-select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  min-height: 38px;
}

.member-support-intro { gap: 12px; padding: 14px; }
.member-support-intro strong { display: block; margin-bottom: 3px; color: #162a61; font-size: 15px; }
.member-support-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  object-fit: contain;
}
.member-support-announcement {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  background: #eaf0ff;
  color: #283e82;
  font-size: 12px;
  line-height: 1.5;
}
.member-support-announcement strong { flex-shrink: 0; }
.member-support-announcement p { margin: 0; max-height: 68px; overflow: auto; overflow-wrap: anywhere; }
.member-support .support-welcome { border-left: 3px solid #405bd4; }
.support-compose > .form-field { grid-column: 1; grid-row: 1; }
.support-compose > .support-send { grid-column: 2; grid-row: 1; }
.support-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.support-tools .secondary, .support-emojis summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: #edf1ff;
  color: #293fa7;
  font-size: 12px;
  cursor: pointer;
}
.support-tools [hidden] { display: none; }
.support-emojis { position: relative; }
.support-emojis summary { list-style: none; }
.support-emojis summary::-webkit-details-marker { display: none; }
.support-emojis > div {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 1;
  width: 162px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 5px;
  border: 1px solid #dce4f7;
  border-radius: 8px;
  background: white;
}
.support-emojis:not([open]) > div { display: none; }
.support-image-picker { position: relative; }
.support-image-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.support-file-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.support-message-image { display: block; width: min(100%, 180px); max-height: 160px; object-fit: contain; border-radius: 8px; }
.support-compose > .form-error { grid-row: 3; }

.market-more {
  display: block;
  margin: 12px 0 4px;
  padding: 13px;
  border: 1px solid #dfe6f8;
  border-radius: 10px;
  background: white;
  color: #253cb4;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.market-page [data-market-session] [data-market-percent] {
  background: #e8edf6 !important;
  color: #47536e !important;
}

.market-page [data-market-session] [data-market-percent] { white-space: normal; line-height: 1.2; }
.candle-summary {
  box-sizing: border-box;
  margin: 14px 12px 12px;
  padding: 14px;
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  background: white;
  color: #172750;
}
.candle-summary[hidden] { display: none; }
.candle-summary h2 { margin: 0 0 10px; font-size: 15px; }
.candle-summary dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.candle-summary dl > div { min-width: 0; padding: 8px 10px; border-radius: 7px; background: #f4f6fb; }
.candle-summary dt { margin-bottom: 3px; font-size: 12px; color: #586687; }
.candle-summary dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deposit-recipient { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; border-radius: 8px; background: #f4f6fb; }
.deposit-recipient strong { display: block; overflow-wrap: anywhere; user-select: text; }
.deposit-recipient small { color: #52617c; }
.deposit-recipient button { flex-shrink: 0; }
.bank-number-preview { display: block; margin: -5px 0 12px; color: #28395f; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.bank-number-preview:empty { display: none; }
select.site-language:not([hidden]) { display: inline-block; width: auto; max-width: 145px; padding: 5px 7px; }
.settings-language-select { max-width: 48%; min-height: 35px; border: 1px solid #dbe3f5; border-radius: 7px; background: white; color: #182951; }

.market-asset-identity {
 display: flex;
 align-items: center;
 gap: 8px;
 min-width: 0;
}
.market-asset-identity .tn-text-ellipsis-2 {
 min-width: 0;
}
.market-asset-icon {
 display: inline-grid;
 place-items: center;
 flex: 0 0 30px;
 width: 30px;
 height: 30px;
 border-radius: 50%;
 color: #fff;
 font: 700 19px/1 system-ui, sans-serif;
}
.market-asset-ticker {
 font-size: 9px;
}
@media (max-width: 360px) {
 .market-asset-identity { gap: 6px; }
 .market-asset-icon { width: 26px; height: 26px; flex-basis: 26px; }
}

.withdraw-reveal { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.withdraw-eye {
  position: relative;
  flex: 0 0 12px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 70% 70%;
  background: radial-gradient(circle, currentColor 0 1.5px, transparent 2px);
}
.withdraw-reveal[aria-pressed="true"] .withdraw-eye::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  top: 3px;
  left: -2px;
  transform: rotate(-42deg);
}
.exchange-banner.exchange-banner-anniversary { aspect-ratio: 5 / 3; }
.exchange-banner-slide > img[src$="/zebpay-anniversary.jpg"] { object-fit: contain; background: #704109; }

.withdraw-account-row .withdraw-reveal:focus-visible { outline: 2px solid #2639f2; outline-offset: 2px; }
