/* ===== Predictions (predictions.js) =====
   Full-width page: header with the Predictions balance, featured carousel,
   pill category tabs + search, a grid of market cards, and a sticky sidebar.
   Yes / Up is the app's blue, No / Down is red; green stays a PnL signal. ===== */
#vpred.view {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 16px 24px 60px;
	color: var(--txt);
	--vp-yes: var(--blue);
	--vp-no: var(--down);
	--vp-yes-bg: color-mix(in srgb, var(--blue) 16%, var(--card-2));
	--vp-no-bg: color-mix(in srgb, var(--down) 14%, var(--card-2));
	--vp-ctl: 40px;
	--num: "Satoshi", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
	/* chart series: blue, ink, grey (checked for colour-blind separation) */
	--vp-s1: #4f7bff;
	--vp-s2: #e6e7ea;
	--vp-s3: #8e9095;
}
html[data-theme="light"] #vpred.view {
	--vp-s1: #315df6;
	--vp-s2: #26282d;
	--vp-s3: #85878e;
}
#vpred [hidden] {
	display: none !important;
}
#vpred .vp-ic {
	width: 16px;
	height: 16px;
	flex: none;
	fill: currentColor;
}
#vpred .mono {
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
}
#vpred .mut {
	color: var(--muted);
}
#vpred .sm {
	font-size: 12px;
}
#vpred .up {
	color: var(--up);
}
#vpred .down {
	color: var(--down);
}
#vpred .load {
	padding: 40px 16px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}
#vpred .load.sm {
	padding: 14px 8px;
}
#vpred .vp-pill {
	height: var(--vp-ctl);
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card-2);
	color: var(--txt);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background 0.12s,
		border-color 0.12s;
}
#vpred .vp-pill:hover {
	background: var(--hover);
	border-color: var(--border-2);
}
#vpred .vp-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt-2);
	font-size: 11.5px;
	font-weight: 600;
}
#vpred .vp-chip .vp-ic {
	width: 13px;
	height: 13px;
}
#vpred .live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--txt-2);
	font-weight: 600;
}
#vpred .live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--down);
	animation: vppulse 1.8s infinite;
}
@keyframes vppulse {
	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--down) 55%, transparent);
	}
	70% {
		box-shadow: 0 0 0 5px transparent;
	}
	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}
#vpred .cd {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--txt-2);
}
#vpred .cd.soon {
	color: var(--down);
}

/* ----- Header ----- */
#vpred .vp-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin: 6px 0 16px;
}
#vpred .vp-title h1 {
	margin: 0 0 6px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-transform: none;
	color: var(--txt);
}
#vpred .vp-title p {
	margin: 0;
	max-width: 62ch;
	font-size: 14px;
	color: var(--muted);
}
#vpred .vp-bal {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 10px 10px 20px;
	border-radius: 22px;
	border: 1px solid var(--border);
	background: var(--card);
}
#vpred .bl-items {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}
#vpred .bl {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#vpred .bl span {
	font-size: 11.5px;
	color: var(--muted);
}
#vpred .bl b {
	font-size: 15px;
	font-weight: 700;
}
#vpred .bl.main b {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
#vpred .vp-move {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}
#vpred .vp-move:hover {
	background: var(--accent);
	filter: brightness(0.94);
}
/* Move funds: From and To account tiles with a swap between, the amount, then
   the action — one row on wide screens, no dead space between controls. */
