/*
 * MetaTrader-style LIGHT appearance, based on the supplied Android references.
 * Presentation-only: no API endpoints, trade maths, market polling, persistence,
 * settings or admin behaviours are overridden by this file.
 * Keep this stylesheet after app.css so the original layout can stay intact.
 */
:root {
  color-scheme: light;
  --bg:#fff;
  --bar:#fff;
  --text:#171717;
  --muted:#919498;
  --muted2:#767a80;
  --muted3:#92959a;
  --idle:#979b9f;
  --blue:#3284ef;
  --blue2:#2f8bf3;
  --blue-btn:#3286f7;
  --bid:#dd1015;
  --ask:#2285ed;
  --up-chg:#3488ee;
  --dn-chg:#d82231;
  --bull:#23ac9e;
  --bear:#ec5757;
  --tag:#12afa6;
  --profit:#287deb;
  --loss:#db2433;
  --line:#e7e8ea;
  --dots:#d9dadd;
  --pill:#f0f0f2;
  --pad-x:16px;
  --bar-h:56px;
  --nav-h:60px;
}
html,body{background:#fff;color:var(--text)}
.phone,.content,.view{background:#fff}
.topbar{background:#fff}
.icon-btn,.top-actions button{color:#44464a}
.icon-btn:active,.top-actions button:active{background:#f4f5f6}
.top-title{color:#191919;font-size:19px;font-weight:500}
.top-sub,.top-mid.has-sub .top-sub{color:#85888e}
.top-mid.has-sub .top-title{color:#1d1d1d}
.top-actions .mqid,.mqid{color:#51555a;border-color:#aaa;font-weight:700}
.cal-badge{background:#3188f2}
/* Pre-existing PNG toolbar art was authored for a black canvas. Inversion
   makes the black backing white and the pale glyph strokes charcoal. */
.top-actions .top-uploaded-icon,
.top-actions .top-wallet-icon,
.top-actions .top-account-plus-icon,
.top-actions .top-account-badge-icon{filter:invert(1)}
.top-actions .top-colored-icon{filter:none}
.top-actions .top-colored-icon[src*="/08_split_clock_color"],
.top-actions .top-colored-icon[src*="/09_split_toggle_color"]{filter:none}
.top-actions .top-tool-icon:not([src*="light"]){filter:invert(1)}

/* Quotes: white, generous rows; black symbol, coloured bid/ask, grey lows/highs. */
.quote-row{min-height:81px;column-gap:12px;padding:9px var(--pad-x)}
.quote-row:active{background:#f5f6f8}
.quote-change{font-size:12px;line-height:16px}
.quote-sym{font-size:17px;color:#151515;line-height:22px;font-weight:500}
.quote-meta{color:#989ba1;font-size:12px}
.quote-meta .spr-ic{color:#93969a;opacity:.9}
.quote-px .px{font-size:22px;line-height:27px;letter-spacing:-.4px}
.quote-px .px b{font-size:25px}
.quote-px .px sup{font-size:11px}
.quote-px small{font-size:12px;color:#a1a3a7;line-height:16px}
.quote-px.red .px{color:var(--bid)}
.quote-px.blue .px{color:var(--ask)}
.quote-px.idle .px{color:var(--idle)}

/* Chart is an actual canvas: JS also supplies a matching light canvas palette. */
.chart-view,.chart-stage,.oneclick{background:#fff}
.chart-meta{text-shadow:none}
.chart-symrow button,#symbolChip{color:#2187ee}
#tfChipInline,.chart-desc,.chart-status{color:#202226}
.chart-symrow .caret{border-top-color:#2886e6}
.oneclick{border-bottom:1px solid #e5e6e8}
.oc-vol{background:#fff;color:#30343a;border-color:#dee1e5}
.oc-vol button{color:#41454a}
.oc-side{color:#fff}
.crosshair:before,.crosshair:after{background:rgba(56,57,59,.42)}
.tf-cell{color:#55595e}
.tf-cell:active{background:#f2f5f7}

/* Trade and account balances: dotted leaders and no forced grey panels. */
.dot-list{padding-top:12px;padding-bottom:8px}
.dot-row{min-height:29px;font-size:16px}
.dot-row .k{color:#161616;font-weight:700}
.dot-row .dots{background-image:radial-gradient(circle at center, #d4d6d9 1px,transparent 1.2px)}
.dot-row .v{color:#171717;font-weight:700}
.dot-row .v.pos{color:var(--profit)}
.dot-row .v.neg{color:var(--loss)}
.hairline{background:#e6e7e9;margin-top:7px}
.sect-band{background:#f1f2f4;color:#6f747c;border-color:#e7e8eb}
.sect-band .more{fill:#999da2}
.pos-item:active,.hist-item:active{background:#f3f5f7}
.trade-detail,.trade-record.expanded{background:#fbfbfc}
.trade-detail{color:#737780}
.trade-detail-pair b,.trade-detail-comment b{color:#565a60}
.trade-detail-ticket,.trade-detail-label,.trade-detail-comment span{color:#96999e}
.hist-title{color:#151515}
.hist-px,.hist-px .arw{color:#81868c}

/* History: screen-level tab indicator, white empty state. */
.history-tabs,.trade-tabs{background:#fff;border-bottom:1px solid #f0f0f1}
.history-tabs button,.trade-tabs button{color:#919398;font-size:14px;font-weight:500;letter-spacing:.2px;min-height:46px;height:46px}
.history-tabs button.on,.trade-tabs button.on{color:#1a1a1a}
.history-tabs button.on:after,.trade-tabs button.on:after{height:2px;background:#3686f3}
.history-tabs button:active,.trade-tabs button:active{background:#f4f5f6}
.hist-sum{padding-top:12px}
.ord-status,.hist-time,.hist-login{color:#8c8f96}
.empty{color:#aeb1b5}
/* Empty illustrations are scalable, locally-rendered vector UI, no fake rows. */
.empty-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:270px;padding:20px 14px;color:#b7b9bc;text-align:center;gap:20px}
.empty-visual svg{width:124px;height:124px;display:block;flex:none}
.empty-visual .empty-caption{font-size:17px;font-weight:400;color:#b6b8bc;line-height:22px}
#view-history > .empty-visual{height:calc(100% - 47px);min-height:320px;transform:translateY(-4%)}

/* Messages: lightweight illustration centred above bottom CTA. */
#view-messages.active{display:flex;flex-direction:column}
#view-messages .empty-visual{flex:1;min-height:220px;transform:translateY(-4%)}
.msg-copy b{color:#171717}
.msg-copy p{color:#94989e}
.msg-avatar{background:#2a8ded}
.msg-auth{padding:12px 10px 16px;gap:10px}
.btn-register{height:48px;border-radius:25px;font-size:15px;box-shadow:0 2px 4px rgba(0,0,0,.16)}
.btn-signin{height:48px;border-radius:25px;background:#f0f3f8;color:#237ce4;font-size:14px;box-shadow:0 2px 4px rgba(0,0,0,.07)}

/* Five-icon fixed bottom bar and grey balance pill. */
.bottom-nav{background:#fff;border-top:1px solid #fafafa;padding-top:6px}
.nav-item,.nav-trade{color:#3f4248;font-size:12px;gap:4px;font-weight:500}
.nav-item.active,.nav-trade.active{color:#3289f3}
.nav-svg .pngic{color:inherit}
.nav-svg .nav-uploaded-icon{filter:invert(1);opacity:.84}
.nav-trade .nav-balance,.nav-item.active .nav-balance{
  background:#efeff1;color:#666970;line-height:17px;height:17px;font-weight:600;font-size:11px}
.nav-balance.neg,.nav-item.active .nav-balance.neg{background:#ffebec;color:var(--loss)}
.nav-balance.pos,.nav-item.active .nav-balance.pos{background:#e8f2ff;color:var(--profit)}

/* Sidebar: white panel, grey line icons, account header and Exness logo preserved. */
.drawer{background:#fff;box-shadow:5px 0 22px rgba(0,0,0,.17)}
.drawer-head{background:#fff;border-color:#e8e9eb;min-height:120px;padding:18px 12px 12px 26px}
.drawer-account b,.drawer-item{color:#1b1b1b}
.acct-line{color:#8c9096}
.manage-link{color:#2388ee;font-size:16px;margin-top:12px}
.drawer-scroll{padding-top:9px}
.drawer-item{height:47px;gap:20px;font-size:16px;font-weight:500}
.drawer-item:active{background:#f2f4f7}
.di{color:#55585c;width:20px;height:20px}
.di svg{width:20px;height:20px}
.ads-pill{color:#2a83e9;border-color:#2a83e9}
.head-edit{color:#4c4f53}

/* Sheets, dialogs, account picker and editable inputs stay fully interactive. */
.scrim{background:rgba(0,0,0,.32)}
.sheet{background:#fff;color:#1c1e21;box-shadow:0 -8px 30px rgba(0,0,0,.12)}
.sheet-title{color:#7d8288}
.sheet-opt{color:#25282c}
.sheet-opt:active{background:#f0f3f6}
.sheet-opt.on{color:#267ce7}
.sheet.wallet-sheet{background:#f5f5f6}
.wallet-sheet .wallet-head{color:#7d8086}
.wallet-sheet .wallet-opt{color:#222326}
.wallet-sheet .wallet-opt:active{background:#e9ebee}
.field label{color:#707781}
.field input,.field select{background:#fff;color:#222;border:1px solid #d7dce2;border-radius:6px}
.field input:focus,.field select:focus{outline:2px solid rgba(51,136,241,.28);border-color:#3589ee}
.primary{background:#3287f4}
.danger{background:#e8494e}
.toast{background:#32363b;color:#fff}
.page-row,.news-item{border-color:#e8eaed}
.page-row .hint,.page-h,.news-item span,.cal-time{color:#80858c}
.journal-line{color:#50565d;border-color:#ebedf0}
.switch{background:#d5d8df}

.accounts-page{background:#fff}
.acct-hero,.acct-row{background:#f5f6f8;color:#1c1d20;border:1px solid #eaedf0}
.acct-hero:active,.acct-row:active{background:#eceff3}
.acct-hero-name,.acct-row-top b{color:#202328}
.acct-hero-login,.acct-hero-meta,.acct-row-login,.acct-row-meta{color:#898d93}
.acct-hero-bal{color:#181b20}
.acct-hero-bal small{color:#7d8289}
.acct-hero-co{color:#2e82ee}
.acct-mini-icon[src*="accounts_"]{filter:invert(.73)}

.tf-cell.tf-gear img{filter:invert(1)}
.vol-input{background:#fff;color:#24282d;border-color:#d4d8df}
.vol-step,.vol-preset{background:#f6f7f9;color:#252a30;border-color:#e2e5e9}
.vol-step:active,.vol-preset:active{background:#e9f2ff;color:#1e78eb}
.sym-dropdown{background:rgba(255,255,255,.98);border-color:#e4e7eb;
  box-shadow:0 10px 25px rgba(0,0,0,.13)}
.sym-opt{color:#257feb;border-color:#eef0f2}
.sym-opt.cur{color:#136ac8}
.sym-opt:active{background:#edf5ff}
.fund-ref{background:#f6f8fa;border-color:#d6dce2;color:#262b31}
.pos-panel{background:#f4f5f7;box-shadow:0 -4px 20px rgba(0,0,0,.08)}
.pp-grip{background:#bdc1c7}
#ppTabClose{color:#858a93}
#ppTabModify{color:#7888a5}
#ppTabClose.on-close{color:#e99110}
#ppTabModify.on-modify{color:#487de4}

/* The original terminal is narrow on desktop; preserve that geometry. */
@media (min-width:900px){
  body{background:#e9edf2}
  .phone{box-shadow:0 0 0 1px #d9dee5,0 22px 70px rgba(35,45,65,.16)}
}
@media (max-width:350px){
  :root{--pad-x:12px}
  .quote-row{column-gap:6px}
  .quote-px .px{font-size:18px}
  .quote-px .px b{font-size:21px}
  .drawer-item{font-size:15px}
}
/* Active Quotes image should use the same blue as the other masked nav icons. */
.nav-item.active .nav-uploaded-icon{
  filter:invert(46%) sepia(89%) saturate(2796%) hue-rotate(191deg) brightness(98%) contrast(93%);
  opacity:1;
}
/* MT5 retains the multicolour shortcut glyph when the quick-order strip is off. */
.top-actions button.off .top-colored-icon{opacity:1}
