/* Trader portal: layout measured against the reference at 1440 px. */
@font-face{font-family:Inter;src:url('/trader-assets/fonts/inter.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--ink:#d2d2d2;--muted:#868b91;--line:#464646;--blue:#00a8ed;--canvas:#0d0d0d;--surface:#1e1e1d;--field:#2a2a2a}
body.light{--ink:#30353b;--muted:#777e86;--line:#d4d7dc;--canvas:#f5f6f8;--surface:#fff;--field:#f0f1f3}
body{font:14px/1.5 Inter,Arial,sans-serif;background:var(--canvas);color:var(--ink)}
header{height:62px;position:sticky;top:0;z-index:3;background:var(--surface);padding:0 32px;box-shadow:none}.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:4px;color:var(--ink)!important;margin:0}.brand b{color:#ffbc00;font-size:52px;line-height:1;font-weight:600}.brand strong{font-size:27px;font-weight:700;letter-spacing:-1px}.topbar .row{gap:16px}.topbar #theme{background:#404040;border:0;font-size:23px;width:44px;height:42px;padding:0}.topbar #logout{border:0;color:var(--muted);padding-right:0}
aside{position:fixed;top:62px;bottom:0;left:0;width:320px;padding:40px 32px;overflow:auto}aside nav{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0}aside nav a{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px;border-radius:18px;font-size:16px;font-weight:400;color:var(--muted)}aside nav a.active,aside nav a:hover{color:var(--ink);background:var(--surface)}.nav-icon{width:32px;height:32px;border-radius:50%;background:var(--surface);display:inline-grid;place-items:center;font-size:22px;color:#65717c}.active .nav-icon{color:#4ba3e8}.side-info{display:block;margin-top:32px;padding:14px 16px;border-radius:18px;background:var(--surface);color:var(--ink)}.side-info small{color:var(--ink)}.side-info strong{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:16px}.telegram-icon{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#24b5df;color:white}.side-account{padding:22px 10px;color:var(--muted);font-size:12px}.side-account button{display:none}
main{max-width:none;margin:0 0 0 320px;padding:40px 32px 40px 28px}h1{font-size:24px;margin:0 0 36px;font-weight:600}h2{font-size:18px}.section-heading{margin:40px 0 18px}.card{border-radius:24px;background:var(--surface);box-shadow:none;padding:24px}.cards{gap:24px}.cards.balance-cards{display:flex;flex-wrap:wrap;gap:0;background:var(--surface);border-radius:24px;padding:24px}.balance-cards>.card:first-child{width:100%;padding:0}.balance-cards .balance-secondary{padding:8px 24px 8px 90px;width:50%}.balance-secondary h2{font-size:14px;color:var(--muted);margin:0}.balance-secondary strong{font-size:14px}.balance{align-items:center}.balance strong{font-size:28px}.coin{width:72px;height:72px;display:grid;place-items:center;font-size:46px;background:#23a381;flex-shrink:0}.key{font-family:inherit;color:var(--muted)}
button{border-radius:5px;padding:11px 12px;color:var(--muted);border:1px solid var(--line);background:transparent;font-weight:500}button:hover{background:var(--field);color:var(--ink)}.filled,.square{background:#444;color:#fff;border-color:#444}.blue{background:var(--blue);border-color:var(--blue);color:#fff}.blue:hover{background:#0094cf;color:#fff}.gold{background:#ffb617;border-color:#ffb617;color:#fff}.square{height:44px;width:44px;padding:0;display:inline-grid;place-items:center;font-size:22px}.actions{gap:14px}.copy{padding:0 3px;border:0!important;background:none!important;color:var(--muted);font-size:15px;line-height:1}.copy:hover{color:var(--blue)}
input,select{background:var(--field);color:var(--ink);border-color:var(--line);border-radius:8px;padding:10px 12px;min-height:42px;color-scheme:dark;font-weight:400}body.light input,body.light select{color-scheme:light}label>span{color:var(--muted)}input[type=checkbox]{accent-color:#27956b;min-height:0}.switch{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--muted)}.switch span{margin:0}.switch input{appearance:none;width:44px;height:24px;min-height:0;padding:0;border:0;border-radius:20px;background:#404040;position:relative;cursor:pointer;flex-shrink:0}.switch input:after{content:'';position:absolute;width:20px;height:20px;background:#fff;border-radius:50%;left:2px;top:2px}.switch input:checked{background:var(--blue)}.switch input:checked:after{left:22px}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;background:var(--surface);padding:16px;border-radius:24px;margin:0 0 40px}.filters label{margin:0}.compact-filters label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.compact-filters .actions{grid-column:auto;gap:16px;flex-wrap:nowrap}.compact-filters button{padding:11px}.compact-filters .actions button:first-child{color:#fff}.requisite-toolbar{margin:0 0 16px}.requisite-toolbar #newRequisite{margin-left:auto}.page-size{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:5px;padding:8px 12px;color:var(--muted);margin:0}.page-size select{border:0;background:transparent;min-height:0;padding:0;width:52px}.table-wrap{background:transparent;border-radius:0;margin:0;overflow:auto}table{border-collapse:separate;border-spacing:0 4px;font-size:13px}th{background:transparent;color:var(--muted);font-weight:400;border:0;font-size:12px;padding:6px 8px}td{background:var(--surface);border:0;padding:16px 8px}tbody tr:nth-child(odd),tbody tr:nth-child(even){background:transparent}td:first-child{border-radius:16px 0 0 16px;padding-left:16px}td:last-child{border-radius:0 16px 16px 0;padding-right:16px}.requisite-table{margin-top:4px}.requisite-table table{min-width:980px}.requisite-table td{height:76px}.requisite-table th:first-child{width:22%;padding-left:0}.requisite-table strong{font-size:13px;font-weight:500}.requisite-table td small{font-size:11px}.limit-meter{height:16px;position:relative;border-radius:12px;min-width:80px;overflow:hidden;background:repeating-linear-gradient(45deg,#4a4a4a 0,#4a4a4a 5px,#555 5px,#555 10px);margin:3px 0}.limit-meter i{position:absolute;inset:0 auto 0 0;background:#168cc4}.limit-meter span{position:relative;display:block;text-align:center;font-size:10px;line-height:16px;color:#eee}.group-row td{padding:8px 16px;border-radius:8px;background:var(--field)}
.bank-mark{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:50%;background:#52636c;color:white;font-size:22px;flex-shrink:0}.bank-mark.sber{background:#f4f5f6;color:#39a461}.bank-mark.tbank{background:#ffdd2d;color:#222;font-weight:700}.bank-mark.alfa{background:#ed2332;color:white}.deal-requisite{display:flex;align-items:center;gap:8px;min-width:0}.deal-requisite>div{min-width:0}.deal-requisite small,.deal-amount small,.deal-state small,.deal-identity small{display:block;color:var(--muted);font-size:11px}.deal-requisite span:not(.bank-mark){overflow-wrap:anywhere}
.deal-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 36px}.deal-tabs a{display:flex;align-items:center;gap:10px;background:var(--surface);border:2px solid transparent;padding:17px 18px;border-radius:19px;font-size:16px;color:var(--muted)}.deal-tabs a.active{border-color:var(--blue);box-shadow:inset 0 0 0 4px var(--canvas)}.deal-tabs a b{width:32px;height:32px;border-radius:50%;background:#133443;color:#00a8ed;display:grid;place-items:center;font-size:22px;font-weight:400}.deal-tabs a[data-tab=out] b{background:#3a2d15;color:#e79d12}.deal-tabs a[data-tab=dispute] b{background:#422124;color:#ed474e}.deal-tabs a[data-tab=all] b{background:#292e32;color:#6b7783}.deal-tabs .auto{margin-left:auto}.deal-filters{margin:-12px 0 22px;color:var(--muted)}.deal-filters summary{font-size:12px}.deal-filters .filters{margin:14px 0}.deal-list{display:flex;flex-direction:column;gap:4px;overflow:auto}.deal-line{display:grid;grid-template-columns:minmax(140px,1.1fr) minmax(135px,1.1fr) minmax(110px,1fr) minmax(150px,1.2fr) minmax(50px,.5fr) minmax(190px,1.4fr) 92px;align-items:center;gap:16px;min-width:1050px;min-height:90px;padding:16px;border-radius:16px;background:var(--surface);font-size:13px}.deal-identity{display:flex;align-items:center;gap:8px}.deal-id{font-weight:600;white-space:nowrap}.direction-badge{display:inline-block!important;background:#008ac0;color:#c6eafa!important;font-size:9px!important;line-height:15px;padding:0 3px;border-radius:2px}.deal-symbol{width:30px;height:30px;border-radius:50%;background:#172d37;display:grid;place-items:center;color:var(--blue);font-size:22px}.deal-symbol.canceled,.deal-symbol.expired,.deal-symbol.dispute{color:#e74a50}.deal-symbol.completed{color:#24b67c}.deal-state strong,.deal-amount strong{font-size:13px;font-weight:500}.deal-countdown{display:block;color:#00b1ed;font-variant-numeric:tabular-nums}.deal-countdown.overdue{color:#ed5861}.deal-device{color:#32b269;white-space:nowrap}.deal-device span{color:var(--muted)}.deal-buttons{display:flex;gap:4px}.deal-buttons .square{width:42px;height:42px}.deal-buttons button:disabled{opacity:.35}.empty{background:var(--surface);padding:28px;border-radius:20px}.pagebar{color:var(--muted);font-size:12px}.pagebar button{padding:5px 12px}.deal-meta{display:grid;grid-template-columns:160px 1fr;gap:10px}.deal-meta dd{margin:0;overflow-wrap:anywhere}.deal-meta dt{color:var(--muted)}
.setting{max-width:none;margin-bottom:24px}.setting label:not(:has(input[type=checkbox])),.form-line:not(:has(input[type=checkbox])){display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:center;margin:16px 0}.setting label>span,.form-line>span{margin:0}.setting form>button{margin-left:216px}.setting.security h2{display:inline-block;font-size:14px;font-weight:400;width:200px;margin:0}.security p{display:inline;margin:0 16px}.security #twoFactor{background:#ffb617;color:white;border:0}.telegram-settings label{margin:4px 0}.telegram-settings form{padding-left:216px}.telegram-settings form>button{margin-left:0;margin-top:16px}.balance-cards+.spacer{margin-top:24px}.tag{background:var(--canvas);font-size:12px}.help{background:var(--field);color:var(--muted)}
dialog{background:var(--canvas);color:var(--ink);border-radius:18px;padding:24px;width:min(1000px,96vw);max-height:96vh;box-shadow:0 12px 50px #0005}dialog::backdrop{background:#0004;backdrop-filter:blur(5px)}dialog h2{font-size:24px;font-weight:600;padding-right:32px;margin-bottom:26px}dialog form{background:var(--surface);padding:24px;border-radius:24px}dialog .modal-x{position:absolute;right:16px;top:20px;width:26px;height:26px;border-radius:50%;background:#87919b;color:#111;border:0;padding:0;font-size:23px;line-height:26px}dialog pre{background:var(--field);color:var(--ink);border-radius:8px}.fields-2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.fields-2 .form-line{grid-template-columns:140px 1fr}.requisite-dialog .form-line:has(input[type=checkbox]){display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:24px}.requisite-dialog input[type=checkbox]{width:22px;height:22px}.requisite-dialog .fields-2{margin:24px 0}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.login{max-width:440px}.logged-out main{margin:0}.logged-out aside{display:none}#notice{background:#354150}.pill{background:var(--field);color:var(--ink)}
@media(min-width:1800px){.deal-line{grid-template-columns:1.1fr 1.1fr 1.3fr 1.3fr .4fr 1.6fr 160px}.deal-buttons{justify-content:flex-start}}
@media(max-width:1200px){aside{width:250px;padding:30px 20px}main{margin-left:250px;padding:30px 24px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.requisite-table table{min-width:980px}.setting label:not(:has(input[type=checkbox])),.form-line:not(:has(input[type=checkbox])){grid-template-columns:160px 1fr}.setting form>button{margin-left:176px}}
@media(max-width:760px){header{height:62px;padding:0 10px}.topbar{height:62px;gap:8px}.brand{gap:2px}.brand b{font-size:36px}.brand strong{font-size:18px;letter-spacing:-.7px}.topbar .row{gap:10px}.topbar #theme{order:3;width:40px}.topbar #menu{order:4;margin:0;padding:4px 10px;border-radius:5px;background:#404040;font-size:23px}.topbar #logout{display:none}.topbar .switch{position:relative}.topbar .switch span{font-size:10px;position:absolute;top:-15px;left:0}.topbar .switch input{width:40px}.topbar .switch input:checked:after{left:18px}.topbar .switch{margin-top:14px}aside{display:none;top:62px;width:100%;background:var(--canvas);z-index:4;padding:24px}.side-account button{display:block;margin-top:12px}aside.open{display:block}main{margin:0;padding:20px 10px}.menu{display:block}.card{padding:20px}h1{font-size:23px;margin-bottom:40px}.filters{gap:10px;padding:14px}.compact-filters .actions{grid-column:1/-1;justify-content:flex-start}.requisite-toolbar{gap:8px}.requisite-toolbar button{padding:9px}.requisite-table{margin-top:10px}.deal-tabs{gap:8px}.deal-tabs a{padding:14px 16px}.deal-tabs .auto{margin-left:auto}.deal-line{min-width:1000px}.setting label:not(:has(input[type=checkbox])),.form-line:not(:has(input[type=checkbox])){display:block}.setting form>button,.telegram-settings form{margin-left:0;padding-left:0}.setting label>span,.form-line>span{display:block;margin-bottom:6px}.fields-2{grid-template-columns:1fr}.cards.balance-cards{padding:18px}.balance-cards .balance-secondary{width:100%;padding:8px 0}.balance strong{font-size:22px}.coin{width:52px;height:52px;font-size:32px}.deal-meta{grid-template-columns:110px 1fr}.login{margin:5vh auto}dialog{padding:16px}dialog form{padding:16px}dialog h2{font-size:20px}}
.requisite-dialog form{background:transparent;padding:0}.form-panel,.requisite-dialog .fields-2{background:var(--surface);padding:8px 24px;border-radius:24px;margin:16px 0}.requisite-dialog .fields-2{padding-top:12px;padding-bottom:12px}.setting .form-line{display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:center;margin-bottom:16px}.setting .form-line>span{color:var(--muted)}
@media(max-width:760px){.form-panel,.requisite-dialog .fields-2{padding:12px}.setting .form-line{grid-template-columns:1fr}}
:root{color-scheme:dark}body.light{color-scheme:light}*{scrollbar-width:thin;scrollbar-color:#454545 transparent}.requisite-table .actions{flex-wrap:nowrap;gap:8px}.requisite-table th:last-child{width:112px}.requisite-table td:nth-child(2),.requisite-table td:nth-child(3){max-width:90px;white-space:normal;overflow-wrap:anywhere}.requisite-table td{padding-top:16px;padding-bottom:16px}.requisite-dialog .form-line.switch{flex-direction:row;justify-content:flex-start}.requisite-dialog .form-line.switch>span{width:192px;flex-shrink:0}.requisite-dialog .switch input{width:44px;height:24px}
.reward-section{width:100%;margin-top:24px!important;padding:8px 0 0!important}.reward-section h2{font-size:16px;color:var(--muted)}.stat-count{display:block;font-size:32px}.stat-count small{font-size:16px}.stats-values{display:flex;gap:32px;margin-top:14px}.stats-values strong{display:block;margin-top:6px;font-weight:500}.stats-card small,.stats-values{color:var(--muted)}.stats-values strong,.stat-count{color:var(--ink)}@media(max-width:760px){.stats-values{flex-direction:column;gap:10px}}
/* Filled SVG icons keep the same weight across platforms and font sets. */
.ui-icon{width:20px;height:20px;fill:currentColor;display:inline-block;vertical-align:middle;flex-shrink:0}.nav-icon .ui-icon{width:18px;height:18px}.copy .ui-icon{width:14px;height:14px}.square .ui-icon{width:17px;height:17px}.topbar #theme .ui-icon{width:20px;height:20px}.topbar #logout .ui-icon{width:16px;height:16px;margin-right:5px}.telegram-icon .ui-icon{width:18px;height:18px}.topbar .switch input:checked{background:#06bf42}.home-accounts{display:grid;gap:24px}.home-balance{padding:24px;border-radius:26px}.home-wallet{display:flex;align-items:flex-start;gap:16px;min-width:0}.tether-coin{display:block;width:76px;height:76px;position:relative;flex-shrink:0}.tether-coin>svg{width:100%;height:100%}.tron-badge{position:absolute;right:-1px;bottom:-1px;width:28px;height:28px;background:#ed001b;border:3px solid var(--surface);color:#fff;display:grid;place-items:center;border-radius:50%;font-size:20px;line-height:1;transform:rotate(15deg)}.wallet-value{padding-top:6px;min-width:0}.wallet-value>strong{font-size:30px;line-height:1.4;font-weight:600}.wallet-value p{margin:0;color:#768692;font-size:13px}.wallet-actions{display:flex;gap:8px;margin-left:auto;flex-shrink:0}.wallet-actions .button{display:inline-block;border:1px solid #444;border-radius:5px;padding:11px 12px;font-weight:500;color:#fff}.home-security{display:flex;gap:80px;margin:22px 0 40px 92px}.home-security>div{display:flex;gap:12px;align-items:center}.home-security .ui-icon{color:#00a8ed;width:26px;height:26px}.home-security p{margin:0}.home-security span{display:block;color:var(--muted);font-size:14px}.home-security strong{display:block;font-weight:500;font-size:13px}.home-rewards h2{font-size:14px;font-weight:400;color:var(--muted);margin:0 0 12px}.home-rewards>div{display:flex;align-items:baseline;gap:32px;min-height:32px}.home-rewards>div>span{font-size:14px;color:var(--muted);width:60px;flex-shrink:0}.home-rewards>div>div{display:flex;flex-wrap:wrap;gap:8px}.home-rewards .tag{font-size:12px;font-weight:500}.home-today{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:40px 0}.home-today .card{padding:24px}.home-today summary{list-style:none;color:var(--muted);font-size:14px}.home-today summary::-webkit-details-marker{display:none}.home-today summary:hover{color:var(--ink)}.home-disputes{color:#ee3546;font-size:18px;margin:0 0 12px}.home-today details[open] summary{margin-bottom:16px}
@media(max-width:1100px){.home-security{gap:32px;margin-left:0}.wallet-value>strong{font-size:24px}.tether-coin{width:64px;height:64px}}
@media(max-width:760px){.home-balance{padding:20px}.home-wallet{flex-wrap:wrap;gap:12px}.wallet-value{flex:1}.wallet-value>strong{font-size:21px}.tether-coin{width:52px;height:52px}.wallet-actions{margin-left:64px}.home-security{flex-direction:column;gap:16px;margin:24px 0}.home-today{grid-template-columns:1fr;gap:16px;margin:24px 0}.home-rewards>div{gap:16px}.home-today .card{padding:20px}.home-security .ui-icon{width:24px;height:24px}}

.telegram-settings .notification-row{display:grid;grid-template-columns:188px minmax(0,1fr);gap:16px;margin-bottom:12px;align-items:start;color:var(--muted)}.notification-options label{display:flex;align-items:center;gap:8px;margin:0;min-height:27px;font-weight:400}.notification-options input[type=checkbox]{appearance:none;width:23px;height:23px;min-height:23px;border:2px solid #484b4d;border-radius:4px;background:#282b2c;padding:0;flex-shrink:0}.notification-options input:checked{background:var(--blue);border-color:var(--blue)}.notification-options input:checked:after{content:'✓';display:block;text-align:center;color:white;line-height:19px}.notification-options small{color:var(--ink)}.notification-row>input{max-width:360px}.telegram-settings .notification-row:last-child{margin-bottom:0}.telegram-settings form{margin:0}.notification-options input:disabled{opacity:.55}@media(max-width:760px){.telegram-settings .notification-row{grid-template-columns:1fr;gap:8px}.notification-options label{flex-wrap:wrap}.notification-options small{margin-left:31px}}
.requisite-dialog .farm-panel>.switch{display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:center}.requisite-dialog .farm-panel>.switch>span{order:0}.requisite-dialog .farm-panel>.switch>input{order:1}@media(max-width:760px){.requisite-dialog .farm-panel>.switch{grid-template-columns:minmax(0,1fr) 44px}}
.telegram-settings form{padding:0}.telegram-settings .notification-options label>span{width:auto}.telegram-settings .notification-row{grid-template-columns:200px minmax(0,1fr)}@media(max-width:760px){.telegram-settings .notification-row{grid-template-columns:1fr}}

.counterparties-panel{padding:24px}.counterparties-panel button{width:100%;font-weight:600}.requisite-dialog .same-bank-panel>.switch{display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:center;min-height:56px}.requisite-dialog .same-bank-panel>.switch>span{order:0}.requisite-dialog .same-bank-panel>.switch>input{order:1}.counterparties-dialog{width:min(1600px,96vw);max-width:96vw}.counterparties-dialog .table-wrap{overflow:auto}.counterparties-dialog th{white-space:normal;min-width:95px}.counterparties-dialog .close{float:right}@media(max-width:760px){.requisite-dialog .same-bank-panel>.switch{grid-template-columns:minmax(0,1fr) 44px}}
.requisite-dialog .same-bank-panel>.form-line.switch:has(input[type=checkbox]),.requisite-dialog .farm-panel>.form-line.switch:has(input[type=checkbox]){display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:center}.requisite-dialog .same-bank-panel>.switch input,.requisite-dialog .farm-panel>.switch input{margin:0}@media(max-width:760px){.requisite-dialog .same-bank-panel>.form-line.switch:has(input[type=checkbox]),.requisite-dialog .farm-panel>.form-line.switch:has(input[type=checkbox]){grid-template-columns:minmax(0,1fr) 44px}}
.requisite-dialog form>.actions{justify-content:space-between}.requisite-dialog form>.actions>[data-close]{background:#444;color:#fff;border-color:#444}

/* Merchant-to-trader cycle: reference columns, inline timer, and confirmation. */
.deal-line,.deal-list-heading{grid-template-columns:minmax(150px,1.05fr) minmax(180px,1.35fr) minmax(95px,.65fr) minmax(180px,1.2fr) minmax(85px,.55fr) minmax(90px,.65fr) minmax(225px,1.4fr) 92px;gap:16px;min-width:1235px}
.deal-list-heading{display:grid;padding:0 16px 20px;align-items:center;color:var(--muted);font-size:12px}
.deal-line{min-height:90px;padding:16px;border-radius:16px}.deal-list{gap:4px;padding-bottom:8px}
.deal-symbol .ui-icon,.deal-tabs b .ui-icon{fill:none;width:22px;height:22px}.deal-symbol{flex-shrink:0}
.state-with-timer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.deal-countdown{display:inline-flex;align-items:center;gap:4px;background:#f94d5b;border-radius:4px;padding:1px 5px;color:#fff;font-size:11px;font-weight:600;white-space:nowrap}.deal-countdown:before{content:'';width:11px;height:11px;display:inline-block;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 90deg,#fff 90deg 360deg);border:1px solid #fff}.deal-countdown.overdue{color:#fff}
.deal-device{display:flex;align-items:center;gap:4px}.deal-device .ui-icon{width:15px;height:20px}.deal-group{color:var(--ink);overflow-wrap:anywhere}.deal-requisite>div>span{display:flex;align-items:center}.deal-requisite .bank-mark{width:36px;height:36px;font-size:20px}.bank-mark.tbank{border:6px solid #f4f4f4;font-size:16px}.deal-requisite small{line-height:1.4}
.confirm-deal-dialog{width:min(520px,94vw);background:var(--surface);padding:28px;border-radius:20px}.confirm-deal-dialog h2:empty{display:none}.confirm-deal-dialog form{padding:0;border-radius:0}.confirm-deal-dialog p{margin:0 0 20px;line-height:1.6}.confirm-deal-dialog .modal-x{display:none}.confirm-deal-dialog .actions{justify-content:flex-end}.confirm-deal-dialog .error:empty{display:none}
@media(max-width:760px){.deal-line,.deal-list-heading{min-width:1235px}.deal-list-heading{padding-bottom:12px}}
.deal-line,.deal-list-heading{grid-template-columns:minmax(130px,1.05fr) minmax(185px,1.35fr) minmax(80px,.65fr) minmax(180px,1.2fr) minmax(85px,.55fr) minmax(90px,.65fr) minmax(225px,1.4fr) 92px}
@media(min-width:761px){.side-account{display:none}}
.deal-device{min-width:0;white-space:normal;align-items:flex-start}.deal-device span{min-width:0;overflow-wrap:anywhere;line-height:1.4}

@media(min-width:761px){.home-security{gap:0;margin-bottom:36px}.home-security>div{min-width:296px;gap:10px}.home-security .ui-icon{box-sizing:content-box;background:#070a0c;border-radius:50%;padding:7px;width:26px;height:26px}.home-security span,.home-security strong{font-size:16px;line-height:24px}.home-rewards h2{font-size:16px;margin-bottom:10px}.home-rewards>div{gap:4px;min-height:38px}.home-rewards>div>span{font-size:16px}.home-rewards .tag{font-size:14px;padding:8px}.home-today summary{font-size:16px}.wallet-value p{font-size:16px}}

.side-rate strong{display:flex;align-items:center;gap:8px}.tether-icon{display:inline-block;position:relative;width:32px;height:32px;flex:none}.tether-icon>svg{display:block;width:100%;height:100%}.side-rate .rate-status{font-size:10px;margin-top:4px}.side-rate .stale{color:#ffb525}
.two-factor-qr{max-width:240px;margin:18px auto;background:#fff;border-radius:8px;overflow:hidden}.two-factor-qr:empty{display:none}.two-factor-qr svg{display:block;width:100%;height:auto}
/* Forms and resource dialogs measured from the original trader cabinet. */
.reference-icon{background:currentColor;mask-repeat:no-repeat;mask-size:contain;mask-position:center}.bank-mark.bank-logo{background:#fff;border:0;padding:0;border-radius:50%;overflow:hidden;aspect-ratio:1}.bank-mark.bank-logo img{border-radius:50%}.bank-logo img{display:block;width:100%;height:100%;object-fit:contain}
dialog.resource-dialog,dialog.resource-editor-dialog,dialog.operator-editor-dialog,dialog.deal-details-dialog{top:0;bottom:auto;margin:16px auto;padding:16px;max-height:calc(100vh - 32px)}
.resource-dialog,.resource-editor-dialog{width:min(600px,96vw)}.operator-editor-dialog{width:min(1000px,96vw)}
.resource-dialog h2,.resource-editor-dialog h2,.operator-editor-dialog h2{margin:7px 0 28px;font-size:24px}
.resource-dialog form,.resource-editor-dialog form,.operator-editor-dialog form{background:transparent;padding:0;border-radius:0}
.resource-dialog form>.actions{display:none}.resource-dialog .error:empty{display:none}.resource-table th{font-size:12px}.resource-table td{padding:4px;font-size:13px;border-radius:0;white-space:normal}.resource-table td:first-child{padding-left:4px}.resource-table td:last-child{padding-right:4px}.resource-table th:last-child{width:1%}.resource-table .copy{margin-left:4px}.resource-actions{display:flex;justify-content:flex-end;gap:6px;white-space:nowrap}.resource-actions .square{width:44px;height:44px;flex-shrink:0}.resource-device{display:inline-flex;color:#bd727b}.resource-device.enabled{color:#04b34c}.resource-device .ui-icon{width:16px;height:20px}.resource-dialog #addResource{width:100%;margin-top:4px;color:var(--ink)}
.resource-editor-dialog h2:empty{display:block;height:40px;margin-bottom:24px}.resource-editor-dialog .form-panel,.operator-editor-dialog .form-panel{margin:0;padding:16px 24px}.resource-editor-dialog .form-panel>label,.operator-editor-dialog .form-panel>label{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:center;margin:8px 0 16px}.resource-editor-dialog .form-panel>label:last-child,.operator-editor-dialog .form-panel>label:last-child{margin-bottom:8px}.resource-editor-dialog .form-panel>label>span,.operator-editor-dialog .form-panel>label>span{margin:0;font-size:16px}.resource-editor-dialog form>.actions,.operator-editor-dialog form>.actions{justify-content:space-between}.resource-editor-dialog [data-close],.operator-editor-dialog [data-close]{background:#444;color:#fff;border-color:#444}.operator-editor-dialog .switch input:checked{background:#06bf42}
.resource-group-picker{position:relative;min-width:0}.resource-group-picker summary{display:block;list-style:none;background:var(--field);border:1px solid var(--line);border-radius:8px;padding:8px 30px 8px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.resource-group-picker summary:after{content:'▾';position:absolute;right:12px}.resource-group-picker>div{position:absolute;top:100%;left:0;right:0;z-index:10;max-height:220px;overflow:auto;padding:8px;background:var(--field);border:1px solid var(--line);border-radius:6px}.resource-group-picker>div label{display:flex;gap:8px;margin:4px}.resource-group-picker>div label span{margin:0}
.operator-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}.operators-table th:last-child{width:100px}.operators-table td small{display:block;color:var(--muted);font-size:12px}.operators-table td:last-child{text-align:right}
.trader-deal-filters label>span:not(.filter-check span){font-size:12px}.trader-deal-filters .filter-check{display:flex;align-items:center;gap:8px;margin:0}.trader-deal-filters .filter-check span{margin:0}.trader-deal-filters .filter-check input{width:auto}
.deal-details-dialog{width:min(1000px,96vw)}.deal-details-dialog form{background:transparent;padding:0}.deal-properties{white-space:normal}.deal-properties th{width:210px;font-size:14px;padding:12px 16px;background:var(--surface)}.deal-properties td{border-radius:0!important;overflow-wrap:anywhere}.deal-details-dialog h3{font-weight:500;margin:24px 0 12px}.deal-details-dialog form>.actions{justify-content:flex-end}.deal-properties .bank-mark{display:inline-flex;width:28px;height:28px;vertical-align:middle;margin-right:6px}
.resource-editor-dialog .resource-selector{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:center;margin:8px 0}.resource-selector>span{font-size:16px;color:var(--muted)}
.trader-deal-filters{grid-template-columns:repeat(5,minmax(0,1fr))}.trader-deal-filters label:not(.filter-check)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.trader-deal-filters .actions{grid-column:2/-1;justify-content:flex-start}.trader-deal-filters .filter-check input{appearance:none;width:23px;height:23px;border:2px solid #484b4d;border-radius:4px;background:var(--field);padding:0;flex-shrink:0}.trader-deal-filters .filter-check input:checked{background:var(--blue);border-color:var(--blue)}.trader-deal-filters .filter-check input:checked:after{content:'✓';display:block;text-align:center;color:white;line-height:19px}
@media(max-width:760px){.resource-editor-dialog .resource-selector{grid-template-columns:1fr;gap:6px}.trader-deal-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.trader-deal-filters .actions{grid-column:1/-1;flex-wrap:wrap}}
.trader-stats-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.trader-stats-filters label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.trader-stats-filters .actions{justify-content:flex-start}.stats-card{margin-bottom:16px}body[data-view=stats] .deal-tabs{margin-bottom:16px}body[data-view=stats] .deal-tabs .blue{background:#444;border-color:#444}
.deal-details-dialog .deal-properties th,.deal-details-dialog .deal-properties td{background:transparent;padding:8px 16px;border:0}.deal-details-dialog .deal-properties th{width:178px;color:var(--ink);font-size:12px;font-weight:500}.deal-details-dialog .deal-properties tr:nth-child(odd) th,.deal-details-dialog .deal-properties tr:nth-child(odd) td{background:var(--surface)}.deal-details-dialog .deal-properties th:first-child{border-radius:8px 0 0 8px}.deal-details-dialog .deal-properties td:last-child{border-radius:0 8px 8px 0!important}.deal-details-dialog h3{font-size:24px;font-weight:600;margin:28px 0}.deal-details-dialog .table-wrap td{padding:6px 8px;border-radius:0;background:transparent}.deal-details-dialog .table-wrap tr:nth-child(odd) td{background:var(--surface)}
.notification-options input:checked{background:#282b2c;border-color:#484b4d}.notification-options input:checked:after{color:#27a66f}.telegram-settings .notification-row{font-size:16px}
@media(max-width:760px){.trader-stats-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.deal-details-dialog .deal-properties th{width:34%}.deal-details-dialog .deal-properties td,.deal-details-dialog .deal-properties th{padding:8px}}
@media(max-width:760px){.resource-editor-dialog .form-panel>label,.operator-editor-dialog .form-panel>label{grid-template-columns:1fr;gap:6px}.resource-editor-dialog .form-panel>.switch,.operator-editor-dialog .form-panel>.switch{grid-template-columns:minmax(0,1fr) 44px}.resource-editor-dialog .form-panel,.operator-editor-dialog .form-panel{padding:14px}.resource-actions{gap:3px}.resource-actions .square{width:32px;height:36px}.resource-dialog{width:96vw}.resource-table td{max-width:180px;overflow-wrap:anywhere}.deal-properties th{width:35%;padding:10px}.deal-properties td{padding:10px}}

/* Sidebar artwork: monochrome navigation, full-color payment and messenger marks. */
#sidebar .nav-icon{flex:none;color:#4f5965;background:#1c1c1c}
#sidebar .nav-icon .ui-icon{width:20px;height:20px}
#sidebar .active .nav-icon{color:#00a8ed}
#sidebar nav a{border-radius:16px}
#sidebar .side-info{min-height:86px;padding:16px;border-radius:16px;background:#1c1c1c}
#sidebar .side-info+.side-info{margin-top:8px}
#sidebar .side-info>small:first-child{display:block;font-size:14px;line-height:17px;font-weight:500}
#sidebar .side-info strong{margin-top:5px;min-height:32px;line-height:24px;font-size:16px;font-weight:600}
#sidebar .side-info .rate-status[hidden]{display:none}
.telegram-icon{width:33px;background:transparent;flex:none}
.telegram-icon .brand-icon{display:block;width:33px;height:32px;object-fit:contain}
.tether-icon>svg.tron-badge,.tether-coin>svg.tron-badge{position:absolute;right:-1px;bottom:-1px;width:28px;height:28px;border:2px solid var(--surface);border-radius:50%;background:none;transform:none}
.tether-icon>svg.tron-badge{width:14px;height:14px;border-width:1px}
body.light #sidebar .nav-icon,body.light #sidebar .side-info{background:var(--surface)}

/* Exact amount lookup is available beside active deal directions. */
.deal-amount-search{display:flex;align-items:center;gap:6px;margin:0 0 0 12px;min-width:0}.deal-amount-search input{width:145px;min-width:0;margin:0}.deal-amount-search button{padding:10px 12px;flex:none}.deal-tabs{flex-wrap:wrap}.deal-tabs .auto{margin-left:auto}@media(max-width:760px){.deal-amount-search{order:5;flex-basis:100%;margin:0}.deal-amount-search input{flex:1;width:auto}}

/* Approval state is distinct from phone connectivity. */
.device-approval-label{display:block;margin-top:4px;color:var(--muted,#89919c);font-size:11px}
.resource-selector select{width:100%;margin-top:8px}.resource-selector small{display:block;margin-top:8px;color:var(--muted,#89919c)}

/* Keep the reference balance blocks inside the narrower desktop and phone cards. */
@media(min-width:761px) and (max-width:1100px){
 .home-wallet{flex-wrap:wrap}
 .home-wallet .wallet-value{flex:1 1 180px}
 .home-wallet .wallet-actions{max-width:100%;min-width:0;flex-shrink:1;flex-wrap:wrap}
 .home-security{flex-wrap:wrap;gap:16px 24px}
 .home-security>div{min-width:0;flex:1 1 250px}
}
@media(max-width:760px){
 .home-wallet .wallet-actions{max-width:100%;min-width:0;flex-shrink:1;flex-wrap:wrap}
 .wallet-value>strong{overflow-wrap:anywhere}
}
@media(max-width:480px){
 .home-wallet .wallet-actions{margin-left:0}
}

/* Long labels wrap in their own columns; controls keep a stable, usable width. */
#app,dialog form,.table-wrap,.deal-list{min-width:0}
.table-wrap,.deal-list{max-width:100%;overflow-x:auto}
.table-wrap button,.deal-buttons .square,.deal-requisite .copy{flex-shrink:0}
.compact-filters .actions{flex-wrap:wrap;gap:8px}
.requisite-table table{table-layout:fixed;min-width:1080px}
.requisite-table th{white-space:normal}
.requisite-table th:nth-child(8){width:64px}
.requisite-table th:last-child{width:120px}
.requisite-table td{white-space:normal;overflow-wrap:anywhere}
.requisite-table td:nth-child(2),.requisite-table td:nth-child(3){max-width:none}
.requisite-table .actions{justify-content:flex-end}
.requisite-table .limit-meter{min-width:0}
.requisite-table .limit-meter span{white-space:nowrap}
.deal-line>div,.deal-identity>div,.deal-requisite>div{min-width:0}
.deal-requisite>div>span{flex-wrap:wrap}
.deal-requisite small,.deal-state strong{overflow-wrap:anywhere}
.deal-buttons{justify-content:flex-end}
.operators-table{table-layout:fixed}
.operators-table th:last-child{width:88px}
.operators-table td:first-child,.operators-table td small{white-space:normal;overflow-wrap:anywhere}
.resource-table{table-layout:fixed;min-width:480px}
.resource-table th{white-space:normal}
.resource-table td{overflow-wrap:anywhere}
.resource-table th:first-child{width:64px}
.resource-table th:last-child{width:56px}
.resource-table:has(.resource-device) th:first-child{width:28px}
.resource-table:has(.resource-device) th:nth-child(2){width:80px}
.resource-table:has(.resource-device) th:last-child{width:204px}
.deal-properties{table-layout:fixed}
[data-history-rows] table{table-layout:fixed;min-width:1080px}
[data-history-rows] th:first-child{width:160px}
[data-history-rows] th:nth-child(2){width:76px;min-width:0}
[data-history-rows] th:nth-child(3),[data-history-rows] th:nth-child(5),[data-history-rows] th:nth-child(6){width:144px}
[data-history-rows] th:nth-child(4){width:160px}
[data-history-rows] td:nth-child(4),[data-history-rows] td:last-child{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 .resource-table:has(.resource-device) th:last-child{width:148px}
 .deal-meta{grid-template-columns:110px minmax(0,1fr)}
}

/* Deal controls remain visible when the sidebar leaves less room for a row. */
.deal-list,[data-deal-rows]{container-name:trader-deals;container-type:inline-size;width:100%;min-width:0;max-width:100%}
[data-deal-rows]{display:flex;flex-direction:column;gap:4px}
@container trader-deals (max-width:1234px){
 .deal-list-heading{display:none}
 .deal-line{width:100%;min-width:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,1.3fr);grid-template-areas:"identity state amount actions" "rate device group requisite";gap:12px 16px;align-items:center}
 .deal-identity{grid-area:identity}
 .deal-state{grid-area:state}
 .deal-rate{grid-area:rate}
 .deal-amount{grid-area:amount;overflow-wrap:anywhere}
 .deal-device{grid-area:device;white-space:normal}
 .deal-device>span{overflow-wrap:anywhere}
 .deal-device>.ui-icon{flex-shrink:0}
 .deal-group{grid-area:group}
 .deal-requisite{grid-area:requisite}
 .deal-buttons{grid-area:actions;justify-content:flex-end}
 .deal-rate:before,.deal-group:before{display:block;margin-bottom:2px;font-size:10px;line-height:1.4;color:var(--muted);font-weight:400}
 .deal-rate:before{content:"Курс"}
 .deal-group:before{content:"Группа трафика"}
 :lang(en) .deal-rate:before{content:"Rate"}
 :lang(en) .deal-group:before{content:"Traffic group"}
}
@container trader-deals (max-width:679px){
 .deal-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 88px;grid-template-areas:"identity state actions" "amount requisite requisite" "rate device group";gap:10px 12px;padding:14px}
}
@container trader-deals (max-width:519px){
 .deal-line{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"identity state" "amount rate" "requisite requisite" "device group" "actions actions";gap:10px 12px;padding:14px;border-radius:14px}
 .deal-requisite{padding-top:8px;border-top:1px solid var(--line)}
 .deal-buttons{padding-top:4px}
}

/* Form grids must shrink independently of long captions, values and validation text. */
dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 32px);scroll-padding-block:16px}
dialog.resource-dialog,dialog.resource-editor-dialog,dialog.operator-editor-dialog,dialog.deal-details-dialog{max-height:calc(100dvh - 32px)}
dialog h2{overflow-wrap:anywhere}
dialog :is(form,.form-panel,.fields-2,label,label>span,.error,.help),.setting :is(form,label,label>span,.notification-row,.notification-options){min-width:0}
dialog :is(p,pre,.error,.help,label>span),.setting :is(label>span,p){overflow-wrap:anywhere}
dialog :is(input,select,textarea,.pp-select){max-width:100%}
dialog input[type=file]{display:block;width:100%;height:auto;white-space:normal}
dialog input[type=file]::file-selector-button{max-width:100%;white-space:normal}
dialog form>.actions{flex-wrap:wrap}
dialog form>.actions>button,dialog .limit-reset>button,dialog #detailConfirm{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.fields-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fields-2 .form-line:not(:has(input[type=checkbox])){grid-template-columns:140px minmax(0,1fr)}
.requisite-dialog .form-line.switch>span{width:auto;min-width:0;flex:0 1 192px}
.notification-options label{min-width:0}
.notification-options label>span{min-width:0;overflow-wrap:anywhere}
.error,#notice{overflow-wrap:anywhere}
.home-security .risk-frozen-note{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.trader-antifraud-block{border:1px solid #e94c5c;color:#ed7884;overflow-wrap:anywhere;margin-bottom:24px}.trader-antifraud-block strong{font-size:15px}.trader-antifraud-block p{margin:6px 0 0;font-size:13px;line-height:1.45}body.light .trader-antifraud-block{color:#b52e3b}
@media(min-width:1201px){
 .setting label:not(:has(input[type=checkbox])),.form-line:not(:has(input[type=checkbox])){grid-template-columns:200px minmax(0,1fr)}
 .fields-2 .form-line:not(:has(input[type=checkbox])){grid-template-columns:140px minmax(0,1fr)}
}
@media(min-width:761px) and (max-width:1200px){
 .setting label:not(:has(input[type=checkbox])),.form-line:not(:has(input[type=checkbox])){grid-template-columns:160px minmax(0,1fr)}
 .fields-2 .form-line:not(:has(input[type=checkbox])){grid-template-columns:140px minmax(0,1fr)}
}
@media(max-width:900px) and (min-width:761px){
 .setting label:not(:has(input[type=checkbox])),.setting .form-line{grid-template-columns:minmax(0,1fr);gap:6px}
 .setting form>button{margin-left:0}
 .telegram-settings .notification-row{grid-template-columns:minmax(0,1fr);gap:8px}
 .notification-options label{flex-wrap:wrap}
 .notification-options small{margin-left:31px}
}
@media(max-width:760px){
 .fields-2{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){
 .filters,.trader-deal-filters,.trader-stats-filters{grid-template-columns:minmax(0,1fr)}
 dialog .filters{padding:12px}
 dialog form>.actions,dialog .limit-reset{gap:8px}
}
@media(max-width:520px){
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child){display:block;min-width:0;width:100%}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) thead{display:none}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) tbody{display:grid;gap:8px;width:100%}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) tr{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-areas:"icon name" "id id" "actions actions";align-items:center;gap:4px;padding:8px;background:var(--surface);border-radius:12px}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) td{width:auto;max-width:none;min-width:0;padding:4px;background:transparent}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) td:nth-child(1){grid-area:icon}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) td:nth-child(2){grid-area:id}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) td:nth-child(3){grid-area:name}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) td:nth-child(4){grid-area:actions}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) [data-device-editor]{grid-template-areas:"icon name" "actions actions"}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) [data-device-editor] td:nth-child(2){display:none}
 .resource-dialog .resource-table:has(thead th:nth-child(4):last-child) .resource-actions{flex-wrap:wrap;gap:6px}
}

/* Filter pinning is opt-in; the phone view opens the same form on demand. */
.trader-filter-panel{min-width:0;margin-bottom:28px}
.trader-filter-panel>.filters{margin-bottom:0}
.trader-filter-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:8px}
.filter-panel-toggle{display:none}
.filter-preset-lock{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;font-size:12px;min-width:0}
.filter-preset-lock[aria-pressed=true]{border-color:var(--blue);color:var(--blue)}
.filter-preset-lock .ui-icon,.filter-panel-toggle .ui-icon{width:16px;height:16px}
.requisite-bulk{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:16px 0;color:var(--muted);font-size:12px}
.requisite-bulk>label{display:flex;align-items:center;gap:8px;margin:0}
.requisite-bulk>label>span{margin:0}
.requisite-bulk>.actions{margin-left:auto;gap:6px}
.requisite-bulk button{padding:7px 10px;font-size:12px}
.requisite-bulk .danger{color:#ed5861;border-color:#ed5861}
.requisite-bulk input[type=checkbox],.requisite-select-value>input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:none}
.requisite-select-value{display:flex;align-items:center;gap:8px;min-width:0}
.requisite-select-value>.deal-requisite{min-width:0}
@media(max-width:760px){
 .filter-panel-toggle{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;font-size:12px}
 .trader-filter-toolbar{justify-content:space-between}
 .trader-filter-panel:not(.is-open)>.filters{display:none}
 .requisite-bulk>.actions{margin-left:0;width:100%;flex-wrap:wrap}
}
.deposit-copy-value{display:flex;align-items:center;gap:8px;min-width:0}
.deposit-copy-value input{flex:1;min-width:0;font-variant-numeric:tabular-nums}
.deposit-copy-value .copy{flex:none}
.deposit-expiry strong{font-variant-numeric:tabular-nums;color:var(--blue)}
.deposit-intents-table table{min-width:650px}
.deposit-dialog h3{margin-top:24px}

.trader-withdrawals {margin-block:1rem;padding:1rem}
.withdrawal-heading,.withdrawal-row {display:flex;align-items:center;gap:1rem;justify-content:space-between}
.withdrawal-heading h2 {margin:0}
.withdrawal-row {display:grid;grid-template-columns:minmax(8rem,.6fr) minmax(10rem,.8fr) minmax(0,2fr);border-top:1px solid currentColor;border-color:color-mix(in srgb,currentColor 18%,transparent);padding:.65rem 0;overflow-wrap:anywhere}
.withdrawal-row small {display:block;opacity:.8}
@media(max-width:600px){.withdrawal-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4rem}.withdrawal-row>div:last-child{grid-column:1/-1}.withdrawal-heading{flex-wrap:wrap}}

.home-rewards>.trader-display-labels{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.home-rewards>.trader-display-labels>.tag{width:auto;min-width:0;max-width:100%;overflow-wrap:anywhere}
.requisite-dialog .correspondent-fields {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
  margin-bottom:16px;
}
.requisite-dialog .correspondent-fields .correspondent-field.form-line {
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;
  gap:12px;margin:0;min-width:0;
}
.requisite-dialog .correspondent-field span {margin:0;line-height:1.35}
.requisite-dialog .correspondent-field input {width:100%;min-width:0;box-sizing:border-box}
.requisite-dialog .counterparties-panel button {min-height:42px}
.requisite-dialog .switch input[type=checkbox] {width:32px;min-width:32px;height:16px;min-height:16px;box-sizing:border-box;border:1px solid #959ba2;padding:0}
.requisite-dialog .switch input[type=checkbox]::after {width:10px;height:10px;left:2px;top:2px;background:#aeb3ba}
.requisite-dialog .switch input[type=checkbox]:checked {background:#0d6efd;border-color:#0d6efd}
.requisite-dialog .switch input[type=checkbox]:checked::after {left:18px;background:white}
.requisite-dialog .switch input:focus-visible {outline:2px solid #478cff;outline-offset:3px}
.home-rewards>.trader-display-labels>.term-chip {display:inline-flex;align-items:baseline;gap:.55em;max-width:100%;overflow-wrap:anywhere}
.term-chip strong {white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--text);border-inline-start:1px solid color-mix(in srgb,currentColor 20%,transparent);padding-inline-start:.55em}
@media(max-width:760px){
 .requisite-dialog .correspondent-fields {
   grid-template-columns: minmax(0, 1fr);
   gap: 10px;
 }
 .requisite-dialog .correspondent-fields .correspondent-field.form-line {
   grid-template-columns: minmax(0, 1fr);
   gap: 6px;
 }
}

.operator-editor-dialog .form-panel > .switch input,
.resource-editor-dialog .form-panel > .switch input {
  margin: 0;
  justify-self: start;
}
@media (max-width: 760px) {
  .operator-editor-dialog .form-panel > .switch,
  .resource-editor-dialog .form-panel > .switch {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
