/* Spectra app screens, forms and the assistant: the "data terminal" style.
 Interface rules: 1px borders and row rules are allowed here, shadows only on what floats. */

/* ---------- markets: live prices of the coins memecoins run on ---------- */
.tickr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.tk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; background: var(--a-panel); border: 1px solid var(--a-border); border-radius: 6px; text-align: left; font-size: 13px; transition: border-color 160ms ease; }
.tk:hover { border-color: var(--line2); }
.tk b { font-family: var(--f-mono); font-size: 12px; color: var(--a-muted); font-weight: 600; }
.tk .num:not(.pos):not(.neg) { font-size: 15px; font-weight: 600; }
.mk-live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--a-muted); white-space: nowrap; }
.mk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: start; }
.mk-list { padding: 6px 0; }
.mk-hd, .mk-r { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) 80px 96px; gap: 12px; align-items: center; padding: 0 18px; }
.mk-hd { min-height: 34px; font-size: 12px; color: var(--a-faint); }
.mk-hd span:nth-child(n+2) { text-align: right; }
.mk-r { width: 100%; min-height: 64px; text-align: left; border-top: 1px solid var(--a-rule); } /* taste-skill-ignore: table rows */
.mk-r:hover { background: var(--a-raised); }
.mk-r.on { background: var(--a-raised); box-shadow: inset 2px 0 0 var(--lime); }
.mk-r > .num { text-align: right; }
.mk-c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--on); font-weight: 700; font-size: 13px; }
.mk-nm { display: flex; flex-direction: column; min-width: 0; }
.mk-nm b { font-family: var(--f-mono); font-size: 14px; }
.mk-nm em { font-style: normal; font-size: 12px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-p { font-weight: 600; font-size: 15px; }
.mk-r.up .mk-p { animation: mk-up 1200ms ease; } .mk-r.down .mk-p { animation: mk-down 1200ms ease; }
@keyframes mk-up { 0% { color: var(--lime); } 100% { color: inherit; } }
@keyframes mk-down { 0% { color: var(--coral); } 100% { color: inherit; } }
.mk-sp { width: 96px; height: 32px; justify-self: end; }
.mk-sp path, .mk-ln { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mk-det { padding: 22px; }
.mk-dh { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.mk-big { font-family: var(--f-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 4px 0 6px; }
.mk-chs { display: flex; gap: 18px; }
.mk-chs dt { font-size: 12px; color: var(--a-faint); }
.mk-chs dd { font-size: 15px; font-weight: 600; margin: 2px 0 0; }
.mk-chart { display: block; width: 100%; height: 200px; margin-top: 18px; }
.mk-cap { margin-top: 6px; }
.mk-rng { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; }
.mk-rng b { color: var(--ink); font-weight: 600; }
.mk-bar { position: relative; height: 4px; border-radius: 2px; background: var(--line2); }
.mk-bar i { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); }
.mk-kv { margin-top: 16px; }
.mk-src { margin-top: 14px; }
@media (max-width: 1100px) { .mk-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tickr { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad, 16px)) 12px; padding: 0 var(--pad, 16px); }
  .tickr::-webkit-scrollbar { display: none; }
  .tk { flex: none; min-width: 112px; }
  .mk-hd, .mk-r { grid-template-columns: minmax(0, 1fr) auto 72px; padding: 0 14px; }
  .mk-7 { display: none; }
  .mk-big { font-size: 32px; }
  .mk-chart { height: 150px; }
  .mk-rng { grid-template-columns: 1fr 1fr; } .mk-rng .mk-bar { grid-column: 1 / -1; grid-row: 1; } .mk-rng span:last-child { text-align: right; }
}
/* ---------- phone: a top bar with the mark and your avatar; tabs along the bottom ---------- */
.mtop { display: none; }
@media (max-width: 640px) {
  .mtop { position: sticky; top: 0; z-index: 31; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; background: var(--ground); border-bottom: 1px solid var(--a-border); }
  .mtop-m { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 14px; text-transform: uppercase; }
  .mtop-me { width: 30px; height: 30px; border-radius: 50%; color: var(--on); font-weight: 600; font-size: 13px; }
  .rail .ri { flex: 1; min-width: 0; }
  .rail .ri-l { font-size: 11px; }
}
/* ---------- settings: help ---------- */
.rep-t { min-height: 108px; padding: 12px 14px; resize: vertical; font: inherit; line-height: 1.45; }
.rep .planrow { margin-top: 12px; }
/* ---------- auth and checkout ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding: 72px var(--m) 160px; }
.split-copy { grid-column: 1 / span 6; }
.split-copy .body { margin-top: 24px; max-width: 40ch; }
.split-copy .sl { max-width: 40ch; }
.split-copy .sl li::before { background: var(--cyan); }
.panel.form { grid-column: 8 / span 5; background: var(--a-panel); border: 1px solid var(--a-border); border-radius: 6px; padding: 28px; font-size: 15px; }
.segs.full { display: flex; margin: 0 0 8px; }
/* the sign up / log in tabs change at once: no colour sweeping between them */
.segs.full .seg { position: relative; flex: 1; transition: none; }
.segs.full .seg.on { background: var(--tone2); color: var(--ink); }
.segs.full .seg.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); }
.fld { margin-top: 18px; }
.fld label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.inp { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 6px; background: var(--ground); color: var(--ink); font-size: 16px; }
.inp::placeholder { color: var(--a-faint); }
.inp:focus { outline: none; border-color: var(--gold); }
.err { min-height: 18px; margin-top: 4px; font-size: 13px; color: var(--neg); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--a-muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.agree a { color: var(--ink); }
.fnote { margin: 16px 0; padding: 12px 14px; background: var(--a-raised); border-radius: 6px; font-size: 14px; color: var(--ink); }
.fine { margin-top: 14px; font-size: 13px; color: var(--a-faint); text-align: center; }
.form .btn + .btn { margin-top: 10px; }
.sum { margin: 16px 0 0; }
.sum div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--a-rule); }
.sum dt { color: var(--a-muted); }
.sum dd { margin: 0; }
.sum .tot { font-weight: 600; font-size: 18px; }
.sum .tot dt { color: var(--ink); }