#vpred .vp-moveform {
	margin: 0 0 16px;
	padding: 16px;
	border-radius: 22px;
	border: 1px solid var(--border);
	background: var(--card);
}
#vpred .mv-hd {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 4px 14px;
}
#vpred .mv-hd h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
}
#vpred .mv-hd p {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--muted);
}
#vpred .mv-x,
#vpred .mv-swap {
	display: grid;
	place-items: center;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--border);
	color: var(--txt-2);
	cursor: pointer;
	transition: color 0.12s, border-color 0.12s;
}
#vpred .mv-x {
	width: 32px;
	height: 32px;
	background: var(--card-2);
}
#vpred .mv-swap {
	align-self: center;
	width: 40px;
	height: 40px;
	background: var(--card);
}
#vpred .mv-x:hover,
#vpred .mv-swap:hover {
	color: var(--txt);
	border-color: var(--muted);
}
#vpred .mv-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) minmax(0, 1.35fr) minmax(230px, auto);
	gap: 10px;
	align-items: stretch;
}
#vpred .mv-acct,
#vpred .mv-amt {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--card-2);
}
#vpred .mv-amt:focus-within {
	border-color: var(--blue);
}
#vpred .mv-k {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
#vpred .mv-who {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
#vpred .mv-who > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
#vpred .mv-who b {
	font-size: 15px;
	font-weight: 700;
}
#vpred .mv-who small {
	overflow: hidden;
	font-size: 12.5px;
	color: var(--muted);
	white-space: nowrap;
	text-overflow: ellipsis;
}
#vpred .mv-ic {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--txt-2);
}
#vpred .mv-ic .vp-ic {
	width: 18px;
	height: 18px;
}
#vpred .mv-amt-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
#vpred .mv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
#vpred .mv-chips button {
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--txt-2);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
#vpred .mv-chips button:hover {
	color: var(--txt);
	border-color: var(--muted);
}
#vpred .mv-in {
	display: flex;
	align-items: baseline;
	gap: 4px;
}
#vpred .mv-in span {
	font-size: 20px;
	font-weight: 700;
	color: var(--muted);
}
#vpred .mv-in input {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: none;
	color: var(--txt);
	font-size: 24px;
	font-weight: 800;
}
#vpred .mv-go {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
/* Compact so liquid-button.js gives it the metal rim (it skips full-width buttons). */
#vpred .mv-go .vp-cta {
	width: auto;
	padding: 0 30px;
}
#vpred #vp-mvmsg {
	font-size: 12px;
}
#vpred #vp-mvmsg:empty {
	display: none;
}
@media (max-width: 1180px) {
	#vpred .mv-grid {
		grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
	}
	#vpred .mv-amt,
	#vpred .mv-go {
		grid-column: 1 / -1;
	}
}
@media (max-width: 640px) {
	#vpred .mv-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	#vpred .mv-swap {
		justify-self: center;
		transform: rotate(90deg);
	}
}

/* ----- Layout ----- */
#vpred .vp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
	align-items: start;
}
#vpred .vp-main {
	min-width: 0;
}
#vpred .vp-side {
	position: sticky;
	top: calc(var(--topbar-h, 80px) + 12px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

/* ----- Featured carousel ----- */
#vpred .vp-hero {
	margin: 0 0 18px;
}
#vpred .hero-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 24px;
	padding: 22px 24px;
	border-radius: 28px;
	border: 1px solid var(--border);
	background:
		radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 60%),
		var(--card);
	cursor: pointer;
	min-height: 290px;
}
#vpred .hero-card:hover {
	border-color: var(--border-2);
}
#vpred .hero-l {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
#vpred .hero-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
#vpred .hero-thumb,
#vpred .mk-thumb,
#vpred .dt-thumb {
	flex: none;
	display: inline-flex;
	overflow: hidden;
	background: var(--card-2);
	border: 1px solid var(--border);
}
#vpred .hero-thumb {
	width: 64px;
	height: 64px;
	border-radius: 18px;
}
#vpred .hero-thumb .thumb,
#vpred .mk-thumb .thumb,
#vpred .dt-thumb .thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
#vpred .hero-t {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}
#vpred .hero-t h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-transform: none;
	color: var(--txt);
}
#vpred .hero-bin {
	display: flex;
	align-items: center;
	gap: 18px;
}
#vpred .hero-bin .vp-yn {
	flex: 1;
}
#vpred .hero-multi .orow {
	padding: 6px 0;
}
#vpred .hero-ft {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: auto;
	font-size: 12.5px;
	color: var(--muted);
}
#vpred .hero-ft b {
	color: var(--txt);
}
#vpred .hero-r {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
#vpred .hero-chart {
	flex: 1;
	min-height: 220px;
}
#vpred .hero-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}
#vpred .hero-nav .sp {
	flex: 1;
}
#vpred .dots {
	display: flex;
	align-items: center;
	gap: 6px;
}
#vpred .dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--border-2);
	cursor: pointer;
	transition:
		width 0.25s,
		background 0.25s;
}
#vpred .dots button.on {
	width: 28px;
	background: var(--blue);
}
#vpred .hero-arrow {
	max-width: 240px;
	height: 36px;
	font-size: 12.5px;
	color: var(--txt-2);
}
#vpred .hero-arrow span {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ----- Tabs + search ----- */
#vpred .vp-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}
#vpred .vp-discovery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}
#vpred .vp-discovery label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	min-width: 0;
	max-width: 100%;
}
#vpred .vp-discovery select {
	min-width: 0;
	max-width: 250px;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--card-2);
	color: var(--txt);
	font: inherit;
}
#vpred .vp-page { display: grid; justify-items: center; gap: 8px; padding: 20px 0; }
#vpred .vp-tabs {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 2px;
	padding: 4px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	overflow-x: auto;
	scrollbar-width: none;
}
#vpred .vp-tabs::-webkit-scrollbar {
	display: none;
}
#vpred .vp-tabs button {
	flex: none;
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	white-space: nowrap;
}
#vpred .vp-tabs button:hover {
	color: var(--txt);
	background: var(--hover);
}
#vpred .vp-tabs button.on {
	background: var(--accent);
	color: var(--on-accent);
}
#vpred .vp-tabs .vp-ic {
	width: 14px;
	height: 14px;
}
#vpred .vp-search {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 260px;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--muted);
}
#vpred .vp-search:focus-within {
	border-color: var(--txt);
}
#vpred .vp-search input {
	flex: 1;
	min-width: 0;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
	color: var(--txt);
	font-size: 14px;
}
#vpred .vp-hd {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 4px 2px 12px;
}
#vpred .vp-hd h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--txt);
}
#vpred .vp-hd .mut {
	font-size: 12.5px;
}

