/* Spaces: the live floor, squad battles, feed highlights, polls / predictions, Oracles, the
   community pulse and shared-trade charts. Monochrome; P&L follows the P&L colour setting. */

/* The app gives <em> a display face; these small labels keep the UI font. */
:is(.sp-now, .ctile, .sp-disc, .gp-battle, .gf-who, .dpo-h, .dpo-o, .dpf-pred, .or-row, .dcr-row, .bf-pub, .dc-pop, .gb-side, .dc-friends) em { font-family: inherit; }

/* "live": someone in a trade right now, with the pulse the connection pill uses */
@keyframes spPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } }
.dc-pop > button em { margin-left: auto; padding-left: 10px; font-style: normal; font-size: 11.5px; color: var(--text-3); }

/* ── Community home: what's happening right now ── */
.sp-nows { display: grid; gap: 6px; }
.sp-now { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 14px; text-align: left; font: inherit; font-size: 13.5px; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.sp-now:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.sp-now > span { flex: 1; min-width: 0; }
.sp-now > .ic { color: var(--text-2); flex: none; }
.sp-now em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); }
.sp-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; animation: spPulse 1.8s ease-in-out infinite; }
.gt-live { margin: 0 14px 0 auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .07); }
.gt-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: spPulse 1.8s ease-in-out infinite; }
.gt-chal { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--text); }

