/* CONNECTIONS · NEOCORTEX ACCOUNT GATEWAY */
body.view-conexoes-active #view-conexoes {
  --cxg-bg: #03090d;
  --cxg-panel: #061015;
  --cxg-panel-2: #08141a;
  --cxg-line: #17303a;
  --cxg-line-soft: rgba(40, 76, 88, 0.48);
  --cxg-cyan: #58b5d0;
  --cxg-amber: #d99a23;
  --cxg-green: #67E6C9;
  --cxg-text: #d5dde2;
  --cxg-dim: #8497a2;
  --cxg-faint: #536873;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(18, 55, 66, 0.13), transparent 52%),
    var(--cxg-bg) !important;
  color: var(--cxg-text);
  font-family: var(--font-bloomberg, Consolas, "Courier New", monospace) !important;
  zoom: 1.12;
}

body.view-conexoes-active #view-conexoes > .cx-globe-bg {
  display: none;
}

.cx-gw-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--cxg-line);
  background: rgba(3, 9, 13, 0.98);
  flex: 0 0 auto;
}

.cx-gw-top h1 {
  margin: 0;
  color: var(--cxg-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.cx-gw-top h1 span {
  color: var(--cxg-dim);
  padding: 0 5px;
}

.cx-gw-top-status {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cxg-cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.cx-gw-top-status .cx-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 8px currentColor;
}

.cx-gw-top-status b {
  color: var(--cxg-green);
  font-size: 12px;
  font-weight: 600;
}

.cx-gw-top-status time {
  color: var(--cxg-dim);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

.cx-gw-token-ttl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--cxg-line-soft);
  background: rgba(8, 24, 32, 0.92);
  flex: 0 0 auto;
}

.cx-gw-token-ttl[hidden] {
  display: none !important;
}

.cx-gw-token-ttl__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  min-width: 0;
}