/* ----- Market cards ----- */
#vpred .vp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
	align-items: stretch;
}
#vpred .mk {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 16px 16px 12px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--card);
	cursor: pointer;
	transition:
		border-color 0.15s,
		transform 0.15s,
		box-shadow 0.15s;
}
#vpred .mk:hover {
	border-color: var(--border-2);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
#vpred .mk:focus-visible,
#vpred .hero-card:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}
#vpred .mk-hd {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 52px;
}
#vpred .mk-thumb {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}
#vpred .mk-t {
	flex: 1;
	min-width: 0;
}
#vpred .mk-q {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--txt);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#vpred .mk-cat {
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--muted);
}
#vpred .cadb {
	padding: 1px 6px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--blue) 18%, transparent);
	color: var(--txt);
	font-size: 10.5px;
	font-weight: 800;
}
/* half-ring gauge */
#vpred .vp-gauge {
	position: relative;
	flex: none;
	width: 76px;
	height: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
}
#vpred .vp-gauge svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
#vpred .vp-gauge .tr,
#vpred .vp-gauge .fl {
	fill: none;
	stroke-width: 8;
	stroke-linecap: round;
}
#vpred .vp-gauge .tr {
	stroke: var(--border-2);
}
#vpred .vp-gauge .fl {
	stroke: var(--blue);
	transition: stroke-dashoffset 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#vpred .vp-gauge b {
	position: relative;
	font-family: var(--num);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}