/* ── live floor ── */
.gp-floor { margin-bottom: var(--gap); padding: 12px 16px; border-radius: 18px; }
.gp-floor.on { box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .25); }
.gf-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.gf-h .dim { font-size: 13px; }
.gf-dot { width: 9px; height: 9px; border-radius: 50%; background: #52525b; }
.gp-floor.on .gf-dot { background: #34d399; animation: spPulse 1.8s ease-in-out infinite; }
.gf-me { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.gf-me input { position: absolute; opacity: 0; pointer-events: none; }
.gf-sw { position: relative; width: 32px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.gf-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.gf-me input:checked + .gf-sw { background: var(--text); }
.gf-me input:checked + .gf-sw::after { background: #0a0a0b; }
.gf-me input:checked + .gf-sw::after { transform: translateX(14px); }
.gf-me input:focus-visible + .gf-sw { outline: 2px solid #fff; outline-offset: 2px; }
.gf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 12px; }
.gf-p { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); box-shadow: inset 2px 0 0 var(--pos); transition: background .2s; }
.gf-p.short { box-shadow: inset 2px 0 0 var(--neg); }
.gf-p:hover { background: rgba(255, 255, 255, .07); }
.gf-who { flex: 1; display: grid; min-width: 0; font-size: 13.5px; }
.gf-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-who em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--pos); }
.gf-p.short .gf-who em { color: var(--neg); }
.gf-t { display: grid; justify-items: end; gap: 3px; font-size: 11px; color: var(--text-3); }
.gf-pitch { margin-top: 8px; font-size: 13px; }

/* ── squad battles ── */
.gp-battles { display: grid; gap: 10px; margin-bottom: var(--gap); }
.gp-battle.pending { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.gp-battle.pending > svg { color: var(--text); }
.gp-battle.pending .grow { display: grid; gap: 2px; min-width: 200px; }
.gp-battle em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.gp-battle.live { position: relative; padding: 16px 20px 18px; border-radius: 22px; overflow: hidden; }
.gp-battle.live::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 140% at 0% 50%, rgba(255, 255, 255, .06), transparent 60%); }
.gp-battle.won { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.gb-top { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.gb-k { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; color: var(--text-2); }
.gb-st { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.gp-battle.ahead .gb-st, .gp-battle.won .gb-st { color: var(--pos); }
.gp-battle.behind .gb-st, .gp-battle.lost .gb-st { color: var(--neg); }
.gb-vs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 14px; }
.gb-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gb-side.them { justify-content: flex-end; text-align: right; }
.gb-side span { display: grid; min-width: 0; }
.gb-side b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.gb-side strong { font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gb-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 22px; font-weight: 650; background: color-mix(in srgb, var(--ca, #fff) 9%, rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.gb-x { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.gb-bar { position: relative; height: 6px; margin-top: 14px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--neg) 45%, transparent); }
.gb-bar i { display: block; height: 100%; background: var(--pos); transition: width .8s var(--ease); }
.gb-mvp { position: relative; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12.5px; }
.bf-pub { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.bf-pub label { position: relative; cursor: pointer; }
.bf-pub input { position: absolute; opacity: 0; }
.bf-pub span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); font-size: 13px; }
.bf-pub span .gx-ic { grid-row: span 2; }
.bf-pub em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.bf-pub input:checked + span { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.bf-seg { display: inline-flex; flex-wrap: wrap; }

/* ── feed highlights, trade charts ── */
.post-auto { align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), transparent); }
.pa-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, .08); }
.pa-t { font-size: 14px; line-height: 1.45; }
.pa-t a { color: inherit; font-weight: 700; }
.post-auto .post-r { margin-top: 4px; }
.pt-chart, .dc-tchart { flex-basis: 100%; margin-top: 8px; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.dc-trade:has(.dc-tchart) { flex-wrap: wrap; }
.ptrade .pt-chart { grid-column: 1 / -1; }
.mchart { display: block; width: 100%; height: 92px; }
.mchart .up line, .mchart .up rect { stroke: var(--pos); fill: var(--pos); }
.mchart .dn line, .mchart .dn rect { stroke: var(--neg); fill: var(--neg); }
.mchart line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.mchart .dn rect, .mchart .up rect { opacity: .85; }
.mc-trade rect { fill: color-mix(in srgb, var(--pos) 16%, transparent); stroke: none; }
.mc-trade.loss rect { fill: color-mix(in srgb, var(--neg) 16%, transparent); }
.mc-trade line { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mc-trade .mc-in { stroke: #e5e7eb; stroke-dasharray: 3 3; }
.mc-trade .mc-out { stroke: var(--pos); }
.mc-trade.loss .mc-out { stroke: var(--neg); }

/* ── community: pulse, polls, oracles, invites ── */
.dc-pulse { flex: none; display: grid; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.dc-pulse:empty { display: none; }
.dcp-s { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--text-3); }
.dcp-s i { width: 7px; height: 7px; border-radius: 50%; background: #52525b; flex: none; }
.dcp-s.live i { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, .6); }
.dcp-s b { color: var(--text); font-size: 12.5px; }
.dcp-t { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-3); }
.dcp-t span { display: inline-flex; align-items: center; gap: 4px; }
.dcp-t svg { color: var(--text-2); }
.chip-btn.acc { color: var(--text); background: rgba(255, 255, 255, .08); }
.dc-friends { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.dc-friends > :is(img, span, div):not(b) { margin-right: -10px; box-shadow: 0 0 0 2px rgba(14, 14, 17, .95); border-radius: 50%; }
.dc-friends b { margin-left: 12px; color: var(--text); }
.dc-rec { font-size: 11px; font-weight: 600; color: var(--text); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.dc-recruit { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.dcr-me { display: grid; justify-items: center; min-width: 90px; }
.dcr-me b { font-size: 30px; line-height: 1; }
.dcr-me span { font-size: 11.5px; color: var(--text-3); text-align: center; }
.dcr-top { display: grid; gap: 6px; }
.dcr-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dcr-row > svg { color: var(--text); }
.dcr-row i { width: 13px; font-style: normal; font-size: 11px; color: var(--text-3); text-align: center; }
.dcr-row em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--text); }

.dc-poll { max-width: 460px; margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2); }
.dc-poll.pred { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.dpo-h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dc-poll.pred .dpo-h { color: var(--text-2); }
.dpo-h em { margin-left: auto; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11.5px; color: var(--text-3); }
.dpo-q { display: block; margin: 6px 0 10px; font-size: 15.5px; line-height: 1.35; }
.dpo-opts { display: grid; gap: 6px; }
.dpo-o { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 12px; border-radius: 10px; overflow: hidden; text-align: left; font-size: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); transition: border-color .15s, background .15s; }
.dpo-o:not(:disabled):hover { border-color: rgba(255, 255, 255, .35); }
.dpo-o i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, .08); transition: width .5s var(--ease); }
.dpo-o > :not(i) { position: relative; }
.dpo-o span { flex: 1; min-width: 0; }
.dpo-o b { font-size: 13px; font-variant-numeric: tabular-nums; }
.dpo-o em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-2); }
.dpo-o.mine { border-color: rgba(255, 255, 255, .4); }
.dpo-o.mine i { background: rgba(255, 255, 255, .14); }
.dpo-o.right { border-color: rgba(255, 255, 255, .6); }
.dpo-o.right i { background: rgba(255, 255, 255, .18); }
.dpo-o.right > svg { color: var(--text); }
.dpo-o.wrong { opacity: .6; }
.dpo-o:disabled { cursor: default; }
.dpo-f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.dpo-f .chip-btn { margin-left: auto; }
.dpf-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dpf-opts { display: grid; gap: 6px; margin-bottom: 6px; }
.dpf-o { display: flex; gap: 6px; }
.dpf-o input { flex: 1; }
.dpf-pred { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.dpf-pred input { margin-top: 3px; }
.dpf-pred span { display: grid; gap: 2px; font-size: 13.5px; }
.dpf-pred em { font-style: normal; font-size: 12px; color: var(--text-3); }
.or-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: 14px; }
.or-row.top { background: rgba(255, 255, 255, .04); }
.or-row.r1 { background: linear-gradient(90deg, rgba(255, 255, 255, .08), transparent); }
.or-n { width: 20px; display: grid; place-items: center; font-size: 12px; color: var(--text-3); }
.or-row.r1 .or-n { color: var(--text); }
.or-row .grow { display: grid; min-width: 0; }
.or-row .grow em { font-style: normal; font-size: 12px; color: var(--text-3); }
.or-s { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.or-s b { color: var(--text); font-size: 14px; }
.dc-pins { display: grid; gap: 4px; margin-top: 12px; max-height: 60vh; overflow-y: auto; }
.dc-pinrow { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; text-align: left; font-size: 13.5px; }
.dc-pinrow:hover { background: rgba(255, 255, 255, .05); }
.dc-pinrow .grow { display: block; min-width: 0; }
.dc-pinrow time { font-size: 11.5px; color: var(--text-3); }
.dc-pinrow .grow > span { display: block; margin-top: 2px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── phones ── */
@media (max-width: 760px) {
    .gf-list { grid-template-columns: minmax(0, 1fr); }
  .gf-me { margin-left: 0; width: 100%; }
  .gb-vs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gb-side.them { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
  .gb-x { justify-self: start; }
  .gb-ic { width: 38px; height: 38px; font-size: 20px; border-radius: 12px; }
  .dc-recruit { grid-template-columns: minmax(0, 1fr); }
  .gp-battle.pending .btn { flex: 1; justify-content: center; }
}
