/* TradeOS — Movimentações das contas (usa a base visual de tradeos-risk.css) */
.trm .trm-sheet { width: min(640px, 100%); }
.trm.trm-wide .trm-sheet { width: min(720px, 100%); }
.trm-types { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; margin: 20px 0 8px; }
.trm-types button { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .025); color: #c9cdd1; text-align: left; cursor: pointer; font-family: var(--font-sans); transition: border-color .2s, background-color .2s, color .2s; }
.trm-types button:hover { border-color: rgba(255, 255, 255, .18); }
.trm-types button b { font: 600 13.5px/1.2 var(--font-sans); color: #f2f0e9; }
.trm-types button small { font-size: 11.5px; line-height: 1.35; color: #8a9096; }
.trm-types button[aria-checked="true"] { border-color: rgba(216, 255, 62, .55); background: rgba(216, 255, 62, .07); }
.trm-types button[aria-checked="true"] b { color: #d8ff3e; }
.trm-types button:focus-visible { outline: 2px solid #d8ff3e; outline-offset: 2px; }
.trm .trv-f[hidden] { display: none; }
.trm .trv-f > div { position: relative; }
.trm-cur { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11.5px/1 var(--font-sans); font-style: normal; color: #8a9096; pointer-events: none; }
.trm .trv-f input[data-k="amount"], .trm .trv-f input[data-k="received"], .trm .trv-f input[data-k="split"] { padding-right: 46px; font-variant-numeric: tabular-nums; }
.trm .trv-f input[type="date"] { color-scheme: dark; }
.trm-preview { margin: 2px 0 4px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); font-size: 12.5px; line-height: 1.5; color: #a3a9ae; }
.trm-preview[hidden] { display: none; }
.trm-preview b { color: #f2f0e9; font-variant-numeric: tabular-nums; }
.trm-preview .up { color: #4ade80; } .trm-preview .down { color: #f87171; }
.trm-drop { display: flex; flex: 1; align-items: center; justify-content: center; height: 38px; padding: 0 12px; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 10px; color: #c9cdd1; font: 600 12.5px/1 var(--font-sans); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: border-color .2s, background-color .2s; }
.trm-drop:hover, .trm-drop.drag { border-color: rgba(216, 255, 62, .55); background: rgba(216, 255, 62, .05); }
.trm-thumb { position: relative; justify-self: end; width: 200px; }
.trm-thumb[hidden] { display: none; }
.trm-thumb img { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); }
.trm-thumb button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.trv-err { margin: 12px 0 0; font-size: 12.5px; color: #f87171; }
.trv-err[hidden] { display: none; }
.trm-p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: #a3a9ae; }
.trm.trm-confirm .trm-sheet { width: min(440px, 100%); }
.trm-confirm h2 { font-size: 22px !important; }
.trm-close { display: grid; margin: 20px 0 0; padding: 0; list-style: none; }
.trm-close li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.trm-close li > div { display: grid; gap: 3px; min-width: 0; }
.trm-close li > div b { font: 600 13.5px/1.25 var(--font-sans); color: #f2f0e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trm-close small { font-size: 11.5px; color: #8a9096; }
.trm-close li > span { display: grid; gap: 3px; justify-items: end; font: 600 13.5px/1.2 var(--font-sans); color: #f2f0e9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trm-close .up { color: #4ade80; } .trm-close .down { color: #f87171; }
.trm .trv-ghost.sm, .trm .trv-primary.sm { height: 32px; padding: 0 13px; font-size: 12.5px; }
.trm-sum { margin: 16px 0 0; padding: 13px 16px; border-radius: 14px; background: rgba(216, 255, 62, .07); color: #c9cdd1; font-size: 13.5px; }
.trm-sum b { color: #d8ff3e; font-variant-numeric: tabular-nums; }
.trm-lightbox { position: fixed; inset: 0; z-index: 9400; display: grid; place-items: center; padding: 40px; background: rgba(3, 4, 6, .86); opacity: 0; transition: opacity .25s; cursor: zoom-out; }
.trm-lightbox.in { opacity: 1; }
.trm-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
@media (max-width: 640px) {
  .trm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trm-close li { grid-template-columns: minmax(0, 1fr) auto; }
  .trm-close li > button { grid-column: 1 / -1; justify-self: start; }
  .trm-thumb { justify-self: stretch; width: auto; }
}
