/* TiltLab guest (G-1): only the invitation is new; the introduction is the app's own Sample strip. The app's own
   tokens (--c-*, --f-*), both themes. A file (the CSP has no inline styles). */
#sample_bar.tlg-intro { max-width:min(760px, calc(100vw - 32px)) }
@media (max-width:760px) {
  /* the phone: one compact line (the app places the strip and lifts Check This Trade above it by its height, --smpl-h);
     the introduction is a short clause, Got It becomes a small close button */
  #sample_bar.tlg-intro small { display:inline; font-size:12px; white-space:nowrap }
  #sample_bar.tlg-intro { left:8px !important; right:8px !important; transform:none !important; max-width:none !important; width:auto !important }
  #sample_bar.tlg-intro > span { flex:1 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
  #sample_bar.tlg-intro #tlg_gotit { font-size:0; width:30px; height:30px; min-height:30px; padding:0; margin:0; border-radius:50%; flex:none }
  #sample_bar.tlg-intro #tlg_gotit::before { content:"×"; font-size:17px; line-height:1 }
  /* (preview 2026-11-23, D3) Check This Trade's balance line: the account chip kept its full width and pushed past the
     right edge; on a phone the line may shrink and the chip ends in "..." (its own ellipsis). Desktop is unchanged */
  #ck_bal, #ck_bal .rn-hb, #ck_bal .rn-badge { min-width:0; max-width:100% }
  #ck_bal .rn-hb { flex-wrap:wrap }
  /* (2026-11-23) the open practice trade on a phone: folded to the trade, its P&L and its two buttons (guest-ui tkFold) */
  #tpanel.tlg-tkmin #ticket .rows, #tpanel.tlg-tkmin #ticket .hint { display:none }
  #ticket .hd:has(#tlg_tkfold) { display:flex; align-items:center; justify-content:space-between; gap:8px }
  #tlg_tkfold { font:600 12.5px var(--f-body); min-height:32px; padding:4px 12px; border-radius:99px; cursor:pointer;
    border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); flex:none }
  #tlg_tkfold:focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }
}
}
#sample_bar.tlg-intro #sample_txt { white-space:normal }
#tlg_gotit { font:600 12.5px var(--f-body); border-radius:99px; padding:4px 12px; margin-right:6px; cursor:pointer;
  border:1px solid var(--c-border-strong); background:var(--c-raised); color:var(--c-text); min-height:28px }
#tlg_gotit:focus-visible, #tlg_invite :focus-visible { outline:2px solid var(--c-accent); outline-offset:2px }

#tlg_invite { position:fixed; z-index:2147482500; right:16px; bottom:16px; width:min(360px, calc(100vw - 32px)); background:var(--c-card); color:var(--c-text);
  border:1px solid var(--c-accent); border-radius:14px; box-shadow:var(--c-shadow); padding:14px 16px; font-family:var(--f-body); transition:opacity .3s ease }
#tlg_invite.out { opacity:0; pointer-events:none } #tlg_invite b { display:block; font-size:15.5px; margin:0 30px 4px 0 } #tlg_invite p { margin:0 0 10px; font-size:14px; color:var(--c-muted); line-height:1.4 }
#tlg_invite .x { position:absolute; top:8px; right:8px; width:32px; height:32px; border-radius:8px; border:0; background:transparent; color:var(--c-muted); font-size:20px; cursor:pointer }
#tlg_invite .x:hover { background:var(--c-raised); color:var(--c-text) }
#tlg_invite a { display:inline-block; font:600 14px var(--f-body); padding:9px 14px; min-height:40px; border-radius:10px; text-decoration:none;
  background:var(--c-accent); color:var(--c-on-accent) }
#tlg_invite a.pro { background:transparent; color:var(--c-text); border:1px solid var(--c-accent) }
#tlg_invite small { display:block; margin:0 0 12px; font-size:13.5px; line-height:1.4; color:var(--c-text) }
@media (max-width:760px) { #tlg_invite { left:8px; right:8px; bottom:72px; width:auto } }
@media (prefers-reduced-motion:reduce) { #tlg_invite { transition:none } }
