/* mobile */
/* Customer layout. The outer document owns vertical scrolling throughout the app. */
:root {
  --ink: #171542;
  --muted: #535872;
  --line: #d8d7ea;
  --soft: #efebff;
  --accent: #5124b7;
  --cobalt: #3443ae;
  --card-shadow: 0 2px 3px #30257608, 0 6px 18px #30257606;
  --gutter: clamp(12px, 4vw, 19px);
  --device-center: 50%;
  color: var(--ink);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
body { background: #eeedf6; }
.device {
  left: auto; width: min(100%, 450px); margin: 0 auto; min-height: 100vh;
  border-radius: 0; border-top:0;border-bottom:0;border-block: 0; background: linear-gradient(155deg,#f4f1ff 0%,#f8f8fe 58%,#f4f3fb 100%);
}

#screen { min-height: 100vh; min-height: 100svh; padding: 18px var(--gutter) max(22px,env(safe-area-inset-bottom)); }
#screen.with-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
header { min-height: 54px; margin: 0 0 20px; }
header h1 { font-size: 1.45rem; font-weight: 740; letter-spacing: -.035em; }
h2 { font-size: 1.24rem; } h3 { font-size: 1.04rem; }
.stack { gap: 14px; } .split { gap: 10px; }
.panel, .menu-list, .market, .grid-game, .table-wrap {
  border-radius: 16px; border-color: var(--line); box-shadow: var(--card-shadow);
}
.panel { padding: clamp(15px,3.9vw,20px); }
.btn { min-height: 47px; border-radius: 12px; border-color: #c9c5df; }
.btn.primary { background: linear-gradient(104deg,#6430dc 0%,#3648d2 62%,#1164b1 100%); }
.btn.primary:active { filter: brightness(.94); }
.btn.text { border-color: transparent; }
.btn:disabled, .btn.primary:disabled { background: #eae9f0; color: #63677b; border-color: #d8d6e2; }
.btn.compact { font-size: .875rem; min-height: 44px; }
.icon-btn { border-radius: 13px; background: #fff; border-color: #ccc7e3; }
.icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.field { font-size: .94rem; gap: 7px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 48px; padding: 10px 12px; border-color: #bcbcd1; border-radius: 10px; font-size: 1rem; }
.menu-item { min-height: 58px; padding: 14px 16px; }
.tag { font-size: .76rem; line-height: 1.3; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.mark {
  position: relative; width: 38px; height: 38px; border-radius: 26%; clip-path: none;
  background: linear-gradient(135deg,#6630db,#3342bd 72%,#2754b2);
}
.mark::before, .mark::after { content:""; position:absolute; inset:23% 17%; }
.mark::before { background:#fff; clip-path:polygon(0 100%,0 0,20% 0,50% 43%,80% 0,100% 0,100% 100%,77% 100%,77% 39%,50% 77%,23% 39%,23% 100%); }
.mark::after { background:#9deafa; clip-path:polygon(77% 39%,100% 7%,100% 100%,77% 100%); }
.brand { gap: 9px; font-weight: 790; letter-spacing: -.035em; font-size: 1.07rem; color: #22204d; }
.home-head { margin-bottom: 11px; }
.home-head .btn { font-variant-numeric: tabular-nums; }
.home-actions { padding: 12px; background: #ffffffdd; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--card-shadow); }
.home-actions .split + .split { margin-top: 8px; }
.home-contacts .btn { min-height: 44px; font-size: .9rem; }
.contact-chat { background: #f0f8f5; color: #175a46; border-color: #cce2d9; }
.contact-call { background: #f4f1fc; color: #48348a; border-color: #ddd6f0; }
.market-title { font-size: 1.35rem; letter-spacing: -.035em; }
#screen[data-page="home"] .home-actions + .section-title { margin: 8px 0 5px; }
.market-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.market-grid .market-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0;
  min-width: 0; padding: clamp(11px,3.4vw,17px); border-radius: 15px;
}
.market-card-head { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.market-card h3 { font-size: clamp(1.02rem,4.4vw,1.22rem); line-height: 1.16; letter-spacing: -.028em; }
.market-score { color: var(--cobalt); font-weight: 750; font-size: 1.16rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.market-hours { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 11px; padding-top: 9px; border-top: 1px solid #e6e3ef; }
.market-hours dt { font-size: .74rem; color: var(--muted); }
.market-hours dd { font-size: .85rem; font-weight: 650; margin: 0; white-space: nowrap; }
.market-card .btn { min-height: 44px; padding: 8px; }
.tabbar, .basic-nav {
  position: fixed; z-index: 2; left: var(--device-center); right: auto; bottom: 0; transform: translateX(-50%);
  width: min(100%,450px); border-radius: 0; background: #fff;
  padding: 0 4px env(safe-area-inset-bottom); min-height: 60px; box-shadow: 0 -3px 14px #29204c09;
}
.tabbar a { position: relative; font-size: .79rem; min-height: 58px; line-height: 1.15; text-align: center; min-width: 0; padding: 4px 2px; }
.tabbar a[aria-current] { box-shadow: none; color: var(--accent); }
.tabbar a[aria-current]::before { content:""; position: absolute; top:0; width:40%; height:3px; border-radius:0 0 4px 4px; background:#6033d6; }
.tabbar .icon { width:21px; height:21px; margin-bottom:5px; }
.auth-layout { min-height: calc(100vh - 46px); min-height: calc(100svh - 46px); display:flex; flex-direction:column; justify-content:space-evenly; gap:22px; }
.auth-layout > header { margin: 0; }
.login-art { display: grid; justify-items: center; gap: 12px; padding: 12px; }
.login-art .mark { width: 54px; height: 54px; margin: 0; }
.login-art h1 { font-size: 1.85rem; letter-spacing: -.045em; font-weight: 750; }
.auth-fields { padding: clamp(15px,5vw,23px); }
.auth-fields form { gap: 17px; }
.auth-fields .password-row { position: relative; display: block; }
.auth-fields .password-row .btn { position:absolute; bottom:2px; right:2px; min-height:44px; background: transparent; padding-left:11px;padding-right:11px;padding-inline: 11px; }
.auth-fields .password-row input { padding-right:68px; }
.auth-fields .btn.primary, .auth-fields .auth-switch { min-height: 50px; }
.auth-links > .auth-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
.auth-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.auth-link { display: flex; align-items: center; gap: 9px; padding: 11px; min-height: 66px; font-size: .9rem; line-height: 1.18; font-weight: 660; background: #fff; border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 13px; color: var(--ink); }
.auth-link .icon-tile { width:32px; height:32px; }
#screen[data-page="rates"] table { font-size: 1.03rem; }
#screen[data-page="rates"] tr > * { padding: 14px 18px; }
#screen[data-page="rates"] thead th { font-size:.9rem; }
#screen.with-tabs[data-page="rates"] {
  display: grid;
  grid-template-rows: auto minmax(max-content, 1fr);
  align-content: start;
}
#screen[data-page="rates"] .table-wrap { display: grid; overflow: hidden; }
#screen[data-page="rates"] thead tr { height: 48px; }
#screen[data-page="rates"] td.right { color:#30257e; font-variant-numeric:tabular-nums; }
.chart-table { min-width: 0; table-layout: fixed; }
.chart-table caption { padding: 13px 10px; font-weight: 650; color: var(--ink); }
.chart-table th:first-child { width: 20%; }
.chart-table td, .chart-table th { padding: 8px 2px; font-variant-numeric: tabular-nums; }
.chart-table thead th { font-size: .78rem; }
.chart-table tbody th { white-space:normal; }
.chart-table tbody th span, .chart-table td span { font-size:.75rem; line-height:1.35; }
.chart-table td strong { margin-top:3px;margin-bottom:3px;margin-block:3px; font-size:.94rem; }
#screen[data-page="charts"] .menu-item { min-height:clamp(58px,9vh,82px); }
.pending-market { padding: 16px; gap: 6px; }
.pending-market .result { font-size:1.23rem; }
#screen[data-page="quiz"] .radio { min-height:50px; font-size:1rem; }
#screen[data-page="quiz"] form { gap:14px; }
.value-list div { padding-top:10px;padding-bottom:10px;padding-block:10px; }
.value-list dt { font-size:.9rem; }
#screen[data-page="quiz-result"], #screen[data-page="connection"], #screen[data-page="expired"],
#screen[data-page="update"], #screen[data-page="password-help"], #screen[data-page="splash"] {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
#screen[data-page="quiz-result"] .panel, #screen[data-page="password-help"] .panel,
#screen[data-page="expired"] .panel, #screen[data-page="connection"] .panel { padding:24px 20px; }
#screen[data-page="idea"] .stack, #screen[data-page="pending-profile"] .stack,
#screen[data-page="profile"] .stack { gap: clamp(16px,3vh,26px); }
#screen[data-page="idea"] textarea { min-height: clamp(150px,31vh,300px); }
#overlay dialog { color:var(--ink); border-radius:20px; padding:20px; width:min(412px,calc(100vw - 24px)); max-height:calc(100vh - 28px); }
#overlay dialog .section-title:first-child { margin:0 0 14px; }
#overlay dialog:not(.sheet) { box-shadow:0 24px 80px #19123b38; }
#overlay dialog::backdrop { background:#1c183965; }
#overlay dialog.sheet { margin: auto auto max(8px,env(safe-area-inset-bottom)); }
@media (max-width:355px) {
  .market-grid, .split, .auth-links {gap:8px;}
  .market-hours { column-gap:6px; }
  .auth-link { padding:9px; gap:6px; }
  .home-head .brand { font-size:.91rem; }
  .chart-table tbody th span,.chart-table td span { font-size:.69rem; }
}
@media (max-height:600px) { .auth-layout { justify-content:flex-start; gap:15px; } }

/* play-mobile */
/* Customer game and history views. The same controls serve every game. */
.g-balance {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  min-height: 40px; border: 1px solid #d7cef1; border-radius: 13px;
  padding: 7px 12px; color: #492ca5; background: #f4f0ff;
  font-size: .98rem; line-height: 1.3; font-weight: 750; font-variant-numeric: tabular-nums;
}
.g-balance span { display: inline-flex; }
.g-balance .icon { width: 19px; height: 19px; }
#screen .g-context { padding: 16px; border-color: #d9d2eb; background: #faf8ff; }
.g-market, .g-market-name { display: flex; align-items: center; gap: 10px; }
.g-market { flex-wrap: wrap; justify-content: space-between; }
.g-market-name { min-width: 0; }
.g-market h2 { margin: 0; color: #21183f; line-height: 1.25; overflow-wrap: anywhere; font-size: 1.07rem; }
.g-market small { display: block; margin-top: 4px; line-height: 1.4; font-size: .83rem; color: #574d6d; }
.g-fixed-session { color: #432c7f; background: #ede6ff; border-radius: 9px; padding: 6px 9px; font-size: .85rem; font-weight: 700; }
.g-market .segments { flex: 0 0 auto; flex-wrap: nowrap; }
.g-market .segments .btn { min-height: 44px; flex: 0 0 auto; min-width: 54px; padding-left:10px;padding-right:10px;padding-inline: 10px; white-space: nowrap; }
.g-choices {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px;
}
#screen .g-choice {
  min-height: 116px; min-height: clamp(103px,14vh,128px);
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between; padding: 16px; gap: 12px; text-align: start;
  border: 1px solid #d9d4e5; border-radius: 17px; background: #fff;
  box-shadow: 0 2px 5px rgb(54 37 95 / 6%); font-weight: 720; font-size: 1rem;
}
#screen .g-choice .icon-tile {
  width: 38px; height: 38px; border: 1px solid #e4dbff; border-radius: 12px; background: #f1ebff;
}
#screen .g-choice:nth-child(even) .icon-tile { background: #eef3ff; color: #3e53ad; border-color: #dce4fb; }
#screen .g-choice:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; min-height: 80px; gap: 13px; }
#screen .g-choice:last-child:nth-child(odd) .g-chevron { top: 50%; transform: translateY(-50%); }
.g-choice .icon { width: 23px; height: 23px; }
.g-choice .g-chevron { color: #6b578d; position: absolute; right: 14px; top: 19px; font-size: 1.2rem; font-weight: 500; }
.g-entry { display: grid; gap: 17px; }
#screen .g-fields, .g-selected, .g-history-card {
  background: #fff; border: 1px solid #d7d2e5; border-radius: 17px;
  box-shadow: 0 2px 5px rgb(54 37 95 / 5%);
}
#screen .g-fields, .g-selected { padding: 16px; }
.g-fields .stack { gap: 15px; }
.g-fields .field { gap: 7px; font-size: .9rem; }
.g-number-fields { min-width: 0; }
.g-number-fields input, .g-fields input[name="bid-amount"] { font-variant-numeric: tabular-nums; }
.g-number-fields .field small { color: #5d506b; font-size: .82rem; line-height: 1.45; }
.g-direction {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; border: 0;
  padding: 0; border-radius: 0; min-width: 0;
}
.g-direction legend { padding: 0; margin: 0 0 7px; font-size: .9rem; }
.g-direction .radio { border: 1px solid #d9d3e6; padding: 8px; background: #fff; line-height: 1.4; min-height: 54px; font-weight: 600; }
.g-direction .radio.chosen { border-color: #8a70d9; background: #f4efff; color: #452b88; }
.g-direction .rc { width: 15px; height: 15px; margin: 0; }
.g-pair-fields { gap: 10px; padding-top:4px;padding-bottom:4px;padding-block: 4px; }
.g-pair-fields input:not([type=radio]) { min-height: 51px; }
.g-fields #add-bid:not(:disabled) { border-color: #997fd9; color: #513193; background: #f4efff; }
.g-edit-key { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #f4f0fb; border-radius: 11px; margin-bottom: 14px; }
.g-edit-key span { color: #514263; font-size: .88rem; }
.g-edit-key strong { color: #4d308f; overflow-wrap: anywhere; }
.g-fields .digits { gap: 7px; }
.g-fields .digits .btn { min-height: 48px; padding-left:4px;padding-right:4px;padding-inline: 4px; border-radius: 12px; }
.g-selected h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.g-selected h3 span { color: #5438a0; border-radius: 8px; background: #f1edfd; padding: 3px 8px; font-size: .83rem; }
#screen .g-selected .draft-row { padding: 8px 0; margin: 0; border: 0; border-top: 1px solid #e2dfea; border-radius: 0; background: #fff; box-shadow: none; }
#screen .g-selected .draft-row.bad { background: #fff2f4; }
.g-selected .icon-btn { min-height: 44px; min-width: 44px; }
.g-selected .draft-value { font-size: 1rem; }
.g-selected .draft-value b { display: inline-block; padding: 4px 8px; background: #f4efff; border-radius: 7px; }
#screen .g-summary { position: static; padding: 13px; border-color: #d5ccef; background: #f6f3ff; box-shadow: none; }
.g-summary .btn { min-width: 46%; }
.g-receipt { display: grid; gap: 8px; }
.g-history { display: grid; gap: 15px; }
.g-history-scope { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; font-size: .9rem; color: #4c4165; }
.g-history-scope span, .g-history-date > span:first-child { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.g-history-scope .icon, .g-history-date .icon { width: 16px; height: 16px; color: #7557ae; }
.g-history-card { overflow: hidden; padding: 0 16px 13px; }
.g-history-card:focus-visible { outline: 2px solid #6f4cc9; outline-offset: 2px; }
.g-history-date { margin: 0 -16px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #f4f1fa; border-bottom: 1px solid #e1daee; }
.g-history-date > span:first-child { color: #504260; font-size: .8rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.g-history-date .tag { flex-shrink: 0; }
.g-history-card h2 { margin: 15px 0 11px; font-size: 1.16rem; line-height: 1.4; overflow-wrap: anywhere; }
.g-history-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin: 0; }
.g-history-vals div { min-width: 0; }
.g-history-vals dt { font-size: .82rem; line-height: 1.35; color: #594e68; }
.g-history-vals dd { margin: 4px 0 0; font-size: 1.01rem; color: #211a36; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 359px) {
  .g-direction { grid-template-columns: 1fr; }
  #screen .g-choice { padding: 13px; }
  #screen .g-context, #screen .g-fields, .g-selected { padding: 12px; }
  .g-market .segments .btn { padding-left:9px;padding-right:9px;padding-inline: 9px; }
  .g-history-date { flex-wrap: wrap; }
}

/* funds-mobile */
.add-funds-body,
.withdraw-body,
.fund-records {
  display: grid;
  gap: 16px;
}

.add-funds-body .deposit-panel,
.withdraw-body .withdraw-form,
.fund-record {
  padding: clamp(14px, 4vw, 21px);
  background: white;
  border: 1px solid #d7d5e7;
  border-radius: 18px;
  box-shadow: 0 3px 10px #3230600a;
}
.deposit-balance small,
.withdraw-summary small { font-weight: 600; }
.deposit-balance strong { font-size: 1.18rem; }
.deposit-panel h2,
.record-heading h3 { font-size: 1.18rem; }
.deposit-panel form,
.withdraw-form form { gap: 15px; }
.payment-instructions { margin:6px 0 12px; color:#505772; font-size:.92rem; line-height:1.38; }
.payment-destination {
  display:grid;
  grid-template-columns:minmax(128px,40%) minmax(0,1fr);
  align-items:start;
  gap:clamp(8px,2.8vw,14px);
  margin-top:7px;
}
.receiving-list { margin:0; min-width:0; }
.receiving-row {
  min-height: 48px;
  gap: 0 2px;
  grid-template-columns:minmax(0,1fr) 44px;
  grid-template-rows:auto auto;
  align-content:center;
  padding:2px 0;
}
.receiving-row:last-child { border-bottom:1px solid var(--line); }
.receiving-row dd { grid-row:2; grid-column:1; font-size:.93rem; font-weight:650; line-height:1.28; }
.receiving-row dt { grid-column:1; grid-row:1; align-self:end; font-size:.8rem; color:#555a71; }
.receiving-row .payment-copy { grid-column:2; grid-row:1 / span 2; width:44px; min-height:44px; padding:0; }
.payment-copy .icon { width:18px; height:18px; }
.receiving-qr {
  display: grid;
  justify-items:center;
  gap:3px;
  padding:0;
  margin:0;
  border:0;
}
.receiving-qr h3 { color:#353251; font-size:.88rem; }
.receiving-qr .deposit-qr {
  width: min(100%, 155px);
  height: 145px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 7px;
  border: 1px solid #d9d4e9;
}
.receiving-qr .btn { width:min(100%,155px); min-height:44px; padding:5px; white-space:normal; font-size:.88rem; background:#f5f2ff; }
.receiving-qr > .btn:not([hidden]) { margin-inline-start:0; }
.deposit-panel > .row.between { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr); align-items:center; gap:5px; }
.deposit-panel > .row > .payment-tools { display:grid; grid-auto-flow:column; justify-content:end; align-items:center; gap:2px; margin-inline-start:0; }
.payment-tools .btn { min-width:44px; min-height:44px; padding:4px; font-size:.85rem; }
.add-funds-body + .funds-request-history { margin-top:16px; }
.deposit-panel .split { grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); }
.deposit-panel .split input { min-width: 0; width: 100%; }
.deposit-panel input[type=file] { width: 100%; min-width: 0; }
.deposit-panel input[type=file]::file-selector-button {
  min-height: 31px;
  border: 1px solid #d7ccec;
  border-radius: 6px;
  padding: 4px 9px;
  background: #f4f0ff;
  color: #43268d;
  font: inherit;
  font-weight: 650;
}
.withdraw-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.withdraw-summary .row { gap: 11px; }
.withdraw-summary > small { max-width: 9em; text-align: end; }
.withdraw-form .radio { align-items: center; min-height: 43px; }
.funds-links { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
.funds-links > :only-child { grid-column:1 / -1; }
.fund-record { min-width:0; }
.record-meta, .record-heading, .record-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.record-meta { color:#505770; font-size:.84rem; font-weight:650; }
.record-meta > span:first-child { display:inline-flex; gap:6px; align-items:center; }
.record-meta .icon { color:#6445bd; width:1em; height:1em; }
.record-heading { padding:10px 0; border-bottom:1px solid var(--line); }
.record-heading strong { color:#35208d; font-size:1.26rem; }
.fund-record .value-list { padding-top:3px; }
.fund-record .value-list > div { padding-top:6px;padding-bottom:6px;padding-block:6px; }
.fund-record .value-list dt { color:#515972; font-size:.89rem; }
.fund-record .value-list dd { font-size:.94rem; }
.record-note { margin:8px 0 0; color:#4d566c; font-size:.9rem; }
.record-actions { margin-top:12px; justify-content:flex-start; }
.record-actions .btn { min-height:44px; }
.record-actions .icon { margin-right:4px; }
.wallet-content .wallet-summary { padding-top:22px;padding-bottom:22px;padding-block:22px; }
.wallet-summary .row { gap:14px; align-items:center; }
.wallet-summary .icon-tile { width:47px; height:47px; border-radius:14px; }
.wallet-summary small { display:block; font-size:.9rem; font-weight:650; }
.wallet-summary .amount { font-size:clamp(1.9rem,8vw,2.45rem); line-height:1.2; letter-spacing:-.035em; }
.wallet-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.wallet-shortcuts .btn { min-height:56px; text-align:center; }
.wallet-ledger-heading { display:grid; gap:12px; padding-top:8px; }
.wallet-ledger-heading .segments { padding:4px; background:#eae7f6; border-radius:14px; }
.wallet-ledger-heading .segments .btn:not([aria-pressed=true]) { background:transparent!important; box-shadow:none!important; border-color:transparent; }
.fund-record.credit-record .record-heading strong { color:#186248; }
.fund-record.debit-record .record-heading strong { color:#493d74; }
.focused-fund-record { outline:2px solid #8e79c7; outline-offset:1px; scroll-margin:12px; }
.withdraw-form .saved-payee { background:linear-gradient(135deg,#faf8ff,#f4f3ff); border-color:#d6cde7; padding:13px; }
.saved-payee h3 { font-size:1rem; }
.saved-payee .value-list { margin-top:6px; }
.editing-payee .field { font-size:.9rem; }
.funds-receipt .fund-record > .record-heading { padding-top:16px;padding-bottom:16px;padding-block:16px; }
.funds-receipt .record-heading strong { font-size:1.55rem; }
.funds-receipt .record-note { padding:10px 12px; background:#f3f1fc; border-radius:9px; }
.funds-receipt { display:flex; flex-direction:column; min-height:clamp(425px, calc(90vh - 96px), 660px); }
.funds-receipt .fund-record { flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.funds-receipt .value-list > div { padding-top:clamp(7px,1.35vh,13px);padding-bottom:clamp(7px,1.35vh,13px);padding-block:clamp(7px,1.35vh,13px); }
.funds-receipt > .btn { min-height:51px; }
.payment-destination.single-destination { grid-template-columns:minmax(0,1fr); }
.single-destination .receiving-qr { justify-content:center; }
.single-destination .receiving-qr img { max-width:155px; width:100%; }
.single-destination .receiving-list .receiving-row { grid-template-columns:minmax(65px,auto) minmax(0,1fr) 44px; grid-template-rows:auto; align-items:center; }
.single-destination .receiving-list dd { grid-column:2; grid-row:1; }
.single-destination .receiving-list dt { align-self:center; }
.single-destination .receiving-list .payment-copy { grid-column:3; grid-row:1; }
@media (min-width:356px) and (max-height:800px) {
  .add-funds-body { gap:12px; }
  .add-funds-body .deposit-panel { padding-top:13px;padding-bottom:13px;padding-block:13px; }
  .deposit-panel form { gap:11px; }
  .receiving-row { min-height:44px; padding:0; }
  .receiving-qr .deposit-qr { width:min(100%,138px); height:132px; }
}
@media (min-width:356px) and (max-width:375px) and (max-height:800px) {
  #screen[data-page="add-funds"] { padding-top:12px; }
  #screen[data-page="add-funds"] header { margin-bottom:12px; }
  .add-funds-body .deposit-panel { padding:11px 12px; }
  .payment-instructions { margin-bottom:7px; }
}
@media (max-width:355px) {
  .add-funds-body .deposit-panel,
  .withdraw-body .withdraw-form,
  .fund-record { padding:12px; }
  .payment-destination { grid-template-columns:minmax(0,1fr); }
  .receiving-qr { grid-template-columns:138px minmax(0,1fr); grid-template-rows:auto 1fr; gap:5px 12px; align-items:center; margin:3px auto 8px; }
  .receiving-qr .deposit-qr { grid-column:1; grid-row:1 / span 2; }
  .receiving-qr h3 { align-self:end; margin-top:16px; }
  .receiving-qr .btn { grid-row:2; grid-column:2; align-self:start; }
  .deposit-panel .split { grid-template-columns: minmax(0,1fr); }
  .withdraw-summary > small { max-width:none; text-align:start; }
}

/* account-mobile */

.account-body {align-content:start;}
.panel.account-card {
  padding:20px;
  background:linear-gradient(120deg,#ede9ff,#f1f5ff 68%,#e6f6fd);
  border:1px solid #d2c9ef;
}
.account-identity {display:grid;align-items:center;grid-template-columns:46px minmax(0,1fr) auto;gap:14px 12px;}
.account-identity>.icon-tile {width:46px;height:46px;border:1px solid #cec0fb;border-radius:14px;background:#faf8ff;font-size:20px;}
.account-name {min-width:0;grid-column:2 / -1;}
.account-name h2 {font-size:1.45rem;line-height:1.18;overflow-wrap:anywhere;}
.account-name small,.member-ref {font-variant-numeric:tabular-nums;}
.member-ref {grid-column:1 / 3;display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:.88rem;color:var(--muted);overflow-wrap:anywhere;}
.account-edit {max-width:140px;}
.account-list .menu-item {min-height:54px;padding:13px 16px;line-height:1.3;font-size:1rem;}
.account-list .chevron {padding-left:4px;}
.account-exit {display:grid;gap:10px;}
.account-exit .btn {min-height:49px;}
.account-exit p {font-size:.79rem;}
.support-body,.password-body {max-width:100%;}
.support-body {padding-top:16px;padding-bottom:20px;padding-block:16px 20px;}
.support-body>.panel.info {padding:18px 20px;}
.support-body>.panel.info h3 {font-size:1.08rem;margin-bottom:4px;}
.support-body>.panel.info p {line-height:1.55;}
.panel.support-card {padding:20px;border-radius:18px;}
.support-heading {display:flex;align-items:center;gap:12px;margin-bottom:22px;}
.support-heading>.icon-tile {width:44px;height:44px;border-radius:13px;background:#efeaff;}
.support-heading h2 {font-size:1.28rem;}
.support-channels {display:grid;gap:12px;}
.btn.support-channel {display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:13px;align-items:center;padding:10px 14px;min-height:64px;text-align:left;background:#fff;color:var(--ink);}
.support-channel .channel-icon {display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f2edff;color:var(--accent);font-size:1.04rem;}
.alert-title {display:block;line-height:1.4;}
.panel.alert-article {padding:22px;display:grid;gap:14px;}
.alert-heading {display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;}
.alert-article h2 {font-size:1.38rem;line-height:1.24;overflow-wrap:anywhere;}
.alert-article p {padding-top:14px;border-top:1px solid var(--line);line-height:1.65;white-space:pre-line;overflow-wrap:anywhere;}
.account-profile .field small {font-weight:500;line-height:1.45;}
.account-profile .icon-btn {align-self:end;}
.account-profile form .btn.primary,.password-body form .btn.primary {margin-top:3px;min-height:51px;}
.account-profile input[readonly] {border-style:dashed;}
.recovery-body {gap:16px;}
.recovery-body>.panel {padding:19px;}
.recovery-body .recovered-request h2 {margin-bottom:14px;}
#screen[data-page="profile"],#screen[data-page="pending-profile"],#screen[data-page="language"],#screen[data-page="login-language"],
#screen[data-page="password"],#screen[data-page="support"],#screen[data-page="auth-support"],#screen[data-page="alert"] {display:flex;flex-direction:column;}
.password-body,.support-body,#screen[data-page="profile"]>section,#screen[data-page="pending-profile"]>section,
#screen[data-page="language"]>form,#screen[data-page="login-language"]>form,#screen[data-page="alert"]>.panel {margin-top:auto;margin-bottom:auto;margin-block:auto;}
.password-body .panel,#screen[data-page="profile"]>.panel,#screen[data-page="pending-profile"]>.panel {padding:20px;}
.password-body form,#screen form[data-submit="saveProfile"] {gap:17px;}
.password-body .password-row {align-items:end;}
.password-body .btn.text {border:1px solid var(--line);background:#f8f5ff;}
.locale-box {padding:13px;background:#fff;}
.locale-box legend {color:var(--ink);font-size:1.05rem;}
.locale-box .split {gap:9px;}
.locale-box .radio {min-height:53px;padding:10px;background:#faf9ff;border:1px solid var(--line);cursor:pointer;}
.locale-box .radio:has(input:checked) {background:#f0eaff;border-color:#a896f0;color:#4118a4;font-weight:740;}
.locale-box input:checked+span {color:#4118a4;font-weight:740;}
.locale-box .radio span {overflow-wrap:anywhere;line-height:1.5;}
#screen form .form-error:not([hidden]) {border:1px solid #efb6ca;color:#791f42;background:#fff1f6;line-height:1.5;}
#screen form[data-submit="saveLanguage"] {gap:18px;}
@media (min-height:800px) {
  .account-body {gap:20px;}
  .account-list .menu-item {min-height:61px;}
  .support-channels {gap:15px;}
  .btn.support-channel {min-height:clamp(72px,10vh,88px);}
}
@media (max-width:350px) {
  .panel.account-card,.panel.support-card {padding:16px;}
  .account-identity {gap:13px 8px;}
  .account-list .menu-item {padding-left:13px;padding-right:13px;padding-inline:13px;}
}
@media (max-height:650px) {
  .support-body {padding-top:8px;}
  .account-body {gap:12px;}
}

/* whole-app */
.pending-board { display:grid; gap:16px; padding-bottom:8px; }
.pending-board .pending-market {
  padding:clamp(16px,4vw,21px); gap:14px; margin:0; border-left:3px solid #8971d5;border-inline-start:3px solid #8971d5;
}
.pending-board .pending-1 {border-left-color:#6692c6;border-inline-start-color:#6692c6;}
.pending-board .pending-2 {border-left-color:#7387b2;border-inline-start-color:#7387b2;}
.pending-heading {display:grid; gap:6px;}
.pending-heading h3 {font-size:1.12rem; letter-spacing:-.015em;}
.pending-heading .result {font-size:1.32rem;}
.market-clock {display:flex; align-items:center; gap:7px; color:var(--muted);font-size:.86rem;}
.market-clock .icon {color:#62509e;}
.pending-market .split {border-top:1px solid #e3deef; padding-top:12px;}
.pending-market .btn {min-height:46px;}
.market-sheet {display:grid; gap:16px; margin:auto 0;}
#screen[data-page="market"],#screen[data-page="idea"],#screen[data-page="quiz"] {
  display:flex; flex-direction:column;
}
.market-detail-panel {min-width:0;}
.market-detail-panel h2 {font-size:1.23rem;}
.detail-score {margin:18px 0; color:#3f369b; font-size:clamp(1.45rem,7vw,2.1rem);font-weight:750;font-variant-numeric:tabular-nums;}
.detail-hours {margin:0; display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #ded8ed; padding-top:15px;}
.detail-hours div+div {border-left:1px solid #ded8ed;border-inline-start:1px solid #ded8ed; padding-left:18px;padding-inline-start:18px;}
.detail-hours dt {display:flex; align-items:center; gap:5px; font-size:.85rem; color:var(--muted);}
.detail-hours dd {margin:5px 0 0;font-size:1.08rem;font-weight:680;}
.system-actions {display:grid;gap:10px;}
.g-history-vals {padding-bottom:5px;}
.btn.contact-chat, .btn.contact-call {gap:8px;align-items:center;justify-content:center;}
.btn.contact-chat .icon,.btn.contact-call .icon {width:21px;height:21px;}
.support-channel[data-value="WhatsApp"] .channel-icon {
  color:#176445; background:linear-gradient(145deg,#f9fffc,#d6f1e5);border-color:#bcdccf;
}
.support-channel[data-value="WhatsApp"] svg {display:block;width:23px;height:23px;}
.pay-chat {width:100%;min-height:44px;margin-top:9px;}
.g-history-date,.record-meta {background:linear-gradient(115deg,#ebe6fc,#eef2fd);color:#423660;}
.g-history-card h2,.record-heading h3 {color:#27204a;}
.segments .btn[aria-pressed="true"],.tabbar a[aria-current="page"] {font-weight:740;}
#screen .panel.info,#screen .panel.warn,#screen .panel.green,#screen .panel.bad {
  border-left-width:3px;border-inline-start-width:3px;
}
#screen .panel.info {border-left-color:#86a4d0;border-inline-start-color:#86a4d0;}
#screen .panel.warn {border-left-color:#cd984f;border-inline-start-color:#cd984f;}
#screen .panel.green {border-left-color:#73a78c;border-inline-start-color:#73a78c;}
#screen .panel.bad {border-left-color:#c67c92;border-inline-start-color:#c67c92;}
.chart-directory .icon-tile {width:33px; height:33px; margin-right:9px; margin-inline-end:9px;}
.chart-directory .menu-item {gap:12px;}
.chart-directory .menu-item:nth-child(even) .icon-tile {background:linear-gradient(135deg,#f4f7ff,#dae8fa);color:#3c569b;}
.panel.message-card {display:flex; align-items:flex-start; gap:16px; padding:22px 18px; border-radius:17px;}
.message-card .icon-tile {width:44px;height:44px;border-radius:13px;}
.message-card h2 {margin:1px 0;line-height:1.28;font-size:1.19rem;}
.message-card p {margin:7px 0 0;line-height:1.5;color:var(--muted);}
.message-card.warn .icon-tile {color:#815722;background:linear-gradient(135deg,#fff,#fff0cf);border-color:#ead7af;}
.native-offline {display:grid;gap:16px;}
.quiz-question, .idea-sheet {margin-top:auto;margin-bottom:auto;margin-block:auto;}
#screen .quiz-question {padding:clamp(17px,5vw,23px);}
.quiz-question form {gap:13px;}
.quiz-meter {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px;}
.quiz-meter small {font-size:.86rem;font-weight:660;}
.quiz-meter .timer {font-size:.86rem; min-height:36px; padding:6px 9px; font-variant-numeric:tabular-nums;}
.quiz-progress {border:0; display:block; appearance:none; height:5px;width:100%; border-radius:8px; background:#eae7f1;}
.quiz-progress::-webkit-progress-bar {border-radius:8px;background:#eae7f1;}
.quiz-progress::-webkit-progress-value {background:linear-gradient(95deg,#7a4ccc,#4677bd);border-radius:8px;}
.quiz-question h2 {margin:6px 0;font-size:1.32rem;line-height:1.35;}
#screen .quiz-question .radio {background:#fbfaff; border:1px solid #d8d3e8; border-radius:12px; padding:10px 13px; gap:10px;}
#screen .quiz-question .radio:has(:checked) {background:#eee9fe; border-color:#9981ce; color:#372775; font-weight:650;}
.quiz-result-card {text-align:center;}
.quiz-score {display:flex;flex-direction:column;align-items:center;gap:16px;}
.quiz-score .icon-tile {width:48px;height:48px;border-radius:16px;}
.quiz-score strong {font-size:2.65rem;line-height:1.1;font-variant-numeric:tabular-nums;color:#4f30a5;}
.quiz-score strong small {font-size:1.23rem;}
.quiz-result-card p {margin-top:10px;}
.idea-sheet textarea {font-weight:450;line-height:1.5;}
#screen[data-page="bid-recovery"],#screen[data-page="recovery"] {display:flex;flex-direction:column;}
.recovery-body {margin-top:auto;margin-bottom:auto;margin-block:auto;gap:14px;}
.recovery-body .value-list div {padding-top:13px;padding-bottom:13px;padding-block:13px;}
.recovery-body .panel.warn,.recovery-body .panel.bad,.recovery-body .panel.green {border-left-width:3px;border-inline-start-width:3px;}
.recovery-body .panel h3 {margin-bottom:5px;}
#screen[data-page="bid-recovery"] > .panel + .btn { margin-top:12px; }
.recovery-body .muted {line-height:1.5;font-size:.92rem;}
#screen .form-error {border:1px solid #eac2d2; border-left:3px solid #ac446b;border-inline-start:3px solid #ac446b; padding:10px 12px; font-size:.88rem;}
#screen [aria-invalid="true"] {outline:1px solid #bb6783;outline-offset:0;}
#overlay .sheet .stack {gap:14px;}
#overlay dialog .section-title .btn, #overlay dialog .section-title .icon-btn {min-width:44px;}
#toast:not(:empty) {max-width:min(92vw,410px);width:max-content;line-height:1.35;text-align:center;}
#screen.with-empty {display:flex;flex-direction:column;}
#screen.with-empty .empty-card {
  margin-top:auto;margin-bottom:auto;margin-block:auto; min-height:clamp(128px,24vh,190px); display:flex; flex-direction:column;
  align-items:center;justify-content:center;gap:12px;text-align:center;padding:19px;
  background:radial-gradient(ellipse at 50% 0%,#eceafa77,transparent 62%),#fff;
}
#screen.with-empty .empty-card p {max-width:30ch;}
@media (max-height:620px) {
  .quiz-question,.idea-sheet,.market-sheet,.recovery-body {margin-top:0;margin-bottom:0;margin-block:0;}
}

/* finish */
/* The same ink and selection colour travel through every flow. A page tint groups
   related controls; green, amber and rose are reserved for outcomes. */
:root {
  --ink: #191636;
  --muted: #504963;
  --line: #bcb4d4;
  --accent: #4d299f;
  --cobalt: #293d89;
  --soft: #e5dcfa;
  --paper: #f5f1fb;
  --wash: #e7dff9;
  --pale: #f5f0fc;
  --rim: #b4a4d2;
  --deep: #3c2675;
  --band: #352660;
  --band-end: #53448e;
  --lift: inset 0 1px 0 #ffffffc7, 0 1px 0 #81739e47, 0 4px 10px #29204e10;
}
#screen,#overlay {
  --face: radial-gradient(ellipse 95% 48px at 20% -30px,#ffffffd4,transparent),
          linear-gradient(126deg,var(--pale),var(--wash));
}
#screen[data-page="home"] ,
#screen[data-page="charts"] ,
#screen[data-page="chart"] ,
#screen[data-page="rates"] ,
#screen[data-page="market"] {
  --wash:#dce8fb; --pale:#f1f5ff; --rim:#a6b8d6; --deep:#293e78;
  --band:#30245e; --band-end:#315484;
}
#screen[data-page="wallet"] ,
#screen[data-page="add-funds"] ,
#screen[data-page="deposits"] ,
#screen[data-page="withdraw"] ,
#screen[data-page="withdrawals"] ,
#screen[data-page="withdrawal-receipt"] ,
#screen[data-page="recovery"] {
  --wash:#d6eae9; --pale:#eff8f8; --rim:#a2bfc3; --deep:#225461;
  --band:#293459; --band-end:#285b6a;
}
#screen[data-page="bids"] ,
#screen[data-page="wins"] {
  --wash:#dfe5fa; --pale:#f2f4ff; --rim:#afb7d6; --deep:#354472;
  --band:#302956; --band-end:#45558b;
}
.device {
  background: radial-gradient(ellipse 100% 420px at 2% 0%,#d6cef2,transparent),
              linear-gradient(150deg,#e1eaf7,#eeebf6 55%,#e8e5f2);
}
#screen, #overlay {color:var(--ink);}
#screen header {
  color:#fff; padding:8px 12px; border:1px solid #45386e; border-radius:17px;
  background:radial-gradient(ellipse 74% 76px at 14% -44px,#c4a1fbbf,transparent),
             linear-gradient(110deg,var(--band),var(--band-end));
  box-shadow:inset 0 1px #ffffff3b,0 3px 8px #25194226;
}
#screen header h1 {color:#fff; font-weight:760; line-height:1.22; letter-spacing:-.025em; overflow-wrap:anywhere;}
#screen header .brand, #screen header .deposit-balance strong {color:#fff;}
#screen header .deposit-balance small {color:#daedf0;}
#screen header .icon-btn ,
#screen header .btn ,
#screen header .g-balance {
  color:#fff; border:1px solid #ffffff64; background:#ffffff13;
  box-shadow:inset 0 1px #ffffff1c;
}
#screen header .icon-btn {width:44px; height:44px; border-radius:12px;}
#screen .home-head {padding-top:5px;padding-bottom:5px;padding-block:5px;}
.mark {
  background:linear-gradient(140deg,#9168ec,#5941bb 56%,#26688d);
  box-shadow:inset 0 1px #eee3ffbd,inset 0 -1px #453390,0 2px 6px #21154224;
}
.login-art {
  color:#fff; border-radius:23px; border:1px solid #4a397a; padding:clamp(16px,3.4vh,32px) 12px;
  background:radial-gradient(ellipse at 10% -100%,#ab88ed,transparent 72%),linear-gradient(118deg,#443274,#294777);
  box-shadow:var(--lift);
}
.login-art h1 {color:#fff; margin:0; font-weight:770;}
#screen h2,
#screen h3,#overlay h2 ,#overlay h3 {font-weight:750; line-height:1.28;}
#screen .field,#overlay .field {font-size:.97rem; font-weight:700; line-height:1.4;}
#screen small,#overlay small {line-height:1.4;}
#screen .muted {color:var(--muted);}
.btn,.icon-btn,.auth-link,.menu-item {font-weight:700;}
.icon {stroke-width:1.9;}
.icon-tile,.channel-icon {
  background:#dfd6f6; color:#453076; border:1px solid #b9a7d8; box-shadow:inset 0 1px #ffffffe0;
}
.btn:not(.primary):not(.danger):not(.text):not(:disabled),.icon-btn:not(.danger):not(:disabled) {
  color:var(--deep); border-color:var(--rim);
  background:linear-gradient(155deg,var(--pale),var(--wash)); box-shadow:inset 0 1px #ffffffc9,0 1px 2px #40335114;
}
.btn.primary:not(:disabled) {
  color:#fff; border-color:#5842a7;
  background:radial-gradient(ellipse 80% 28px at 18% -16px,#e5d6ffa6,transparent),
             linear-gradient(105deg,#6537bc,#4d41b2 50%,#276498);
  box-shadow:inset 0 1px #e6ddff8f,inset 0 -1px #2e316d52,0 2px 4px #32216829;
}
.btn.primary:not(:disabled):active {box-shadow:inset 0 2px 4px #28215654;}
.btn:disabled {box-shadow:none;}
#screen input:not([type=radio]):not([type=checkbox]),
#screen select,
#screen textarea,#overlay input:not([type=radio]):not([type=checkbox]) ,#overlay select ,#overlay textarea {
  background-color:#fcfcff; color:#232237; border-color:#a39cb8;
  box-shadow:inset 0 1px 2px #27214713;
}
#screen input::placeholder ,
#screen textarea::placeholder {color:#6a6777;}
.panel:not(.warn):not(.bad):not(.green):not(.info),.home-actions,.menu-list,.table-wrap,.g-history-card,.fund-record,
#screen .g-fields,#screen .g-selected, #screen .g-choice,.auth-links .auth-link {
  background:var(--face); border-color:var(--rim); box-shadow:var(--lift);
}
.panel.tint, #screen .panel.g-context, #screen .panel.account-card {
  background:linear-gradient(108deg,var(--wash),var(--pale)); border-color:var(--rim); box-shadow:var(--lift);
}
#screen.with-empty .empty-card {background:var(--face);}
#screen .panel.green,#screen .panel.warn,#screen .panel.bad,#screen .panel.info {
  border-left-width:4px;border-inline-start-width:4px; box-shadow:inset 0 1px #ffffff9c;
}
#screen .panel.green {border-left-color:#40856a;border-inline-start-color:#40856a;background:#def1e6;}
#screen .panel.warn {border-left-color:#b3813e;border-inline-start-color:#b3813e;background:#faebd3;}
#screen .panel.bad {border-left-color:#b0627c;border-inline-start-color:#b0627c;background:#f8e1e8;}
#screen .panel.info {border-left-color:#6085b6;border-inline-start-color:#6085b6;background:#dfeafb;}
.tag {font-size:.8rem; font-weight:740; background:#e1dfea;color:#3c3654; box-shadow:inset 0 0 0 1px #35265422;}
.tag.green {background:#d1eddd;color:#164e37;}
.tag.warn {background:#ffe8be;color:#694012;}
.tag.bad {background:#f8dbe5;color:#7b2444;}
.section-symbol {
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center;
  gap:9px; min-width:0; overflow-wrap:anywhere;
}
.section-symbol .icon-tile {width:29px;height:29px;border-radius:9px;}
.section-symbol .icon {width:18px;height:18px;}
.section-title h1,.section-title h2,.section-symbol h2 {letter-spacing:-.024em;}
.market-title {display:flex;align-items:center;gap:8px;}
.market-title::before {content:"";width:4px;height:.9em;border-radius:2px;background:linear-gradient(#8253be,#5082b3);}
/* Markets keep their two-column footprint. Use a stronger top edge and give
   the results their own line, without taking a row away from the first view. */
.home-actions {background:linear-gradient(110deg,#ddd7ef,#d9e6f1); border-color:#b4aec9;}
.market-grid .market-card,.pending-board .pending-market {
  background:linear-gradient(135deg,#eee9fa,#e2daf6); border-color:#b4a2cf;
  box-shadow:inset 0 3px #8d72bd,var(--lift);
}
.market-grid .market-card:nth-child(even),.pending-board .pending-market:nth-child(even) {
  background:linear-gradient(135deg,#eaf1fc,#d7e5f7); border-color:#a6b7d2;
  box-shadow:inset 0 3px #698bb7,var(--lift);
}
.market-card .tag {display:inline-flex;align-items:center;gap:5px;}
.market-card .tag::before {content:"";width:6px;height:6px;border-radius:50%;background:currentColor;}
.market-grid .market-card {gap:6px;}
.market-card-head {gap:8px;}
.market-card h3 {font-weight:760;line-height:1.2;}
.market-score {color:#36266e; font-weight:780; letter-spacing:.015em;}
.market-hours {border-top-color:#b5aaca; gap:4px 9px;}
.market-hours dt {color:#524867;font-size:.79rem;font-weight:630;}
.market-hours dd {font-size:.9rem; font-weight:720;}
#screen .home-contacts .contact-chat,#screen .support-channel[data-value="WhatsApp"],#screen .pay-chat {
  color:#15563e;background:linear-gradient(110deg,#ddf1e8,#cfebde);border-color:#93b9a9;
}
#screen .home-contacts .contact-call {color:#4b327c;background:#e9def6;border-color:#b6a2cb;}
.auth-links .auth-link {min-height:72px;background:linear-gradient(112deg,#ece3fa,#ded3f2);border-color:#baa9d4;}
.auth-links .auth-link:nth-child(even) {background:linear-gradient(112deg,#e9f0fc,#d5e5f7);border-color:#a7b9d2;}
.auth-link .icon-tile,#screen .support-channel .channel-icon {color:#4b327c;background:#f8f5ff;border-color:#bbaad7;}
.auth-link {font-size:.95rem;line-height:1.32;}
#screen .menu-item {font-size:1.02rem; min-height:60px;border-bottom-color:var(--rim);}
#screen .menu-item:nth-child(even) {background:#ffffff3d;}
#screen .btn.support-channel {color:var(--deep); min-height:clamp(68px,10vh,88px);}
#screen .support-channel[data-value="WhatsApp"] .channel-icon {color:#15563e;background:#eaf8f0;border-color:#a8ccba;}
#screen .support-channel[data-value="WhatsApp"] svg {width:23px;height:23px;}
#screen .contact-chat .icon, #screen .contact-call .icon {width:21px;height:21px;}
#screen .auth-fields,.password-body .panel {background:linear-gradient(135deg,#eee8f9,#e2daef);}
.locale-box {background:#e9e0f5;border-color:var(--rim);}
.locale-box .radio,#screen .quiz-question .radio,.g-direction .radio {background:#f5f1fc;border-color:#b8a9d0;}
.locale-box .radio.chosen,#screen .quiz-question .radio.chosen,.g-direction .radio.chosen {
  color:#39226e; background:#dcd0f3; border-color:#8465b1; box-shadow:inset 3px 0 #7652a4; font-weight:700;
}
/* Entry controls have separate materials for input, selection and review. */
#screen .g-fields {background:linear-gradient(138deg,#eeebfa,#dfd6f3);border-color:#ae9bca;}
#screen .g-selected {background:linear-gradient(140deg,#eaf2fc,#d9e6f6);border-color:#9fb4cf;}
#screen .g-fields .digits .btn {
  min-height:54px; font-size:1.25rem; font-weight:780; font-variant-numeric:tabular-nums;
}
#screen .g-fields .digits .btn[aria-pressed=false]:enabled {
  color:#3a2a6a; border:1px solid #a291bd;
  background:linear-gradient(155deg,#f6f2ff,#d8cdf0);
  box-shadow:inset 0 1px #fff,0 2px 0 #9683b2;
}
#screen .g-fields .digits .btn[aria-pressed=true]:enabled {
  color:#fff;border-color:#4a378a;background:linear-gradient(145deg,#6243ac,#3e3d87);
  box-shadow:inset 0 0 0 2px #ddd2ff,0 2px 0 #4b3e72;
}
.g-fields .digits {gap:9px;}
#screen .g-fields .g-number-fields input:not([type=radio]) {border-color:#9281b0; border-left:3px solid #8167a7;border-inline-start:3px solid #8167a7;}
#screen .g-fields input[name="bid-amount"] {border-color:#90a5b1;border-left:3px solid #527d90;border-inline-start:3px solid #527d90;background:#f1f8fb;}
#screen .g-fields .digits .btn:nth-child(n+6)[aria-pressed=false]:enabled {
  color:#293e6b; border-color:#92a7c2; background:linear-gradient(145deg,#edf5ff,#ccdef5);
  box-shadow:inset 0 1px #fff,0 2px 0 #839ab7;
}
.g-fields .g-number-fields input,.g-fields input[name="bid-amount"] {font-size:1.1rem;font-weight:680;}
.g-selected .draft-value b {background:#d1ddf1;color:#263c6e;}
#screen .g-selected .draft-row:not(.bad) {background:transparent;border-top-color:#aebed4;}
#screen .g-summary {background:#dcd5ee;border-color:#aa99c4;padding:14px;}
#screen .g-choice {color:#382653;background:linear-gradient(135deg,#eee5fa,#dbcef0);border-color:#b5a0ca; font-size:1.09rem;}
#screen .g-choice:nth-child(even) {color:#293b67;background:linear-gradient(135deg,#e6effc,#d2e1f7);border-color:#9fb3d0;}
#screen .g-choice .icon-tile {width:43px;height:43px;color:inherit;background:#ffffff8f;border-color:#ac98c3;}
#screen .g-choice:nth-child(even) .icon-tile {border-color:#9eafc8;}
#screen .g-choice .g-chevron {color:inherit;font-weight:660;}
.g-history-date,.record-meta {
  background:linear-gradient(110deg,#d9d1ec,#d4e1f3);border-bottom:1px solid #afa7c7;
  color:#38324e;font-weight:670;
}
.g-history-date>span:first-child,.record-meta>span:first-child {font-size:.88rem;font-weight:650;color:inherit;}
.g-history-vals {gap:0 14px;}
.g-history-vals div {padding:8px 0;border-top:1px solid #b9bad1;}
.g-history-vals dt,.fund-record .value-list dt {color:#514b64;font-weight:610;font-size:.9rem;}
.g-history-vals dd {font-size:1.07rem;}
.fund-record .record-meta {margin:-1px 0 8px;padding:7px 9px;border-radius:9px;background:#d4e6e7;border:1px solid #abc7c8;}
.fund-record .value-list>div {padding-top:9px;padding-bottom:9px;padding-block:9px;border-color:#b0c3c9;}
.fund-record .record-heading {border-bottom-color:#a9bfc4;}
.wallet-content .wallet-summary,#screen .withdraw-summary,.add-funds-body .deposit-panel:first-child {
  background:linear-gradient(115deg,#e9f5f2,#d3e8e6);border-color:#a0bfc1;
}
#screen .add-funds-body .deposit-panel:nth-child(2),#screen .withdraw-body .withdraw-form {
  background:linear-gradient(135deg,#f0ebfa,#e0daf2);border-color:#b4a6c8;
}
.receiving-row,.receiving-row:last-child {border-color:#aac3c6;}
.receiving-row dt {font-size:.84rem;font-weight:650;color:#364f59;}
.receiving-row dd {font-size:.98rem;line-height:1.3;color:#243967;}
#screen .receiving-qr .deposit-qr {margin:0;background:#fff;border-color:#99b1b7;object-fit:contain;}
.table-wrap thead th,.chart-table caption {background:#d7e1f3;color:#263554;font-weight:720;}
#screen[data-page="rates"] tbody tr:nth-child(odd),.chart-table tr:nth-child(odd) td {background:#e6edf9;}
#screen[data-page="rates"] tbody tr:nth-child(even),.chart-table tr:nth-child(even) td {background:#f2f0fa;}
#screen[data-page="rates"] tbody td {font-weight:620;border-color:#b7bfd2;}
#screen[data-page="rates"] tbody td.right {font-weight:770;color:#353071;font-size:1.16rem;}
.chart-table tbody th {background:#dbdaee;}
.chart-table td strong {background:#d9cef2;color:#412972;border:1px solid #bfafda;}
.tabbar {background:#e9e6f3;border-top:1px solid #b1a8c6;box-shadow:0 -2px 9px #30244915;}
.tabbar a {color:#4f4b65;font-weight:670;}
.tabbar a[aria-current="page"] {background:#dcd3f1;color:#3e266e;font-weight:760;}
.tabbar a[aria-current="page"]::before {background:#6a489e;}
#overlay dialog {background:linear-gradient(145deg,#f1ecf8,#e3def0);border-color:#a89abb;box-shadow:0 20px 65px #221d3f52;}
#overlay .section-title h2 {font-size:1.27rem;line-height:1.3;}
#overlay .section-title:first-child {border-bottom:1px solid #bbb0cf;padding-bottom:12px;}
#overlay dialog .section-title button[data-method="dismissDialog"][aria-label] {
  width:44px; height:44px; padding:0; flex:none; border:1px solid #9581bb;
  background:#f1edf8; color:#523583; font-size:1.2rem; line-height:1;
}
#overlay dialog::backdrop {background:#19182c68;}
@media(max-width:355px){
  #screen header {padding-left:8px;padding-right:8px;padding-inline:8px;gap:6px;}
  #screen header h1 {font-size:1.28rem;}
  .g-fields .digits {gap:6px;}
  .g-history-date {row-gap:6px;}
  .auth-link {min-width:0;overflow-wrap:break-word;}
}
@media (max-width:375px) {
  .funds-links .btn,.wallet-shortcuts .btn {padding-left:7px;padding-right:7px;padding-inline:7px;}
}
/* The document owns scrolling. Keep the navigation above the Android system bar. */
.app-only #screen { padding-bottom: max(22px,env(safe-area-inset-bottom)); }
.app-only #screen.with-tabs {padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));}
.app-only .tabbar {margin:0;left:50%;bottom:0;}
/* The Android activity already positions the WebView inside the visible system bars. */
.app-only.native-shell .tabbar {min-height:61px; padding-bottom:0;}
.app-only.native-shell #screen.with-tabs {padding-bottom:73px;}
.brand .mark {margin-right:0;margin-inline-end:0;}
@supports not (inset: 0) {
  .panel.message-card > .icon-tile {flex:none;margin-right:16px;margin-inline-end:16px;}
  #screen.with-empty .empty-card > .icon-tile {margin-right:0;margin-inline-end:0;margin-bottom:12px;}
  .brand .mark {margin-right:8px;margin-inline-end:8px;}
  .market-title::before {margin-right:8px;}
  .market-hours > div:first-child {margin-right:9px;}
  .market-card .tag::before {margin-right:5px;}
  .auth-link .icon-tile + span {margin-left:8px;}
  .market-card-head > * + *, .market-card > * + * {margin-top:8px;}
  .auth-layout > * + * {margin-top:16px;}
  .home-contacts .icon,.market-clock .icon {margin-right:7px;margin-inline-end:7px;}
  .record-balances > span + span {margin-left:12px;margin-inline-start:12px;}
  .payment-whatsapp .icon {margin-right:8px;margin-inline-end:8px;}
}

/* Compact customer records retain the existing colours and document scrolling. */
#screen .compact-record {
  min-height:0;
  border-radius:14px;
}
#screen .fund-record.compact-record {padding:11px 13px;}
#screen .compact-record .record-meta {
  padding:5px 7px;
  margin:0 0 5px;
  gap:5px 8px;
}
#screen .compact-record .record-meta > span:first-child,
#screen .compact-record .g-history-date > span:first-child {font-size:.8rem;}
#screen .compact-record .tag {font-size:.75rem;padding:3px 6px;}
#screen .compact-record .record-heading {padding:5px 0;gap:5px 9px;}
#screen .compact-record .record-heading h3 {font-size:1rem;line-height:1.3;margin:0;}
#screen .compact-record .record-heading strong {font-size:1.1rem;line-height:1.3;}
#screen .compact-record .value-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 12px;
  padding:0;
  margin:0;
}
#screen .compact-record .value-list > div {
  display:block;
  min-width:0;
  padding:5px 0;
  border-bottom:0;
}
#screen .compact-record .value-list dt {font-size:.77rem;line-height:1.3;}
#screen .compact-record .value-list dd {margin:2px 0 0;font-size:.88rem;line-height:1.35;overflow-wrap:anywhere;}
#screen .utr-record .value-list > div:last-child {grid-column:1 / -1;}
#screen .utr-record .value-list > div:last-child dd {max-width:none;text-align:left;}
.record-balances {display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0 0;font-size:.76rem;color:#514b64;}
.record-balances strong {font-weight:700;color:#293967;}
#screen .compact-record > .btn,
#screen .compact-record .record-actions .btn {min-height:40px;font-size:.8rem;padding:6px 10px;margin-top:5px;}
#screen .compact-record .record-actions {margin-top:2px;}
#screen .fund-records,#screen .g-history {gap:10px;}
#screen .g-history-card.compact-record {padding:0 12px 7px;}
#screen .compact-record .g-history-date {margin:0 -12px;padding:6px 10px;flex-wrap:wrap;}
#screen .g-history-card.compact-record h2 {margin:8px 0 5px;font-size:1.03rem;line-height:1.3;}
#screen .compact-record .g-history-vals {gap:0 12px;padding-bottom:0;}
#screen .compact-record .g-history-vals > div {padding:5px 0;}
#screen .compact-record .g-history-vals dt {font-size:.77rem;line-height:1.3;}
#screen .compact-record .g-history-vals dd {font-size:.92rem;line-height:1.35;margin-top:2px;}
#screen .funds-receipt .compact-record {flex:none;display:block;}
#screen .payment-heading {grid-template-columns:minmax(0,1fr) auto;gap:10px;}
#screen .payment-heading .payment-tools {display:block;}
#screen .payment-whatsapp {display:flex;gap:8px;width:100%;margin-top:12px;min-height:44px;}
#screen .payment-whatsapp .icon {width:20px;height:20px;flex:none;}
#overlay dialog.qr-dialog {
  box-sizing:border-box;
  width:calc(100vw - 16px);
  max-width:650px;
  height:calc(100vh - 16px);
  height:calc(100dvh - 16px);
  max-height:calc(100vh - 16px);
  max-height:calc(100dvh - 16px);
  margin:auto;
  padding:14px;
  overflow:hidden;
}
#overlay .qr-dialog[open] {display:flex;flex-direction:column;}
#overlay .qr-dialog .section-title {flex:none;margin:0 0 12px;}
#overlay .qr-dialog .qr-enlarged {display:block;width:100%;min-height:0;flex:1;object-fit:contain;image-rendering:pixelated;background:white;border-radius:8px;}
