/* Portfolio (portfolio.js): phone first, dark, purple up and pink down with a triangle (platform.css). */
.pf { --pf-card: rgba(18, 16, 25, .72); --pf-line: rgba(211, 193, 238, .14); --pf-mute: #bab0c5; --pf-ink: #faf6ff; --pf-up: #a48bff; --pf-down: #ff5b8f;
  max-width: 920px; margin: 0 auto; padding: 8px 0 120px; color: var(--pf-ink); }
.pf h2, .pf h3, .pf p { margin: 0; }
.pf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.pf-eyebrow { color: #b9a6e6; font: 10px/1.5 ui-monospace, SFMono-Regular, monospace; letter-spacing: .18em; margin-bottom: 6px !important; }
.pf-head h2 { font-size: clamp(30px, 6vw, 40px); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.pf-tag { padding: 5px 10px; border: 1px solid var(--pf-line); border-radius: 999px; color: var(--pf-mute); font-size: 11px; }
.pf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf-card { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--pf-line); border-radius: 16px; background: var(--pf-card); }
.pf-card > span { color: var(--pf-mute); font: 10px/1.4 ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; text-transform: uppercase; }
.pf-card strong { font-size: clamp(22px, 4.6vw, 28px); font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-card strong i { font-style: normal; }
.pf-card small { color: var(--pf-mute); font-size: 12px; line-height: 1.5; }
.pf-card .pf-soon { color: #8f84a0; }
.pf-card.is-loading span, .pf-card.is-loading strong { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #ffffff0a, #ffffff17, #ffffff0a); }
.pf-card.is-loading strong { height: 26px; width: 70%; }
.pf .is-up { color: var(--pf-up); } .pf .is-down { color: var(--pf-down); }
.pf-section { margin-top: 28px; }
.pf-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pf-section-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.pf-section-head small { color: var(--pf-mute); font-size: 12px; }
.pf-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--pf-line); border-radius: 16px; background: var(--pf-card); overflow: hidden; }
.pf-rows li + li { border-top: 1px solid var(--pf-line); }
.pf-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "logo id val" "logo more more"; gap: 4px 12px; align-items: center;
  padding: 14px 16px; color: inherit; text-decoration: none; transition: background .18s; }
.pf-row:hover { background: #7c5cff12; }
.pf-row:focus-visible { outline: 2px solid #c4b5ff; outline-offset: -2px; }
.pf-logo { grid-area: logo; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #2a2240; color: #e6dcff; font-weight: 700; align-self: start; }
.pf-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-id { grid-area: id; display: grid; min-width: 0; }
.pf-id b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-id small { color: var(--pf-mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.pf-val { grid-area: val; display: grid; justify-items: end; gap: 4px; font-variant-numeric: tabular-nums; }
.pf-val b { font-size: 15px; }
.pf-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pf-pill.is-up { background: rgba(164, 139, 255, .12); } .pf-pill.is-down { background: rgba(255, 91, 143, .12); }
.pf-pill.is-missing { color: var(--pf-mute); background: #ffffff0a; }
.pf-more { grid-area: more; display: flex; gap: 18px; color: #8f84a0; font-size: 12px; }
.pf-more small { display: block; color: var(--pf-mute); font: 9px/1.5 ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; text-transform: uppercase; }
.pf-note { padding: 16px; border: 1px dashed var(--pf-line); border-radius: 16px; color: var(--pf-mute); font-size: 14px; }
.pf-note a { color: #c9b8ff; }
.pf-quiet { color: #8f84a0; font-size: 13px; }
.pf-source { margin-top: 22px !important; color: #8f84a0; font-size: 11px; }
.pf-empty { display: grid; gap: 12px; justify-items: start; max-width: 420px; margin: 40px auto; padding: 24px; border: 1px solid var(--pf-line); border-radius: 16px; background: var(--pf-card); }
.pf-empty h2 { font-size: 28px; letter-spacing: -.04em; }
.pf-empty p { color: var(--pf-mute); }
.pf-primary { border: 1px solid #a28dff; border-radius: 12px; padding: 12px 18px; background: linear-gradient(180deg, #8d71ff, #7C5CFF); color: #fff; font-weight: 650; cursor: pointer;
  box-shadow: 0 6px 20px -8px #7c5cffcc, inset 0 1px 0 #ffffff38; }
@media (max-width: 640px) {
  .pf-cards { grid-template-columns: 1fr 1fr; }
  .pf-card-pl { grid-column: 1 / -1; }
  .pf-row { padding: 13px 14px; }
}
.pf-more i { font-style: normal; font-weight: 600; }
.pf-side { grid-area: logo; align-self: center; justify-self: start; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.pf-side.is-buy { color: #a48bff; background: rgba(164, 139, 255, .12); } .pf-side.is-sell { color: #ff5b8f; background: rgba(255, 91, 143, .12); }
.pf-trades .pf-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "logo id val"; }
.pf-val small { color: var(--pf-mute); font-size: 11px; }
@media (min-width: 900px) {
  .pf-row { grid-template-columns: 40px minmax(0, 1.1fr) minmax(0, 1.2fr) auto; grid-template-areas: "logo id more val"; }
  .pf-trades .pf-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "logo id val"; }
}
.pf-other { margin-top: 12px; }
.pf-other summary { cursor: pointer; padding: 8px 2px; color: var(--pf-mute); font-size: 13px; list-style: none; }
.pf-other summary::-webkit-details-marker { display: none; }
.pf-other summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pf-other[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.pf-other .pf-rows { margin-top: 6px; opacity: .85; }
