/* GigaTrader page (ui/pages/giga.js). Everything structural comes from the HyperLaunch styles (mk-top, mk-lp, mk-vc,
   hlt-*, mk-adv, mk-selbar, mk-ck-*); these are only the GigaTrader-specific bits, scoped to .mk-gt. */
.mk-gt .gt-money { display: flex; flex-direction: column; gap: 10px; }
.mk-gt .gt-sol { max-width: 320px; }
.mk-gt .gt-inu { position: relative; display: flex; align-items: center; }
.mk-gt .gt-inu .hlt-in { width: 100%; padding-right: 54px; }
.mk-gt .gt-suf { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 600; color: var(--mk-ink3); pointer-events: none; }
.mk-gt .gt-sol .hlt-in { min-height: 52px; padding-left: 16px; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.mk-gt .gt-sol .gt-suf { font-size: 13px; right: 16px; }
.mk-gt .gt-ic .i { width: 18px; height: 18px; color: var(--mk-acc2, #8d91ff); }
.mk-gt .mk-adv { margin-top: 4px; }
.mk-gt .gt-adv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.mk-gt .gt-adv .hlt-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mk-gt .gt-adv select.hlt-in { appearance: auto; }
.mk-gt .gt-wide { grid-column: 1 / -1; }
.mk-gt .gt-tog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--mk-ink); }
.mk-gt .gt-tog em { font-style: normal; font-weight: 400; color: var(--mk-ink4); font-size: 11px; margin-left: 6px; }
.mk-gt .mk-selbar-a .hlt-btn[disabled] { opacity: .45; cursor: not-allowed; }
/* running */
.mk-gt .mk-ck-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mk-gt .mk-ck-btn.gt-stop { color: var(--mk-err, #ff6b7a); border-color: rgba(255,107,122,0.3); }
.mk-gt .mk-ck-btn.gt-stop:hover { background: rgba(255,107,122,0.1); }
.mk-gt .mk-ck-btn.gt-go { color: var(--mk-ok, #43d08f); border-color: rgba(67,208,143,0.3); }
.mk-gt .mk-ck-btn .i { width: 14px; height: 14px; margin-right: 6px; }
.mk-gt .gt-att { margin: 2px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,107,122,0.25); background: rgba(255,107,122,0.06); }
.mk-gt .gt-att > i { background: var(--mk-err, #ff6b7a); }
.mk-gt .gt-hist { margin-top: 18px; }
.mk-gt .gt-tbl { overflow-x: auto; border: 1px solid var(--mk-line2, #26272d); border-radius: 12px; }
.mk-gt .gt-tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-gt .gt-tbl th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--mk-ink4); padding: 10px 14px; border-bottom: 1px solid var(--mk-line2, #26272d); white-space: nowrap; }
.mk-gt .gt-tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); white-space: nowrap; }
.mk-gt .gt-tbl tr:last-child td { border-bottom: 0; }
.mk-gt .gt-tbl td em { font-style: normal; color: var(--mk-ink3); }
.mk-gt .gt-tbl .r { text-align: right; }
.mk-gt .gt-wd { margin-top: 18px; }
.mk-gt .gt-wd .mk-selbar-a { display: flex; gap: 10px; align-items: center; }
.mk-gt .gt-wd .hlt-in { width: 360px; max-width: 46vw; }
.mk-gt .gt-log { margin-top: 18px; }
.mk-gt .gt-log pre { margin: 0; max-height: 320px; overflow: auto; font-size: 11.5px; line-height: 1.55; color: var(--mk-ink2); white-space: pre-wrap; }
.gt-confirm { margin: 0; padding-left: 18px; line-height: 1.7; }
@media (max-width: 900px) {
  .mk-gt .gt-adv { grid-template-columns: 1fr; }
  .mk-gt .gt-wd .mk-selbar-a { flex-direction: column; align-items: stretch; }
  .mk-gt .gt-wd .hlt-in { width: 100%; max-width: none; }
}

/* Create Launch: engine chooser (ui/assets/app.js) — the two banners stacked as full-width buttons */
.modal.eng-modal { width: min(680px, 100%); }
.eng-modal .modal-f { border-top: 0; padding-top: 0; }
.eng-pick { display: flex; flex-direction: column; gap: 14px; }
.eng-opt { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(120,170,255,0.18); color: var(--text); font: inherit; isolation: isolate;
  background: radial-gradient(90% 120% at 50% 40%, rgba(40,90,255,0.30), rgba(20,40,120,0.12) 50%, #05070f 82%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.eng-opt.hyper { background: radial-gradient(90% 120% at 50% 40%, rgba(120,90,255,0.30), rgba(60,40,140,0.12) 50%, #06050f 82%); border-color: rgba(160,140,255,0.18); }
.eng-art { display: block; padding: 14px 18px 4px; aspect-ratio: 1300 / 470; }
.eng-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 28px rgba(40,110,255,0.45)); transition: transform .25s ease, filter .25s ease; user-select: none; }
.eng-opt.hyper .eng-art img { filter: drop-shadow(0 10px 28px rgba(130,100,255,0.45)); }
.eng-tag { display: block; padding: 9px 16px 11px; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: #bcd4ff; background: rgba(6,10,24,0.55); border-top: 1px solid rgba(120,170,255,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eng-opt.hyper .eng-tag { color: #cfc4ff; border-top-color: rgba(160,140,255,0.14); }
.eng-opt:hover { transform: translateY(-2px); border-color: rgba(120,190,255,0.6); box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(120,190,255,0.2), 0 0 60px rgba(40,120,255,0.28); }
.eng-opt.hyper:hover { border-color: rgba(170,150,255,0.6); box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(170,150,255,0.2), 0 0 60px rgba(120,90,255,0.28); }
.eng-opt:hover .eng-art img { transform: scale(1.03); filter: drop-shadow(0 12px 34px rgba(70,150,255,0.7)) brightness(1.06); }
.eng-opt.hyper:hover .eng-art img { filter: drop-shadow(0 12px 34px rgba(150,120,255,0.7)) brightness(1.06); }
.eng-opt:focus-visible { outline: 2px solid #8fb8ff; outline-offset: 2px; }
.eng-opt:active { transform: translateY(0) scale(0.995); }

/* sidebar: engine tag next to the status chip */
.mk-chips { display: inline-flex; gap: 4px; flex: none; margin-left: auto; }
.mk-chip.eng { opacity: 0.9; }
.mk-chip.eng.giga { color: #c9bfff; background: rgba(138,120,245,0.16); border-color: rgba(138,120,245,0.35); }
.mk-chip.eng.hyper { color: var(--text-3); background: rgba(255,255,255,0.04); }
.mk-giga { border: 1px solid rgba(138,120,245,0.3); }
.mk-gt .hlt-mark.gt-letter { background: linear-gradient(180deg, #2a2c52, #1b1c33); color: #c9cbff; font-weight: 700; border: 1px solid rgba(141,145,255,0.25); }
/* P&L */
.mk-gt .gt-pnl.up { color: var(--mk-ok, #43d08f); }
.mk-gt .gt-pnl.down { color: var(--mk-err, #ff6b7a); }
.mk-gt .gt-tbl td.up { color: var(--mk-ok, #43d08f); }
.mk-gt .gt-tbl td.down { color: var(--mk-err, #ff6b7a); }
.mk-gt .gt-tbl tr.gt-next td { background: rgba(141,145,255,0.06); }
.mk-gt .gt-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #c9cbff; background: rgba(141,145,255,0.16); border: 1px solid rgba(141,145,255,0.3); }
.mk-gt .gt-badge.live { color: var(--mk-ok, #43d08f); background: rgba(67,208,143,0.12); border-color: rgba(67,208,143,0.3); }
.mk-gt .gt-tbl tfoot td { padding: 12px 14px; border-top: 1px solid var(--mk-line2, #26272d); background: rgba(255,255,255,0.02); white-space: nowrap; }
.mk-gt .gt-fees { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mk-gt .gt-fees span { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); font-size: 11.5px; }
.mk-gt .gt-fees em { font-style: normal; color: var(--mk-ink4); }
.mk-gt .gt-builderr { margin-top: 10px; }
.mk-gt .gt-chain { font-style: normal; font-size: 10px; color: var(--mk-ink4); margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; }
/* setup: funded / not funded groups + the funding check */
.mk-gt .gt-grp { margin: 4px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mk-ink4); }
.mk-gt .gt-grp + .mk-vgrid + .gt-grp { margin-top: 14px; }
.mk-gt .gt-sol-tag { font-style: normal; font-weight: 650; color: var(--mk-ink3); }
.mk-gt .gt-sol-tag.ok { color: var(--mk-ok, #43d08f); }
.mk-gt .gt-check { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--mk-line2, #26272d); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 12px; }
.mk-gt .gt-check.ok { border-color: rgba(67,208,143,0.35); background: rgba(67,208,143,0.05); }
.mk-gt .gt-check.warn { border-color: rgba(231,182,90,0.35); background: rgba(231,182,90,0.05); }
.mk-gt .gt-check-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-gt .gt-ok, .mk-gt .gt-short { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 8px; }
.mk-gt .gt-ok { color: var(--mk-ok, #43d08f); background: rgba(67,208,143,0.12); }
.mk-gt .gt-short { color: var(--mk-warn, #e7b65a); background: rgba(231,182,90,0.12); }
.mk-gt .gt-check-s { font-size: 12px; color: var(--mk-ink3); }
.mk-gt .gt-check-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mk-gt .gt-check-g > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.25); min-width: 0; }
.mk-gt .gt-check-g span { font-size: 11px; color: var(--mk-ink4); }
.mk-gt .gt-check-g b { font-size: 15px; font-weight: 650; }
.mk-gt .gt-check-g em { font-style: normal; font-size: 11px; color: var(--mk-ink3); line-height: 1.35; }
.mk-gt .gt-okc { color: var(--mk-ok, #43d08f); }
.mk-gt .gt-warnc { color: var(--mk-warn, #e7b65a); }
.mk-gt .gt-src-tog.off { opacity: .55; }
@media (max-width: 900px) { .mk-gt .gt-check-g { grid-template-columns: 1fr 1fr; } }
.mk-gt .gt-check.info { border-color: rgba(141,145,255,0.35); background: rgba(141,145,255,0.05); }
.mk-gt .gt-scl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 8px; color: #c9cbff; background: rgba(141,145,255,0.14); }
/* setup: "Not funded" shows 9 (3 rows), the rest scroll inside the box */
.mk-gt .gt-grp { display: flex; align-items: baseline; justify-content: space-between; }
.mk-gt .gt-grp em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mk-ink4); }
.mk-gt .gt-scroll { max-height: calc(3 * 88px + 2 * 10px + 4px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.mk-gt .gt-scroll::-webkit-scrollbar { width: 6px; }
.mk-gt .gt-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 6px; }
/* sidebar: GigaTrader lane = parent, its cycle projects nested under it */
.mk-gtree { display: flex; flex-direction: column; }
.mk-gtree-kids { display: flex; flex-direction: column; margin: 2px 0 6px 27px; padding-left: 8px; border-left: 1px solid rgba(138,120,245,0.28); }
.nav.mk-projects .mk-gtree-kids a.mk-pc.mk-pc-child { height: 46px; padding: 0 10px 0 8px; gap: 10px; }
.mk-gtree-kids .mk-av { width: 26px; height: 26px; font-size: 11px; }
.mk-gtree-kids .mk-pc-t b { font-size: 12px; }
.mk-gtree-kids .mk-pc-t span { font-size: 11px; }
.mk-gtree-tg { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 5px; border: 1px solid #26272d; background: #1c1d22; color: var(--mk-ink2); font-size: 10.5px; cursor: pointer; }
.mk-gtree-tg:hover { color: #c9bfff; border-color: rgba(138,120,245,0.35); }
.mk-gtree-tg .i-sm { width: 12px; height: 12px; }
.mk-chip.err { color: var(--mk-err, #ff6b7a); background: rgba(255,107,122,0.1); border-color: rgba(255,107,122,0.25); }
.app.mk-app.rail .mk-gtree-kids { margin-left: 0; padding-left: 0; border-left: 0; }
.app.mk-app.rail .mk-gtree-tg { display: none; }
/* tweet campaign confidence switch (low / medium / high) in the run header */
.mk-gt .gt-conf { display: inline-flex; align-items: center; gap: 4px; }
.mk-gt .gt-conf .hlt-btn.sm { padding: 1px 8px; font-size: 11px; line-height: 18px; min-height: 0; }
.mk-gt .gt-warn { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 0 5px; border-radius: 4px; background: rgba(245, 158, 11, .16); color: #f59e0b; }
