/* ===== Portfolio view — banking-dashboard layout: account card + mesh
   equity card on top, allocation / performance / activity below, then the
   equity & PnL chart and open positions. Theme tokens throughout; the mesh
   card is the one saturated surface (portfolio-mesh.js). ===== */
#view-portfolio {
	--num: "Satoshi", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#view-portfolio [hidden] {
	display: none !important;
}
.pf2-card {
	position: relative;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 22px 24px;
	min-width: 0;
}
.pf2-top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}
.pf2-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.pf2-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.pf2-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.01em;
}
.pf2-title .pf2-ic {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--card-2);
	border: 1px solid var(--border);
	color: var(--txt);
}
.pf2-ic .tb-ic {
	width: 17px;
	height: 17px;
}
.pf2-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt-2);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.pf2-chip b {
	font-family: var(--num);
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}

/* ----- Masking (eye) ----- */
#view-portfolio.pf-masked .pf-money {
	filter: blur(8px);
	user-select: none;
}
.pf2-eye .ic-off {
	display: none;
}
#view-portfolio.pf-masked .pf2-eye .ic-on {
	display: none;
}
#view-portfolio.pf-masked .pf2-eye .ic-off {
	display: inline;
}

/* ----- Account card: wallet widget — pastel mesh panel + two icon pills ----- */
.pf2-account {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
}
.pf2-wallet {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 22px 24px;
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
	color: #1d1d1f;
	background: #e9ecfb;
}
.pf2-wallet-mesh {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(60% 55% at 25% 30%, #cfc0ff, transparent 65%),
		radial-gradient(55% 50% at 80% 25%, #bcdcff, transparent 60%),
		#eef0fb;
}
.pf2-wallet-mesh canvas {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
}
.pf2-wallet > :not(.pf2-wallet-mesh) {
	position: relative;
	z-index: 1;
}
.pf2-wallet-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.pf2-wallet-id {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.pf2-wallet-id span {
	font-size: 13px;
	color: rgba(29, 29, 31, 0.6);
}
.pf2-wallet-id b {
	font-family: var(--num);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}
.pf2-wallet-copy {
	flex: none;
	width: 36px;
	height: 36px;
	margin: -6px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: rgba(29, 29, 31, 0.7);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		color 0.12s,
		background 0.12s;
}
.pf2-wallet-copy:hover {
	color: #1d1d1f;
	background: rgba(255, 255, 255, 0.45);
}
.pf2-wallet-copy .tb-ic {
	width: 22px;
	height: 22px;
}
.pf2-hero {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 2px 0;
}
.pf2-amt {
	font-family: var(--num);
	font-size: 52px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	color: inherit;
	font-variant-numeric: tabular-nums;
}
.pf2-eye {
	flex: none;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	color: rgba(29, 29, 31, 0.6);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 0.12s;
}
.pf2-eye:hover {
	color: #1d1d1f;
}
.pf2-eye .tb-ic {
	width: 17px;
	height: 17px;
}
.pf2-wallet-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.pf2-avatars {
	display: flex;
	align-items: center;
}
.pf2-avatars .coin-ico,
.pf2-avatars .pf2-more-coins {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2.5px solid #eef0fb;
	background: #cfd3ea;
	margin-right: -10px;
	box-sizing: border-box;
}
.pf2-avatars .coin-ico {
	background: #ffffff;
	overflow: hidden;
}
.pf2-avatars .coin-ico .coin-mono {
	font-size: 12px;
	font-weight: 700;
	color: #1d1d1f;
}
/* A real logo replaces the monogram entirely; it is only the fallback when the image 404s. */
.pf2-avatars .coin-ico:has(img) .coin-mono {
	display: none;
}
.pf2-avatars .coin-ico img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	opacity: 0.85;
}
.pf2-avatars .pf2-more-coins {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 700;
	margin-right: 0;
}
.pf2-change {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	font-family: var(--num);
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	background: rgba(255, 255, 255, 0.6);
	color: #1d1d1f;
}
.pf2-change.up {
	color: #167a3e;
	background: #d6f3e1;
}
.pf2-change.down {
	color: #b3261e;
	background: #fbdcdc;
}
.pf2-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.pf2-pill {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 64px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--card-2);
	color: var(--txt);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
}
.pf2-pill:hover {
	background: var(--hover);
}
.pf2-pill-ic {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--card);
	color: var(--txt);
	box-shadow: var(--shadow-sm);
}
.pf2-pill-ic .tb-ic {
	width: 18px;
	height: 18px;
}
#view-portfolio.pf-masked .pf2-change {
	filter: blur(6px);
}

