/* Graphical answers (js/widgets.js): the console look of the first PUMPMCP launch card, on the chat's dark surface. */
.w-card { --w-bg: #171717; --w-line: rgba(255, 255, 255, .1); --w-muted: #a3a3a3; --w-cobalt: #3d5bff; --w-cobalt-2: #8fa0ff; --w-up: #6fd6a2; --w-down: #ff9584;
  position: relative; margin: 16px 0; padding: 16px; border: 1px solid var(--w-line); border-radius: 16px; background: var(--w-bg); color: #ececec; font: 400 14px/20px var(--sans); overflow: hidden; }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.w-title { font: 600 14px/20px var(--sans); }
.w-meta { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/16px var(--mono); color: var(--w-muted); }
.w-meta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--w-up); }
.w-label { font: 500 12px/16px var(--mono); color: var(--w-muted); }
.w-big { display: block; font: 600 30px/36px var(--sans); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.w-sub { display: block; font-size: 12px; line-height: 16px; color: var(--w-muted); }
.w-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 0 0 12px; }
.w-stat { padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.w-stat b { display: block; font: 600 18px/28px var(--sans); letter-spacing: -.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-stat.up b { color: var(--w-up); }
.w-stat span { font: 500 12px/16px var(--mono); color: var(--w-muted); }

/* bonding curve */
.w-readout { position: absolute; left: 16px; top: 48px; z-index: 2; }
.w-plot { position: relative; height: 200px; margin: 0 0 12px; }
.w-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.w-fill { fill: rgba(61, 91, 255, .22); }
.w-rest { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.w-done { fill: none; stroke: var(--w-cobalt-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.w-bead { position: absolute; z-index: 3; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, var(--w-cobalt) 34%); box-shadow: 0 0 0 6px rgba(61, 91, 255, .25), 0 0 24px rgba(61, 91, 255, .7); animation: w-bead 2400ms var(--ease) infinite; }
@keyframes w-bead { 50% { box-shadow: 0 0 0 10px rgba(61, 91, 255, .12), 0 0 32px rgba(61, 91, 255, .8); } }
.w-stamp { position: absolute; left: 50%; top: 48%; z-index: 4; transform: translate(-50%, -50%) rotate(-7deg); padding: 8px 16px; border: 2px solid var(--w-cobalt-2); border-radius: 8px; background: rgba(23, 23, 23, .9); color: var(--w-cobalt-2); font: 700 24px/32px var(--sans); letter-spacing: .04em; text-align: center; animation: w-stamp 600ms var(--ease) 300ms backwards; }
.w-stamp small { display: block; font: 500 12px/16px var(--sans); letter-spacing: 0; }
@keyframes w-stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(1.6); } }
.w-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--w-line); }
.w-bar b { font: 600 14px/20px var(--mono); }
.w-track, .w-rank-track, .w-rail { position: relative; display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.w-fill-bar { display: block; height: 100%; border-radius: 4px; background: var(--w-cobalt); animation: w-grow 1200ms var(--ease) backwards; transform-origin: left; }
@keyframes w-grow { from { transform: scaleX(0); } }

/* ranked bars */
.w-rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.w-rank li { display: grid; grid-template-columns: 24px minmax(80px, 1fr) minmax(64px, 1.6fr) auto; align-items: center; gap: 4px 12px; }
.w-rank-n { font: 500 12px/16px var(--mono); color: var(--w-muted); }
.w-rank-label, .w-rail-label, .w-tape-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #fff; text-decoration: none; }
a.w-rank-label:hover, a.w-rail-label:hover, a.w-tape-label:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-rank-track { height: 12px; border-radius: 4px; }
.w-rank-fill { display: block; height: 100%; border-radius: 4px; background: rgba(143, 160, 255, .55); animation: w-grow 1000ms var(--ease) backwards; transform-origin: left; }
.w-rank-fill.lead { background: var(--w-cobalt); }
.w-rank li:nth-child(2) .w-rank-fill { animation-delay: 60ms; } .w-rank li:nth-child(3) .w-rank-fill { animation-delay: 120ms; } .w-rank li:nth-child(4) .w-rank-fill { animation-delay: 180ms; }
.w-rank-value { font: 600 14px/20px var(--mono); text-align: right; white-space: nowrap; }
.w-rank-sub { grid-column: 2 / -1; margin-top: -4px; font: 500 12px/16px var(--mono); color: var(--w-muted); }

/* progress rails */
.w-rails { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.w-rails li { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(96px, 2fr) auto; align-items: center; gap: 4px 12px; }
.w-rail { overflow: visible; }
.w-rail-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(61, 91, 255, .4), var(--w-cobalt)); animation: w-grow 1200ms var(--ease) backwards; transform-origin: left; }
.w-rail-bead { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(61, 91, 255, .35); }
.w-rails b { font: 600 14px/20px var(--mono); }
.w-rail-sub { grid-column: 2 / -1; font: 500 12px/16px var(--mono); color: var(--w-muted); }