.cx-gw-token-ttl__tag {
  color: var(--cxg-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cx-gw-token-ttl__msg {
  color: var(--cxg-dim);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.cx-gw-token-ttl__btn {
  flex: 0 0 auto;
  border: 1px solid rgba(217, 154, 35, 0.55);
  background: rgba(217, 154, 35, 0.12);
  color: var(--cxg-amber);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
}

.cx-gw-token-ttl__btn:hover {
  background: rgba(217, 154, 35, 0.22);
}

.cx-gw-token-ttl.is-warn {
  background: rgba(40, 28, 8, 0.95);
  border-bottom-color: rgba(217, 154, 35, 0.35);
}

.cx-gw-token-ttl.is-warn .cx-gw-token-ttl__tag {
  color: var(--cxg-amber);
}

.cx-gw-token-ttl.is-urgent,
.cx-gw-token-ttl.is-expired {
  background: rgba(42, 12, 12, 0.95);
  border-bottom-color: rgba(231, 122, 122, 0.4);
}

.cx-gw-token-ttl.is-urgent .cx-gw-token-ttl__tag,
.cx-gw-token-ttl.is-expired .cx-gw-token-ttl__tag {
  color: #E77A7A;
}

.cx-gw-token-ttl.is-pending .cx-gw-token-ttl__tag {
  color: var(--cxg-dim);
}

.cx-gw-table-head,
.cx-gw-account-row {
  display: grid;
  grid-template-columns: minmax(125px, 1.35fr) minmax(85px, 1fr) minmax(75px, .85fr) minmax(92px, .9fr) 88px 16px;
  gap: 8px;
  align-items: center;
}

.cx-gw-main {
  display: grid;
  grid-template-columns: minmax(420px, 45%) minmax(520px, 55%);
  gap: 8px;
  padding: 8px;
  min-height: 0;
  flex: 1 1 auto;
}

.cx-gw-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--cxg-line);
  background: rgba(5, 14, 19, 0.94);
}

.cx-gw-panel-hd {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-bottom: 1px solid var(--cxg-line-soft);
  background: rgba(7, 18, 24, 0.9);
}

.cx-gw-panel-hd h2,
.cx-gw-log header h2 {
  margin: 0;
  color: var(--cxg-cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cx-gw-panel-hd > span,
.cx-gw-panel-hd > button {
  padding: 4px 9px;
  border: 1px solid rgba(52, 210, 123, 0.35);
  background: transparent;
  color: var(--cxg-green);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.cx-gw-panel-hd > button.cx-gw-empty {
  border-color: rgba(217, 154, 35, 0.5);
  color: var(--cxg-amber);
  cursor: pointer;
}

.cx-gw-table-head,
.cx-gw-account-row {
  display: grid;
  grid-template-columns: minmax(125px, 1.35fr) minmax(85px, 1fr) minmax(75px, .85fr) minmax(92px, .9fr) 88px 16px;
  gap: 8px;
  align-items: center;
}

.cx-gw-table-head {
  min-height: 36px;
  padding: 0 13px;
  color: var(--cxg-dim);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--cxg-line-soft);
}

.cx-gw-account-list {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
}

.cx-gw-account-row {
  width: 100%;
  min-height: 68px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 1px solid var(--cxg-line-soft);
  background: transparent;
  color: var(--cxg-dim);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}

.cx-gw-account-row:hover,
.cx-gw-account-row.is-selected {
  background: rgba(29, 75, 90, 0.12);
}

.cx-gw-account-row.is-selected {
  box-shadow: inset 2px 0 0 var(--cxg-cyan);
}

.cx-gw-account-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-gw-sync {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cx-gw-ttl {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.cx-gw-ttl b {
  color: var(--cxg-cyan);
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cx-gw-ttl small,
.cx-gw-sync-ago {
  color: var(--cxg-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-gw-ttl.is-warn b { color: var(--cxg-amber); }
.cx-gw-ttl.is-urgent b,
.cx-gw-ttl.is-expired b { color: #E77A7A; }
.cx-gw-ttl.is-pending b { color: var(--cxg-dim); }
.cx-gw-ttl.is-na b { color: var(--cxg-faint); }

.cx-gw-account-row small {
  display: block;
  margin-top: 3px;
  color: var(--cxg-dim);
  font-size: 13px;
  text-transform: capitalize;
}

.cx-gw-account {
  position: relative;
  padding-left: 15px;
}

.cx-gw-account .cx-slot-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
}

.cx-gw-account b {
  display: block;
  color: var(--cxg-text);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-gw-money {
  color: var(--cxg-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cx-gw-money small {
  text-transform: uppercase;
}

.cx-gw-chevron {
  color: var(--cxg-text);
  font-size: 19px;
  text-align: right;
}

.cx-gw-balance {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-top: 1px solid var(--cxg-line-soft);
  color: var(--cxg-dim);
  font-size: 13px;
}

.cx-gw-balance b {
  margin-left: auto;
  color: var(--cxg-text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cx-gw-balance button {
  margin-left: 14px;
  border: 0;
  background: transparent;
  color: var(--cxg-dim);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.cx-gw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 17px 28px 12px;
}

.cx-gw-steps > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cxg-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.cx-gw-steps > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  border-top: 1px dashed rgba(98, 124, 136, 0.35);
}

.cx-gw-steps i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cxg-line);
  border-radius: 50%;
  background: #0b171c;
  color: var(--cxg-text);
  font-size: 12px;
  font-style: normal;
}

.cx-gw-steps .is-active {
  color: var(--cxg-cyan);
}

.cx-gw-steps .is-active i {
  border-color: var(--cxg-cyan);
  background: #3196b3;
  color: #eefaff;
  box-shadow: 0 0 12px rgba(49, 150, 179, 0.35);
}

.cx-gw-steps b {
  font-weight: 500;
}

.cx-gw-step-copy {
  padding: 3px 14px 11px;
}

.cx-gw-step-copy > span {
  color: var(--cxg-cyan);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.cx-gw-step-copy h3 {
  margin: 5px 0 5px;
  color: var(--cxg-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.cx-gw-step-copy p {
  margin: 0;
  color: var(--cxg-dim);
  font-size: 12px;
}

.cx-gw-brokers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 14px;
}

.cx-gw-brokers[hidden],
.cx-gw-open-account[hidden],
.cx-gw-editor[hidden],
.cx-gw-step-copy[hidden] {
  display: none !important;
}

.cx-gw-open-account {
  padding: 6px 14px 10px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.cx-gw-oa-shell {
  border: 1px solid rgba(120, 150, 170, 0.28);
  border-radius: 10px;
  background: #060b10;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  box-sizing: border-box;
}

.cx-gw-oa-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cx-gw-oa-kicker {
  font-family: var(--font-bloomberg, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #58b5d0;
  text-transform: uppercase;
}

.cx-gw-oa-head h3 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f2f6f8;
  line-height: 1.1;
}

.cx-gw-oa-lead {
  margin: 2px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(180, 196, 210, 0.82);
}

.cx-gw-oa-card {
  border: 1px solid rgba(120, 150, 170, 0.22);
  border-radius: 8px;
  background: #0a1218;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cx-gw-oa-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cx-gw-oa-brand i {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
}

.cx-gw-oa-brand b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f2f6f8;
}

.cx-gw-oa-brand span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #e08a2a;
}

.cx-gw-oa-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e8eef2;
  text-transform: uppercase;
}

.cx-gw-oa-block p {
  margin: 0;
  font-family: var(--font-bloomberg, ui-monospace, monospace);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(168, 186, 200, 0.88);
}

.cx-gw-oa-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: cxoa;
}

.cx-gw-oa-steps li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-bloomberg, ui-monospace, monospace);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(168, 186, 200, 0.88);
  counter-increment: cxoa;
}

.cx-gw-oa-steps li::before {
  content: counter(cxoa);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2em;
  font-weight: 700;
  color: #58b5d0;
}

.cx-gw-oa-steps b {
  color: #dce8ee;
  font-weight: 700;
}

.cx-gw-oa-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
  flex-wrap: wrap;
}

.cx-gw-oa-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  flex: 1 1 220px;
  max-width: 46ch;
  font-family: var(--font-bloomberg, ui-monospace, monospace);
  font-size: 12.5px !important;
  line-height: 1.45;
  color: rgba(150, 168, 182, 0.9) !important;
}

.cx-gw-oa-info {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid rgba(88, 181, 208, 0.65);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #58b5d0;
  line-height: 1;
}

.cx-gw-oa-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cx-gw-oa-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(88, 181, 208, 0.7);
  border-radius: 6px;
  background: transparent;
  color: #9fd6e8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.cx-gw-oa-open:hover {
  border-color: #7ec8de;
  color: #e8f7fc;
  background: rgba(88, 181, 208, 0.1);
}

.cx-gw-oa-open.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #28404a;
  color: var(--cxg-faint);
  background: transparent;
  pointer-events: none;
}

.cx-gw-oa-open span {
  font-size: 14px;
  opacity: 0.9;
}

.cx-gw-oa-connect {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(88, 181, 208, 0.7);
  border-radius: 6px;
  background: transparent;
  color: #9fd6e8;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.cx-gw-oa-connect:hover {
  border-color: #7ec8de;
  color: #e8f7fc;
  background: rgba(88, 181, 208, 0.1);
}

.cx-gw-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cx-gw-add {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(217, 154, 35, 0.45);
  background: rgba(217, 154, 35, 0.08);
  color: var(--cxg-amber);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.cx-gw-add:hover {
  border-color: var(--cxg-amber);
  background: rgba(217, 154, 35, 0.16);
}

.cx-gw-brokers button {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #28404a;
  background: rgba(7, 18, 24, 0.75);
  color: var(--cxg-text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cx-gw-brokers button:hover {
  border-color: var(--cxg-cyan);
  background: rgba(25, 70, 84, 0.17);
}

.cx-gw-brokers button:disabled {
  opacity: 0.88;
  cursor: default;
}

.cx-gw-brokers button[data-cx-connect="0"] {
  opacity: 0.92;
}

.cx-gw-brokers i {
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.logo-pepper {
  width: 34px;
  border-radius: 50% 50% 44% 44%;
  background: #e8473f;
  color: #fff;
  font-size: 20px !important;
}
.logo-ic { color: #70d868; letter-spacing: 2px; font-size: 17px !important; }
.logo-ex { color: #f3c125; }
.logo-eight { color: #3fc26f; }
.logo-fx { color: #41b2d1; }
.logo-ftmo { color: #d9e1e5; }
.logo-five { color: #3069a8; }
.logo-ib {
  min-width: 34px;
  padding: 0 4px;
  border-radius: 4px;
  background: #d51e2d;
  color: #fff;
  font-size: 14px !important;
  letter-spacing: 0.04em;
}
.logo-duka {
  color: #e8b44a;
  font-size: 18px !important;
  letter-spacing: 0.06em;
}
.logo-more { color: #d9e1e5; font-weight: 400 !important; }

.cx-gw-editor {
  padding: 3px 14px;
  overflow-y: auto;
}

.cx-gw-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.cx-gw-editor-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cx-gw-editor-grid label > span {
  color: var(--cxg-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cx-gw-editor-grid input,
.cx-gw-editor-grid select {
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #28404a;
  background: #071116;
  color: var(--cxg-text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.cx-gw-editor-grid input:focus,
.cx-gw-editor-grid select:focus {
  border-color: var(--cxg-cyan);
}

.cx-gw-editor-grid .cx-gw-wide {
  grid-column: 1 / -1;
}

.cx-gw-editor-grid .cx-gw-active {
  flex-direction: row;
  align-items: center;
  align-self: end;
  min-height: 35px;
}

.cx-gw-editor-grid .cx-gw-active input {
  min-height: auto;
  accent-color: var(--cxg-cyan);
}

.cx-gw-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--cxg-line-soft);
}

.cx-gw-config-actions > div {
  display: flex;
  gap: 8px;
}

.cx-gw-config-actions button,
.cx-gw-log button {
  border: 1px solid #28404a;
  background: #0a151a;
  color: var(--cxg-dim);
  padding: 9px 18px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.cx-gw-config-actions .cx-gw-save {
  color: var(--cxg-cyan);
}

.cx-gw-config-actions .cx-gw-next {
  border-color: rgba(217, 154, 35, 0.7);
  background: linear-gradient(90deg, rgba(129, 85, 13, 0.45), rgba(83, 57, 12, 0.6));
  color: #e9c36c;
}

.cx-gw-config-actions .cx-gw-next span {
  margin-left: 12px;
  font-size: 14px;
}

.cx-gw-log {
  position: relative;
  min-height: 165px;
  max-height: 29vh;
  display: flex;
  flex-direction: column;
  margin: 0 8px 8px;
  border: 1px solid var(--cxg-line);
  background: #02070a;
  flex: 0 0 26vh;
}

.cx-gw-log > header {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--cxg-line-soft);
  background: #071116;
}

.cx-gw-log > header > span {
  padding: 3px 8px;
  border: 1px solid rgba(52, 210, 123, 0.35);
  color: var(--cxg-green);
  font-size: 11px;
}

.cx-gw-log > header > div {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.cx-gw-log button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cxg-dim);
  font-size: 11px;
}

.cx-gw-log button.is-paused {
  color: var(--cxg-amber);
}

.cx-gw-log-body {
  padding: 10px 13px 28px;
  overflow-y: auto;
  color: var(--cxg-green);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.cx-gw-log-line.info { color: var(--cxg-green); }
.cx-gw-log-line.ok { color: #57e58e; }
.cx-gw-log-line.warn { color: var(--cxg-amber); }
.cx-gw-log-line.err { color: #e26a65; }

.cx-gw-log > label {
  position: absolute;
  right: 15px;
  bottom: 8px;
  color: var(--cxg-dim);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.cx-gw-log > label input {
  width: 10px;
  height: 10px;
  margin: 0 5px 0 0;
  accent-color: var(--cxg-green);
}

.cx-gateway-legacy {
  display: none !important;
}

/* O terminal roda normalmente em telas 2K/4K; preserva a escala visual do mock. */
@media (min-width: 1600px) {
  .cx-gw-top { min-height: 78px; padding: 0 28px; }
  .cx-gw-top h1 { font-size: 30px; }
  .cx-gw-top-status { gap: 16px; font-size: 16px; }
  .cx-gw-top-status b { font-size: 16px; }
  .cx-gw-top-status .cx-dot { width: 10px; height: 10px; }

  .cx-gw-main { grid-template-columns: minmax(720px, 45%) minmax(780px, 55%); gap: 14px; padding: 14px; }
  .cx-gw-panel-hd { min-height: 52px; padding: 0 20px; gap: 14px; }
  .cx-gw-panel-hd h2,
  .cx-gw-log header h2 { font-size: 20px; }
  .cx-gw-panel-hd > span,
  .cx-gw-panel-hd > button { padding: 5px 12px; font-size: 15px; }

  .cx-gw-table-head,
  .cx-gw-account-row {
    grid-template-columns: minmax(210px, 1.35fr) minmax(145px, 1fr) minmax(130px, .85fr) minmax(155px, .9fr) 115px 24px;
    gap: 12px;
  }
  .cx-gw-table-head { min-height: 46px; padding: 0 20px; font-size: 14px; }
  .cx-gw-account-row { min-height: 96px; padding: 12px 20px; font-size: 17px; }
  .cx-gw-account-row small { margin-top: 5px; font-size: 15px; }
  .cx-gw-account { padding-left: 22px; }
  .cx-gw-account .cx-slot-dot { top: 7px; width: 10px; height: 10px; }
  .cx-gw-account b { font-size: 18px; }
  .cx-gw-chevron { font-size: 28px; }
  .cx-gw-balance { min-height: 68px; padding: 0 20px; font-size: 17px; }
  .cx-gw-balance b { font-size: 18px; }
  .cx-gw-balance button { font-size: 24px; }

  .cx-gw-steps { padding: 27px 42px 20px; }
  .cx-gw-steps > div { gap: 12px; font-size: 14px; }
  .cx-gw-steps > div:not(:last-child)::after { top: 19px; left: calc(50% + 28px); width: calc(100% - 56px); }
  .cx-gw-steps i { width: 40px; height: 40px; font-size: 17px; }
  .cx-gw-step-copy { padding: 4px 22px 17px; }
  .cx-gw-step-copy > span { font-size: 14px; }
  .cx-gw-step-copy h3 { margin: 7px 0; font-size: 22px; }
  .cx-gw-step-copy p { font-size: 15px; }
  .cx-gw-brokers { gap: 14px; padding: 0 22px; }
  .cx-gw-brokers button { min-height: 140px; gap: 12px; font-size: 17px; }
  .cx-gw-brokers i { height: 44px; font-size: 42px; }
  .logo-pepper { width: 50px; font-size: 31px !important; }
  .logo-ic { font-size: 27px !important; }
  .cx-gw-editor { padding: 4px 22px; }
  .cx-gw-editor-grid { gap: 17px; }
  .cx-gw-editor-grid label > span { font-size: 14px; }
  .cx-gw-editor-grid input,
  .cx-gw-editor-grid select { min-height: 54px; padding: 10px 13px; font-size: 17px; }
  .cx-gw-editor-grid .cx-gw-active { min-height: 54px; }
  .cx-gw-config-actions { padding: 15px 22px; }
  .cx-gw-config-actions button { padding: 11px 24px; font-size: 16px; }
  .cx-gw-add { min-height: 46px; font-size: 15px; padding: 0 16px; }
  .cx-gw-oa-brand span { font-size: 15px; }
  .cx-gw-oa-brand b { font-size: 22px; }
  .cx-gw-oa-head h3 { font-size: 40px; }
  .cx-gw-oa-lead { font-size: 17px; }
  .cx-gw-oa-block h4 { font-size: 15px; }
  .cx-gw-oa-block p,
  .cx-gw-oa-steps li { font-size: 16px; }
  .cx-gw-oa-open,
  .cx-gw-oa-connect { font-size: 16px; min-height: 48px; padding: 0 20px; }
  .cx-gw-oa-note { font-size: 15px !important; max-width: 52ch; }

  .cx-gw-log { min-height: 280px; margin: 0 14px 14px; flex-basis: 28vh; }
  .cx-gw-log > header { min-height: 46px; padding: 0 19px; gap: 14px; }
  .cx-gw-log > header > span { padding: 4px 10px; font-size: 14px; }
  .cx-gw-log button { font-size: 14px; }
  .cx-gw-log-body { padding: 14px 20px 40px; font-size: 16px; line-height: 1.7; }
  .cx-gw-log > label { right: 22px; bottom: 12px; font-size: 14px; }
  .cx-gw-log > label input { width: 14px; height: 14px; }
}

@media (max-width: 1050px) {
  body.view-conexoes-active #view-conexoes {
    overflow-y: auto !important;
  }
  .cx-gw-main {
    grid-template-columns: 1fr;
  }
  .cx-gw-panel {
    min-height: 390px;
  }
  .cx-gw-log {
    flex-basis: 220px;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .cx-gw-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
  }
  .cx-gw-top-status {
    flex-wrap: wrap;
  }
  .cx-gw-table-head {
    display: none;
  }
  .cx-gw-account-row {
    grid-template-columns: 1.5fr 1fr .8fr 16px;
  }
  .cx-gw-account-row > span:nth-child(3),
  .cx-gw-account-row > span:nth-child(5) {
    display: none;
  }
  .cx-gw-brokers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