/* ----- Equity card (mesh gradient) ----- */
.pf2-equity {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-color: rgba(255, 255, 255, 0.08);
	background: #0a0f2e;
	color: #fff;
	isolation: isolate;
}
.pf2-mesh {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(70% 60% at 20% 20%, #2e4fe0, transparent 60%),
		radial-gradient(60% 60% at 80% 70%, #4f7bff, transparent 55%),
		#0a0f2e;
}
.pf2-mesh canvas {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
}
.pf2-equity > :not(.pf2-mesh) {
	position: relative;
	z-index: 1;
}
.pf2-equity-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
}
.pf2-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(10px);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
}
.pf2-tag .tb-ic {
	width: 14px;
	height: 14px;
}
.pf2-more {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition:
		background 0.12s,
		color 0.12s;
}
.pf2-more:hover {
	background: var(--hover);
	color: var(--txt);
}
.pf2-more .tb-ic {
	width: 20px;
	height: 20px;
}
.pf2-more.light {
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
}
.pf2-more.light:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
}
.pf2-equity .pf2-lab {
	color: rgba(255, 255, 255, 0.72);
}
.pf2-equity-hero {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: auto;
}
.pf2-equity .pf2-amt {
	color: #fff;
	font-size: 44px;
}
#view-portfolio .chg-badge {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #0a0f2e;
	font-family: var(--num);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
#view-portfolio .chg-badge.up {
	color: #116b3a;
}
#view-portfolio .chg-badge.down {
	color: #b3261e;
}
.pf2-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 26px;
}
.pf2-tiles > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(12px);
}
.pf2-tiles span {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
}
.pf2-tiles b {
	font-family: var(--num);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.pf2-tiles b.up,
.pf2-tiles b.down {
	color: #fff;
}

/* ----- Allocation ----- */
.pf2-donut {
	position: relative;
	height: 176px;
	margin: auto 0;
}
.pf2-stack {
	display: flex;
	flex-direction: column;
}
.pf2-row .pf2-head {
	min-height: 40px;
	margin-bottom: 16px;
}
.pf2-sub b {
	font-family: var(--num);
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}
.pf2-perf-rows {
	flex: 1;
	justify-content: space-evenly;
	margin-top: 4px;
}
.pf-feed-card .pf-seeall {
	margin-top: auto;
}
.pf-feed-card .feed {
	margin-bottom: 10px;
}
.pf2-donut-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	pointer-events: none;
}
.pf2-donut-center b {
	font-family: var(--num);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--txt);
}
.pf2-donut-center span {
	font-size: 11px;
	color: var(--muted);
}
.pf2-legend {
	display: flex;
	flex-direction: column;
	margin-top: 14px;
	font-size: 13px;
	color: var(--txt-2);
}
.pf2-legend span {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 0;
	border-top: 1px solid var(--border);
}
.pf2-legend span b {
	margin-left: auto;
}
.pf2-legend i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
}
.pf2-legend b {
	font-family: var(--num);
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}

/* ----- Performance ----- */
.pf2-big {
	font-family: var(--num);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}
.pf2-big.up {
	color: var(--up);
}
.pf2-big.down {
	color: var(--down);
}
.pf2-sub {
	margin: 8px 0 20px;
	font-size: 12.5px;
	color: var(--muted);
}
.pf2-perf-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pf2-perf-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--txt-2);
	margin-bottom: 6px;
}
.pf2-perf-top b {
	font-family: var(--num);
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}
.pf2-perf-top b.up {
	color: var(--up);
}
.pf2-perf-top b.down {
	color: var(--down);
}
.pf2-bar {
	height: 8px;
	border-radius: 999px;
	background: var(--card-2);
	overflow: hidden;
}
.pf2-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--blue);
	transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf2-bar i.down {
	background: var(--down);
}