/* =====================================================================
   App screens: data terminal. Panels darker than the ground, tabular
   figures with their signs, every selection a 1px gold line.
   ===================================================================== */
.shell.app { display: grid; grid-template-columns: 60px minmax(0, 1fr); min-height: 100svh; }
.rail { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 14px 0; border-right: 1px solid var(--a-border); background: var(--ground); z-index: 30; }
.rail-mark { width: 44px; height: 44px; display: grid; place-items: center; }
.rail-items { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.ri { position: relative; width: 60px; height: 44px; display: grid; place-items: center; color: var(--a-faint); transition: color 160ms ease; }
.ri svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ri:hover, .ri.on { color: var(--ink); }
.ri.on::after { content: ''; position: absolute; right: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--gold); }
.ri-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rail-me { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--on); font-weight: 600; font-size: 14px; }
.app .main { min-width: 0; padding: 0 32px 120px; }
.app-s { padding-top: 28px; font-size: 14px; }
.trow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.at { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.finding { margin-top: 6px; font-size: 15px; color: var(--a-muted); max-width: 78ch; }
.segs.line { margin: 0; gap: 2px; }
.segs.line .seg { position: relative; min-height: 34px; padding: 0 10px; background: transparent; color: var(--a-muted); font-size: 14px; }
.segs.line .seg.on { background: transparent; color: var(--ink); }
.segs.line .seg.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: var(--gold); }
.panel { background: var(--a-panel); border: 1px solid var(--a-border); border-radius: 6px; padding: 20px; min-width: 0; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pt { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.kl { font-size: 13px; color: var(--a-muted); }
.kv { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.15; }
.kv.lead { font-size: 32px; font-weight: 600; }
.ks { font-size: 13px; color: var(--a-muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin-bottom: 16px; }
.kpis > div { padding: 18px 20px; }
.kpis > div + div { border-left: 1px solid var(--a-rule); }
.kpis .ks { margin-top: 4px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.span8 { grid-column: span 8; }
.span4 { grid-column: span 4; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack.fill { grid-template-rows: auto 1fr; align-content: stretch; }
.panel.grow { display: flex; flex-direction: column; align-items: flex-start; }
.panel.grow .foot-act { margin-top: auto; }
.panel.grow .up-t { margin-bottom: 20px; }
.pill { display: inline-block; flex: none; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 4px; }
.pill-off { background: var(--a-raised); color: var(--a-muted); }
.pill-on { background: rgba(218,250,156,.14); color: var(--cyan-ink); }
.bt { min-height: 36px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.bt:active { transform: scale(0.97); }
.bt.gold { background: var(--gold); color: var(--on); }
.bt.gold:hover { background: #e9ffbd; }
.bt.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.bt.ghost:hover { background: var(--a-raised); }
.bt.danger { background: transparent; color: var(--neg); box-shadow: inset 0 0 0 1px #5a2626; }
.bt.danger:hover { background: #2a1515; }
.body-s { margin: 8px 0 16px; font-size: 14px; line-height: 1.5; }
.up-t { margin: 14px 0; font-size: 14px; color: var(--ink); }

/* signature: what the shield said vs what you got */
.lanes { position: relative; padding-top: 22px; }
.lane-l .gp { white-space: nowrap; }
.lane-ax { position: absolute; top: 0; left: 140px; right: 112px; height: 16px; }
.lane-ax span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--a-faint); white-space: nowrap; }
.lane-ax span:first-child { transform: none; }
.lane-ax span:last-child { transform: translateX(-100%); }
.lane { display: grid; grid-template-columns: 124px minmax(0, 1fr) 96px; gap: 16px; align-items: center; min-height: 64px; border-top: 1px solid var(--a-rule); }
.lane-l { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lane-p { position: relative; height: 32px; background: var(--ground); }
.lane-p .zero { position: absolute; top: -6px; bottom: -6px; width: 1px; background: var(--line2); }
.ld { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 2px solid var(--a-panel); }
.lane-p .avg { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: var(--ink); }
.lane-v { display: flex; flex-direction: column; align-items: flex-end; }
.lane-v b { font-size: 16px; font-weight: 600; }
.lane-k { margin-top: 12px; }

.kvl { margin: 0; }
.kvl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 38px; padding: 6px 0; border-top: 1px solid var(--a-rule); }
.kvl dt { color: var(--a-muted); font-size: 13px; }
.kvl dd { margin: 0; font-size: 14px; text-align: right; }
.panel .txt { margin-top: 10px; }
.ranks { width: 100%; margin: 14px 0 18px; }
.ranks .on dt { color: var(--ink); }
.cm, .ppl { font-variant-numeric: tabular-nums; }

.cum { display: block; width: 100%; height: auto; }
.cum .grid { stroke: var(--a-rule); stroke-width: 1; }
.cum .base { stroke: var(--line2); stroke-width: 1; }
.cum .tick { fill: var(--a-faint); font-size: 12px; font-family: inherit; }
.cum .area { fill: var(--gold); fill-opacity: 0.1; }
.cum .ln { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.cum .end { fill: var(--gold); }

.th { margin: 0 -20px -8px; }
.tr { width: 100%; display: grid; grid-template-columns: minmax(150px, 1.5fr) 130px 100px 120px 150px 70px; gap: 12px; align-items: center; min-height: 52px; padding: 0 20px; text-align: left; border-top: 1px solid var(--a-rule); transition: background-color 140ms ease; }
.tr.hd { min-height: 36px; border-top: 0; font-size: 12px; color: var(--a-muted); }
button.tr:hover { background: var(--a-panel); }
.tr .r { text-align: right; }
.tok { display: flex; flex-direction: column; }
.res { display: flex; flex-direction: column; align-items: flex-end; }
.more { color: var(--a-muted); }
button.tr:hover .more { color: var(--ink); }
.tx { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 4px 20px 18px; background: var(--a-panel); }
.tx p + p { margin-top: 4px; }
.empty { padding: 20px; color: var(--a-muted); border-top: 1px solid var(--a-rule); }
.app-s > .fine { text-align: left; }

/* leaderboard */
.pod-h { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--on); }
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.lg { width: 48px; height: 48px; font-size: 18px; }
.lt { margin: 0 -20px -8px; }
.lr { display: grid; grid-template-columns: 56px minmax(0, 1fr) 80px 170px 96px; gap: 12px; align-items: center; min-height: 48px; padding: 0 20px; border-top: 1px solid var(--a-rule); }
.lr.hd { min-height: 34px; border-top: 0; font-size: 12px; color: var(--a-muted); }
.lr.me { background: rgba(218,250,156,.06); }
.lr .r { text-align: right; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dbar { position: relative; display: flex; align-items: center; gap: 10px; }
.dbar::before { content: ''; flex: 1; height: 2px; background: var(--a-rule); }
.dbar i { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--a-muted); max-width: calc(100% - 46px); }
.dbar em { font-style: normal; font-size: 13px; color: var(--a-muted); width: 36px; text-align: right; }

/* community */
.comm .trow { margin-bottom: 16px; }
.cm { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; height: max(560px, calc(100svh - 150px)); background: var(--a-panel); border: 1px solid var(--a-border); border-radius: 6px; overflow: hidden; }
.rooms { border-right: 1px solid var(--a-rule); overflow-y: auto; padding: 8px 0; }
.room { position: relative; display: block; width: 100%; text-align: left; padding: 12px 16px; transition: background-color 140ms ease; }
.room:hover { background: var(--a-panel); }
.room.on { background: var(--a-raised); }
.room.on::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--gold); }
.room-n { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.room-n b { font-weight: 600; }
.room-d { display: block; margin-top: 4px; font-size: 13px; color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--on); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.feed { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.feed-h { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--a-rule); }
.feed-s { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.feed-i { padding: 8px 20px 4px; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.msg.fresh { animation: msg-in 420ms var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px); } }
.msg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.msg-h b { font-weight: 600; }
.msg-t { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 68ch; }
.msg.mine .msg-t { color: #ffffff; }
.msg-a { display: flex; gap: 2px; margin: 4px 0 0 -8px; }
.act { min-height: 30px; padding: 0 8px; border-radius: 4px; font-size: 13px; color: var(--a-muted); transition: color 140ms ease, background-color 140ms ease; }
.act:hover { color: var(--ink); background: var(--a-raised); }
.act.on { color: var(--red-ink); }
.lockt { color: var(--gold); }
.typing { min-height: 22px; padding: 0 20px; font-style: normal; }
.compose { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--a-rule); }
.compose .inp { min-height: 40px; font-size: 15px; }
.compose.locked { align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--a-muted); }
.compose.locked b { color: var(--ink); font-weight: 600; }
.side { border-left: 1px solid var(--a-rule); padding: 16px; overflow-y: auto; }
.ppl li { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.ppl-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ppl-n b { font-size: 14px; font-weight: 500; }
.ppl-n .ks { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chipbtn { min-height: 30px; padding: 0 10px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); transition: background-color 140ms ease; }
.chipbtn:hover { background: var(--a-raised); }
.chipbtn.on { box-shadow: none; background: var(--a-raised); color: var(--a-muted); }
.rulesbox { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--a-rule); }
.dm { margin: -16px -16px 16px; padding: 16px; background: var(--a-raised); border-bottom: 1px solid var(--a-border); animation: rise 280ms var(--ease-out) both; }
.dm .ph { margin-bottom: 10px; }
.dm-s { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.dmb { align-self: flex-start; max-width: 88%; padding: 8px 12px; border-radius: 10px 10px 10px 3px; background: var(--a-panel); font-size: 14px; }
.dmb.me { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: var(--gold); color: var(--on); }
.dm .compose { padding: 12px 0 0; border: 0; }

/* settings */
.set { max-width: 1120px; }
.srow { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--a-rule); }
.trow + .srow { border-top: 0; }
.sl-c .ks { margin-top: 4px; max-width: 36ch; }
.sp { padding: 18px 20px; }
.prof { display: flex; align-items: center; gap: 14px; }
.prof b { font-size: 16px; font-weight: 600; }
.planrow, .swrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.planrow + .ks { margin-top: 12px; }
.swrow b { font-weight: 600; }
.swrow .pill { margin-left: 8px; vertical-align: 1px; }
.swrow .ks { margin-top: 4px; }
.tg:not(.big) { width: 36px; height: 20px; }
.tg:not(.big) i { top: 3px; left: 3px; width: 14px; height: 14px; }
.tg:not(.big)[aria-checked="true"] { background: var(--ink); }
.tg:not(.big)[aria-checked="true"] i { transform: translateX(16px); background: var(--ground); }
.tg.locked { background: var(--tone2); }

/* ---------- assistant ---------- */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chatl { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; background: var(--gold); color: var(--on); font-weight: 600; font-size: 16px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px); transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.chatl:hover { background: #e9ffbd; }
.chatl:active { transform: scale(0.97); }
.chatl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.chatl.open { background: var(--ink); }
.chatp { width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100svh - 110px)); display: flex; flex-direction: column; overflow: hidden; background: var(--a-panel); border: 1px solid var(--tone3); border-radius: 10px; box-shadow: 0 28px 72px rgba(0, 0, 0, 0.6); font-size: 14px; transform-origin: bottom right; animation: chat-in 280ms var(--ease-out) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--a-rule); }
.chat-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-t b { font-size: 15px; font-weight: 600; }
.chatm { flex: 1; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 12px; padding: 16px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.bw { display: flex; flex-direction: column; gap: 8px; animation: rise 260ms var(--ease-out) both; }
.bw.me { align-items: flex-end; }
.bw.bot { align-items: flex-start; }
.bb { max-width: 88%; padding: 10px 13px; border-radius: 12px; line-height: 1.5; white-space: pre-line; }
.bb.bot { background: var(--a-raised); border-bottom-left-radius: 3px; }
.bb.me { background: var(--gold); color: var(--on); font-weight: 500; border-bottom-right-radius: 3px; }
.cacts { display: flex; flex-wrap: wrap; gap: 6px; }
.cact { min-height: 32px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--cyan-ink); box-shadow: inset 0 0 0 1px #3d4a2a; transition: background-color 140ms ease; }
.cact:hover { background: rgba(218,250,156,.1); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.cchip { flex: none; min-height: 32px; padding: 0 12px; border-radius: 6px; background: var(--a-raised); color: var(--ink); font-size: 13px; white-space: nowrap; transition: background-color 140ms ease; }
.cchip:hover { background: var(--tone2); }
.chat-f { display: flex; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--a-rule); }
.chat-f .inp { min-height: 40px; font-size: 15px; }
.chat-d { padding: 4px 16px 12px; font-size: 12px; color: var(--a-faint); text-align: center; }
.dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--a-muted); margin-right: 4px; animation: blink 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.18s; }
.dots i:nth-child(3) { animation-delay: 0.36s; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; row-gap: 40px; padding-top: 40px; }
  .split-copy, .split .panel.form { grid-column: 1; }
}
@media (max-width: 1100px) {
  .tr { grid-template-columns: minmax(120px, 1fr) 120px 90px 130px 56px; }
  .tr .hide-s { display: none; }
  .lr { grid-template-columns: 48px minmax(0, 1fr) 64px 140px 84px; }
}
@media (max-width: 640px) {
  .shell.app { display: block; padding-bottom: 64px; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 64px; flex-direction: row; justify-content: space-around; padding: 0; border-right: 0; border-top: 1px solid var(--a-border); }
  .rail-mark, .rail-me { display: none; }
  .rail-items { flex-direction: row; margin: 0; width: 100%; justify-content: space-around; }
  .ri { width: auto; flex: 1; height: 64px; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; }
  .ri-l { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: 12px; }
  .ri.on::after { right: 25%; left: 25%; top: 0; bottom: auto; width: auto; height: 1px; }
  .app .main { padding: 0 16px 48px; }
  .app .notice { margin: 16px 16px 0; }
  .chatw { bottom: 80px; right: 16px; }
  .shell.site ~ .chatw, .site .chatw { bottom: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(3) { border-left: 0; }
  .kpis > div:nth-child(n + 3) { border-top: 1px solid var(--a-rule); }
  .kpis.three { grid-template-columns: 1fr; }
  .kpis.three > div { border-left: 0; }
  .kpis.three > div + div { border-top: 1px solid var(--a-rule); }
  .lane { grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 10px; }
  .lane-l .gp { font-size: 11px; padding-left: 6px; padding-right: 6px; }
  .lane-ax { left: 106px; right: 74px; }
  .lane-ax span { display: none; }
  .lane-ax span:nth-child(3), .lane-ax span:nth-child(5), .lane-ax span:nth-child(7) { display: block; transform: translateX(-50%); }
  .tr { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tr > span:nth-child(2) { order: 3; grid-column: 1; }
  .tr .hide-s, .tr > span:nth-child(3), .tr .more { display: none; }
  .tr.hd { display: none; }
  .tx { grid-template-columns: 1fr; }
  .lr { grid-template-columns: 40px minmax(0, 1fr) 80px; }
  .lr .hide-s { display: none; }
  .cm { grid-template-columns: 1fr; height: auto; }
  .rooms { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--a-rule); padding: 0; }
  .room { flex: none; width: 200px; }
  .room.on::before { left: 16px; right: 16px; top: auto; bottom: 0; width: auto; height: 1px; }
  .feed-s { height: 56svh; flex: none; }
  .compose.locked .bt { width: 100%; }
  .side { display: block; border-left: 0; border-top: 1px solid var(--a-rule); }
  .srow { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
}

/* ---------- sign-up steps ---------- */
.auth-ph { margin-top: 36px; max-width: 440px; aspect-ratio: 4 / 4.6; }
.auth-ph img { object-position: 50% 30%; filter: grayscale(1) brightness(2.3) contrast(1.3); }
.vault-ph { margin: 32px 0 8px; max-width: 520px; aspect-ratio: 4 / 3.4; }
.vault-ph img { object-position: 50% 62%; }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 14px 0 4px; padding: 0; list-style: none; }
.stp { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; background: var(--a-raised); border-radius: 4px; font-size: 13px; color: var(--a-muted); }
.stp b { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line2); color: var(--ink); font-size: 11px; font-weight: 600; }
.stp.done b { background: var(--lime); color: var(--on); }
.stp.on { background: var(--lime); color: var(--on); font-weight: 600; }
.stp.on b { background: var(--ground); color: var(--lime); }
.stp-b { animation: stp-in 340ms var(--ease-expo) both; }
@keyframes stp-in { from { opacity: 0; transform: translateY(22px); } }
.stp-t { margin: 18px 0 4px; font-size: 15px; line-height: 1.5; }
.pwm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pwm i { height: 4px; border-radius: 2px; background: var(--line2); transition: background-color 200ms ease; }
.pwm.s1 i:nth-child(-n+1) { background: var(--coral); }
.pwm.s2 i:nth-child(-n+2) { background: var(--amber); }
.pwm.s3 i:nth-child(-n+3) { background: var(--lime); }
.pwm.s4 i { background: var(--mint); }
.pw-w { min-height: 18px; margin-top: 4px; font-size: 12px; color: var(--a-muted); }
.inp.code { font-family: var(--f-mono); font-size: 28px; letter-spacing: 0.45em; text-align: center; min-height: 60px; }
.fl-l { margin: 22px 0 10px; font-size: 14px; font-weight: 500; }
.auth-f .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; overflow: visible; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line2); transition: background-color 140ms ease, color 140ms ease; }
.chip:hover { background: var(--a-raised); }
.chip.on { background: var(--lime); color: var(--on); box-shadow: none; }
.lvls { display: grid; gap: 6px; }
.lvl { display: block; text-align: left; padding: 12px 14px; border-radius: 6px; background: var(--a-raised); transition: box-shadow 140ms ease; }
.lvl b { display: block; font-weight: 600; }
.lvl span { display: block; margin-top: 2px; font-size: 13px; color: var(--a-muted); }
.lvl.on { box-shadow: inset 0 0 0 2px var(--lime); }
.avrow { display: flex; align-items: center; gap: 18px; }
.sws { display: flex; flex-wrap: wrap; gap: 10px; }
.swc { width: 30px; height: 30px; border-radius: 50%; transition: transform 140ms var(--ease-out); }
.swc:hover { transform: scale(1.1); }
.swc.on { outline: 2px solid var(--ink); outline-offset: 3px; }
.row-b { display: flex; justify-content: space-between; gap: 8px; margin-top: 26px; }
.row-l { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.pc { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border-radius: 6px; background: var(--a-raised); transition: background-color 160ms ease, box-shadow 160ms ease; }
.pc.on { box-shadow: inset 0 0 0 2px var(--lime); }
.pc.prem.on { background: var(--lime); color: var(--on); box-shadow: none; }
.pc-n { font-weight: 600; }
.pc-p { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.pc-p small { font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.pc-d { font-size: 13px; line-height: 1.4; color: var(--a-muted); }
.pc.prem.on .pc-d { color: #2c3a1a; }
/* ---------- getting started ---------- */
.ob { margin-bottom: 20px; }
.ob-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ob-bar { height: 6px; margin: 14px 0; border-radius: 3px; background: var(--a-raised); overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: var(--lime); transition: width 420ms var(--ease-out); }
.ob-l { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ob-i { display: flex; gap: 10px; width: 100%; height: 100%; text-align: left; padding: 12px; border-radius: 6px; background: var(--a-raised); transition: background-color 160ms ease; }
.ob-i:hover { background: var(--line); }
.ob-c { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--a-faint); transition: background-color 160ms ease, box-shadow 160ms ease; }
.ob-i.done .ob-c { background: var(--lime); box-shadow: none; }
.ob-i b { display: block; font-size: 14px; font-weight: 600; }
.ob-i em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--a-muted); line-height: 1.35; }
.ob-i.done b { color: var(--a-muted); }
@media (max-width: 1100px) { .ob-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ob-l, .pcs { grid-template-columns: 1fr; } .stp span { display: none; } .stp { justify-content: center; } }

/* ---------- profile preview, premium metal, account building ---------- */
.pp { margin-top: 36px; max-width: 460px; background: var(--a-panel); border: 1px solid var(--a-border); border-radius: 6px; overflow: hidden; }
.pp-metal { height: 210px; background: var(--tone1); }
.pp-h { display: flex; align-items: center; gap: 14px; padding: 20px 20px 4px; }
.pp-h b { font-size: 17px; }
.pp-s { margin: 8px 20px 0; }
.pp-c { display: grid; gap: 2px; padding: 12px 20px 18px; font-size: 15px; }
.prem-metal { height: 140px; max-width: 560px; margin: 24px 0 4px; }
.perks { display: grid; gap: 4px; margin-top: 8px; font-size: var(--fs-body); }
.perks .sck__box, .perks .sck__fill, .perks .sck__tick { animation-delay: calc(var(--i, 0) * 140ms + 300ms); transition-delay: calc(var(--i, 0) * 140ms + 300ms); }
.ob-i { align-items: flex-start; }
.ob-i .sck__box { margin-top: 1px; }
.ob-t { display: block; min-width: 0; }
.ob-t .sck__word { font-size: 14px; font-weight: 600; }
.ob-t em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--a-muted); line-height: 1.35; }
.compile { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: var(--ground); animation: cp-in 380ms var(--ease-out) both; }
.cp-in { position: relative; display: flex; flex-direction: column; align-items: center; width: min(560px, 100%); text-align: center; }
.cp-metal { width: 150px; height: 170px; }
.cp-dial { margin-top: -6px; color: var(--ink); }
.cp-dial .comet-dial__value { font-size: 30px; }
.cp-in .h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 34px); max-width: none; }
.cp-l { display: grid; gap: 4px; width: 100%; margin-top: 26px; text-align: left; }
.cp-l li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 14px; background: var(--tone1); opacity: 0.55; transition: opacity 260ms ease, background-color 260ms ease; }
.cp-l li.run, .cp-l li.done { opacity: 1; }
.cp-l li.run { background: var(--tone2); }
.cp-c { flex: none; font-family: var(--f-mono); font-size: 13px; color: var(--soft); }
.cp-l li.run .cp-c { color: var(--ink); }
@keyframes cp-in { from { opacity: 0; } }

.ob-t { flex: 1; }
.ob-go { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--cyan-ink); }
.ob-i.done .ob-go { display: none; }
