/* PonsAnything, the tool. One stylesheet for the full app (/app) and the window at the end of the landing. */
.pa {
  --ink: #0E1533; --ink2: rgba(14,21,51,.64); --ink3: rgba(14,21,51,.46); --line: rgba(14,21,51,.09);
  --up: #17C98A; --up2: #0B8F5F; --down: #FF4F8B; --down2: #D42A63; --gold: #FFC24D; --sky: #3B9BFF;
  --pane: #FFFFFF; --r: 24px;
  --font: 'Onest', system-ui, sans-serif; --display: 'Unbounded', 'Onest', system-ui, sans-serif; --mono: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  position: relative; display: flex; flex-direction: column; min-height: 100%; font-family: var(--font); font-weight: 500; color: var(--ink); line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
.pa *, .pa *::before, .pa *::after { box-sizing: border-box; }
.pa .h { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
.pa .num { font-variant-numeric: tabular-nums; }
.pa .up { color: var(--up2); } .pa .down { color: var(--down2); }
.pa :where(button) { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.pa input, .pa select { font: inherit; color: inherit; }
.pa a { color: inherit; text-decoration: none; }
.pa :focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.pa .pane { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); border-radius: var(--r); box-shadow: 0 24px 60px -40px rgba(14,21,51,.3), inset 0 0 0 1px rgba(255,255,255,.8), inset 0 1px 0 #fff; }
.pa small { font-weight: 500; }

/* the avatar: the photo of the thing, or the ring with the ticker */
.pa .bd, .bd { --s: 40px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; flex: none; }
.bd i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, var(--c1), var(--c2), var(--c1)); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); }
.bd b { font-size: calc(var(--s) * .26); font-weight: 800; letter-spacing: .02em; color: #0E1533; line-height: 1; }
.bd.ph { overflow: hidden; background: #EEF3FF; box-shadow: inset 0 0 0 1px rgba(14,21,51,.06); }
.bd.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd.sq { border-radius: 14px; }
.bd.sq i { border-radius: 14px; -webkit-mask: none; mask: none; opacity: .18; }
.bd.big { --s: 84px; border-radius: 20px; }
.bd.big i { border-radius: 20px; }
.bd.big b { font-size: 20px; }

/* the real logos, inline */
.pa .lg, .lg { height: 14px; width: auto; max-width: 20px; vertical-align: -2px; margin-right: .38em; object-fit: contain; }
.pa .lgb, .lgb { height: 22px; width: 22px; object-fit: contain; margin-left: .55em; border-radius: 6px; background: #fff; padding: 2px; }
.pa .av { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; }
.pa .src, .src { display: inline-flex; align-items: center; gap: 0; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.pa a.src:hover { color: var(--ink); }
.pa .ext::after, .ext::after { content: "↗"; font-size: .85em; margin-left: .3em; opacity: .7; }

/* buttons: pills, a trailing arrow in a circle */
.pa .btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 0 1.15em 0 1.35em; height: 46px; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap; transition: transform .16s var(--ease), box-shadow .3s var(--ease), background-color .2s ease, color .2s ease; }
.pa .btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); margin-right: -.55em; transition: transform .25s var(--ease); }
.pa .btn .arr svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pa .btn:hover .arr { transform: translateX(3px); }
.pa .btn:active { transform: scale(.97); }
.pa .btn:disabled { opacity: .45; pointer-events: none; }
.pa .btn-ink { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(14,21,51,.7); }
.pa .btn-long { background: var(--up); color: #052015; box-shadow: 0 16px 34px -16px rgba(23,201,138,.8); }
.pa .btn-long .arr { background: rgba(5,32,21,.16); }
.pa .btn-short { background: var(--down); color: #fff; box-shadow: 0 16px 34px -16px rgba(255,79,139,.8); }
.pa .btn.xl { height: 58px; font-size: 1.08rem; padding: 0 1.3em 0 1.6em; }
.pa .btn.sm { height: 38px; font-size: .86rem; }
.pa .chip { display: inline-flex; align-items: center; gap: .3em; padding: 0 .7em; height: 26px; border-radius: 999px; background: rgba(14,21,51,.07); font-size: .8rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.pa .chip.soft { background: rgba(14,21,51,.05); font-weight: 600; color: var(--ink2); }
.pa .chip.up { background: #DFF8EC; color: var(--up2); } .pa .chip.down { background: #FFE0EA; color: var(--down2); }
.pa .chip.gold { background: var(--gold); color: var(--ink); }
.pa a.chip:hover { background: rgba(14,21,51,.1); color: var(--ink); }

/* ---------- the top bar ---------- */
.pa-top { position: sticky; top: 76px; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 8px 8px 8px 20px; border-radius: 999px; }
.pa-top .wm { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: 1rem; margin-right: 6px; white-space: nowrap; }
.pa-top .seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(14,21,51,.06); }
.pa-top .seg button { height: 34px; padding: 0 .95em; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink2); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.pa-top .seg button:active { transform: scale(.96); }
.pa-top .seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 8px 18px -12px rgba(14,21,51,.5); }
.pa-top .search { flex: 1; min-width: 120px; max-width: 360px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(14,21,51,.06); }
.pa-top .search svg { width: 17px; height: 17px; flex: none; stroke: var(--ink2); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.pa-top .search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-weight: 500; }
.pa-top .search input::placeholder { color: var(--ink3); }
.pa-top .bal { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 7px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; margin-left: auto; white-space: nowrap; transition: transform .16s var(--ease); }
.pa-top .bal:active { transform: scale(.97); }
.pa-top .bal .bal-v.flash-up { color: var(--up2); } .pa-top .bal .bal-v.flash-down { color: var(--down2); }
.pa-top .bal small { font-size: .72rem; color: var(--ink3); font-weight: 600; }

/* ---------- views ---------- */
.pa-views { position: relative; flex: 1; min-height: 0; padding: 14px 14px 20px; }
.pa-view { display: none; }
.pa-view.on { display: block; }
/* the lift is on the content, never on the section itself: a transform or an animated opacity on the section would make it the
 * containing block and the stacking context of its fixed children (the Long / Short bar, the ticket sheet and the scrim on small
 * screens), pinning them to the bottom of the page and under the tab bar */
.pa-view.on > :not(.pa-mbar):not(.pa-scrim):not(.pa-market), .pa-view.on .pa-market > .main { animation: pa-rise .5s var(--ease) both; }
@keyframes pa-rise { from { opacity: 0; transform: translateY(18px) scale(.992); } }

/* the board */
.pa-bar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; }
.pa-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.pa-cats::-webkit-scrollbar { display: none; }
.pa-cats button { flex: none; height: 34px; padding: 0 .95em; border-radius: 999px; font-weight: 700; font-size: .84rem; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14,21,51,.06); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.pa-cats button:active { transform: scale(.96); }
.pa-cats button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pa-sort { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(14,21,51,.06); flex: none; }
.pa-sort button { height: 30px; padding: 0 .85em; border-radius: 999px; font-weight: 700; font-size: .82rem; color: var(--ink2); white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.pa-sort button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 14px -10px rgba(14,21,51,.5); }
.pa-list { padding: 6px 8px 8px; overflow: hidden; }
.pa-lh, .pa-row { display: grid; grid-template-columns: 22px 56px minmax(0, 1.7fr) 150px 96px 150px 100px 130px 84px; gap: 14px; align-items: center; padding: 0 12px; }
.pa-lh { height: 38px; font-size: .78rem; font-weight: 700; color: var(--ink3); border-bottom: 1px solid var(--line); margin: 0 0 4px; }
.pa-lh span:nth-child(4), .pa-lh span:nth-child(5), .pa-lh span:nth-child(7) { text-align: right; }
.pa-row { width: 100%; min-height: 78px; padding-top: 10px; padding-bottom: 10px; border-radius: 18px; text-align: left; transition: background-color .2s ease, transform .16s var(--ease); position: relative; }
.pa-row + .pa-row::before { content: ""; position: absolute; left: 104px; right: 14px; top: 0; height: 1px; background: var(--line); }
.pa-row[role="button"] { cursor: pointer; }
.pa-row:hover { background: color-mix(in srgb, var(--c1) 9%, #fff); } .pa-row:hover + .pa-row::before, .pa-row:hover::before { opacity: 0; }
.pa-row:active { transform: scale(.995); }
.pa-row .bd.sq { --s: 56px; }
.pa-row .who { min-width: 0; }
.pa-row .who .n { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; min-width: 0; }
.pa-row .who .n > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-row .who .n .tk { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--ink3); padding: 2px 6px; border-radius: 6px; background: rgba(14,21,51,.06); flex: none; }
.pa-row .who .n .chip { height: 22px; font-size: .72rem; flex: none; }
.pa-row .who .s { display: flex; align-items: center; gap: .45em; margin-top: 4px; font-size: .86rem; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-row .who .s i { font-style: normal; color: var(--ink3); }
.pa-row .px .v { font-weight: 800; letter-spacing: -0.025em; font-size: 1.45rem; line-height: 1; text-align: right; white-space: nowrap; }
.pa-row .ch { text-align: right; }
.pa-row .sp { width: 100%; height: 44px; }
.pa-row .vol { text-align: right; font-weight: 700; }
.pa-row .vol small { display: block; color: var(--ink3); font-size: .72rem; margin-top: 2px; }
.pa-row .by { font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.pa-row .go { justify-self: end; display: inline-grid; place-items: center; height: 36px; padding: 0 1em; border-radius: 999px; background: rgba(14,21,51,.06); font-weight: 800; font-size: .86rem; transition: background-color .2s ease, color .2s ease; }
.pa-row:hover .go { background: var(--ink); color: #fff; }
.pa-empty { display: grid; place-items: center; gap: 14px; padding: 60px 20px; text-align: center; color: var(--ink2); border-radius: var(--r); }
.pa-empty .big { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.6rem; line-height: 1.05; color: var(--ink); }

/* the market */
.pa-market { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 14px; align-items: start; }
.pa-market .main { display: grid; gap: 14px; min-width: 0; }
.pa-back { display: inline-flex; align-items: center; gap: .5em; height: 36px; padding: 0 .9em 0 .6em; border-radius: 999px; background: #fff; font-weight: 700; font-size: .86rem; box-shadow: inset 0 0 0 1px rgba(14,21,51,.06); transition: transform .16s var(--ease); }
.pa-back:active { transform: scale(.96); }
.pa-back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pa-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: start; padding: 22px 24px 20px; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 55%), #fff; }
.pa-head .id { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.pa-head .id .txt { min-width: 0; }
.pa-head .id h1 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.pa-head .about { margin: 8px 0 0; color: var(--ink2); font-size: 1rem; max-width: 60ch; }
.pa-head .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pa-head .price { text-align: right; }
.pa-head .price .v { font-weight: 800; letter-spacing: -0.035em; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: .9; white-space: nowrap; }
.pa-head .price .c { margin-top: 8px; font-weight: 800; font-size: 1rem; }
.pa-head .stats { grid-column: 1 / -1; display: flex; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; gap: 8px 0; }
.pa-head .stats > div { padding: 0 16px 0 0; margin-right: 16px; border-right: 1px solid var(--line); }
.pa-head .stats > div:last-child { border: 0; margin: 0; padding: 0; }
.pa-head .stats .k { color: var(--ink3); font-size: .78rem; font-weight: 600; }
.pa-head .stats .v { font-weight: 800; font-size: 1.05rem; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-chart { padding: 16px 16px 10px; }
.pa-chart .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 6px; }
.pa-chart .bar .t { font-size: .84rem; font-weight: 600; color: var(--ink3); }
.pa-tf { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(14,21,51,.06); }
.pa-tf button { height: 30px; padding: 0 .8em; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ink2); transition: background-color .2s ease, color .2s ease; }
.pa-tf button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pa-chart canvas { width: 100%; height: clamp(260px, 42vh, 420px); cursor: crosshair; touch-action: pan-y; }
.pa-pos { padding: 18px 20px 16px; }
.pa-pos h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pa-pos h3 .chip { font-size: .72rem; }
.pa-prow { display: grid; grid-template-columns: 1.5fr .9fr 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.pa-prow .mk .n { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-prow .mk .sl { display: block; font-size: .8rem; font-weight: 800; text-transform: capitalize; margin-top: 2px; }
.pa-prow small { display: block; color: var(--ink3); font-size: .76rem; margin-top: 2px; }
.pa-prow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pa-edit { grid-column: 1 / -1; display: flex; align-items: end; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: rgba(14,21,51,.045); }
.pa-edit label { display: grid; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--ink3); }
.pa-edit input { height: 40px; width: 150px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; font-weight: 700; font-family: var(--font); font-size: .95rem; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.pa-edit input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.pa-prow:first-of-type { border-top: 0; }
.pa-prow .mk { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; }
.pa-prow .mk .bd { --s: 34px; }
.pa-prow .k { display: block; color: var(--ink3); font-size: .74rem; font-weight: 600; margin-bottom: 3px; }
.pa-prow .pnl { font-weight: 800; font-variant-numeric: tabular-nums; }
.pa-prow .x { height: 34px; padding: 0 .9em; border-radius: 999px; background: rgba(14,21,51,.07); font-weight: 700; font-size: .84rem; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.pa-prow .x:hover { background: var(--ink); color: #fff; } .pa-prow .x:active { transform: scale(.96); }
.pa-pos .none { color: var(--ink2); padding: 8px 0 2px; }

/* the ticket */
.pa-ticket { position: sticky; top: 148px; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.pa-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: rgba(14,21,51,.06); }
.pa-side button { height: 50px; border-radius: 14px; font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; gap: .4em; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease), box-shadow .3s var(--ease); }
.pa-side button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pa-side button:active { transform: scale(.97); }
.pa-side button[data-side-k="long"][aria-pressed="true"] { background: var(--up); color: #052015; box-shadow: 0 12px 26px -14px rgba(23,201,138,.9); }
.pa-side button[data-side-k="short"][aria-pressed="true"] { background: var(--down); color: #fff; box-shadow: 0 12px 26px -14px rgba(255,79,139,.9); }
.pa-field { display: grid; gap: 8px; min-width: 0; }
.pa-field .lab { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; font-weight: 600; color: var(--ink3); }
.pa-field .lab b { font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); font-weight: 800; }
.pa-amt { display: flex; align-items: center; height: 58px; padding: 0 14px 0 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; min-width: 0; }
.pa-amt:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.pa-amt input { width: 0; flex: 1 1 0; min-width: 0; border: 0; outline: none; background: none; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pa-amt .cur { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.pa-amt .cur .lg { height: 18px; max-width: 18px; margin-right: .4em; }
.pa-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pa-quick button { height: 34px; border-radius: 999px; background: rgba(14,21,51,.06); font-weight: 700; font-size: .84rem; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.pa-quick button:hover { background: var(--ink); color: #fff; } .pa-quick button:active { transform: scale(.96); }
.pa-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; --p: 20%; }
.pa-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--p), rgba(14,21,51,.1) var(--p)); }
.pa-range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(14,21,51,.1); }
.pa-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
.pa-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 8px 16px -6px rgba(14,21,51,.6); transition: transform .16s var(--ease); }
.pa-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 8px 16px -6px rgba(14,21,51,.6); }
.pa-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.pa-lev-marks { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 600; color: var(--ink3); padding: 0 4px; }
.pa-sum { display: grid; gap: 7px; padding: 12px 14px; border-radius: 16px; background: rgba(14,21,51,.045); font-size: .92rem; }
.pa-sum div { display: flex; justify-content: space-between; gap: 10px; }
.pa-sum .k { color: var(--ink2); }
.pa-sum .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.pa-ticket .note { font-size: .8rem; color: var(--ink2); text-align: center; line-height: 1.4; margin: 0; }
.pa-ticket .note b { color: var(--ink); }

/* portfolio and mine */
.pa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.pa-kpi { padding: 20px 22px 18px; }
.pa-kpi .k { color: var(--ink3); font-size: .8rem; font-weight: 600; }
.pa-kpi .v { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; margin-top: 10px; }
.pa-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; }
.pa-mine-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; text-align: left; transition: transform .35s var(--ease); }
.pa-mine-card:hover { transform: translateY(-3px); }
.pa-mine-card .bd { --s: 52px; }
.pa-mine-card .plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(14,21,51,.06); font-weight: 900; font-size: 1.5rem; }
.pa-mine-card .n { font-weight: 800; font-size: 1.05rem; }
.pa-mine-card .f { color: var(--ink3); font-size: .82rem; font-weight: 600; margin-top: 4px; }
.pa-mine-card .v { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; text-align: right; }
.pa-mine-card .k { color: var(--ink3); font-size: .76rem; font-weight: 600; text-align: right; margin-top: 3px; }

/* ---------- the studio: create a market, see it as you type ---------- */
.pa-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(14,21,51,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.pa-sheet[data-open="true"] { opacity: 1; pointer-events: auto; }
.pa-sheet .box { width: min(1040px, 100%); max-height: 94dvh; overflow: auto; overscroll-behavior: contain; padding: 24px 24px 28px; border-radius: 28px 28px 0 0; background: #fff; transform: translateY(40px); transition: transform .5s var(--ease); }
.pa-sheet[data-open="true"] .box { transform: none; }
@media (min-width: 720px) { .pa-sheet { place-items: center; padding: 20px; } .pa-sheet .box { border-radius: 28px; } }
.pa-sheet .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.pa-sheet .hd h2 { font-size: 1.75rem; }
.pa-sheet .hd p { margin: 10px 0 0; color: var(--ink2); font-size: 1rem; max-width: 60ch; }
.pa-sheet .x { width: 40px; height: 40px; border-radius: 50%; background: rgba(14,21,51,.06); display: grid; place-items: center; flex: none; transition: background-color .2s ease, transform .16s var(--ease); }
.pa-sheet .x:hover { background: var(--ink); color: #fff; } .pa-sheet .x:active { transform: scale(.94); }
.pa-sheet .x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.pa-form { display: grid; gap: 12px; min-width: 0; }
.pa-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pa-form label { display: grid; gap: 6px; min-width: 0; font-size: .84rem; font-weight: 700; color: var(--ink2); }
.pa-form label > span { display: flex; justify-content: space-between; align-items: baseline; }
.pa-form label > span b { color: var(--ink); font-weight: 800; font-size: 1rem; }
.pa-form input, .pa-form select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: rgba(14,21,51,.05); font-weight: 600; font-family: var(--font); font-size: 1rem; color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s ease; }
.pa-form input::placeholder { color: var(--ink3); font-weight: 500; }
.pa-form input:focus, .pa-form select:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.pa-form .pa-range { height: 34px; padding: 0; background: transparent; box-shadow: none; }
.pa-form .photo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pa-form .drop { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; border: 2px dashed rgba(14,21,51,.16); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.pa-form .drop:hover, .pa-form .drop.over { border-color: var(--ink); background: rgba(14,21,51,.03); }
.pa-form .drop .thumb { width: 72px; height: 72px; border-radius: 16px; background: rgba(14,21,51,.06) center / cover no-repeat; flex: none; display: grid; place-items: center; }
.pa-form .drop .thumb:not(.on)::after { content: "+"; font-size: 1.6rem; font-weight: 900; color: var(--ink3); }
.pa-form .drop .txt { display: grid; gap: 3px; }
.pa-form .drop .txt b { color: var(--ink); font-size: 1rem; }
.pa-form .drop .txt small { color: var(--ink3); font-size: .82rem; }
.pa-form .hues { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-form .hues button { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(from 210deg, var(--c1), var(--c2), var(--c1)); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px transparent; transition: box-shadow .2s ease, transform .16s var(--ease); }
.pa-form .hues button[aria-pressed="true"] { box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--ink); }
.pa-form .hues button:active { transform: scale(.92); }
.pa-form .err { color: var(--down2); font-weight: 700; font-size: .88rem; min-height: 1.2em; }
.preview { position: sticky; top: 0; display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #EEF4FF, #F6F9FF 50%, #FFF3EA); box-shadow: inset 0 0 0 1px rgba(14,21,51,.05); }
.preview .pv-lab { font-size: .8rem; font-weight: 700; color: var(--ink3); }
.preview .pv-list { padding: 4px; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px -30px rgba(14,21,51,.35), inset 0 0 0 1px rgba(14,21,51,.05); }
.preview .pa-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; min-height: 68px; padding: 8px 10px; }
.preview .pa-row .star { display: none; }
.preview .pa-row .bd.sq { --s: 48px; }
.preview .pa-row .who .n { font-size: .98rem; }
.preview .pa-row .ch, .preview .pa-row .sp, .preview .pa-row .vol, .preview .pa-row .by, .preview .pa-row .go, .preview .pa-row .who .n .tk, .preview .pa-row .who .n .chip { display: none; }
.preview .pa-row .px .v { font-size: 1.2rem; }
.preview .pv-head { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(14,21,51,.05); }
.preview .pv-head .bd.big { --s: 64px; border-radius: 16px; }
.preview .pv-head .n { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; line-height: 1.1; }
.preview .pv-head .a { color: var(--ink2); font-size: .88rem; margin-top: 6px; }
.preview .pv-head .meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.preview .pv-head .chip { height: 24px; font-size: .74rem; }
.preview .pv-earn { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #DFF8EC; color: #063D2A; font-size: .9rem; line-height: 1.4; }
.preview .pv-earn b { font-weight: 800; }
.preview .btn.xl { width: 100%; }
.preview .pv-note { margin: 0; font-size: .8rem; color: var(--ink2); text-align: center; line-height: 1.4; }
.preview .pv-note b { color: var(--ink); }

/* toast */
.pa-toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 24px 50px -20px rgba(14,21,51,.8); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s ease; white-space: nowrap; }
.pa-toast[data-on="true"] { transform: translate(-50%, 0); opacity: 1; }
.pa-toast .bd { --s: 32px; } .pa-toast .bd b { color: #fff; }

/* embedded in the landing: a window */
.pa.embedded { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pa.embedded .pa-top { top: 10px; padding-left: 8px; }
.pa.embedded .pa-ticket { top: 80px; }
.pa.embedded .pa-ticket { top: 80px; }
.pa.embedded .pa-sheet, .pa.embedded .pa-toast { position: absolute; }

/* the ticket lifts with the page where it sits beside the chart; as a bottom sheet it is fixed and must not */
@media (min-width: 721px) { .pa-view.on .pa-market > .pa-ticket { animation: pa-rise .5s var(--ease) both; } }

/* mobile */
@media (max-width: 1100px) {
  .pa-lh, .pa-row { grid-template-columns: 22px 56px minmax(0, 1.7fr) 140px 90px 120px 84px; }
}
@media (max-width: 980px) {
  .pa-market { grid-template-columns: 1fr; }
  .pa-ticket { position: static; }
  .pa-kpis { grid-template-columns: 1fr 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 720px) {
  .pa-top { margin: 10px 10px 0; padding: 6px 6px 6px 14px; gap: 6px; flex-wrap: wrap; }
  .pa-top .search { order: 5; flex-basis: 100%; max-width: none; }
  .pa-top .seg button { padding: 0 .7em; font-size: .84rem; }
  .pa-top .bal small { display: none; }
  .pa-views { padding: 12px 10px 90px; }
  .pa-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .pa-sort { align-self: flex-start; }
  .pa-list { padding: 4px; }
  .pa-lh { display: none; }
  .pa-lh, .pa-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px 8px; }
  .pa-row .star { display: none; }
  .pa-row + .pa-row::before { left: 66px; right: 8px; }
  .pa-row .bd.sq { --s: 48px; }
  .pa-row .who .n { font-size: .96rem; }
  .pa-row .who .n .tk, .pa-row .who .n .chip { display: none; }
  .pa-row .who .s { font-size: .8rem; }
  .pa-row .px .v { font-size: 1.05rem; }
  .pa-row .ch { grid-column: 3; grid-row: 2; }
  .pa-row .px { grid-column: 3; grid-row: 1; }
  .pa-row .who { grid-column: 2; grid-row: 1 / 3; }
  .pa-row .bd.sq { grid-column: 1; grid-row: 1 / 3; }
  .pa-row .ch .chip { height: 22px; font-size: .74rem; }
  .pa-row .vol, .pa-row .go, .pa-row .sp, .pa-row .by { display: none; }
  .pa-head { grid-template-columns: 1fr; padding: 18px; }
  .pa-head .id { gap: 12px; }
  .pa-head .id .bd.big { --s: 64px; }
  .pa-head .price { text-align: left; }
  .pa-head .stats > div { padding-right: 14px; margin-right: 14px; }
  .pa-prow { grid-template-columns: 1.2fr 1fr; }
  .pa-prow .hm { display: none; }
  .pa-prow .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .pa-kpis { gap: 8px; }
  .pa-kpi { padding: 14px 16px; }
  .pa-form .row { grid-template-columns: 1fr; }
  .pa-sheet .box { padding: 18px 16px 24px; }
  .pa-sheet .hd h2 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .pa .btn, .pa-row, .pa-view.on > *, .pa-view.on .pa-market > .main, .pa-view.on .pa-market > .pa-ticket { transition: none; animation: none; } }

/* ---------- more of the tool: wallet, orders, feed, portfolio, leaderboard, share ---------- */
.pa .btn-white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -18px rgba(14,21,51,.5); }
.pa-top .search kbd { font-family: var(--mono); font-size: .66rem; color: var(--ink3); padding: 2px 6px; border-radius: 6px; background: rgba(14,21,51,.06); }
.pa .balwrap { position: relative; margin-left: auto; }
.pa .balwrap .bal { margin-left: 0; }
.pa-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; padding: 16px; border-radius: 22px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 40px 80px -30px rgba(14,21,51,.5), inset 0 0 0 1px rgba(255,255,255,.9); z-index: 30; display: grid; gap: 8px; text-align: left; }
.pa-pop .pop-h { display: grid; gap: 2px; margin-bottom: 4px; }
.pa-pop .pop-h .k { font-size: .76rem; font-weight: 600; color: var(--ink3); }
.pa-pop .pop-h b { font-family: var(--mono); font-size: .78rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.pop-row { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; color: var(--ink2); }
.pop-row b { color: var(--ink); font-weight: 800; }
.pa-pop .pop-btns { display: grid; gap: 6px; margin-top: 6px; }
.pop-link { font-size: .84rem; font-weight: 700; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; justify-self: start; padding: 4px 0; }
.pa-pop .pop-note { margin: 4px 0 0; font-size: .78rem; color: var(--ink3); line-height: 1.4; }
.star { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: rgba(14,21,51,.3); transition: color .2s ease, transform .16s var(--ease); }
.star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star:hover { color: var(--ink); } .star:active { transform: scale(.9); }
.star.on { color: #F5B400; } .star.on svg { fill: #F5B400; stroke: #F5B400; }
.star.lg { width: 36px; height: 36px; background: rgba(14,21,51,.05); } .star.lg svg { width: 20px; height: 20px; }
.pa-head .ttl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pa-head .stats .v.sm { font-size: .98rem; }
.pa-head .stats .v small { display: block; color: var(--ink3); font-size: .74rem; font-weight: 600; margin-top: 2px; }
.skew { grid-column: 1 / -1; display: grid; gap: 6px; }
.skew .bar { height: 8px; border-radius: 999px; background: #FFE0EA; overflow: hidden; }
.skew .bar i { display: block; height: 100%; background: var(--up); border-radius: 999px; transition: width .6s var(--ease); }
.skew .lbl { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; }
.pa-otype { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(14,21,51,.06); }
.pa-otype button { height: 34px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink2); transition: background-color .2s ease, color .2s ease; }
.pa-otype button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 14px -10px rgba(14,21,51,.5); }
.pa-amt.sm { height: 46px; } .pa-amt.sm input { font-size: 1.15rem; }
.lab-link { font-size: .76rem; font-weight: 700; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.pa-toggle { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(14,21,51,.045); font-size: .86rem; font-weight: 700; color: var(--ink2); width: 100%; }
.pa-toggle i { width: 18px; height: 18px; border-radius: 50%; background: rgba(14,21,51,.1); position: relative; }
.pa-toggle i::before, .pa-toggle i::after { content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 2px; background: var(--ink); border-radius: 2px; }
.pa-toggle i::after { transform: rotate(90deg); transition: transform .2s ease; }
.pa-toggle[aria-expanded="true"] i::after { transform: rotate(0); }
.pa-tpsl { display: grid; gap: 8px; margin-top: 8px; }
.pa-tpsl label { display: grid; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--ink3); }
.pa-mini { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(14,21,51,.06); }
.pa-mini button { height: 24px; padding: 0 .6em; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--ink2); }
.pa-mini button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pa-feed { display: grid; }
.pa-feed .fr { display: grid; grid-template-columns: 72px 1fr 110px 120px 70px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pa-feed .fr:first-child { border-top: 0; }
.pa-feed .fr .chip { height: 22px; font-size: .72rem; text-transform: capitalize; }
.pa-feed .who { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-feed .num small { color: var(--ink3); font-size: .74rem; margin-left: .35em; }
.pa-feed .t { text-align: right; color: var(--ink3); font-size: .8rem; }
.bd.xs { --s: 24px; } .bd.xs b { font-size: 8px; }
.pa-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 14px; }
.pa-curve { width: 100%; height: 200px; }
.pa-expo { display: grid; gap: 10px; }
.pa-hist { display: grid; }
.pa-hist .hr { display: grid; grid-template-columns: 130px 120px 1.3fr 90px 100px 110px 110px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pa-hist .hr:first-child { border-top: 0; }
.pa-hist .hr .t { color: var(--ink3); font-size: .8rem; }
.pa-hist .hr .chip { height: 22px; font-size: .72rem; }
.pa-hist .who { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pa-hist .pnl { text-align: right; font-weight: 800; }
.pa-lb .lh, .pa-lb .lr { display: grid; grid-template-columns: 40px 1.4fr 130px 100px 120px 90px 90px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pa-lb .lh { border-top: 0; font-size: .78rem; font-weight: 700; color: var(--ink3); padding-top: 0; }
.pa-lb .lr { font-size: .95rem; }
.pa-lb .lr.me { background: #FFF5D6; border-radius: 14px; padding: 10px 12px; margin: 4px -12px; border-top: 0; }
.pa-lb .rk { font-weight: 800; color: var(--ink3); }
.pa-lb .who { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pa-lb .who .bd { --s: 32px; }
.pa-lb .num { font-weight: 700; }
.pa-mine-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 20px; text-align: left; }
.pa-mine-card .top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.pa-mine-card .v small { display: block; color: var(--ink3); font-size: .72rem; font-weight: 600; text-align: right; }
.pa-mine-card .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(14,21,51,.045); }
.pa-mine-card .grid .k { white-space: nowrap; }
.pa-mine-card .grid .k { display: block; color: var(--ink3); font-size: .72rem; font-weight: 600; }
.pa-mine-card .grid b { font-size: .95rem; }
.pa-mine-card .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pa-mine-card .acts .x { height: 38px; padding: 0 .9em; border-radius: 999px; background: rgba(14,21,51,.07); font-weight: 700; font-size: .86rem; }
.pa-mine-card .acts .x:hover { background: var(--ink); color: #fff; }
.pa-mine-card.add { grid-template-columns: auto 1fr; align-items: center; min-height: 120px; }
.pa-modal { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; background: rgba(14,21,51,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pa-modal .mbox { width: min(760px, 100%); padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 50px 100px -40px rgba(14,21,51,.6); display: grid; gap: 14px; }
.pa-modal .hd { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; }
.pa-modal .x { width: 38px; height: 38px; border-radius: 50%; background: rgba(14,21,51,.06); display: grid; place-items: center; }
.pa-modal .x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pa-modal canvas { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px -30px rgba(14,21,51,.5); }
.pa-modal .mbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.pa.embedded .pa-modal { position: absolute; }
@media (max-width: 980px) { .pa-two { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .pa-top .seg { order: 4; flex-basis: 100%; justify-content: space-between; }
  .pa-top .seg button { flex: 1; padding: 0 .3em; font-size: .8rem; }
  .pa .balwrap { margin-left: 0; }
  .pa-pop { right: auto; left: 0; width: min(320px, calc(100vw - 40px)); }
  .pa-feed .fr { grid-template-columns: 64px 1fr 90px 60px; } .pa-feed .fr .num:nth-child(4) { display: none; }
  .pa-hist .hr { grid-template-columns: 1fr 1fr 1fr; } .pa-hist .hr .t, .pa-hist .hr .num:nth-child(5), .pa-hist .hr .num:nth-child(6), .pa-hist .hr span:nth-child(4) { display: none; }
  .pa-lb .lh, .pa-lb .lr { grid-template-columns: 30px 1.4fr 100px 80px; } .pa-lb .lh span:nth-child(n+5), .pa-lb .lr span:nth-child(n+5) { display: none; }
  .pa-mine-card .grid { grid-template-columns: 1fr 1fr; }
  .pa-mine-grid { grid-template-columns: 1fr; }
}

/* hidden always wins over display rules */
.pa [hidden], .pa-modal[hidden], .pa-pop[hidden] { display: none !important; }

/* ---------- v6: quality of life ---------- */
/* the top bar tools: bell, settings, wallet, in one row */
.pa-top .tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pa .popwrap { position: relative; }
.pa .ico { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(14,21,51,.06); color: var(--ink); transition: background-color .2s ease, transform .16s var(--ease); }
.pa .ico:hover { background: rgba(14,21,51,.1); } .pa .ico:active { transform: scale(.94); }
.pa .ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pa .ico .badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--down); color: #fff; font-size: .66rem; font-weight: 800; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pa-pop.wide { width: 380px; }
.pa-pop .pop-h.row { display: flex; justify-content: space-between; align-items: center; }
.pa-pop .notes { display: grid; max-height: 360px; overflow: auto; margin: 0 -6px; }
.pa-pop .nt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 12px; text-align: left; font-size: .88rem; font-weight: 500; color: var(--ink2); transition: background-color .2s ease; }
.pa-pop .nt:hover { background: rgba(14,21,51,.05); }
.pa-pop .nt.un { color: var(--ink); font-weight: 700; }
.pa-pop .nt .t { color: var(--ink3); font-size: .74rem; font-weight: 500; white-space: nowrap; }
.pa-pop .nt .txt { min-width: 0; }
.pa-pop .none { color: var(--ink2); font-size: .88rem; padding: 6px 2px; }
/* switches */
.pa .sw { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pa .sw > span { display: grid; gap: 1px; font-size: .92rem; font-weight: 700; }
.pa .sw > span small { color: var(--ink3); font-size: .76rem; font-weight: 500; }
.pa .sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.pa .sw i { width: 44px; height: 26px; border-radius: 999px; background: rgba(14,21,51,.14); position: relative; transition: background-color .2s ease; flex: none; }
.pa .sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(14,21,51,.3); transition: transform .25s var(--ease); }
.pa .sw input:checked + i { background: var(--up); } .pa .sw input:checked + i::after { transform: translateX(18px); }
.pa kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(14,21,51,.07); color: var(--ink3); font-family: var(--font); font-size: .68rem; font-weight: 700; }
.pa-top .search kbd { cursor: pointer; }
.pa-side button kbd, .pa-quick button kbd { margin-left: .4em; background: rgba(14,21,51,.08); }
.pa-side button[aria-pressed="true"] kbd { background: rgba(0,0,0,.14); color: inherit; }
@media (hover: none) { .pa-side button kbd, .pa-quick button kbd, .pa-top .search kbd, .crumb-hint { display: none; } }
/* welcome and recent */
.pa-welcome { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; padding: 18px 54px 18px 22px; margin-bottom: 12px; background: linear-gradient(120deg, rgba(255,255,255,.86), rgba(255,255,255,.66)); }
.pa-welcome .wtxt { display: grid; gap: 4px; }
.pa-welcome .wtxt b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.pa-welcome .wtxt span { color: var(--ink2); font-size: .95rem; }
.pa-welcome .wbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-welcome .x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(14,21,51,.06); display: grid; place-items: center; }
.pa-welcome .x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pa-recent { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 2px 10px; }
.pa-recent::-webkit-scrollbar { display: none; }
.pa-recent .lab { font-size: .78rem; font-weight: 700; color: var(--ink3); margin-right: 4px; flex: none; }
.rchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 5px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); font-weight: 700; font-size: .86rem; transition: transform .16s var(--ease), background-color .2s ease; }
.rchip:hover { background: #fff; } .rchip:active { transform: scale(.97); }
.rchip .bd.xs { --s: 26px; }
.rchip b { font-size: .76rem; }
/* rows: keyboard selection, warnings, compact */
.pa-row.sel { background: color-mix(in srgb, var(--c1) 12%, #fff); box-shadow: inset 0 0 0 2px var(--ink); }
.pa.compact .pa-row { min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
.pa.compact .pa-row .bd.sq { --s: 42px; } .pa.compact .pa-row .sp { height: 34px; } .pa.compact .pa-row .px .v { font-size: 1.2rem; } .pa.compact .pa-row .who .n { font-size: .96rem; }
.pa-prow.warn { background: #FFF3F6; border-radius: 14px; padding-left: 10px; padding-right: 10px; margin: 4px -10px; border-top: 0; }
.pa-prow .mk .chip { margin-top: 4px; height: 20px; font-size: .68rem; }
.golink { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pa-prow .mk .n.golink:hover { text-decoration: underline; text-underline-offset: 3px; }
.pa-hist .who .golink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pa-hist .who .golink:hover { text-decoration: underline; text-underline-offset: 3px; }
.pa-edit .hint { font-size: .78rem; color: var(--ink3); max-width: 34ch; }
.pa-pos h3 .hr-x { margin-left: auto; height: 32px; padding: 0 .85em; border-radius: 999px; background: rgba(14,21,51,.07); font-weight: 700; font-size: .8rem; }
.pa-pos h3 .hr-x:hover { background: var(--ink); color: #fff; }
/* the market head: actions and alerts */
.pa-head .hacts { display: flex; gap: 6px; flex: none; }
.ibtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(14,21,51,.05); color: var(--ink2); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.ibtn:hover { background: var(--ink); color: #fff; } .ibtn:active { transform: scale(.94); }
.ibtn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.alert-form { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: #F3EEFF; font-size: .92rem; font-weight: 600; }
.alert-form select { height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: #fff; font: inherit; font-weight: 700; }
.alert-form .pa-amt.sm { height: 40px; width: 180px; }
.pa-head .alerts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pa-head .alerts:empty { display: none; }
.chip.al { background: #F3EEFF; color: #5B3FBF; gap: .4em; padding-right: .3em; }
.chip.al svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.chip.al button { width: 20px; height: 20px; border-radius: 50%; background: rgba(91,63,191,.12); font-size: .9rem; line-height: 1; margin-left: .2em; }
.pa-prow.al .sl { text-transform: none; }
.crumbs { display: flex; align-items: center; gap: 10px; }
.crumb-hint { font-size: .72rem; font-weight: 700; color: var(--ink3); padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.6); }
/* the ticket: error, leverage chips, sheet header */
.pa-ticket .err { color: var(--down2); font-weight: 700; font-size: .84rem; min-height: 0; }
.pa-ticket .err:empty { display: none; }
.pa-tpsl small { color: var(--ink3); font-weight: 600; font-size: .76rem; min-height: 1em; }
.pa-ticket .sheet-h { display: none; align-items: center; justify-content: space-between; font-weight: 800; font-size: 1.05rem; }
.pa-ticket .sheet-h .x { width: 36px; height: 36px; border-radius: 50%; background: rgba(14,21,51,.06); display: grid; place-items: center; }
.pa-ticket .sheet-h .x svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pa-mbar, .pa-scrim, .pa-tabbar { display: none; }
/* modals: confirm, keys, command palette */
.pa-modal .mbox.sm { width: min(480px, 100%); }
.cf-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.cf-top .bd.sq { --s: 48px; }
.cf-top > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cf-top b { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.cf-top span { font-size: .84rem; font-weight: 800; text-transform: capitalize; }
.cf-top .cf-px { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.cf-skip { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ink2); cursor: pointer; }
.cf-skip input { width: 18px; height: 18px; accent-color: var(--ink); }
.pa-modal .mbtns .btn.xl { flex: 1; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.keys div { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink2); }
.keys kbd { height: 26px; min-width: 26px; padding: 0 8px; font-size: .78rem; color: var(--ink); background: rgba(14,21,51,.07); white-space: nowrap; }
.pa-modal.top { place-items: start center; padding-top: min(14vh, 120px); }
.pa-modal .mbox.cmd { width: min(640px, 100%); padding: 0; overflow: hidden; gap: 0; }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmd-in svg { width: 20px; height: 20px; stroke: var(--ink2); fill: none; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.cmd-in input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.cmd-in input::placeholder { color: var(--ink3); font-weight: 500; }
.cmd-list { max-height: min(60vh, 460px); overflow: auto; padding: 8px; }
.cmd-lab { padding: 10px 12px 4px; font-size: .74rem; font-weight: 700; color: var(--ink3); }
.cmd-it { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; text-align: left; transition: background-color .15s ease; }
.cmd-it:hover, .cmd-it.sel { background: rgba(14,21,51,.06); }
.cmd-it .bd.sq { --s: 40px; }
.cmd-it .bd.act { background: var(--ink); color: #fff; display: grid; place-items: center; }
.cmd-it .bd.act i { display: grid; place-items: center; font-style: normal; }
.cmd-it .bd.act .arr { width: 22px; height: 22px; background: rgba(255,255,255,.18); display: grid; place-items: center; border-radius: 50%; margin: 0; }
.cmd-it .bd.act .arr svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmd-it .txt { display: grid; gap: 1px; min-width: 0; }
.cmd-it .txt b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-it .txt small { color: var(--ink3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-it .num { font-weight: 800; }
.cmd-list .none { padding: 18px 12px; color: var(--ink2); }
/* toasts, stacked */
.pa-toasts { position: fixed; left: 50%; bottom: 22px; z-index: 70; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; }
.pa-toasts .pa-toast { position: static; transform: translateY(16px); opacity: 0; transition: transform .45s var(--ease), opacity .3s ease; }
.pa-toasts .pa-toast[data-on="true"] { transform: none; opacity: 1; }
.pa-toast.liq, .pa-toast.sl { background: #B4123F; } .pa-toast.tp, .pa-toast.fill { background: #0B8F5F; } .pa-toast.alert { background: #5B3FBF; }
.pa.embedded .pa-toasts { position: absolute; }
@media (max-width: 720px) {
  .pa-top .tools { margin-left: auto; gap: 4px; }
  .pa-top .seg { display: none; }
  .pa-pop.wide { width: min(380px, calc(100vw - 24px)); }
  .pa-views { padding-bottom: 96px; }
  .pa-welcome { grid-template-columns: 1fr; padding: 16px 48px 16px 16px; }
  .keys { grid-template-columns: 1fr; }
  /* the bottom tab bar */
  .pa-tabbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; display: grid; grid-template-columns: 1fr 1fr auto 1fr; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 24px 60px -30px rgba(14,21,51,.5), inset 0 0 0 1px rgba(255,255,255,.9); }
  .pa-tabbar button { display: grid; justify-items: center; gap: 2px; height: 50px; border-radius: 999px; font-size: .66rem; font-weight: 700; color: var(--ink3); }
  .pa-tabbar button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pa-tabbar button[aria-selected="true"] { color: var(--ink); background: rgba(14,21,51,.07); }
  .pa-tabbar .mid { width: 50px; background: var(--ink); color: #fff; }
  .pa-tabbar .mid span { font-size: 1.5rem; font-weight: 800; line-height: 1; }
  .pa-tabbar .mid:active { transform: scale(.94); }
  .pa.embedded .pa-tabbar { position: absolute; }
  /* the ticket as a bottom sheet in the market view */
  .pa[data-view="market"] .pa-mbar { position: fixed; left: 10px; right: 10px; bottom: 74px; z-index: 49; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pa-mbar .btn { height: 52px; font-size: 1.02rem; gap: .5em; }
  .pa-mbar .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .pa-ticket { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow: auto; border-radius: 26px 26px 0 0; transform: translateY(104%); transition: transform .45s var(--ease); background: #fff; }
  .pa[data-sheet="ticket"] .pa-ticket { transform: none; }
  .pa-ticket .sheet-h { display: flex; }
  .pa-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(14,21,51,.3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .pa[data-sheet="ticket"] .pa-scrim { display: block; opacity: 1; pointer-events: auto; }
  .pa[data-sheet="ticket"] .pa-mbar { display: none; }
  .pa.embedded .pa-mbar, .pa.embedded .pa-ticket, .pa.embedded .pa-scrim { position: absolute; }
  .pa-ticket .pa-side button kbd { display: none; }
}

/* ---------- v7: real feed, real wallet ---------- */
.pa-lh, .pa-row { grid-template-columns: 22px 56px minmax(0, 1.7fr) 150px 96px 150px 118px 70px 84px; }
.pa-lh span:nth-child(8) { text-align: center; }
.pa-row .upd { font-size: .84rem; font-weight: 600; color: var(--ink2); line-height: 1.2; } .pa-row .upd small { display: block; font-weight: 500; color: var(--ink3); font-size: .74rem; }
.pa-row .upd.stale { color: #D42A63; }
.pa-row .lev { text-align: center; font-weight: 800; font-size: .88rem; color: var(--ink2); }
.pa-row .lev .chip, .pa-head .chip.cl { gap: 5px; } .chip.cl img { width: 13px; height: 13px; }
.pa-feedbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 10px; border-radius: 999px; background: rgba(14,21,51,.05); font-size: .82rem; font-weight: 600; color: var(--ink2); }
.pa-feedbar i { width: 8px; height: 8px; border-radius: 50%; background: #17C98A; box-shadow: 0 0 0 0 rgba(23,201,138,.6); animation: tn-pulse 2s ease-out infinite; }
.pa-feedbar.stale i { background: #FF8A3D; animation: none; }
.pa-feedbar .sp { margin-left: auto; }
.pa-loading { padding: 60px 20px; text-align: center; color: var(--ink3); font-weight: 600; }
.pa-loading i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(14,21,51,.15); border-top-color: var(--ink); animation: pa-spin .8s linear infinite; vertical-align: -4px; margin-right: 10px; }
@keyframes pa-spin { to { transform: rotate(360deg); } }
.pa-feed .fr.upd { grid-template-columns: 110px 1fr 110px 90px; }
.pa-feed .fr .d { font-weight: 700; }
/* the wallet picker */
.wl-list { display: grid; gap: 8px; margin-top: 6px; }
.wl-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: rgba(14,21,51,.05); font-weight: 700; font-size: .95rem; text-align: left; transition: transform .16s cubic-bezier(.23,1,.32,1), background-color .2s ease; }
.wl-list button:hover { background: rgba(14,21,51,.09); } .wl-list button:active { transform: scale(.98); }
.wl-list button img, .wl-list button .wl-ph { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; background: #fff; }
.wl-list button .wl-ph { display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--ink3); }
.wl-list button small { margin-left: auto; font-weight: 600; color: var(--ink3); }
.wl-none { padding: 10px 0 4px; color: var(--ink2); font-size: .92rem; line-height: 1.5; }
.wl-none a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pop-row .chain { display: inline-flex; align-items: center; gap: 6px; } .pop-row .chain img { width: 14px; height: 14px; }
.pop-row.warn b { color: #D42A63; }
.pop-btns .btn-white.sm.warn { background: #FFE0EA; color: #D42A63; }
/* the studio: the number's address */
.pa-form .api { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.pa-form .probe { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 12px; background: rgba(14,21,51,.05); font-size: .9rem; font-weight: 600; }
.pa-form .probe.ok { background: #DFF8EC; color: #0B8F5F; } .pa-form .probe.bad { background: #FFE0EA; color: #D42A63; }
.pa-form .probe b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.pa-form .probe small { margin-left: auto; font-weight: 500; opacity: .8; }
.pa-form .hint { font-size: .8rem; color: var(--ink3); margin-top: 4px; }
@media (max-width: 1100px) { .pa-lh, .pa-row { grid-template-columns: 22px 56px minmax(0, 1.7fr) 140px 90px 120px 84px; } .pa-row .upd, .pa-row .lev, .pa-lh span:nth-child(7), .pa-lh span:nth-child(8) { display: none; } }
@media (max-width: 720px) { .pa-lh, .pa-row { grid-template-columns: 48px minmax(0, 1fr) auto; } .pa-form .api { grid-template-columns: 1fr; } .pa-feed .fr.upd { grid-template-columns: 90px 1fr 80px; } .pa-feed .fr.upd .num:nth-child(4) { display: none; } }
/* Pons tokens */
.pa-cats button img.cl, .chip.cl img { width: 14px; height: 14px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.pa-cats button img.cl { margin-right: 6px; }

/* the mark in the tool */
.pa-welcome { grid-template-columns: auto 1fr auto; }
.pa-welcome .wmark { width: 64px; height: 64px; filter: drop-shadow(0 12px 22px rgba(14,21,51,.22)); animation: wmark 6.5s ease-in-out infinite; }
@keyframes wmark { 0%, 100% { transform: translateY(-3px) rotate(-3deg); } 50% { transform: translateY(3px) rotate(3deg); } }
.pa-loading img { display: block; width: 72px; height: 72px; margin: 0 auto 14px; animation: wmark 2.4s ease-in-out infinite; filter: drop-shadow(0 12px 22px rgba(14,21,51,.22)); }
.pa-pop .nt .bd.mk img { object-fit: contain; padding: 2px; background: #fff; }
@media (max-width: 720px) { .pa-welcome { grid-template-columns: auto 1fr; } .pa-welcome .wmark { width: 48px; height: 48px; } .pa-welcome .wbtns { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .pa-welcome .wmark, .pa-loading img { animation: none; } }

/* hundreds of markets */
.pa-more { display: flex; align-items: center; justify-content: center; gap: .5em; width: 100%; padding: 16px; margin-top: 6px; border-radius: 16px; background: rgba(14,21,51,.05); font-weight: 700; font-size: .95rem; color: var(--ink2); transition: background-color .2s ease; }
.pa-more:hover { background: rgba(14,21,51,.09); color: var(--ink); }
.pa-more .arr { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; } .pa-more .arr svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pa-row .bd.ph img { background: #fff; }
/* 32 categories: the chips wrap, the Pons logo stays on the line */
.pa-cats { flex-wrap: wrap; }
.pa-cats button img.cl { display: inline-block; }
.pa-bar { align-items: flex-start; }
/* on a phone the same chips would stack nine rows deep: two rows that scroll sideways instead */
@media (max-width: 720px) {
  .pa-cats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; gap: 6px; width: 100%; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
}

/* the cropper */
.pa-modal .mbox.crop { width: min(520px, 100%); }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #EEF3FA; cursor: grab; touch-action: none; user-select: none; }
.crop-stage.grab { cursor: grabbing; }
.crop-stage canvas { display: block; width: 100%; height: 100%; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); border-radius: 20px; }
.crop-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(14,21,51,.28), inset 0 0 0 2px rgba(255,255,255,.9); }
.crop-tools { display: flex; align-items: center; gap: 12px; }
.crop-tools .k { font-size: .84rem; font-weight: 700; color: var(--ink3); }
.crop-tools .pa-range { flex: 1; }
.crop-tools .ibtn { flex: none; }
.crop-hint { margin: 0; font-size: .84rem; color: var(--ink3); }
.pa-form .drop { position: relative; }
.pa-form .drop .reframe { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- v8: the tape, the challenge ---------- */
/* a market streaming tick by tick: a green pulse where the age of the number shows */
.pa-row .upd .live, .pa-head .stats .v .live { color: var(--up2); display: inline-flex; align-items: center; gap: 6px; }
.pa-row .upd .live::before, .pa-head .stats .v .live .dot { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(23,201,138,.5); animation: pa-pulse 1.6s ease-out infinite; flex: none; }
.pa-head .stats .v .live .dot { display: inline-block; }
@keyframes pa-pulse { 0% { box-shadow: 0 0 0 0 rgba(23,201,138,.55); } 100% { box-shadow: 0 0 0 7px rgba(23,201,138,0); } }
@media (prefers-reduced-motion: reduce) { .pa-row .upd .live::before, .pa-head .stats .v .live .dot { animation: none; } }
/* the challenge: three rules, three bars */
.pa-ch, .pa-stats { display: grid; gap: 10px; }
.pa-ch .ch-row { display: grid; gap: 6px; }
.pa-ch .ch-row .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; color: var(--ink2); }
.pa-ch .ch-row .lbl b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-ch .ch-row .lbl b small { color: var(--ink3); font-weight: 600; font-size: .76rem; }
.pa-ch .bar { height: 8px; border-radius: 999px; background: rgba(14,21,51,.07); overflow: hidden; }
.pa-ch .bar i { display: block; height: 100%; border-radius: 999px; background: var(--up); transition: width .6s var(--ease); }
.pa-ch .bar i.down { background: var(--down); }
.pa-ch .ch-end { padding: 10px 12px; border-radius: 12px; font-size: .88rem; font-weight: 700; }
.pa-ch .ch-end.passed { background: #E3F8EF; color: var(--up2); }
.pa-ch .ch-end.failed { background: #FFE0EA; color: var(--down2); }
.pa-ch .pop-btns { margin-top: 4px; }
.pa-ch .pop-row b small, .pa-stats .pop-row b small { color: var(--ink3); font-weight: 600; font-size: .78rem; }
.pa-stats .pop-row b.up { color: var(--up2); } .pa-stats .pop-row b.down, .pa-ch .pop-row b.down, .pa-ch .lbl b.down { color: var(--down2); } .pa-ch .lbl b.up, .pa-ch .pop-row b.up { color: var(--up2); }
.pa-stats .none, .pa-ch .none { color: var(--ink2); font-size: .9rem; line-height: 1.45; }
