/* FinanceX bot workspace. Layout follows the approved interface; controls remain original nodes. */
.fxw-bot-workspace,.fxw-bot-dialog {--fxw-line:#2c5c7d;--fxw-muted:#9fbacf;--fxw-text:#edf7ff;--fxw-cyan:#69dfff;--fxw-panel:linear-gradient(140deg,#0c243cef,#030f20f2);--fxw-field:#071a2e;--fxw-positive:#87e8bd;--fxw-negative:#ff93a5;color:var(--fxw-text);font-family:Inter,system-ui,sans-serif;font-size:14px;line-height:1.6;min-width:0}
.fxw-bot-workspace *,.fxw-bot-dialog * {box-sizing:border-box}
.fxw-bot-workspace [hidden],.fxw-bot-dialog [hidden] {display:none!important}
.fxw-bot-workspace button,.fxw-bot-dialog button {font-family:inherit;cursor:pointer;touch-action:manipulation}
.fxw-bot-workspace button:disabled,.fxw-bot-dialog button:disabled {opacity:.45;cursor:not-allowed}
.fxw-bot-workspace :is(button,input,select,textarea):focus-visible,.fxw-bot-dialog button:focus-visible {outline:2px solid var(--fxw-cyan);outline-offset:3px}
.fxw-bot-navigation {display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #2c5c7d88;padding:0 0 17px;margin-bottom:20px}
.fxw-bot-navigation button {display:flex;align-items:center;justify-content:center;min-height:43px;padding:10px 18px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--fxw-muted);font-size:12px;font-weight:600;transition:background .15s,border-color .15s}
.fxw-bot-navigation button[aria-selected="true"] {border-color:#4081a7;background:linear-gradient(135deg,#155b8188,#0b2d47);color:#b2f0ff;box-shadow:inset 0 1px #8ce9ff2b}
.fxw-bot-account-bar {display:flex;align-items:center;gap:17px;margin-bottom:23px;color:var(--fxw-muted);font-size:11px}
.fxw-bot-account-bar>span {white-space:nowrap}
.fxw-bot-account-bar .phantom-toggle-group {margin:0!important;display:flex;gap:6px;flex-wrap:wrap}
.fxw-bot-notices>p {margin:0 0 20px!important;padding:13px 16px;border:1px solid #ab824944;border-radius:11px;color:#ffd59c!important;background:#75512822;font-size:12px!important}
.fxw-bot-page {min-width:0}
.fxw-bot-page-heading,.fxw-bot-panel-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.fxw-bot-page h2,.fxw-bot-dialog h2 {font:700 21px/1.35 Inter,system-ui,sans-serif;letter-spacing:-.55px;margin:0;color:var(--fxw-text)}
.fxw-bot-page h3 {font:700 16px/1.4 Inter,system-ui,sans-serif;letter-spacing:-.3px;margin:0;color:var(--fxw-text)}
.fxw-bot-panel-heading p,.fxw-bot-page-heading p {font-size:12px;color:var(--fxw-muted);margin:5px 0 0;line-height:1.65}
.fxw-bot-panel {border:1px solid var(--fxw-line);border-radius:21px;padding:25px;background:var(--fxw-panel);box-shadow:inset 0 1px #8bddff14,0 18px 40px #0003;min-width:0}
.fxw-bot-config-grid {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:20px;align-items:start}
.fxw-bot-summary-stack {display:grid;gap:18px;position:sticky;top:102px;min-width:0}
.fxw-bot-configuration {padding:25px}
.fxw-bot-pill {display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #42718e77;background:#1d46622b;border-radius:30px;padding:4px 9px;color:#c0d7e8;font-size:10px;font-weight:500;line-height:1.4;white-space:nowrap;flex-shrink:0}
.fxw-bot-workspace [data-tone="positive"],.fxw-bot-dialog [data-tone="positive"] {color:var(--fxw-positive)}
.fxw-bot-workspace [data-tone="negative"],.fxw-bot-dialog [data-tone="negative"] {color:var(--fxw-negative)}
.fxw-bot-pill[data-tone="positive"] {background:#13503a22;border-color:#3e99766b}
.fxw-bot-pill[data-tone="negative"] {background:#75273b22;border-color:#a04b606b}
.fxw-bot-settings-tabs {display:flex;gap:5px;padding:4px;border:1px solid #2b526c;border-radius:11px;background:#031326aa;margin-bottom:24px;overflow:auto;scrollbar-width:thin}
.fxw-bot-settings-tabs button {flex:1;min-height:38px;padding:8px 10px;white-space:nowrap;border:0;border-radius:7px;font-size:11px;color:var(--fxw-muted);background:transparent}
.fxw-bot-settings-tabs button[aria-selected="true"] {background:#164561;color:#a0e9ff;box-shadow:inset 0 1px #5fc8ef33}
.fxw-bot-settings-panel {min-width:0}
.fxw-bot-chapter {margin-bottom:24px;min-width:0}
.fxw-bot-chapter:last-child {margin-bottom:0}
.fxw-bot-chapter>header {margin-bottom:15px}
.fxw-bot-chapter>header h3 {font-size:15px}
.fxw-bot-chapter>header p {font-size:11px;line-height:1.7;color:var(--fxw-muted);margin:6px 0 0}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-control-block {margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;min-width:0}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-control-block:before,html[data-theme="prisma"][data-prisma-mode] .fxw-bot-control-block:after {display:none}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-control-block>p {font-size:11px!important;line-height:1.7!important;color:var(--fxw-muted)!important}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace label {font:500 11px/1.6 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;color:var(--fxw-muted);margin-bottom:7px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {font:13px/1.5 Inter,system-ui,sans-serif;min-height:44px;border:1px solid #2c5978;border-radius:10px;background:var(--fxw-field);color:var(--fxw-text);padding:11px 13px;box-shadow:none;max-width:100%;min-width:0}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace input:is([type="checkbox"],[type="radio"]) {accent-color:#53cffa}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace input[type="checkbox"] {width:16px;height:16px;flex:none}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle-group {display:flex;gap:7px;flex-wrap:wrap}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle {position:relative;min-width:0}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle__input {position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle__label {display:flex;align-items:center;justify-content:center;min-height:40px;cursor:pointer;border:1px solid #2c5c7d;border-radius:9px;background:#061a2d;color:#a8c2d7;padding:9px 13px;font-size:11px;margin:0!important;box-shadow:none}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle__input:checked+.phantom-toggle__label {background:linear-gradient(135deg,#16567a,#10334e);border-color:#56bae0;color:#c3f2ff;box-shadow:inset 0 1px #93e6ff27}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle__input:focus-visible+.phantom-toggle__label {outline:2px solid var(--fxw-cyan);outline-offset:3px}
.fxw-bot-save-bar {display:flex;align-items:center;gap:18px;border-top:1px solid #2e59766b;padding-top:20px;margin-top:25px}
.fxw-bot-save-bar p {font-size:11px;line-height:1.7;color:var(--fxw-muted);flex:1;margin:0;min-width:0}
.fxw-bot-save-bar p[data-dirty="true"] {color:#ffd59c}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-save-bar #btn-bot-salvar {width:auto!important;min-width:150px;padding:11px 18px!important;min-height:44px;flex-shrink:0;margin:0!important;font:700 12px/1.5 Inter,system-ui,sans-serif}
.fxw-bot-summary-art {display:block;width:210px;height:210px;max-width:100%;margin:-5px auto 10px}
.fxw-bot-summary h3 {font-size:20px;line-height:1.4}
.fxw-bot-help {font-size:12px;line-height:1.75;color:var(--fxw-muted);margin:8px 0 0}
.fxw-bot-live-actions {display:flex;flex-wrap:wrap;gap:8px;margin:21px 0 12px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-live-actions :is(#btn-bot-start,#btn-bot-pause) {width:auto!important;flex:1;min-height:43px;font-size:11px!important;padding:10px 12px!important}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-live-actions #btn-bot-toggle-ativo {width:100%;min-height:37px;justify-content:center;border-radius:9px!important;font:500 11px Inter,system-ui,sans-serif!important;order:-1}
.fxw-bot-button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 15px;border:1px solid #78dfff;border-radius:10px;background:linear-gradient(140deg,#51ddff,#1097ed);box-shadow:0 0 20px #11aaff12;color:#001b31;font-size:12px;font-weight:700;text-decoration:none}
.fxw-bot-button--secondary {background:#0a233b;color:#d2e9fa;border-color:#35678a;font-weight:600;box-shadow:none}
.fxw-bot-button--danger {background:#38182b;color:#ffacba;border-color:#954057;box-shadow:none}
.fxw-bot-summary>.fxw-bot-button {width:100%}
.fxw-bot-values h2 {margin-bottom:8px}
.fxw-bot-summary-row {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #25496588;font-size:11px}
.fxw-bot-summary-row:last-child {border-bottom:0}
.fxw-bot-summary-row>span {color:var(--fxw-muted);min-width:85px}
.fxw-bot-summary-row>strong {font-weight:600;line-height:1.65;text-align:right;max-width:65%;overflow-wrap:anywhere}
.fxw-bot-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.fxw-bot-metric {padding:23px;border:1px solid #2c5c7d;border-radius:18px;background:var(--fxw-panel);box-shadow:inset 0 1px #8bddff14;min-width:0}
.fxw-bot-metric>span {display:block;font-size:11px;color:var(--fxw-muted)}
.fxw-bot-metric>strong {display:block;font:800 29px/1.3 Inter,system-ui,sans-serif;letter-spacing:-.8px;margin-top:9px;overflow-wrap:anywhere}
.fxw-bot-filters {display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
.fxw-bot-filters button {min-height:37px;padding:7px 15px;border:1px solid #2e5874;border-radius:9px;background:#071b30;color:#abc5d9;font-size:11px}
.fxw-bot-filters button[aria-pressed="true"] {background:#14587c;border-color:#55bce4;color:#e2f7ff}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-operations #bot-resultado-area {margin:0!important;container-type:normal}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-operations #bot-resultado-area>.phantom-balance,
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-operations #bot-resultado-area>.phantom-positions-heading {display:none}
.fxw-bot-table-scroll {overflow-x:auto;max-width:100%;scrollbar-width:thin;overscroll-behavior-x:contain}
.fxw-bot-table-scroll:focus-visible {outline:2px solid var(--fxw-cyan);outline-offset:3px}
.fxw-bot-table {width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:520px}
.fxw-bot-table th {padding:12px 10px;font-size:9px;letter-spacing:1.2px;text-transform:uppercase;font-weight:600;color:var(--fxw-muted);border-bottom:1px solid #365c7988;white-space:nowrap}
.fxw-bot-table td {padding:17px 10px;border-bottom:1px solid #284c686b;color:var(--fxw-text);vertical-align:middle}
.fxw-bot-table tbody tr:hover {background:#1749672b}
.fxw-bot-table-action {display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;min-height:34px;border:1px solid #315d7b;border-radius:8px;background:#071a2b66;color:#c1deef;font-size:11px;white-space:nowrap}
.fxw-bot-table-action:hover {border-color:#6accf2;color:#f3fcff}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-positions {display:block;margin:0}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace tr.phantom-position {display:table-row;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;isolation:auto}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-heading {display:table-cell;padding:17px 10px;border-bottom:1px solid #284c686b}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-heading strong {font:700 12px/1.5 Inter,system-ui,sans-serif;color:#edf7ff}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-values {display:table-cell;padding:17px 10px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-values b {margin:0;font:500 12px/1.5 Inter,system-ui,sans-serif;color:#cce4f6;letter-spacing:0}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-pnl {text-align:left;white-space:nowrap}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-pnl b {font:700 12px/1.5 Inter,system-ui,sans-serif;color:#e5f6ff}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position[data-tone="positive"] .phantom-position-pnl b {color:var(--fxw-positive);text-shadow:none}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position[data-tone="negative"] .phantom-position-pnl b {color:var(--fxw-negative)}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-actions {display:flex;flex-wrap:nowrap;gap:8px;margin:0;justify-content:flex-end}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-side {font:600 9px/1.5 Inter,system-ui,sans-serif;letter-spacing:0;border-color:#38627d;border-radius:25px;padding:4px 8px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-side[data-side="long"] {color:#87e8bd;border-color:#43896b;background:#164b3522}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-side[data-side="short"] {color:#ff93a5;border-color:#934a5e;background:#63283a22}
.fxw-bot-empty,.fxw-bot-data-notice {padding:20px;border:1px solid #315f7b88;border-radius:12px;color:var(--fxw-muted);background:#0b294033;line-height:1.8;font-size:12px}
.fxw-bot-data-notice {color:#f7d495;border-color:#b98d4e66;background:#69481822;margin:0 0 17px}
.fxw-bot-accounts-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}
.fxw-bot-account-card {border:1px solid #2c5c7d;border-radius:19px;padding:22px;background:var(--fxw-panel);min-width:0}
.fxw-bot-account-card.is-current {border-color:#57bfeb;box-shadow:inset 0 1px #92e5ff22,0 0 27px #127ab322}
.fxw-bot-account-card .fxw-bot-panel-heading {align-items:flex-start;flex-wrap:wrap;gap:9px;margin-bottom:8px}
.fxw-bot-account-card h3 {font-size:19px}
.fxw-bot-account-card .fxw-bot-pill {font-size:9px;white-space:normal}
.fxw-bot-account-art {display:block;width:116px;height:116px;max-width:100%;margin:0 auto 10px}
.fxw-bot-account-card .fxw-bot-help {min-height:44px;font-size:11px}
.fxw-bot-account-balance {margin:19px 0 20px}
.fxw-bot-account-balance span {display:block;font-size:10px;color:var(--fxw-muted)}
.fxw-bot-account-balance strong {display:block;font-size:23px;font-weight:800;margin-top:6px;letter-spacing:-.6px;overflow-wrap:anywhere}
.fxw-bot-account-card>.fxw-bot-button {width:100%;font-size:11px;padding-inline:10px}
.fxw-bot-connection {max-width:850px}
.fxw-bot-connection>.fxw-bot-help {margin-bottom:21px}
.fxw-bot-connection>.fxw-bot-button {margin-top:20px}
.fxw-bot-history {margin-top:22px}
.fxw-bot-coin-search {display:block;margin:16px 0!important}
.fxw-bot-coin-search>span {display:block;margin-bottom:7px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:365px;overflow-y:auto;padding:4px;scrollbar-width:thin}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-chip {display:flex;align-items:center;gap:7px;padding:9px 7px;border:1px solid #315a75;border-radius:8px;background:#091d32;margin:0;font-size:10px;color:#b4d0e3}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-chip span {padding:0;border:0;background:none;color:inherit}
.fxw-bot-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fxw-bot-dialog {width:min(610px,calc(100% - 28px));max-height:85svh;overflow:auto;padding:0;border:1px solid #4385ad;border-radius:21px;background:linear-gradient(140deg,#0c263f,#06162a);box-shadow:0 28px 95px #0009}
.fxw-bot-dialog::backdrop {background:#010916c9;backdrop-filter:blur(7px)}
.fxw-bot-dialog-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 25px;border-bottom:1px solid #315d7b88;position:sticky;top:0;background:#0b2138;z-index:1}
.fxw-bot-dialog-heading h2 {font-size:22px;overflow-wrap:anywhere}
.fxw-bot-dialog-heading button {display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;border:1px solid #3c6e8d;border-radius:10px;background:#0d2a42;color:#cceaff;font:24px/1 Inter,system-ui,sans-serif}
.fxw-bot-dialog-body {padding:22px 25px}
.fxw-bot-detail-meta {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.fxw-bot-detail-values {margin-bottom:15px}
.fxw-bot-dialog .fxw-bot-button--danger {width:100%;margin-top:18px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace #bot-lucro-area {container-type:normal;margin:0!important}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metrics {grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric {padding:22px;min-height:140px;border-radius:18px;background:var(--fxw-panel);border-color:#315d7b;box-shadow:inset 0 1px #8bddff14;grid-column:auto}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric:before,html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric:after {display:none}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric-value,html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric--profit .phantom-metric-value {font:800 28px/1.3 Inter,system-ui,sans-serif;margin:10px 0;letter-spacing:-.8px;color:#edf7ff}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric[data-tone="positive"]>.phantom-metric-value {color:#87e8bd}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric[data-tone="negative"]>.phantom-metric-value {color:#ff93a5}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-accuracy-orbit {display:none}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric-code {font-size:8px;letter-spacing:.8px}
html[data-theme="prisma"][data-prisma-mode="light"] :is(.fxw-bot-workspace,.fxw-bot-dialog) {--fxw-line:#a7c5dc;--fxw-muted:#52708a;--fxw-text:#173850;--fxw-cyan:#0276a4;--fxw-panel:linear-gradient(140deg,#f8fcff,#e0eef8);--fxw-field:#f9fcff;--fxw-positive:#147c5a;--fxw-negative:#b13d5b}
html[data-theme="prisma"][data-prisma-mode="light"] .fxw-bot-panel,html[data-theme="prisma"][data-prisma-mode="light"] .fxw-bot-account-card {box-shadow:0 8px 22px #2b627c0d}
html[data-theme="prisma"][data-prisma-mode="light"] .fxw-bot-settings-tabs {background:#e0edf6}
html[data-theme="prisma"][data-prisma-mode="light"] .fxw-bot-settings-tabs button[aria-selected="true"] {background:#c4e3f1;color:#176181}
html[data-theme="prisma"][data-prisma-mode="light"] .fxw-bot-navigation button[aria-selected="true"] {background:#c4e3f1;color:#176181;border-color:#6aafd0}
html[data-theme="prisma"][data-prisma-mode="light"] .fxw-bot-table td {color:#21435e}
@media(min-width:1600px){.fxw-bot-config-grid{grid-template-columns:minmax(0,1.85fr) minmax(310px,1fr)}}
@media(max-width:1250px){.fxw-bot-accounts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fxw-bot-config-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.fxw-bot-panel{padding:21px}.fxw-bot-summary-art{width:170px;height:170px}.fxw-bot-panel-heading{flex-wrap:wrap;gap:9px}.fxw-bot-navigation button{padding-inline:14px}html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.fxw-bot-summary-stack{top:95px}.fxw-bot-config-grid{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.fxw-bot-navigation button{min-height:44px}.fxw-bot-table-action,.fxw-bot-filters button{min-height:40px}.fxw-bot-settings-tabs button{min-height:40px}}
@media(max-width:700px){
 .fxw-bot-navigation{gap:5px;margin-bottom:18px;padding-bottom:14px}.fxw-bot-navigation button{padding:9px 12px;font-size:11px;min-height:40px;flex:1 0 auto}.fxw-bot-account-bar{align-items:flex-start;flex-direction:column;gap:9px;margin-bottom:19px}.fxw-bot-account-bar>span{font-size:10px}.fxw-bot-config-grid{grid-template-columns:1fr;gap:16px}.fxw-bot-summary-stack{position:static;grid-template-columns:1fr}.fxw-bot-panel{padding:20px;border-radius:17px}.fxw-bot-panel-heading,.fxw-bot-page-heading{margin-bottom:19px}.fxw-bot-page h2{font-size:20px}.fxw-bot-summary-art{width:145px;height:145px;margin:0 auto 12px}.fxw-bot-summary-row{font-size:11px;gap:12px}.fxw-bot-settings-tabs{gap:2px;margin-bottom:21px}.fxw-bot-settings-tabs button{font-size:10px;padding-inline:8px}.fxw-bot-save-bar{flex-direction:column;align-items:stretch;gap:13px}.fxw-bot-metrics{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.fxw-bot-metric{padding:17px;border-radius:15px}.fxw-bot-metric:last-child{grid-column:1/-1}.fxw-bot-metric>strong{font-size:25px;margin-top:7px}.fxw-bot-metric>span{font-size:10px}.fxw-bot-accounts-grid{gap:12px}.fxw-bot-account-card{padding:17px;border-radius:16px}.fxw-bot-account-card h3{font-size:17px}.fxw-bot-account-art{width:94px;height:94px}.fxw-bot-account-balance strong{font-size:22px}.fxw-bot-account-card .fxw-bot-help{font-size:10px;min-height:51px}.fxw-bot-account-card>.fxw-bot-button{min-height:43px;font-size:10px;padding:9px 7px}.fxw-bot-dialog-heading{padding:18px}.fxw-bot-dialog-body{padding:19px}.fxw-bot-dialog-heading h2{font-size:19px}.fxw-bot-dialog-heading button{width:44px;height:44px}.fxw-bot-history{margin-top:18px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){font-size:16px!important}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-toggle__label{min-height:40px;padding:9px 11px;font-size:11px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-chip{font-size:9px;gap:5px;padding:8px 5px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric{padding:18px;min-height:125px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric-value,html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric--profit .phantom-metric-value{font-size:25px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-position-actions .bot-fechar-posicao{width:40px;height:40px}.fxw-bot-table-action{min-height:40px}
}
@media(max-width:380px){.fxw-bot-panel{padding:16px}.fxw-bot-page h2{font-size:18px}.fxw-bot-navigation button{padding-inline:9px;font-size:10px}.fxw-bot-settings-tabs button{padding-inline:7px;font-size:9px}.fxw-bot-accounts-grid{grid-template-columns:1fr}.fxw-bot-account-card{padding:20px}.fxw-bot-account-card .fxw-bot-help{min-height:0}.fxw-bot-account-art{width:112px;height:112px}.fxw-bot-summary-row>strong{max-width:58%}.fxw-bot-metric>strong{font-size:22px}.fxw-bot-metric{padding:15px}html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.fxw-bot-workspace *,.fxw-bot-dialog *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.fxw-bot-current-balance {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:18px 20px}
.fxw-bot-current-balance>div {min-width:0}
.fxw-bot-balance-label {font-size:13px;font-weight:600;color:var(--fxw-text)}
.fxw-bot-current-balance .fxw-bot-help {font-size:12px;margin-top:5px}
.fxw-bot-balance-value {font-size:28px;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.5px;overflow-wrap:anywhere;min-width:0}

/* Consistent account typography and fully contained mobile operation cards. */
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace :is(.fxw-bot-panel,.fxw-bot-page,.fxw-bot-history-body,.fxw-bot-table-scroll) {min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-current-balance {padding:18px 20px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-instrument {font:600 14px/1.5 Inter,system-ui,sans-serif;letter-spacing:0;color:var(--fxw-text);overflow-wrap:anywhere}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace :is(.phantom-metric-value,.fxw-bot-metric>strong,.fxw-bot-account-balance strong) {font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0;max-width:100%}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric .phantom-metric-value {font-size:28px;line-height:1.3;letter-spacing:-.5px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric-label {font-size:12px;line-height:1.5;overflow-wrap:anywhere}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-decisions {flex-wrap:wrap;font-size:12px;line-height:1.5}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-periods {display:flex;flex-wrap:wrap;gap:6px}
html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-periods button {min-height:40px;font-size:12px;padding:9px 12px}
@media(max-width:700px) {
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-current-balance {flex-direction:column;align-items:stretch;gap:10px;padding:16px;margin-bottom:18px}
 .fxw-bot-balance-value {font-size:26px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric {padding:15px;min-height:118px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metric .phantom-metric-value {font-size:23px;line-height:1.35}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table-scroll {overflow:visible}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table {display:block;width:100%;min-width:0;font-size:13px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table thead {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table tbody {display:grid;gap:12px;width:100%}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table tbody tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:15px;border:1px solid var(--fxw-line);border-radius:12px;background:var(--fxw-panel);min-width:0}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table td {display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table td:nth-child(2) {text-align:right}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table td:last-child {grid-column:1/-1;display:flex;justify-content:flex-end}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .fxw-bot-table td[data-label]::before {content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--fxw-muted);margin-bottom:5px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace :is(.phantom-position-values b,.phantom-position-pnl b) {font-size:13px;line-height:1.5;overflow-wrap:anywhere}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace :is(.fxw-bot-table-action,.phantom-position-actions .bot-fechar-posicao) {min-width:44px;min-height:44px;height:auto}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-chip {font-size:12px;min-width:0;min-height:40px}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-chip span {min-width:0;overflow-wrap:anywhere}
}
@media(max-width:360px) {
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-metrics {grid-template-columns:1fr}
 html[data-theme="prisma"][data-prisma-mode] .fxw-bot-workspace .phantom-coin-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
