@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:Manrope,Arial,sans-serif;color:#222036;background:#f6f5fa;font-size:14px;--purple:#7850e9;--muted:#94909f}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #ad95f8;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:white;border-right:1px solid #eeecf3;padding:36px 24px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:238px}.brand{font-size:22px;font-weight:800;letter-spacing:-1px;display:flex;gap:10px;align-items:center}.brandmark{background:var(--purple);color:white;border-radius:12px;padding:6px 10px;font-size:25px;transform:rotate(-8deg)}.brand small{display:block;font-size:9px;letter-spacing:3.1px;color:#9b96a8;margin-top:3px}.nav{display:grid;gap:8px;margin-top:56px}.nav button{text-align:left;background:none;padding:14px 17px;color:#85818f;border-radius:12px;font-weight:600;display:flex;gap:13px;align-items:center}.nav button.active{background:#f0eafb;color:#7951dc}.nav i{font-style:normal;font-size:21px;width:23px}.tag{font-size:9px;background:#ece5ff;color:var(--purple);border-radius:5px;padding:3px 5px;margin-left:auto}.sidebottom{margin-top:auto}.helpbox{background:#f7f5fc;padding:19px 16px;border-radius:14px;font-size:12px;line-height:1.7;margin-bottom:22px}.helpbox button{background:none;color:var(--purple);padding:10px 0 0;font-weight:700}.profile{display:flex;align-items:center;gap:11px;padding-top:22px;border-top:1px solid #efedf3}.avatar{background:#ece3ff;border-radius:50%;color:#7850e9;display:grid;place-items:center;width:39px;height:39px;font-weight:800}.profile small{display:block;color:var(--muted);margin-top:4px;font-size:10px}main{grid-column:2;padding:0 46px 35px;max-width:1600px;width:100%;margin:auto}.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9e6f0}.crumb{color:#a19baa;font-size:12px}.crumb b{color:#50495d;font-weight:500}.topright{display:flex;gap:23px;align-items:center}.online{font-size:11px;color:#80788e}.online:before{content:'';display:inline-block;background:#66b99a;width:6px;height:6px;border-radius:50%;margin-right:7px}.iconbutton{background:white;border:1px solid #e9e5f0;border-radius:10px;padding:9px 12px}.heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 25px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#a49bad;font-weight:700}.heading h1{font-size:29px;letter-spacing:-1px;margin:7px 0}.sub{color:var(--muted);font-size:12px;line-height:1.8}.demo{color:#9b8bbd;background:#efebf7;padding:7px 10px;border-radius:6px;font-size:10px}.dashboard{display:grid;grid-template-columns:minmax(360px,1.35fr) minmax(310px,1fr);gap:24px}.balance{border-radius:22px;padding:29px 31px;color:white;position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 90%,#c6a2fa 0,transparent 48%),linear-gradient(115deg,#6740ce,#9770ef);min-height:272px}.balance:after{content:'';position:absolute;width:260px;height:260px;right:10px;top:-8px;transform:rotate(20deg);background:url('card-pattern.svg') center/contain no-repeat;opacity:.08;pointer-events:none}.balance>*{position:relative;z-index:1}.cardtop{display:flex;justify-content:space-between;color:#e0d4fa;font-size:12px}.balance h2{font-size:43px;letter-spacing:-1.5px;margin:18px 0 4px;font-weight:600}.balance h2 span{font-size:28px;color:#ded0f7}.balance .sub{color:#e4d7fb;font-size:11px}.cardactions{display:flex;gap:10px;margin-top:27px}.cardactions button{background:white;color:#6e46c7;border-radius:10px;padding:12px 19px;font-size:12px;font-weight:700}.cardactions button+button{color:white;background:#ffffff20;border:1px solid #ffffff28}.panel{background:white;border:1px solid #ece9f1;border-radius:18px;padding:24px}.panel h3{font-size:15px;margin:0 0 20px;letter-spacing:-.25px}.exchange{grid-column:2;grid-row:1 / span 2;padding:25px}.panelhead{display:flex;justify-content:space-between;align-items:center}.panelhead span{font-size:10px;color:#9a90aa}.currencyinput{background:#f8f7fb;border:1px solid #eeebf4;border-radius:13px;padding:16px 17px}.fieldlabel{display:flex;justify-content:space-between;color:#9992a6;font-size:10px;margin-bottom:12px}.amountrow{display:flex;justify-content:space-between;gap:14px;align-items:center}.amountrow select{background:none;border:0;font-weight:800;color:#3d354d;width:112px;font-size:17px}.amountrow input{width:55%;text-align:right;border:0;outline:0;background:transparent;font-size:25px;color:#42364f;font-weight:600;min-width:0}.symbol{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#ede5fd;color:#8454df;font-size:19px;font-weight:700;flex-shrink:0}.coinrow{display:flex;gap:10px;align-items:center}.swap{display:block;margin:-3px auto;background:white;border:5px solid white;border-radius:12px;color:var(--purple);height:35px;width:40px;position:relative;z-index:1;font-size:18px}.rate{margin:17px 0;display:flex;justify-content:space-between;font-size:11px;color:#8c8499}.rate b{color:#665a77;font-weight:500}.primary{background:var(--purple);color:white;border-radius:10px;padding:14px 20px;font-weight:600;font-size:12px}.full{width:100%}.fine{text-align:center;font-size:10px;color:#aaa2b4;line-height:1.7;margin-top:13px}.assets{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.asset{background:white;border:1px solid #ece9f1;border-radius:14px;padding:16px}.asset .symbol{width:30px;height:30px;font-size:16px}.assethead{display:flex;align-items:center;gap:8px;font-size:11px;color:#8e879b}.asset strong{display:block;font-size:17px;margin:14px 0 5px}.asset small{font-size:10px;color:#aaa2b3}.sectiontitle{display:flex;justify-content:space-between;align-items:center;margin:29px 0 15px}.sectiontitle h3{font-size:16px;margin:0}.textbutton{color:var(--purple);background:none;font-size:11px}.savingbanner{margin-top:24px;padding:21px 25px;border-radius:16px;background:#eeebf7;display:flex;align-items:center;gap:19px;position:relative;overflow:hidden}.savingicon{font-size:36px;color:#8a65d9;transform:rotate(-12deg)}.savingbanner h3{font-size:13px;margin:0 0 7px}.savingbanner p{font-size:10px;color:#9890a6;margin:0;line-height:1.6}.savingbanner button{margin-left:auto;background:white;color:#7a55bd;padding:10px 14px;border-radius:8px;white-space:nowrap;font-size:11px}.history{margin-top:25px}.history .panel{padding:0 23px}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:10px;font-weight:500;color:#aaa2b4;padding:17px 0;border-bottom:1px solid #f1eef5}.table td{padding:18px 0;border-bottom:1px solid #f3f0f7;font-size:11px}.table tr:last-child td{border:0}.operation{display:flex;align-items:center;gap:12px}.opicon{background:#f4effc;color:#9474cb;padding:9px 12px;border-radius:10px;font-size:17px}.operation small{display:block;font-size:9px;color:#a69eaf;margin-top:5px}.pill{font-size:9px;padding:6px 9px;border-radius:6px;background:#edf8f2;color:#5c9e7d;white-space:nowrap}.pill.wait{background:#fff6e6;color:#c1994e}.foot{display:flex;justify-content:space-between;font-size:9px;color:#afa7bb;margin-top:27px}.ratesfoot{display:flex;gap:18px}.dot{color:#75b598}.empty{padding:45px;text-align:center;color:#a59aaf}.modalback{position:fixed;inset:0;background:#21153666;z-index:10;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.dialog{background:white;border-radius:22px;padding:28px;width:460px;max-width:100%;max-height:90vh;overflow:auto}.dialog h2{font-size:21px;margin-top:0}.close{float:right;background:#f6f3fa;border-radius:50%;width:28px;height:28px;color:#9a8ca9}.formlabel{display:block;font-size:12px;color:#81738f;margin:18px 0 8px}.formcontrol{width:100%;padding:13px;border:1px solid #e7e0ef;border-radius:9px;background:#faf8fc;outline-color:#9c78df}.notice{font-size:11px;line-height:1.8;background:#fff6e9;color:#ab8546;border-radius:10px;padding:13px;margin:16px 0}.detail{background:#f6f2fc;padding:17px;border-radius:10px;margin:14px 0;line-height:1.9;font-size:12px;overflow-wrap:anywhere}.tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.tabs button{background:#eeebf5;color:#897a9b;padding:10px 14px;border-radius:8px}.tabs button.active{background:var(--purple);color:white}.adminrow{padding:17px;background:#faf8fc;border-radius:12px;margin:12px 0;display:flex;gap:15px;align-items:center;flex-wrap:wrap}.adminrow .primary{margin-left:auto}.adminrow small{display:block;color:#a398ae;margin-top:7px}.ticket{margin:14px 0;background:#f5f0fb;border-radius:12px;padding:15px;line-height:1.8}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stats h2{margin:10px 0;font-size:26px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#39294f;color:white;padding:14px 25px;border-radius:12px;z-index:30;display:none;font-size:12px}.network{margin:12px 0} @media(min-width:1450px){main{padding-left:60px;padding-right:60px}.dashboard{gap:28px}.balance{min-height:300px}}@media(max-width:1100px){.sidebar{width:190px;padding:30px 17px}.shell{grid-template-columns:190px 1fr}main{padding:0 25px 25px}.dashboard{grid-template-columns:1fr 1fr}.assets{gap:7px}.asset{padding:12px}.balance{padding:25px}.cardactions button{padding:12px}.brand{font-size:18px}.online{display:none}}@media(max-width:780px){.shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;width:100%;padding:8px 10px;z-index:5;border-top:1px solid #eee}.sidebar .brand,.sidebottom{display:none}.nav{margin:0;display:flex;justify-content:space-around;gap:0}.nav button{padding:7px 10px;display:grid;justify-items:center;gap:3px;font-size:9px}.nav i{font-size:20px}.nav .tag{display:none}main{padding:0 18px 100px}.topbar{height:65px}.topright{gap:12px}.heading{margin:25px 0 18px}.heading h1{font-size:25px}.demo{font-size:8px}.dashboard{display:flex;flex-direction:column;gap:17px}.balance{min-height:250px}.exchange{order:2}.assets{order:1}.savingbanner{padding:18px;gap:12px}.savingbanner button{padding:10px}.savingicon{font-size:28px}.history .panel{overflow:auto;padding:0 13px}.table{min-width:520px}.foot{gap:12px;line-height:1.8}.ratesfoot{gap:9px}.stats{gap:8px}.stats .panel{padding:14px}.stats h2{font-size:20px}}
/* Mobile platform layer: safe areas, keyboards and thumb-sized controls. */
html{-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
body{overscroll-behavior:none}
.shell{min-height:100dvh}
button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
button:active{filter:brightness(.94)}
.dialog{max-height:calc(100dvh - 32px);overscroll-behavior:contain}
@media(pointer:coarse){input,select,textarea{font-size:16px}.primary,.formcontrol,.textbutton,.iconbutton{min-height:44px}.close{width:44px;height:44px}.swap{width:46px;height:46px}.cardactions button{min-height:44px}}
@media(max-width:780px){
main{padding-top:max(env(safe-area-inset-top,0px),var(--tg-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px),var(--tg-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px),var(--tg-inset-right,0px));padding-bottom:calc(105px + max(env(safe-area-inset-bottom,0px),var(--tg-inset-bottom,0px)))}
.sidebar{padding:8px 5px calc(8px + max(env(safe-area-inset-bottom,0px),var(--tg-inset-bottom,0px)));border-right:0}
.nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.nav button{min-width:0;padding:7px 0;min-height:50px;font-size:9px}.nav i{width:auto}.heading{position:relative;display:block;padding-top:4px}.heading .demo{display:inline-block;margin-top:10px}.heading h1{font-size:clamp(22px,6vw,28px)}.eyebrow{font-size:9px;letter-spacing:1.3px}.topbar{height:59px}.crumb{font-size:11px}.topright{gap:4px}.iconbutton{min-width:44px}.panelhead{gap:8px;flex-wrap:wrap}.panelhead h3{margin-bottom:14px}.panelhead>span{margin-bottom:14px}.exchange{padding:20px 16px}.amountrow{gap:8px}.amountrow select{width:82px;font-size:16px;min-height:44px}.coinrow{gap:6px}.amountrow .symbol{width:29px;height:29px;font-size:16px}.amountrow input,#quote{font-size:22px!important;max-width:52%;overflow-wrap:anywhere}.currencyinput{padding:13px 12px}.fieldlabel{gap:7px;line-height:1.5}.assets{gap:7px}.asset{padding:12px 9px}.assethead{gap:5px}.asset strong{font-size:14px}.asset .symbol{width:25px;height:25px}.balance{padding:24px 21px}.balance h2{font-size:39px}.cardactions{gap:8px;flex-wrap:wrap}.cardactions button{flex:1;padding:12px 9px}.cardactions>span{display:none}.savingbanner{flex-wrap:wrap}.savingbanner>div:nth-child(2){flex:1;min-width:170px}.savingbanner p{font-size:11px}.savingbanner button{width:100%;min-height:44px}.history .panel{overflow:visible;padding:0;background:none;border:0}.table{display:block;min-width:0;width:100%}.table thead{display:none}.table tbody{display:grid;gap:10px}.table tr{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid #ece9f1;border-radius:14px;padding:14px;gap:8px}.table td{padding:0;border:0;font-size:12px;min-width:0;overflow-wrap:anywhere}.table td:first-child{grid-column:1 / -1}.table td:nth-child(2)::before{content:'Отправлено';display:block;color:#9b92a5;font-size:10px;margin-bottom:4px}.table td:nth-child(3)::before{content:'К получению';display:block;color:#9b92a5;font-size:10px;margin-bottom:4px}.table td:nth-child(4){color:#9b92a5;align-self:center}.table td:nth-child(5){text-align:right;align-self:center}.table td[colspan]{grid-column:1 / -1}.operation{text-align:left;font-size:12px}.empty{padding:25px 8px;line-height:1.8}.foot{flex-direction:column}.ratesfoot{flex-wrap:wrap;font-size:10px}.modalback{padding:12px;align-items:end}.dialog{width:100%;padding:21px 18px calc(21px + max(env(safe-area-inset-bottom,0px),var(--tg-inset-bottom,0px)));max-height:calc(100dvh - 24px - var(--tg-inset-top,0px));border-radius:22px}.dialog input,.dialog textarea,.dialog select{font-size:16px}.stats{grid-template-columns:1fr}.stats .panel{display:flex;align-items:center;justify-content:space-between}.stats h2{margin:0}.tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px;overscroll-behavior-x:contain}.tabs button{white-space:nowrap;min-height:44px;flex-shrink:0}.adminrow{overflow-wrap:anywhere}.adminrow>div{min-width:0;width:100%}.adminrow .primary{width:100%}#toast{bottom:calc(90px + max(env(safe-area-inset-bottom,0px),var(--tg-inset-bottom,0px)));width:calc(100% - 32px);text-align:center}
}
/* Both themes keep the exchange's violet identity. */
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;background:#14111e;color:#eee9f6;--muted:#b1a8c1;--purple:#a17af9}
[data-theme="dark"] body{background:#14111e}
[data-theme="dark"] :is(.sidebar,.panel,.asset,.dialog,.iconbutton,.table tr){background:#201a2d;border-color:#393047;color:#eee9f6}
[data-theme="dark"] :is(.helpbox,.currencyinput,.formcontrol,.detail,.ticket,.adminrow){background:#2b233a;border-color:#453855;color:#eee9f6}
[data-theme="dark"] :is(.nav button.active,.tabs button.active,.primary){background:#7950cf;color:white}
[data-theme="dark"] :is(.tabs button,.demo,.avatar,.opicon,.savingbanner){background:#30233f;color:#c8a9ff}
[data-theme="dark"] :is(.nav button,.crumb,.online,.sub,.fieldlabel,.rate,.fine,.assethead,.asset small,.foot,.formlabel,.table th,.operation small){color:#b9accb}
[data-theme="dark"] :is(.crumb b,.amountrow select,.amountrow input,.rate b){color:#eee5fa}
[data-theme="dark"] :is(.topbar,.profile,.table th,.table td){border-color:#393047}
[data-theme="dark"] :is(.swap,.close){background:#30263f;color:#cfb4ff;border-color:#201a2d}
[data-theme="dark"] .savingbanner button{background:#443052;color:#f0e1ff}
[data-theme="dark"] .notice{background:#3e301d;color:#efd196}
[data-theme="dark"] .pill{background:#193d32;color:#98d8b7}
[data-theme="dark"] .pill.wait{background:#42331d;color:#efd196}
[data-theme="dark"] .balance .sub{color:#eee0ff}
@media(max-width:390px){.crumb{font-size:10px}.crumb>span{margin:0 5px!important}.topright{gap:0}.topright .textbutton{display:none}}
/* Branding stays legible at phone widths. */
.headerbrand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;flex-shrink:0}
.headerbrand>span{font-size:15px;font-weight:800;letter-spacing:-.5px;line-height:1.15}
.headerbrand small{display:block;font-size:8px;letter-spacing:2.5px;margin-top:4px;color:var(--muted)}
.brandlogo{flex-shrink:0}.direction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.direction-group{background:#f8f6fc;border:1px solid #eae4f3;border-radius:14px;padding:18px}
.direction-group h4{margin:0 0 16px;color:#9062db}
[data-theme="dark"] .direction-group{background:#2b233a;border-color:#453855}
:root{--theme-duration:220ms;--ease-out:cubic-bezier(0.23,1,0.32,1)}
/* Snapshot opacity avoids animating layout or repainting every surface per frame. */
::view-transition-old(root),::view-transition-new(root){animation-duration:var(--theme-duration);animation-timing-function:var(--ease-out);pointer-events:none}
.theme-fade,.theme-fade :is(body,.sidebar,.panel,.asset,.dialog,.currencyinput,.formcontrol,.detail,.ticket,.adminrow,.direction-group,.topbar,.nav button,.primary,.iconbutton,.savingbanner,.table tr){transition:background-color var(--theme-duration) ease,color var(--theme-duration) ease,border-color var(--theme-duration) ease}
@media(prefers-reduced-motion:reduce){:root{--theme-duration:100ms}::view-transition-old(root),::view-transition-new(root){animation-duration:100ms}}
@media(max-width:780px){.direction-grid{grid-template-columns:1fr}.headerbrand{gap:7px}.headerbrand img{width:31px;height:31px}.headerbrand>span{font-size:13px}.headerbrand small{font-size:7px}.heading h1{font-size:clamp(23px,7vw,29px);letter-spacing:-.8px}.topbar{gap:10px}.topright{margin-left:auto}}
/* The client has five tabs; the staff menu has six. Auto columns fill either width. */
@media(max-width:780px){.nav{grid-template-columns:repeat(var(--nav-columns,6),minmax(0,1fr));grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}}
.support-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:stretch;min-height:560px}.support-queue{padding:18px;min-width:0}.support-filters{display:flex;gap:4px;margin-bottom:15px;flex-wrap:wrap}.support-filters button{padding:9px 10px;border-radius:8px;background:#f2edf9;color:#8c71a8;font-size:11px;min-height:40px}.support-filters button.active{background:var(--purple);color:white}.support-ticket-list{display:grid;gap:8px;max-height:65dvh;overflow:auto}.support-ticket{padding:14px;text-align:left;border:1px solid #eee8f6;background:#faf8fc;border-radius:12px;color:inherit;min-width:0;overflow-wrap:anywhere}.support-ticket.selected{border-color:#9c78df;background:#f2ebff}.support-ticket-head{display:flex;justify-content:space-between;gap:8px;font-size:12px}.support-ticket small{display:block;color:var(--muted);font-size:10px;margin:8px 0}.support-ticket p{font-size:12px;line-height:1.6;margin:8px 0}.unread-count{background:var(--purple);color:white;border-radius:20px;padding:2px 6px}.support-chat{display:flex;flex-direction:column;padding:20px;min-width:0}.support-welcome{margin:auto;text-align:center;max-width:330px;padding:25px 10px}.support-welcome-icon{display:block;font-size:60px;color:#a17af9;margin-bottom:20px}.chat-header{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-bottom:1px solid #eee8f6;padding-bottom:16px}.chat-header h3{margin:0 0 6px}.chat-controls{display:flex;gap:7px;flex-wrap:wrap;margin-left:auto}.chat-controls button{min-height:40px}.chat-back{display:none}.chat-messages{display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;max-height:52dvh;min-height:260px;padding:20px 0;flex:1}.chat-bubble{align-self:flex-start;max-width:88%;padding:12px 15px;border-radius:14px 14px 14px 3px;background:#f1edf7;overflow-wrap:anywhere}.chat-bubble.own{align-self:flex-end;background:#7850cf;color:white;border-radius:14px 14px 3px 14px}.chat-bubble.system{align-self:center;text-align:center;background:transparent;color:var(--muted);font-size:11px;padding:5px;max-width:100%}.chat-bubble b{font-size:10px;opacity:.8}.chat-bubble p{margin:5px 0;font-size:13px;white-space:pre-wrap;line-height:1.7}.chat-bubble time{display:block;text-align:right;font-size:9px;opacity:.65}.chat-compose{display:flex;gap:9px;align-items:end;padding-top:12px;border-top:1px solid #eee8f6}.chat-compose textarea{resize:vertical;max-height:150px;min-height:65px}.chat-compose button{min-height:48px;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
[data-theme="dark"] :is(.support-ticket,.support-filters button,.chat-bubble.other){background:#2b233a;border-color:#453855;color:#eee9f6}[data-theme="dark"] .support-ticket.selected{background:#38264f;border-color:#a17af9}[data-theme="dark"] .support-filters button.active{background:#7950cf}[data-theme="dark"] :is(.chat-header,.chat-compose){border-color:#453855}
@media(max-width:1000px){.support-workspace{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:780px){.support-workspace{display:block;min-height:0}.support-chat{display:none}.support-workspace.chat-selected .support-chat{display:flex}.support-workspace.chat-selected .support-queue{display:none}.support-ticket-list{max-height:none}.support-queue,.support-chat{padding:17px}.chat-back{display:block;width:100%;text-align:left}.chat-header{gap:8px}.chat-header h3{font-size:14px}.chat-controls{margin-left:0;width:100%}.chat-controls button{min-height:44px}.chat-messages{max-height:48dvh;min-height:230px}.chat-compose{flex-wrap:wrap}.chat-compose textarea{width:100%;font-size:16px}.chat-compose button{margin-left:auto;min-width:120px}.support-ticket{padding:16px}.support-filters{display:grid;grid-template-columns:repeat(4,1fr)}.support-filters button{min-height:44px;padding:8px 4px}.chat-bubble{max-width:92%}}
@media(max-width:780px){main:has(.support-workspace.chat-selected)>.heading{display:none}.support-workspace.chat-selected{margin-top:16px}.support-workspace.chat-selected .support-chat{height:calc(100dvh - 175px - var(--tg-inset-top,0px) - var(--tg-inset-bottom,0px));min-height:340px}.chat-selected .chat-messages{min-height:90px;max-height:none;flex:1}.chat-selected .chat-header{flex-shrink:0}.chat-selected .chat-controls{gap:4px}.chat-selected .chat-compose{flex-wrap:nowrap;flex-shrink:0}.chat-selected .chat-compose textarea{min-height:48px;height:48px;resize:none}.chat-selected .chat-compose button{min-width:0;font-size:11px;padding:12px}.chat-selected .fine{flex-shrink:0}.chat-selected .chat-bubble p{font-size:12px}}
.copyable-details{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}.copy-button{display:block;background:#ede5ff;color:#7850cf;padding:10px 13px;border-radius:8px;margin-top:12px;min-height:44px;font-size:12px;touch-action:manipulation}.copy-button:active{filter:brightness(.94)}[data-theme="dark"] .copy-button{background:#443052;color:#e5d3ff}.assets{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:780px){.assets{grid-template-columns:repeat(2,minmax(0,1fr))}}

.personal-card{display:flex;flex-direction:column;gap:8px;margin-top:18px}.personal-card button{border:0;background:transparent;color:white;text-align:left;font:600 16px monospace;letter-spacing:2px;min-height:44px;padding:0}.personal-card span{font-size:12px;opacity:.85}.card-transfer{margin-top:14px;border:1px solid #ffffff60;border-radius:14px;background:#ffffff15;color:white;min-height:44px;width:100%;font-weight:600}.brand-intro{position:fixed;inset:0;z-index:10000;background:var(--bg,#13101f);display:grid;place-items:center;pointer-events:none}.brand-intro img{width:80px;height:80px}.transfer-history{margin-top:20px}.balance{height:auto!important;min-height:280px}.cardactions{flex-wrap:wrap}

:root{--ease-in-out:cubic-bezier(.77,0,.175,1)}body{overflow-x:hidden}.view-content{min-width:0}button{transition:transform 140ms var(--ease-out),opacity 140ms var(--ease-out)}button:active{transform:scale(.97)}.nav button{transition:background-color 180ms ease,color 180ms ease,transform 140ms var(--ease-out)}.brand-intro{pointer-events:auto}@media(prefers-reduced-motion:reduce){button:active{transform:none}}

@media(max-width:780px){.view-content:has(.support-workspace.chat-selected)>.heading{display:none}}

.language-toggle{font-size:12px!important;font-weight:700;white-space:nowrap;min-width:48px}.staff-login-card>.language-toggle{float:right}.topright .language-toggle{display:block!important}

@media(max-width:780px){html[lang="en"] .table td:nth-child(2)::before{content:'Sent'}html[lang="en"] .table td:nth-child(3)::before{content:'To receive'}}

.wallet-tools{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}.wallet-tools .card-transfer{padding:10px;font-size:12px}
/* Keep receipt controls usable in Telegram's changing viewport and on touch screens. */
.recipient-fields{display:grid;gap:14px;min-width:0;margin:18px 0}.recipient-fields label{display:grid;gap:8px;min-width:0;color:var(--muted);font-size:12px;line-height:1.5}.recipient-fields .formlabel{margin:0}.recipient-fields .formcontrol{min-width:0;min-height:48px;font-size:16px}.payout-receipt-option{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 0;margin:12px 0;cursor:pointer;color:inherit;line-height:1.5;font-size:13px;touch-action:manipulation}.payout-receipt-option input[type=checkbox]{width:22px;height:22px;min-width:22px;min-height:22px;margin:0;accent-color:var(--purple);flex:none}.payout-receipt-option span{min-width:0;overflow-wrap:anywhere}.payout-receipt-option:focus-within{outline:2px solid #9570eb;outline-offset:3px;border-radius:8px}
/* A positioned close control must not become a shrinking item in the result column. */
.payout-receipt-option .sub{display:block;margin:4px 0 0;font-size:12px}
.operation-result-dialog{position:relative;width:min(100%,500px);background:var(--bank-surface,var(--bg,#fff));padding:64px 24px 24px}
.operation-result-dialog .close{position:absolute;float:none;inset:12px 12px auto auto;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none;font-size:22px;line-height:1;aspect-ratio:1;touch-action:manipulation}
.operation-result{text-align:center;min-width:0}
.operation-result>*{flex-shrink:0}
.operation-emblem{position:relative;width:80px;height:80px;margin:0 auto 20px;animation:result-mark 260ms var(--ease-out) both}
.operation-emblem img{display:block;width:100%;height:100%;border-radius:23px}
.operation-badge{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#15965e;color:#fff;border:4px solid var(--bank-surface,var(--bg,#fff));animation:result-mark 220ms 100ms var(--ease-out) both}
.operation-badge.pending{background:#7850cf}
.operation-badge svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.operation-result h2{font-size:clamp(20px,5.5vw,23px);line-height:1.35;margin:0 0 12px;overflow-wrap:anywhere}
.operation-recipient{font-size:19px;overflow-wrap:anywhere;margin:0 0 6px}
.operation-result .sub{margin:6px 0 14px}
.operation-amount{font-size:clamp(28px,8vw,42px);font-weight:700;line-height:1.25;letter-spacing:-1px;margin:22px 0 12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.operation-amount small{display:inline-block;font-size:.5em;letter-spacing:0;white-space:nowrap}
.operation-status{font-size:14px;line-height:1.6;color:var(--bank-muted,#91879f);margin:0 auto;max-width:330px}
.operation-summary{text-align:left;background:var(--bank-raised,#f2eef8);border-radius:24px;padding:20px;margin:22px 0 20px;min-width:0}
.operation-summary h3{font-size:17px;margin:0 0 16px}
.operation-summary>div{display:flex;justify-content:space-between;gap:16px;font-size:13px;margin:14px 0}
.operation-summary b{text-align:right;overflow-wrap:anywhere;min-width:0}
.operation-id{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;background:transparent;border:0;color:inherit;width:100%;text-align:left;padding:12px 0;min-height:64px;cursor:pointer}
.operation-id>span:first-child{font-size:12px;opacity:.65}
.operation-id strong{grid-column:1;grid-row:2;font-family:monospace;font-size:13px;overflow-wrap:anywhere;min-width:0}
.operation-id>span[aria-hidden]{grid-column:2;grid-row:1;font-size:19px}
.operation-copy-label{grid-column:2;grid-row:2;font-size:11px;color:#9570eb}
.operation-id:focus-visible{outline:2px solid #9570eb;outline-offset:5px;border-radius:8px}
.operation-done{min-height:54px;border-radius:18px}
.operation-result .operation-summary,.operation-result .operation-amount{animation:result-content 260ms 80ms var(--ease-out) both}
[data-theme=dark] .operation-summary{background:var(--bank-raised,#30263e)}
@keyframes result-mark{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@keyframes result-content{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:780px){
  .operation-result-layer{padding:0;align-items:stretch;overflow:hidden}
  .modalback.operation-result-layer .operation-result-dialog{--result-safe-top:max(env(safe-area-inset-top,0px),var(--tg-inset-top,0px));--result-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-inset-bottom,0px));border-radius:0;width:100%;height:100dvh;max-height:100dvh;min-height:0;padding:calc(64px + var(--result-safe-top)) max(20px,env(safe-area-inset-right,0px),var(--tg-inset-right,0px)) calc(16px + var(--result-safe-bottom)) max(20px,env(safe-area-inset-left,0px),var(--tg-inset-left,0px));display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
  .operation-result-dialog .close{top:calc(10px + var(--result-safe-top));right:max(12px,env(safe-area-inset-right,0px),var(--tg-inset-right,0px))}
  .operation-result{flex:1 0 auto;display:flex;flex-direction:column;align-items:stretch}
  .operation-result .operation-emblem{width:72px;height:72px;margin-bottom:18px}
  .operation-result .operation-emblem img{border-radius:21px}
  .operation-summary{border-radius:22px;padding:18px}
  .operation-done{position:sticky;bottom:0;z-index:1;margin-top:auto}
}
@media(max-height:650px) and (max-width:780px){
  .operation-result .operation-emblem{width:60px;height:60px;margin-bottom:14px}
  .operation-result .operation-emblem img{border-radius:18px}
  .operation-amount{margin:16px 0 10px;font-size:30px}
  .operation-summary{margin:18px 0 16px;padding:16px}
}
@media(prefers-reduced-motion:reduce){.operation-emblem,.operation-badge,.operation-result .operation-summary,.operation-result .operation-amount{animation:none}}