#vpred .vp-gauge small {
	position: relative;
	font-size: 9.5px;
	color: var(--muted);
}
#vpred .vp-gauge.big {
	width: 132px;
	height: 82px;
}
#vpred .vp-gauge.big .tr,
#vpred .vp-gauge.big .fl {
	stroke-width: 7;
}
#vpred .vp-gauge.big b {
	font-size: 26px;
}
#vpred .vp-gauge.big small {
	font-size: 11px;
}
/* Yes / No buttons */
#vpred .vp-yn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
#vpred .vp-yn button,
#vpred .vp-3 button {
	height: 44px;
	min-width: 0;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
	transition:
		filter 0.12s,
		transform 0.12s;
}
#vpred .vp-yn button b {
	font-family: var(--num);
	font-weight: 700;
	opacity: 0.85;
}
#vpred .vp-yn .yes,
#vpred .vp-3 .yes {
	background: var(--vp-yes-bg);
	border-color: color-mix(in srgb, var(--vp-yes) 30%, transparent);
	color: var(--vp-yes);
}
#vpred .vp-yn .no,
#vpred .vp-3 .no {
	background: var(--vp-no-bg);
	border-color: color-mix(in srgb, var(--vp-no) 26%, transparent);
	color: var(--vp-no);
}
#vpred .vp-yn button:hover,
#vpred .vp-3 button:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}
#vpred .vp-yn.big button {
	height: 52px;
	font-size: 15px;
}
html[data-theme="light"] #vpred .vp-yn .yes,
html[data-theme="light"] #vpred .vp-3 .yes {
	color: color-mix(in srgb, var(--vp-yes) 85%, #000);
}
/* split bar */
#vpred .vp-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--num);
	font-size: 15px;
	font-weight: 800;
}
#vpred .vp-bar .y {
	color: var(--vp-yes);
}
#vpred .vp-bar .n {
	color: var(--vp-no);
}
#vpred .vp-bar .tr {
	flex: 1;
	display: flex;
	gap: 3px;
	height: 10px;
	border-radius: 999px;
	overflow: hidden;
}
#vpred .vp-bar .tr i {
	display: block;
	height: 100%;
	border-radius: 999px;
	transition: width 0.5s;
}
#vpred .vp-bar .tr i.y {
	background: var(--vp-yes);
}
#vpred .vp-bar .tr i.n {
	background: color-mix(in srgb, var(--vp-no) 80%, transparent);
}
/* three-way match */
#vpred .tw {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	font-family: var(--num);
}
#vpred .tw-s {
	display: flex;
	align-items: center;
	gap: 10px;
}
#vpred .tw-s.r {
	justify-content: flex-end;
}
#vpred .tw b {
	font-size: 24px;
	font-weight: 800;
}
#vpred .tw .ty {
	color: var(--vp-yes);
}
#vpred .tw .tn {
	color: var(--vp-no);
}
#vpred .tw .tw-d {
	color: var(--muted);
	font-size: 20px;
}
#vpred .crest {
	position: relative;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 12px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--card-2);
	border: 1px solid var(--border);
	font-size: 11px;
	font-weight: 800;
	color: var(--txt-2);
}
#vpred .crest .crest-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#vpred .vp-3 {
	display: grid;
	grid-template-columns: 1fr 0.8fr 1fr;
	gap: 8px;
}
#vpred .vp-3 .draw {
	background: var(--card-2);
	border-color: var(--border);
	color: var(--txt-2);
}
/* multi outcome rows */
#vpred .multi {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
#vpred .orow {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 4px 0;
}
#vpred .orow .nm {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#vpred .orow .op {
	font-family: var(--num);
	font-size: 14px;
	font-weight: 800;
	min-width: 40px;
	text-align: right;
}
#vpred .oav {
	width: 24px;
	height: 24px;
	border-radius: 7px;
	overflow: hidden;
	flex: none;
}
#vpred .oav .oav-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
#vpred .dotc {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
	margin: 0 8px;
}
#vpred .pill {
	flex: none;
	height: 30px;
	min-width: 46px;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}
#vpred .pill.yes {
	background: var(--vp-yes-bg);
	border-color: color-mix(in srgb, var(--vp-yes) 28%, transparent);
	color: var(--vp-yes);
}
#vpred .pill.no {
	background: var(--vp-no-bg);
	border-color: color-mix(in srgb, var(--vp-no) 24%, transparent);
	color: var(--vp-no);
}
#vpred .pill:hover {
	filter: brightness(1.15);
}
#vpred .pill:disabled,
#vpred .vp-yn button:disabled,
#vpred .tk-yn button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	filter: none;
	transform: none;
}
#vpred .pill.on {
	box-shadow: 0 0 0 2px currentColor inset;
}
#vpred .mk-ft {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--border);
	font-size: 12px;
	color: var(--muted);
}
#vpred .mk-ft .sp {
	flex: 1;
}
#vpred .mk-ft .more {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--card-2);
	font-weight: 600;
}

