/* STRATREX V1.7 / Contextual forms and inline financial units */
.stx-field-frame{position:relative;min-width:0}
.stx-field-frame>label.field{display:grid;width:100%;gap:9px}
.stx-field-frame>label.field>span:first-child{display:block;padding-right:33px;color:#f4dfb9;font-size:13.5px;font-weight:800;line-height:1.45}
.stx-help-head{position:absolute;right:0;top:0}
.stx-help-button{flex:0 0 auto;display:grid;place-items:center;width:25px;height:25px;border:1px solid #796036;border-radius:50%;color:#ebc977;background:#231c13;font-size:13px;font-weight:800;cursor:pointer}
.stx-help-button:hover,.stx-help-button[aria-expanded=true]{background:#3c2f1b;border-color:#e2bb63;box-shadow:0 0 11px #c8a03c33}
.stx-help-button:focus-visible{outline:2px solid #e9c471;outline-offset:2px}
.stx-help-content{border:1px solid #5b482c;border-radius:8px;background:#211b13;color:#dcc9a8;font-size:11px;line-height:1.6;padding:10px 12px;margin:9px 0 0}
.stx-help-content[hidden]{display:none!important}
.stx-help-content p,.stx-help-content .field-explain,.stx-help-content .setup-caption,.stx-help-content .modal-context{display:block!important;margin:0 0 7px;padding:0;border:0;background:transparent;color:#dfc9a7;font-size:11px;line-height:1.6}
.stx-help-content p:last-child{margin-bottom:0}
.stx-help-content .plan-preview{background:transparent;border:0;padding:0;margin:0}
.stx-field-frame [data-capital-help]{display:none!important}
.stx-number-shell{display:flex;align-items:stretch;min-height:48px;width:100%;min-width:0;background:#0d0c0a;border:1px solid #59472e;border-radius:8px;overflow:hidden}
.stx-number-shell:focus-within{border-color:#e2bb63;box-shadow:0 0 0 3px #d1a24322}
.stx-field-frame .stx-number-shell input[type=number]{min-height:46px;min-width:0;flex:1 1 auto;width:100%;padding:10px 12px;margin:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#f5ecda;font-variant-numeric:tabular-nums;font-size:15px}
.stx-field-frame .stx-number-shell input[type=number]:focus{outline:none!important;box-shadow:none!important}
.stx-field-frame input[type=number]::-webkit-inner-spin-button,.stx-field-frame input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.stx-unit{align-self:center;flex:0 0 auto;color:#e6c171;font-size:12px;line-height:26px;font-weight:800;border-left:1px solid #44361f;padding:0 12px;pointer-events:none;white-space:nowrap;user-select:none}
.setup-block{gap:12px!important}
.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:11px;font-weight:800;color:#e0b974;font-size:12px}
.stx-modal-info{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #3b2e20;font-size:11px;color:#b6a17f}
.stx-modal-info+.stx-help-content{margin:0 0 15px}
@media(max-width:650px){.stx-field-frame>label.field>span:first-child{font-size:14px}.stx-help-button{width:27px;height:27px}}

/* V1.7.1 – ajuda apenas nos rótulos dos campos */
.stx-field-frame>label.field>span:first-child{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:5px;padding-right:0!important;width:fit-content;max-width:100%;font-size:13.5px!important}
.stx-field-frame>label.field>span:first-child>.stx-help-button{display:inline-grid!important;place-items:center;width:15px!important;height:15px!important;min-width:15px!important;border-width:1px;font-size:9px!important;line-height:1!important;box-shadow:none!important}
.stx-field-frame>label.field>span:first-child>.stx-help-button:focus-visible{outline:2px solid #e9c471;outline-offset:3px}
.stx-help-head{display:none!important}
.setup-heading .stx-help-button,.stx-modal-info .stx-help-button{display:none!important}
.stx-compact-context{display:block;font-size:11px!important;color:#ad9c82!important;line-height:1.55;margin:0 0 15px!important;padding:0 0 10px!important;border-bottom:1px solid #3b2e20}
.stx-field-frame>.stx-help-content{margin:6px 0 10px}
@media(max-width:650px){.stx-field-frame>label.field>span:first-child>.stx-help-button{width:15px!important;height:15px!important;min-width:15px!important}}

/* Pending UX fix — keep the "?" with the last word, never orphan it.
   Only presentation; no effect on field values or financial calculations. */
.stx-field-frame>label.field>span:first-child{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:normal;
  overflow-wrap:break-word;
  line-height:1.5!important;
}
.stx-label-tail{
  display:inline-block;
  white-space:nowrap;
  vertical-align:baseline;
}
.stx-field-frame>label.field>span:first-child .stx-label-tail>.stx-help-button{
  display:inline-grid!important;
  vertical-align:middle;
  margin-left:5px;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  font-size:10px!important;
  line-height:1!important;
  box-shadow:none!important;
}


/* STRATREX V1.8.2 | Ícone de ajuda vetorial, centrado em qualquer fonte/dispositivo. */
.stx-field-frame>label.field>span:first-child .stx-label-tail>.stx-help-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box;
  padding:0!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  line-height:0!important;
  font-size:0!important;
  vertical-align:middle;
  border-radius:50%;
}
.stx-help-button>svg{
  display:block;
  flex:none;
  width:12px;
  height:12px;
  pointer-events:none;
}
@media(max-width:650px){
  .stx-field-frame>label.field>span:first-child .stx-label-tail>.stx-help-button{
    width:18px!important;height:18px!important;min-width:18px!important;
  }
}

/* Identidade STRATREX | capital contratado e recuperação histórica. */
.stx-historical-breakdown{display:grid;gap:7px;margin:12px 0 16px;padding:12px 14px;border:1px solid #514027;border-radius:9px;background:#15110c}
.stx-historical-breakdown>span{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;line-height:1.55;color:#c3ae8c}
.stx-historical-breakdown strong{font-variant-numeric:tabular-nums;color:#eac878;text-align:right}
[data-capital-preview]{padding:11px 12px!important;border:1px solid #513e25;border-radius:8px;background:#21190f;color:#e3c484!important;line-height:1.6!important}
@media(max-width:430px){.stx-historical-breakdown>span{align-items:flex-start;flex-direction:column;gap:1px}}

/* STRATREX · modelo de recebimento por limite, versão pendente de aprovação. */
.stx-payout-settings{border-color:#5c4727!important;background:linear-gradient(135deg,#1e1911,#12100e)}
.stx-payout-preview{font-size:12px;line-height:1.65;color:#e5c77f;border:1px solid #594529;border-radius:9px;padding:12px 13px;background:#13100c;font-variant-numeric:tabular-nums}
.stx-payout-disclaimer{font-size:11px!important;color:#bda98a!important;line-height:1.65!important}
.platform-payout-rule{display:grid;gap:4px;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid #4b3a21;background:#17130e}
.platform-payout-rule>span{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#aa946d}
.platform-payout-rule strong{font-size:12px;font-weight:650;color:#efcf86;line-height:1.5}