/* ----- Recent activity (feed rows come from style.css) ----- */
.pf-feed-card {
	display: flex;
	flex-direction: column;
}
.pf-feed-tabs {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--card-2);
	border: 1px solid var(--border);
}
.pf-feed-tabs .seg-btn {
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
}
.pf-feed-tabs .seg-btn.active {
	background: var(--accent);
	color: var(--on-accent);
}
.pf-feed-card .feed {
	margin: 0 -8px;
}
.pf-feed-card .feed-row {
	padding: 10px 8px;
}
/* Five rows in the card; the rest live in the "See all" modal (viewmore.js). */
.pf-feed-card:not(.vm-mounted) #pf-history > .feed-row:nth-child(n + 6) {
	display: none;
}
.pf-seeall {
	width: 100%;
	height: 40px;
	margin-top: 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card-2);
	color: var(--txt);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
}
.pf-seeall:hover {
	background: var(--hover);
}
.vm-mounted .pf-seeall {
	display: none;
}
.pf-empty {
	padding: 24px 12px;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}
#legacy-history-export {
	margin-bottom: 10px;
	border-radius: 999px;
	font-size: 12.5px;
}

/* ----- Equity & PnL chart ----- */
.pf2-chart-card {
	margin-bottom: 16px;
}
.pf2-chart {
	height: 260px;
}
.pf2-chart .recharts-wrapper,
.pf2-donut .recharts-wrapper {
	font-family: var(--num);
}
.pf2-tip {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 12px;
	box-shadow: var(--shadow-sm);
}
.pf2-tip-date {
	opacity: 0.7;
	margin-bottom: 2px;
}
.pf2-tip div {
	display: flex;
	align-items: center;
	gap: 6px;
}
.pf2-tip i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}
.pf2-tip b {
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
	margin-left: auto;
	padding-left: 10px;
}
.pf2-hidden-hosts {
	display: none;
}

/* ----- Positions ----- */
.pf2-sec {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 4px 6px 10px;
}
.pf2-sec h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 650;
	text-transform: none;
	letter-spacing: -0.01em;
}
.pf2-table {
	overflow: auto;
}
.pf2-table .tbl {
	width: 100%;
}

@media (max-width: 1100px) {
	.pf2-row {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 860px) {
	.pf2-top {
		grid-template-columns: 1fr;
	}
	.pf2-amt,
	.pf2-equity .pf2-amt {
		font-size: 36px;
	}
	.pf2-card {
		padding: 18px;
		border-radius: 20px;
	}
	.pf2-pill {
		height: 56px;
		font-size: 15px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pf2-bar i {
		transition: none;
	}
}

/* ----- "See all" modal (viewmore.js moves the activity card into .vm-modal) ----- */
.vm-overlay {
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(6px);
}
.vm-modal {
	border-radius: 28px;
	background: var(--bg);
	box-shadow: var(--shadow);
}
.vm-modal.vm-wide:has(> .vm-body > .vm-feed) {
	width: min(760px, 92vw);
	height: auto;
	max-height: 86vh;
}
.vm-head {
	padding: 20px 22px 6px;
	border-bottom: 0;
}
.vm-title {
	font-size: 22px;
	font-weight: 750;
	letter-spacing: -0.02em;
}
.vm-x {
	width: 36px;
	height: 36px;
	background: none;
	color: var(--txt);
}
.vm-x:hover {
	background: var(--hover);
}
.vm-body {
	padding: 8px 22px 22px;
}
.vm-body > .pf-feed-card.vm-mounted {
	padding: 0;
	border: 0;
	background: none;
}
.vm-mounted .pf2-title {
	display: none;
}
.vm-mounted .pf2-head {
	justify-content: flex-end;
	min-height: 0;
	margin-bottom: 8px;
}
.vm-mounted .feed-row {
	padding: 12px 8px;
}

/* ----- Position analytics: bento ----- */
#pf-pos-charts .rs-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}
#pf-pos-charts .rs-kpi {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
}
#pf-pos-charts .rs-kpi-lab {
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--muted);
}
#pf-pos-charts .rs-kpi-val {
	font-family: var(--num);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