/* ----- Sidebar ----- */
#vpred .vp-panel {
	padding: 16px 14px 10px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--card);
}
#vpred .vp-panel h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 6px 8px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--txt);
}
#vpred .vp-panel h3 .vp-ic {
	color: var(--blue);
}
#vpred .vp-link {
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
#vpred .vp-link:hover {
	color: var(--txt);
}
#vpred .side-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#vpred .side-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 8px 6px;
	border: 0;
	border-radius: 14px;
	background: none;
	color: var(--txt);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
#vpred .side-row:hover {
	background: var(--hover);
}
#vpred .side-n {
	width: 16px;
	flex: none;
	font-family: var(--num);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--muted);
	text-align: center;
}
#vpred .side-ic {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 10px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--card-2);
}
#vpred .side-ic .coin-ico {
	width: 34px;
	height: 34px;
}
#vpred .side-ic .side-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#vpred .side-t {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#vpred .side-t b {
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#vpred .side-t small {
	font-size: 11.5px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#vpred .side-sp {
	width: 64px;
	height: 28px;
	flex: none;
}
#vpred .side-sp .spark {
	width: 100%;
	height: 100%;
	display: block;
}
#vpred .side-v {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	font-family: var(--num);
}
#vpred .side-v b {
	font-size: 14px;
	font-weight: 800;
}
#vpred .side-v small {
	font-size: 10.5px;
	color: var(--muted);
}
#vpred .side-v .up-blue {
	color: var(--blue);
}
#vpred .side-row.hot > .vp-ic {
	color: var(--muted);
}

/* ----- Market page ----- */
#vpred .vp-back {
	height: 36px;
	padding: 0 14px 0 10px;
	margin: 0 0 14px;
}
#vpred .dt-head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 18px;
	padding: 20px 22px;
	border-radius: 28px;
	border: 1px solid var(--border);
	background:
		radial-gradient(60% 140% at 0% 0%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 60%),
		var(--card);
}
#vpred .dt-thumb {
	width: 72px;
	height: 72px;
	border-radius: 20px;
}
#vpred .dt-t {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
#vpred .dt-t h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-transform: none;
	color: var(--txt);
}
#vpred .dt-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--muted);
}
#vpred .dt-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
#vpred .dt-meta b {
	color: var(--txt);
}
#vpred .feepill {
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--border));
	background: color-mix(in srgb, var(--blue) 12%, var(--card-2));
	color: var(--txt);
	font-size: 11.5px;
	font-weight: 700;
}
#vpred .detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 18px;
	align-items: start;
}
#vpred .dt-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
#vpred .panel {
	padding: 18px 20px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--card);
	min-width: 0;
}
#vpred .pn-hd {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
#vpred .dt-price {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
#vpred .pn-t {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	text-transform: none;
	color: var(--txt);
}
#vpred .pn-t .vp-ic {
	color: var(--blue);
}
#vpred .ranges {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
}
#vpred .ranges button {
	height: 30px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font-family: var(--num);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
#vpred .ranges button.on {
	background: var(--accent);
	color: var(--on-accent);
}
/* Charts are drawn at the host's pixel size (predictions.js lineChart), so
   the host owns the height and the SVG just fills it. */
