/* HWT Direct, phone app: light theme, TradingView-like layout (owner's pick, 28 Nov 2026). */
:root {
  --bg: #ffffff; --ink: #131722; --muted: #6a6d78; --line: #e0e3eb; --soft: #f0f3fa; --soft2: #f7f8fa;
  --blue: #479ffa; --link: #1f6fd1; --buy: #2563eb; --sell: #dc2626; --up: #089981; --down: #f23645; --warn: #f5a623;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.35 -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, Roboto, system-ui, sans-serif; overscroll-behavior: none; }
body { height: 100dvh; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.screen { flex: 1; min-height: 0; display: none; flex-direction: column; }
.screen.on { display: flex; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; flex: none; }
.head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--soft); font-size: 12px; color: #4a5568; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--blue); box-shadow: 0 0 0 3px #479ffa33; }
.dot.warn { background: var(--warn); } .dot.err { background: var(--down); }
.ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.ico:active { background: var(--soft); }
.ico svg, .tab svg { width: 23px; height: 23px; }
.badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.badge.sm { width: 18px; height: 18px; font-size: 8px; }

/* tabs */
#tabs { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--bg); padding: 4px 0 calc(6px + var(--safe-b)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 10.5px; font-weight: 500; }
.tab.on { font-weight: 650; }
.tab.on svg { stroke-width: 2.2; }

/* chart screen */
#chartWrap { position: relative; flex: 1; min-height: 0; }
#chart { position: absolute; inset: 0; }
#asiaBox { position: absolute; display: none; background: #479ffa14; border: 1px solid #479ffa59; border-radius: 2px; pointer-events: none; z-index: 2; }
#asiaBox::before { content: 'Asie'; position: absolute; left: 4px; top: 2px; font-size: 10px; font-weight: 600; color: var(--link); }
.legend { position: absolute; left: 10px; top: 6px; right: 70px; z-index: 3; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.legend .sym { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.legend .sym b { font-size: 15px; font-weight: 650; }
.livepill { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 99px; background: #479ffa1f; color: var(--link); font-size: 10.5px; font-weight: 650; }
.legend .l2 { font-size: 12px; color: var(--muted); }
.legend .l3 { font-size: 11px; color: var(--muted); }
#banner { position: absolute; left: 10px; right: 70px; bottom: 10px; z-index: 4; display: none; padding: 9px 12px; border-radius: 10px; background: #fff8e8; border: 1px solid #f5d38b; font-size: 12.5px; color: #6b4e00; }
#toolHint { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 6; display: none; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 6px 6px 6px 14px; border-radius: 99px; font-size: 13px; white-space: nowrap; }
#toolHint button { background: #ffffff26; color: #fff; border-radius: 99px; padding: 5px 10px; font-size: 12.5px; }
#loading { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 10px; background: #ffffffee; color: var(--muted); font-size: 14px; pointer-events: none; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e0e3eb; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tradebar { flex: none; display: flex; gap: 6px; height: 50px; padding: 4px 10px 6px; }
.tradebar .sell, .tradebar .buy { flex: 1; border-radius: 8px; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; line-height: 1.1; }
.tradebar .sell { background: var(--down); align-items: flex-start; }
.tradebar .buy { background: var(--buy); align-items: flex-end; }
.tradebar small { font-size: 10px; font-weight: 650; opacity: 0.92; }
.tradebar b { font-size: 15px; font-weight: 650; }
.tradebar .lot { width: 96px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.tradebar .lot b { font-size: 15px; }
.tradebar .lot small { color: var(--muted); font-weight: 400; opacity: 1; }
.tradebar button:disabled { opacity: 0.45; }
.toolbar { flex: none; display: flex; align-items: center; height: 46px; padding: 0 4px 0 12px; border-top: 1px solid var(--soft); }
.toolbar .symc { display: flex; flex-direction: column; line-height: 1; margin-right: 12px; min-width: 70px; }
.toolbar .symc button { text-align: left; }
.toolbar .symc button:first-child, .toolbar .symc button:last-child { font-size: 9px; color: #b2b5be; min-height: 10px; }
.toolbar .symc b { font-size: 15px; font-weight: 650; }
.toolbar .tfb { height: 36px; padding: 0 8px; font-size: 15px; font-weight: 500; }
.toolbar .grow { flex: 1; }
.toolbar .ico.on { background: #479ffa22; }

/* lists */
.sec { padding: 14px 14px 4px; font-size: 13px; font-weight: 650; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--soft); width: 100%; text-align: left; }
.row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .main b { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.row .main span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side { display: flex; flex-direction: column; align-items: flex-end; }
.row .side b { font-size: 16px; font-weight: 500; }
.row .side span { font-size: 13px; }
.card { margin: 8px 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.vpscard { margin: 6px 14px 4px; border-radius: 14px; background: #f0f6ff; border: 1px solid #d6e7fe; padding: 11px 13px; display: flex; align-items: center; gap: 12px; }
.vpscard .i { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; flex: none; }
.vpscard b { font-size: 14px; display: block; }
.vpscard span { font-size: 12px; color: #4a5568; }
.addrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 14px; height: 46px; width: calc(100% - 28px); border: 1px dashed #c6cbd6; border-radius: 12px; color: var(--link); font-weight: 650; }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* calculator (same blocks as the desktop's CalcPanel) */
.calc { padding: 4px 16px 10px; display: flex; flex-direction: column; gap: 12px; }
.calc-sync { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: #479ffa14; font-size: 13px; color: #4a5568; }
.calc-sync b { color: var(--ink); }
.calc-hero { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.calc-hero .lbl { font-size: 13px; color: var(--muted); }
.calc-big { font-size: 52px; font-weight: 300; letter-spacing: -1.5px; line-height: 1.05; }
.calc-big.none { color: var(--muted); }
.calc-note { font-size: 12.5px; color: var(--muted); }
.calc-note input { width: 90px; border: 0; border-bottom: 1px dashed var(--link); color: var(--link); text-align: center; background: transparent; padding: 0; }
.seg { display: flex; width: 100%; padding: 2px; gap: 2px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.seg button { flex: 1; height: 40px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.seg button.on.buy { background: var(--buy); color: #fff; font-weight: 650; }
.seg button.on.sell { background: var(--sell); color: #fff; font-weight: 650; }
.seg button.on.neutral { background: var(--ink); color: #fff; font-weight: 650; }
.slide { display: flex; flex-direction: column; gap: 3px; }
.slide .sh { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.slide .sh b { color: var(--ink); font-weight: 650; }
.slide input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
.slide input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) var(--f), #e0e3eb var(--f)); }
.slide input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0000004d; }
.slide input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: #e0e3eb; }
.slide input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
.slide input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0000004d; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tiles > div { display: flex; flex-direction: column; padding: 7px 12px; border-radius: 10px; background: var(--soft); }
.tiles span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles b { font-size: 16px; font-weight: 650; }
.sendrow { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); }
.btn { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; }
.btn.big { height: 50px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 650; color: #fff; }
.btn.buy { background: var(--buy); } .btn.sell { background: var(--sell); } .btn.dark { background: var(--ink); color: #fff; border: 0; }
.btn.danger { border-color: var(--down); color: #c62828; font-weight: 650; }
.btn:disabled { opacity: 0.45; }
.btnrow { display: flex; gap: 8px; }
.btnrow > * { flex: 1; }
.note { font-size: 12px; color: var(--muted); text-align: center; }

/* trades */
.acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 14px; flex: none; }
.acc > div { padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.acc span { font-size: 11.5px; color: var(--muted); display: block; }
.acc b { font-size: 15px; font-weight: 650; }
.subtabs { display: flex; gap: 18px; padding: 6px 14px 0; border-bottom: 1px solid var(--line); flex: none; }
.subtabs button { height: 38px; font-size: 15px; border-bottom: 2px solid transparent; }
.subtabs button.on { font-weight: 650; border-bottom-color: var(--ink); }
.pos-top { display: flex; align-items: center; gap: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fields label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.fields input { height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fields label.sl input { border-color: #f2364566; } .fields label.tp input { border-color: #08998166; }
.foot { flex: none; padding: 8px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.foot span { flex: 1; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.chip { height: 20px; padding: 0 6px; border-radius: 5px; background: var(--soft); font-size: 11px; color: #4a5568; display: inline-grid; place-items: center; }

/* alarms */
.info { margin: 10px 14px 4px; padding: 11px 12px; border-radius: 12px; background: #f0f6ff; font-size: 13px; color: #1f4f8f; line-height: 1.4; display: flex; gap: 10px; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: #d1d4dc; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #00000033; transition: left .15s; }
.switch[aria-checked=true] { background: var(--blue); }
.switch[aria-checked=true]::after { left: 21px; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.open { display: block; }
.sheet .veil { position: absolute; inset: 0; background: #13172259; }
.sheet .box { position: absolute; left: 0; right: 0; bottom: var(--kb, 0px); max-height: calc(var(--vvh, 100dvh) - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; padding: 8px 0 calc(14px + var(--safe-b)); box-shadow: 0 -6px 24px #0000001f; }
.grab { width: 36px; height: 5px; border-radius: 5px; background: #d1d4dc; margin: 0 auto 6px; flex: none; }
.sheet-h { display: flex; align-items: center; padding: 4px 14px 10px; flex: none; }
.sheet-h h2 { margin: 0; font-size: 19px; font-weight: 700; flex: 1; }
.sheet-h .x { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.sheet .scroll { padding-bottom: 6px; }
.search { display: flex; align-items: center; gap: 8px; margin: 0 14px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--soft); flex: none; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.chips button { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13.5px; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 650; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 14px; }
.tiles3 button { height: 78px; border-radius: 10px; background: var(--soft); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.tiles3 button svg { width: 24px; height: 24px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--soft); width: 100%; text-align: left; }
.opt .main { flex: 1; display: flex; flex-direction: column; }
.opt .main span { font-size: 12.5px; color: var(--muted); }
.stepper { display: flex; align-items: center; height: 48px; margin: 0 14px; border: 1.5px solid var(--blue); border-radius: 10px; overflow: hidden; }
.stepper button { width: 48px; height: 100%; background: var(--soft2); display: grid; place-items: center; }
.stepper input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; text-align: center; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lbl2 { display: flex; justify-content: space-between; padding: 12px 14px 6px; font-size: 12.5px; color: var(--muted); }
.confirm { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.confirm .big { font-size: 22px; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.realwarn { padding: 10px 12px; border-radius: 10px; background: #fff1f1; border: 1px solid #f5b5b5; color: #8c1d1d; font-size: 13px; }

/* signing in (js/login.js; mock-ups série 27, version A) */
#login { position: fixed; inset: 0 0 var(--kb, 0px); z-index: 60; background: #fff; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#login.open { display: block; }
.lg { display: flex; flex-direction: column; min-height: 100%; max-width: 480px; margin: 0 auto; padding: calc(var(--safe-t) + 28px) 22px calc(18px + var(--safe-b)); }
.lg h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; text-wrap: balance; }
.lg p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.lg .brand { margin-bottom: 34px; }
.f { display: block; margin-top: 18px; }
.f > span:first-child, .f > label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.f .in { display: flex; align-items: center; height: 52px; border: 1px solid #c9ced9; border-radius: 12px; padding: 0 6px 0 14px; background: #fff; }
.f .in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: var(--ink); font-size: 17px; }
.f .in:focus-within { border: 2px solid var(--buy); padding: 0 5px 0 13px; }
.f .in.bad:not(:focus-within) { border: 1.5px solid var(--sell); }
.f .ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: #4a5568; border-radius: 10px; }
.f .err { display: block; margin-top: 8px; color: #c01d1d; font-size: 14px; line-height: 1.4; }
.f .err:empty { display: none; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.go { width: 100%; height: 54px; flex: none; border-radius: 13px; background: var(--buy); color: #fff; font-size: 17px; font-weight: 650; }
.go.off, .go:disabled { background: #e6eaf2; color: #6a6d78; }
.lk { min-height: 44px; color: var(--link); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.lkr { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sp { flex: 1; min-height: 18px; }
.safe { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.safe svg { flex: none; color: var(--buy); }
.acct { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding: 13px 14px; border-radius: 14px; background: var(--soft); }
.acct .av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; flex: none; }
.acct b { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acct .lk { margin-left: auto; font-size: 14px; }
.cen { align-items: center; justify-content: center; text-align: center; }
.cen.top { justify-content: flex-start; padding-top: calc(var(--safe-t) + 14vh); }
.cen h1 { font-size: 25px; } .cen p { max-width: 19em; }
.disc { width: 84px; height: 84px; margin-bottom: 24px; border-radius: 50%; background: var(--soft); color: var(--buy); display: grid; place-items: center; }
.lg .bar { width: 200px; height: 6px; margin: 26px 0 12px; border-radius: 3px; background: #e3e8f1; overflow: hidden; }
.lg .bar i { display: block; width: 45%; height: 100%; border-radius: 3px; background: var(--buy); animation: lgbar 1.6s ease-in-out infinite alternate; }
@keyframes lgbar { from { transform: translateX(0); } to { transform: translateX(122%); } }
@media (prefers-reduced-motion: reduce) { .lg .bar i { animation: none; } }
.added { position: fixed; inset: auto 0 0; max-width: 480px; margin: 0 auto; padding: 26px 22px calc(16px + var(--safe-b)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 40px #13172222; }
.lgs { padding: 14px 22px 0; overflow-y: auto; }
.added h2, .lgs h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.added p, .lgs p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.added ol, .lgs ol { margin: 18px 0 22px; padding: 0; list-style: none; counter-reset: n; }
.added li, .lgs li { counter-increment: n; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15.5px; line-height: 1.4; }
.added li::before, .lgs li::before { content: counter(n); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.alt { width: 100%; min-height: 48px; margin-top: 6px; color: var(--ink); font-weight: 600; font-size: 16px; }
.added .alt { margin: 16px 0 10px; border: 1px solid #c9ced9; border-radius: 13px; }
.lgs summary { min-height: 44px; display: flex; align-items: center; color: var(--link); font-size: 15px; font-weight: 600; cursor: pointer; }
.lgs form .go { margin-top: 18px; }
@media (max-height: 620px) { .lg { padding-top: calc(var(--safe-t) + 16px); } .lg .brand { margin-bottom: 16px; } }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-weight: 700; font-size: 17px; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }

.toast { position: fixed; left: 50%; top: calc(54px + var(--safe-t)); transform: translate(-50%, -10px); opacity: 0; z-index: 80; max-width: 88vw; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 14px; transition: all .2s; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b42318; }
.toast.ok { background: #0b7a5e; }

/* smart watchlist (same figures as the desktop's variant C) */
.wl-bar { display: flex; align-items: center; gap: 8px; padding: 2px 14px 8px; flex: none; }
.wl-seg { width: auto; flex: 1; }
.wl-seg button { height: 34px; }
.wl-sort { height: 38px; font-size: 13px; white-space: nowrap; }
.wl-watch { display: flex; gap: 10px; align-items: flex-start; margin: 0 14px 6px; padding: 10px 12px; border-radius: 12px; background: #f0f6ff; border: 1px solid #d6e7fe; text-align: left; font-size: 13px; color: #1f4f8f; line-height: 1.4; flex: none; }
.wl-watch .i { color: var(--link); margin-top: 1px; }
.wl-head { display: grid; grid-template-columns: 1fr 112px 96px; padding: 4px 14px 4px 60px; font-size: 11.5px; color: var(--muted); }
.wl-head span:nth-child(2) { text-align: center; } .wl-head span:last-child { text-align: right; }
.wl-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--soft); width: 100%; text-align: left; }
.wl-row > div, .wl-row { }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wl-main b { font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.wl-main span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-mid { width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.wl-pill { min-width: 46px; height: 20px; padding: 0 7px; border-radius: 99px; font-size: 11.5px; font-weight: 650; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.wl-pill.low { background: #479ffa1f; color: var(--link); }
.wl-pill.mid { background: var(--soft); color: var(--ink); }
.wl-pill.hot { background: #ff98001f; color: #b26a00; }
.wl-pill.none { background: var(--soft); color: var(--muted); }
.wl-tr { display: flex; gap: 3px; }
.tr { display: flex; flex-direction: column; align-items: center; width: 24px; }
.tr i { font-style: normal; font-size: 8.5px; color: var(--muted); line-height: 1; }
.tr.up { color: var(--up); } .tr.down { color: var(--down); } .tr.flat { color: #9598a1; } .tr.none { color: #d1d4dc; }
.wl-px { width: 96px; display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.wl-px b { font-size: 15px; font-weight: 550; }
.wl-px span { font-size: 12.5px; }
.ccy-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--soft); }
.ccy-row b { width: 38px; }
.ccy-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--soft); position: relative; overflow: hidden; }
.ccy-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.ccy-row .num { width: 62px; text-align: right; font-size: 13.5px; }
.wl-help-t { display: flex; align-items: center; gap: 6px; margin: 4px 14px; color: var(--link); font-size: 13px; }
.wl-help { margin: 4px 14px 16px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 12.5px; line-height: 1.45; }
.wl-help p { margin: 0 0 8px; }

/* economic calendar */
.news-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--soft); }
.news-row.past { opacity: 0.5; }
.news-row.next { background: #fff4f2; }
.news-row .t { width: 44px; font-size: 13.5px; flex: none; padding-top: 1px; }
.news-row .imp { display: flex; gap: 2px; padding-top: 3px; flex: none; }
.news-row .imp i { width: 4px; height: 12px; border-radius: 1px; }
.news-row .c { width: 34px; font-size: 12.5px; color: var(--muted); flex: none; padding-top: 1px; }
.news-row .ti { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-direction: column; }
.news-row .ti small { font-size: 11.5px; color: var(--muted); }
.news-row .when { font-size: 12px; color: #b42318; font-weight: 650; white-space: nowrap; flex: none; padding-top: 1px; }
.foot .dot { flex: none; }

/* legend rows of the indicators (tap = settings) */
.legend .indrow { pointer-events: auto; text-align: left; display: flex; gap: 6px; align-items: baseline; font-size: 11px; color: var(--muted); padding: 1px 0; }
.legend .indrow .num { font-weight: 600; }
.legend .l2 b { font-weight: 600; color: var(--ink); }
/* calculator steppers */
.stepv { display: inline-flex; align-items: center; gap: 4px; }
.stepv button { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.stepv b { min-width: 92px; text-align: center; color: var(--ink); font-weight: 650; }
/* indicator settings */
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.fld input, .fld select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 16px; color: var(--ink); background: #fff; }
.fld.row2 { flex-direction: row; align-items: center; justify-content: space-between; }
.fld.row2 input { width: 22px; height: 22px; }
.colrow { display: flex; align-items: center; gap: 6px; }
.colrow button { width: 26px; height: 26px; border-radius: 50%; outline-offset: 2px; }
.legend .indrow { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.legend .indrow .lbl { color: var(--ink); opacity: .75; }
.legend .indrow.fold { color: var(--link); font-weight: 600; }

/* selected drawing: colours, alarm, delete, OK (TradingView's floating toolbar) */
#selbar { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 7; display: none; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px #0000001f; }
#selbar button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
#selbar button.dotc { width: 24px; height: 24px; border-radius: 50%; }
#selbar button.ok { width: auto; padding: 0 12px; background: var(--ink); color: #fff; font-weight: 650; font-size: 14px; }