/* tapes */
.w-tape-list { margin: 0; padding: 0; list-style: none; }
.w-tape-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--w-line); animation: w-in 500ms var(--ease) backwards; }
.w-tape-list li:first-child { border-top: 0; }
@keyframes w-in { from { opacity: 0; transform: translateY(8px); } }
.w-glyph, .w-side { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #262626; box-shadow: 0 0 0 2px var(--w-cobalt); font: 600 12px/16px var(--sans); }
.w-tape-list li.buy .w-side { box-shadow: 0 0 0 2px var(--w-up); color: var(--w-up); }
.w-tape-list li.sell .w-side { box-shadow: 0 0 0 2px var(--w-down); color: var(--w-down); }
.w-tape-when { font: 500 12px/16px var(--mono); color: var(--w-muted); white-space: nowrap; }
.w-tape-value { font: 600 14px/20px var(--mono); white-space: nowrap; }

/* checks */
.w-verdict { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.w-verdict-stamp { flex: none; padding: 4px 12px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(-4deg); font: 700 14px/20px var(--sans); letter-spacing: .04em; color: var(--w-muted); }
.verdict-pass .w-verdict-stamp { color: var(--w-up); }
.verdict-warn .w-verdict-stamp { color: #eab866; }
.verdict-fail .w-verdict-stamp { color: var(--w-down); }
.w-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-check-grid li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 12px; line-height: 16px; }
.w-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--w-muted); }
.status-pass .w-dot { background: var(--w-up); } .status-warn .w-dot { background: #eab866; } .status-fail .w-dot { background: var(--w-down); }

/* quote */
.w-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; }
.w-flow-side { padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); min-width: 0; }
.w-flow-side .w-big { font-size: 24px; line-height: 32px; overflow-wrap: anywhere; }
.w-flow-side.up .w-big { color: var(--w-cobalt-2); }
.w-arrow { font: 400 24px/32px var(--sans); color: var(--w-muted); }

/* the larger card on the canvas beside a chat */
.w-large { margin: 0; padding: 24px; border-radius: 24px; }
.w-large .w-plot { height: 300px; }
.w-large .w-readout { left: 24px; top: 64px; }
.w-large .w-big { font-size: 36px; line-height: 40px; }
.w-large .w-stamp { font-size: 30px; line-height: 36px; }

.conversation-data { margin: 4px 0 12px; font-size: 14px; color: var(--chat-muted); }
.conversation-data summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; }
.conversation-data .conversation-table { margin-top: 4px; }
@media (max-width: 760px) {
  .w-card { padding: 12px; }
  .w-plot { height: 168px; }
  .w-readout { left: 12px; top: 44px; }
  .w-big { font-size: 24px; line-height: 32px; }
  .w-stamp { font-size: 18px; line-height: 28px; padding: 4px 12px; }
  .w-rank li { grid-template-columns: 20px minmax(64px, 1fr) minmax(48px, 1fr) auto; gap: 4px 8px; }
  .w-flow { grid-template-columns: minmax(0, 1fr); }
  .w-arrow { display: none; }
  .w-stat { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .w-card *, .w-card { animation: none !important; } }