#vpred .hero-chart,
#vpred #vp-chart {
	position: relative;
}
#vpred #vp-chart {
	height: 300px;
}
#vpred .chart {
	position: absolute;
	inset: 0;
	display: block;
	touch-action: pan-y;
	cursor: crosshair;
}
#vpred .chart .grid line {
	stroke: var(--border);
	stroke-width: 1;
	stroke-dasharray: 2 5;
}
#vpred .chart .axlbl {
	fill: var(--muted);
	font-size: 11px;
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
}
#vpred .chart .ln {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
#vpred .chart .end,
#vpred .chart .xh circle {
	stroke: var(--card);
	stroke-width: 2;
}
#vpred .chart .endlbl {
	fill: var(--txt);
	font-size: 12px;
	font-weight: 700;
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
}
#vpred .chart .lead {
	stroke: var(--muted);
	stroke-width: 1;
}
#vpred .chart .xh line {
	stroke: var(--muted);
	stroke-width: 1;
	stroke-dasharray: 3 3;
}
#vpred .ctip {
	position: absolute;
	z-index: 2;
	min-width: 150px;
	max-width: 260px;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--card);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	font-size: 12px;
	pointer-events: none;
}
#vpred .ctip .ct-t {
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 11px;
}
#vpred .ctip .ct-r {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 0;
}
#vpred .ctip .ct-r i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
}
#vpred .ctip .ct-r span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--txt-2);
}
#vpred .ctip .ct-r b {
	margin-left: auto;
	padding-left: 10px;
	font-family: var(--num);
	font-variant-numeric: tabular-nums;
}
/* Legend chips sit clear of the time axis so the two never read as one line. */
#vpred .legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	font-size: 12.5px;
}
#vpred .legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
	font-weight: 600;
}
#vpred .legend i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
#vpred .outs .orow {
	padding: 8px 10px;
	border-radius: 14px;
}
#vpred .outs .orow.sel {
	background: var(--card-2);
}
#vpred .orow .mini {
	width: 80px;
	height: 6px;
	border-radius: 999px;
	background: var(--border);
	overflow: hidden;
	flex: none;
}
#vpred .orow .mini i {
	display: block;
	height: 100%;
	background: var(--vp-yes);
}
#vpred .detail2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
#vpred .book {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-family: var(--num);
	font-size: 12.5px;
}
#vpred .book .r {
	position: relative;
	display: flex;
	justify-content: space-between;
	padding: 5px 10px;
	border-radius: 8px;
	overflow: hidden;
}
#vpred .book .r .fill {
	position: absolute;
	inset: 0 auto 0 0;
	opacity: 0.5;
}
#vpred .book .ask .fill {
	background: var(--vp-no-bg);
}
#vpred .book .bid .fill {
	background: var(--vp-yes-bg);
}
#vpred .book .r span {
	position: relative;
}
#vpred .book .spread {
	padding: 5px;
	text-align: center;
	font-size: 11.5px;
	color: var(--muted);
}
#vpred .trow {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto auto auto 28px;
	gap: 8px;
	align-items: center;
	padding: 8px 2px;
	border-top: 1px solid var(--border);
	font-size: 12.5px;
}
#vpred .trow:first-child,
#vpred .hrow:first-child {
	border-top: 0;
}
#vpred .tside {
	font-size: 11px;
	font-weight: 800;
}
#vpred .tside.yes,
#vpred .hside.yes {
	color: var(--vp-yes);
}
#vpred .tside.no,
#vpred .hside.no {
	color: var(--vp-no);
}
#vpred .tnm,
#vpred .hnm {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#vpred .tout,
#vpred .tsz,
#vpred .tt {
	color: var(--muted);
	font-size: 11.5px;
}
#vpred .tt {
	text-align: right;
}
#vpred .hrow {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	padding: 8px 2px;
	border-top: 1px solid var(--border);
	font-size: 12.5px;
}
#vpred .hav {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--card-2);
}
#vpred .hav .hav-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#vpred .hside {
	font-size: 11.5px;
	font-weight: 700;
}
#vpred .hamt {
	color: var(--txt-2);
}
#vpred .cmts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 420px;
	overflow: auto;
	scrollbar-width: thin;
}
#vpred .cmt {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}
#vpred .cmt:last-child {
	border-bottom: 0;
}
#vpred .cmt-h {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 3px;
}
#vpred .cmt-n {
	font-size: 13px;
	font-weight: 700;
}
#vpred .cmt-t,
#vpred .cmt-r {
	font-size: 11px;
}
#vpred .cmt-b {
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
	color: var(--txt-2);
}
/* ticket */
#vpred .ticket {
	position: sticky;
	top: calc(var(--topbar-h, 80px) + 12px);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#vpred .tk-hd {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 16px;
	font-weight: 800;
}
#vpred .tk-hd b {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#vpred .tk-yn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
#vpred .tk-yn button {
	height: 58px;
	border: 1px solid transparent;
	border-radius: 16px;
	font: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	cursor: pointer;
	opacity: 0.7;
	transition:
		opacity 0.12s,
		box-shadow 0.12s;
}
#vpred .tk-yn button span {
	font-size: 13px;
	font-weight: 700;
}
#vpred .tk-yn button b {
	font-family: var(--num);
	font-size: 18px;
	font-weight: 800;
}
#vpred .tk-yn .yes {
	background: var(--vp-yes-bg);
	color: var(--vp-yes);
}
#vpred .tk-yn .no {
	background: var(--vp-no-bg);
	color: var(--vp-no);
}
#vpred .tk-yn button.on {
	opacity: 1;
	box-shadow: 0 0 0 2px currentColor inset;
}
#vpred .ticket label {
	display: block;
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
#vpred .inp {
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0 14px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--card-2);
}
#vpred .inp:focus-within {
	border-color: var(--txt);
}
#vpred .inp input {
	flex: 1;
	width: 100%;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 0 0 4px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
	color: var(--txt);
	font-family: var(--num);
	font-size: 20px;
	font-weight: 700;
}
#vpred .inp .suf {
	color: var(--muted);
	font-size: 15px;
	font-weight: 700;
}
#vpred .chips {
	display: flex;
	gap: 6px;
}
#vpred .chips button {
	flex: 1;
	height: 32px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card-2);
	color: var(--txt-2);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}