#pf-pos-charts .rs-chart-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(220px, auto);
	gap: 12px;
	margin-bottom: 16px;
}
#pf-pos-charts .rs-panel {
	display: flex;
	flex-direction: column;
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	min-width: 0;
}
#pf-pos-charts .rs-panel:nth-child(1) { grid-column: span 4; }
#pf-pos-charts .rs-panel:nth-child(2) { grid-column: span 8; }
#pf-pos-charts .rs-panel:nth-child(3) { grid-column: span 6; }
#pf-pos-charts .rs-panel:nth-child(4) { grid-column: span 6; }
#pf-pos-charts .rs-panel-h {
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--muted);
}
#pf-pos-charts .rs-donut {
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
#pf-pos-charts .rs-donut svg {
	width: 136px;
	height: 136px;
}
#pf-pos-charts .rs-donut-v {
	font-family: var(--num);
	font-size: 17px;
	font-weight: 700;
	fill: var(--txt);
}
#pf-pos-charts .rs-donut-k {
	font-size: 9px;
	letter-spacing: 0.08em;
	fill: var(--muted);
}
#pf-pos-charts .rs-leg {
	width: 100%;
	display: flex;
	flex-direction: column;
}
#pf-pos-charts .rs-leg-row {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 0;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--txt-2);
}
#pf-pos-charts .rs-leg-row b {
	margin-left: auto;
	font-family: var(--num);
	font-size: 13px;
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}
#pf-pos-charts .rs-bars {
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	flex: 1;
}
#pf-pos-charts .rs-bar-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 92px;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}
#pf-pos-charts .rs-bar-lab {
	font-weight: 600;
	color: var(--txt);
}
#pf-pos-charts .rs-bar-track {
	height: 10px;
	border-radius: 999px;
	background: var(--card-2);
	overflow: hidden;
	display: block;
}
#pf-pos-charts .rs-bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
}
#pf-pos-charts .rs-bar-val {
	text-align: right;
	font-family: var(--num);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
#pf-pos-charts .rs-gauge {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
#pf-pos-charts .rs-gauge svg {
	width: 190px;
	height: auto;
}
#pf-pos-charts .rs-gauge-v {
	font-family: var(--num);
	font-size: 20px;
	font-weight: 700;
}
#pf-pos-charts .rs-gauge-sub {
	font-size: 12.5px;
	color: var(--muted);
}
#pf-pos-charts .rs-chart-empty {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 13px;
}
@media (max-width: 1000px) {
	#pf-pos-charts .rs-kpis {
		grid-template-columns: 1fr 1fr;
	}
	#pf-pos-charts .rs-panel:nth-child(n) {
		grid-column: span 12;
	}
}

/* ----- Open positions table ----- */
#pf-positions th,
#pf-positions td {
	padding: 12px 12px;
	vertical-align: middle;
}
#pf-positions th {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--muted);
	border-bottom: 1px solid var(--border);
}
#pf-positions td {
	font-size: 13.5px;
	border-bottom: 1px solid var(--border);
}
#pf-positions tbody tr:last-child td {
	border-bottom: 0;
}
#pf-positions th:nth-child(n + 3):nth-child(-n + 10),
#pf-positions td:nth-child(n + 3):nth-child(-n + 10) {
	text-align: right;
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
}
#pf-positions td:first-child b {
	font-size: 14px;
}
#pf-positions .pos-acts {
	gap: 6px;
}
#pf-positions .pos-act {
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	font: 600 12px var(--ui);
	background: var(--card-2);
}
#pf-positions .pos-act:hover {
	transform: none;
	background: var(--hover);
}
#pf-positions .pos-act.danger {
	color: var(--down);
	background: var(--down-bg);
	border-color: color-mix(in srgb, var(--down) 30%, transparent);
}
#pf-positions .pos-act.danger:hover {
	background: color-mix(in srgb, var(--down) 22%, transparent);
}

/* Loading skeletons in the first paint (skeleton.css): the donut is a ring,
   table rows keep their height. */
.pf2-sk-donut {
	display: grid;
	place-items: center;
	height: 176px;
}
.pf2-sk-donut .sk {
	-webkit-mask: radial-gradient(circle, transparent 59px, #000 60px);
	mask: radial-gradient(circle, transparent 59px, #000 60px);
}
#pf-positions .sk-tr td {
	padding-top: 14px;
	padding-bottom: 14px;
}