#vpred .chips button:hover {
	background: var(--hover);
	color: var(--txt);
}
#vpred .recap {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 4px;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--card-2);
	font-size: 13px;
}
#vpred .recap .l {
	display: flex;
	justify-content: space-between;
}
#vpred .recap b {
	font-family: var(--num);
	font-weight: 700;
}
#vpred .recap .fee {
	color: var(--txt-2);
}
#vpred .recap .big {
	margin-top: 2px;
	padding-top: 9px;
	border-top: 1px solid var(--border);
	font-weight: 800;
}
#vpred .vp-cta {
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: 16px;
	background: var(--accent);
	color: var(--on-accent);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: filter 0.12s;
}
#vpred .vp-cta:hover {
	filter: brightness(0.94);
}
#vpred .vp-cta:disabled {
	opacity: 0.6;
	cursor: default;
}
#vpred .note {
	margin: 4px 0 0;
	font-size: 12px;
	text-align: center;
	color: var(--muted);
}
#vpred .vp-detail > .note {
	margin-top: 18px;
	text-align: left;
}

/* ----- Responsive ----- */
@media (max-width: 1250px) {
	#vpred .vp-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	#vpred .vp-side {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
}
@media (max-width: 1000px) {
	#vpred .hero-card {
		grid-template-columns: 1fr;
	}
	#vpred .detail,
	#vpred .detail2 {
		grid-template-columns: 1fr;
	}
	#vpred .ticket {
		position: static;
	}
}
@media (max-width: 760px) {
	#vpred.view {
		padding: 12px 14px 48px;
	}
	#vpred .vp-nav {
		flex-direction: column;
		align-items: stretch;
	}
	#vpred .vp-search {
		width: auto;
	}
	#vpred .hero-arrow span {
		display: none;
	}
	#vpred .dt-head {
		flex-wrap: wrap;
	}
}
@media (prefers-reduced-motion: reduce) {
	#vpred .live::before {
		animation: none;
	}
	#vpred .mk,
	#vpred .vp-gauge .fl,
	#vpred .dots button {
		transition: none;
	}
}

/* ----- Loading skeletons (skeleton.css), sized like the real cards ----- */
#vpred .sk-cards {
	display: contents;
}
#vpred .sk-card {
	min-height: 230px;
	cursor: default;
	pointer-events: none;
}
#vpred .sk-hero {
	cursor: default;
}
#vpred .sk-hero > .sk-stack:last-child > .sk {
	height: 100% !important;
	min-height: 240px;
	border-radius: 16px;
}
#vpred .hero-nav.sk-row {
	margin-top: 12px;
}
#vpred #vp-chart .sk-fill,
#vpred .hero-chart .sk-fill {
	position: absolute;
	inset: 0;
}
#vpred #vp-chart .sk-fill > .sk,
#vpred .hero-chart .sk-fill > .sk {
	height: 100% !important;
	border-radius: 14px;
}
#vpred .vp-side .sk-list {
	padding: 4px 6px;
}
