/*
* Balanced
* Widget Core CSS
* Version 4.1
* Last updated 1/6/26
*/

/* ==========================================================================
	Widget foundations
	========================================================================== */

/* required files for GridStack to work. gridstack-extra.css is needed for 2–11 column layouts. */
@import "./gridstack.css";
@import "./gridstack-extra.css";

/* Demo sidebar */
.sidebar {
	background: rgb(215, 243, 215);
	padding: 25px 0;
	height: 100px;
	text-align: center;
}

.sidebar > .grid-stack-item,
.sidebar-item {
	width: 100px;
	height: 50px;
	border: 2px dashed green;
	text-align: center;
	line-height: 35px;
	background: rgb(192, 231, 192);
	cursor: default;
	display: inline-block;
}

/* GridStack host */
.grid-stack {
	margin: 0 -10px;
}

.grid-stack.grid-stack-static {
	background: #eee;
}

/* Base card chrome (applies to widgets + sidebar items) */
.sidebar > .grid-stack-item,
.grid-stack-item-content {
	padding: 25px;
	border-radius: 25px;
	background-color: #0c2a4d;
	background-image: linear-gradient(171deg, rgba(44, 169, 183, 0.37) 0%, rgba(44, 169, 183, 0) 50%);
	background-size: 150%;
}

/* (Legacy) header used by some older cards */
.card-header {
	margin: 0;
	cursor: grab;
	min-height: 25px;
	background-color: #16af91;
}

.card-header:hover {
	background-color: #149b80;
}

.grid-stack-dragging {
	cursor: grabbing;
}

body:not(.conflict-preview-locked) .ui-draggable-disabled.ui-resizable-disabled > .grid-stack-item-content {
	background-color: #777;
}

/* Debug dimensions overlay */
.grid-stack.show-dimensions .grid-stack-item:after {
	content: "1x1";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 2px;
	color: black;
	background-color: white;
	pointer-events: none; /* to not interfere with dragging the item */
}

.grid-stack.show-dimensions .grid-stack-item[gs-h]::after {
	content: "1x" attr(gs-h);
}

.grid-stack.show-dimensions .grid-stack-item[gs-w]::after {
	content: attr(gs-w) "x1";
}

.grid-stack.show-dimensions .grid-stack-item[gs-h][gs-w]::after {
	content: attr(gs-w) "x" attr(gs-h);
}

/* External corner stroke */
.grid-stack-item-content::after {
	content: "";
	position: absolute;
	bottom: -10px; /* how far outside the card */
	right: -10px;
	width: 50px;
	height: 50px;
	border-radius: 0 0 30px 0; /* makes it a quarter of a circle */
	border-style: solid;
	border-color: transparent #175672 #175672 transparent;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.ui-resizable-resizing .grid-stack-item-content::after,
.grid-stack-item-content.resize-active::after {
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.ui-resizable-handle {
	opacity: 0;
}

/* Asset price chart tooltip — match Markets supply tooltip */
.grid-stack-item-content .apw-chart .lwc-tooltip {
	padding: 5px 10px;
	background-color: rgba(16, 58, 90, 0.9);
	background-image: linear-gradient(
		135deg,
		rgba(32, 121, 143, 0.5) 0%,
		rgba(23, 86, 120, 0.5) 100%
	);
	border-radius: 12px;
	color: #fff;
	box-shadow: 7px 7px 25px 0 rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(44, 169, 183, 0.5);
	transition: opacity 0.15s ease;
	z-index: 99;
	text-align: center;
	min-width: 80px;
	font-size: 14px;
	line-height: 1.4;
}

.grid-stack-item-content .apw-chart .lwc-tooltip .date {
	font-size: 12px;
	margin-bottom: 2px;
	color: rgba(255, 255, 255, 0.75);
	opacity: 1;
}

.grid-stack-item-content .apw-chart .lwc-tooltip .value {
	margin-bottom: 2px;
	font-size: 14px;
}

/* ==========================================================================
	Animations
	========================================================================== */

/* Simple slide‑in when a widget is created via Add / Duplicate */
.grid-stack-item-content.bal-widget--enter {
	animation: bal-widget-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bal-widget-enter {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Simple fade+shrink when a widget is removed */
.grid-stack-item-content.bal-widget--exit {
	animation: bal-widget-exit 180ms ease-out forwards;
}

@keyframes bal-widget-exit {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateY(4px) scale(0.97);
	}
}

/* ==========================================================================
	Widget header menu ("…")
========================================================================== */

/*
*
* Menu positioning
*
*/

.grid-stack-item-content {
	position: relative;
	overflow: visible;
}

.widget-header .widget-menu {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
}

/*
*
* Menu trigger
*
*/

.widget-menu-trigger {
	position: relative;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 45px;
	height: 25px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(8, 33, 65, 0.8);
	cursor: pointer;
}

.widget-menu-trigger .dot {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
}

.widget-menu-trigger:hover,
.widget-menu.widget-menu--open .widget-menu-trigger {
	background: rgba(255, 255, 255, 0.15);
}

.widget-menu-trigger:focus-visible {
	outline: 2px solid #2ca9b7;
	outline-offset: 2px;
}

/*
*
* Menu panel
*
*/

.widget-menu-dropdown {
	--widget-menu-panel-inset: 0px;
	--widget-menu-panel-width: 277px;
	--widget-menu-panel-height: 150px;

	position: absolute;
	top: var(--widget-menu-panel-inset);
	right: var(--widget-menu-panel-inset);
	z-index: 80;

	width: var(--widget-menu-panel-width);
	height: var(--widget-menu-panel-height);
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);

	overflow: hidden;
	padding: 0;
	border: 1px solid rgba(44, 169, 183, 0.32);
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(44, 169, 183, 0.2) 0%, rgba(44, 169, 183, 0.04) 58%),
		rgba(12, 42, 77, 0.96);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 22px 60px rgba(1, 0, 42, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px) scale(0.985);
	transform-origin: top right;
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.widget-menu.widget-menu--open .widget-menu-dropdown {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(38px) scale(1);
}

/*
*
* Top action row
*
*/

.widget-menu-actions {
	display: flex;
	align-items: stretch;
	justify-content: center;
	min-width: 0;
	height: 82px;
	padding: 10px;
	gap: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.widget-menu-actions::-webkit-scrollbar {
	display: none;
}

/*
*
* Action buttons
*
*/

.widget-menu-action {
	position: relative;
	flex: 0 0 129px;
	min-width: 78px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 10px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
	font-family: "tex-gyre-adventor-regular";
	font-size: 12px;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	transition:
		background 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.widget-menu-action:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 0;
	bottom: 14px;
	width: 1px;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.widget-menu-action:last-child::after {
	content: none;
}

.widget-menu-action:last-child {
	border-right: 0;
}

.widget-menu-action::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("../img/logo/default.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.9;
}

.widget-menu-action:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	transform: translateY(-1px);
}

.widget-menu-action:focus-visible {
	outline: 2px solid #2ca9b7;
	outline-offset: -2px;
}

.widget-menu-action-label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
*
* Action icons
*
*/

.widget-menu-clone::before {
	background-image: url("../img/icon/copy-white.svg");
}

.widget-menu-remove::before {
	background-image: url("../img/icon/trash-white.svg");
}

.widget-menu-remove:hover {
	color: #ff7c8a;
}

.widget-menu-remove:hover::before {
	opacity: 1;
}

/*
*
* Context menu settings area
*
*/

.widget-menu-panel-body {
	min-height: 0;
	height: calc(100% - 82px);
	padding: 16px 18px;
	overflow-y: auto;
	background:
		radial-gradient(circle at 20% 0%, rgba(44, 169, 183, 0.14), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

/*
*
* Empty widget options state
*
*/

.widget-menu-panel-body:empty {
	display: grid;
	place-items: center;
	text-align: center;
}

.widget-menu-panel-body:empty::before {
	content: "No options for this widget";
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	line-height: 1.35;
}

.widget-menu-settings {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.widget-menu-settings-heading {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.widget-menu-setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	min-width: 0;
	padding: 15px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.05);
	cursor: pointer;
}

.widget-menu-setting-row:hover {
	background: rgba(255, 255, 255, 0.07);
}

.widget-menu-setting-copy {
	display: grid;
	gap: 5px;
	min-width: 0;
	text-align: left;
}

.widget-menu-setting-title {
	color: #ffffff;
	font-family: "tex-gyre-adventor-bold", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.2;
}

.widget-menu-setting-desc {
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	line-height: 1.35;
}

.widget-menu-setting-control {
	display: grid;
	justify-items: end;
	gap: 5px;
	flex: 0 0 auto;
}

.widget-menu-setting-value {
	color: rgba(255, 255, 255, 0.7);
	font-size: 11px;
	line-height: 1;
	white-space: nowrap;
}

/*
*
* Context menu switch
*
*/

.widget-menu-switch-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.widget-menu-switch {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	transition:
		background 160ms ease,
		box-shadow 160ms ease;
}

.widget-menu-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(1, 0, 42, 0.26);
	transition: transform 160ms ease;
}

.widget-menu-switch-input:checked + .widget-menu-switch {
	background: linear-gradient(90deg, #29b0bf, #36cbdc);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.widget-menu-switch-input:checked + .widget-menu-switch::after {
	transform: translateX(18px);
}

.widget-menu-switch-input:focus-visible + .widget-menu-switch {
	outline: 2px solid #2ca9b7;
	outline-offset: 3px;
}

/*
*
* Widget catalogue previews
*
*/

.wc-card .widget-header .widget-menu {
	display: none;
}

/* ==========================================================================
	Widget brands
========================================================================== */

/*
*
* Fallback theme variables
*
*/

.grid-stack-item-content {
	--apy-chart-top: rgba(44, 169, 183, 1);
	--apy-chart-bottom: rgba(44, 169, 183, 0.35);
	--apy-chart-line: rgba(64, 221, 238, 0.75);
	--apy-chart-label-bg: rgba(44, 169, 183, 1);
	--apy-chart-label-text: #d1d4dc;
	--apy-chart-top-neg: rgba(255, 123, 123, 0.35);
	--apy-chart-bottom-neg: rgba(255, 123, 123, 0.15);
	--apy-chart-line-neg: rgba(255, 123, 123, 0.95);
}

/*
*
* Balanced vault widget defaults — brand overrides at
* .grid-stack-item-content.<brand> .widget-vault take precedence.
*
*/

.widget-vault {
	--vault-bar-start: rgba(44, 173, 187, 1);
	--vault-bar-end: rgba(44, 173, 187, 0.3);
	--vault-tooltip-base: rgba(12, 42, 77, 0.96);
	--vault-tooltip-tint: rgba(44, 169, 183, 1);
	--vault-tooltip-border: rgba(44, 169, 183, 0.32);
}

/* ==========================================================================
	AVAX
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.avax {
	background-color: #dd4144;
	background-image: url(../img/feature/avax-background.png);
	/*background-image: linear-gradient(0deg, rgb(225, 123, 0) 0%, rgb(255, 165, 56) 100%);*/
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

.widget-preview-shell .grid-stack-item-content.avax {
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.avax::after {
	border-color: transparent #e13d3f #e13d3f transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.avax ::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.grid-stack-item-content.avax :-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.grid-stack-item-content.avax ::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.grid-stack-item-content.avax .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.avax a {
	color: #ffffff;
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.avax .widget-menu-trigger {
	background: rgb(238, 91, 93);
}

.grid-stack-item-content.avax .widget-menu-dropdown {
	background: rgb(214, 76, 78);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.avax .button {
	background: linear-gradient(0deg, rgb(212, 83, 86) 0%, rgb(253, 119, 121) 100%);
	border-top: 1px solid #ffafaf;
}

.grid-stack-item-content.avax ul.toggle li {
	background: linear-gradient(0deg, rgba(212, 83, 86, 0.25) 0%, rgba(253, 119, 121, 0.25) 100%);
}

.grid-stack-item-content.avax ul.toggle li.active {
	background: linear-gradient(0deg, rgb(212, 83, 86) 0%, rgb(253, 119, 121) 100%);
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.avax .widget-asset-price .dropdown-content {
	background:
		linear-gradient(180deg, rgba(242, 129, 129, 0.37) 0%, rgba(188, 45, 45, 0) 50%), #e43f41;
	border: 2px solid #f98888;
}

.grid-stack-item-content.avax .widget-asset-price .dropdown-content .list-scrollable {
	background-image: none;
	background-color: #ab3b3d;
	box-shadow: inset 0px 3px 25px 0px rgba(12, 42, 77, 0.15);
}

#widgets .grid-stack-item-content.avax .widget-asset-price .search.new {
	background-image:
		url("../img/icon/search.svg"),
		linear-gradient(180deg, rgb(171, 59, 61) 0%, rgb(171, 59, 61) 100%) !important;
	box-shadow: inset 0px 3px 25px 0px rgba(12, 42, 77, 0.15);
	color: #ffffff;
}

.grid-stack-item-content.avax .widget-liquid-staking .dropdown-content {
	background-image: none;
	background-color: #de4144;
	border: 1px solid rgb(239, 94, 97);
	box-shadow: 17.678px 17.678px 90px 0px rgba(1, 0, 42, 0.25);
}

/*
*
* Liquid staking and asset inputs
*
*/

.grid-stack-item-content.avax .stake-actions-container {
	background-image: none;
	background-color: #de4144;
	border: 1px solid rgb(239, 94, 97);
	box-shadow: 17.678px 17.678px 90px 0px rgba(1, 0, 42, 0.25);
}

.grid-stack-item-content.avax .input-asset .asset {
	border: none;
	box-shadow: none;
	color: #c73639;
	background-color: #ffd3d4;
}

.grid-stack-item-content.avax .input-asset input[type="text"] {
	border: none;
	box-shadow: none;
	color: #c73639;
	background-color: #ffd3d4;
}

.grid-stack-item-content.avax .input-asset .asset::after {
	content: url(../img/icon/arrow-down-avax.svg);
}

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.avax .widget-asset-price .is-pos .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}
.grid-stack-item-content.avax  .widget-asset-price .is-neg .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}

.grid-stack-item-content.avax .widget-asset-price .apw-meta-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 35px 0px rgba(188, 146, 97, 0.5);
	background: initial;
	background-color: rgba(220, 205, 205, 0.25);
}

.grid-stack-item-content.avax .widget-asset-price .apw-sentiment-dot {
	background: rgb(230, 73, 71);
}

/*
*
* Tooltips
*
*/

/* No styles yet. */

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */

/* ==========================================================================
	BTC
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.btc {
	background-image:
		url("../img/feature/btc-background.png"),
		linear-gradient(0deg, rgb(225, 123, 0) 0%, rgb(255, 165, 56) 100%);
	background-size: contain, cover;
	background-position: top, center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.btc::after {
	border-color: transparent #fba031 #fb9f30 transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.btc .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.btc a {
	color: #ffffff;
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.btc .widget-menu-trigger {
	background: rgb(227, 143, 41);
	border: none;
	box-shadow: none;
}

.grid-stack-item-content.btc .widget-menu-dropdown {
	background-image: linear-gradient(0deg, rgb(225, 123, 0) 0%, rgb(255, 165, 56) 100%);
}

.grid-stack-item-content.btc .widget-menu-switch-input:checked + .widget-menu-switch {
	background: linear-gradient(90deg, #d48627, #e38f29);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.btc ul.toggle {
	--toggle-track-bg: linear-gradient(180deg, rgb(205, 129, 35) 0%, rgb(216, 137, 40) 100%);
	--toggle-track-border: rgba(179, 127, 46, 0.18);
}

.grid-stack-item-content.btc ul.toggle li.active {
	background-image: linear-gradient(0deg, rgb(225, 123, 0) 0%, rgb(255, 165, 56) 100%) !important;
	box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

/*
*
* Dropdowns, search, and lists
*
*/

#widgets .grid-stack-item-content.btc .dropdown-content input.search.new {
	border: none;
	background-image: url("../img/icon/search.svg"), linear-gradient(180deg, #e38f29 0%, #e38f29 100%) !important;
	box-shadow: 0px 10px 15px 0px rgba(1, 0, 42, 0.15) inset;
}
.grid-stack-item-content.btc .dropdown-content {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(0deg, rgb(225, 123, 0) 0%, rgb(255, 165, 56) 100%);
}
.grid-stack-item-content.btc .widget-asset-price .dropdown-content .list-scrollable {
	background: linear-gradient(180deg, #e38f29 0%, #e38f29 100%) !important;
}
.grid-stack-item-content.btc .list .list-header {
	color: #ffffff;
}

/*
*
* Liquid staking and asset inputs
*
*/

/* No styles yet. */

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.btc .widget-asset-price .is-pos .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}
.grid-stack-item-content.btc  .widget-asset-price .is-neg .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}

.grid-stack-item-content.btc .widget-asset-price .apw-meta-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 35px 0px rgba(188, 146, 97, 0.5);
	background: initial;
	background-color: rgba(220, 205, 205, 0.25);
}

.grid-stack-item-content.btc .widget-asset-price .apw-news-copy {
	text-shadow: 0px 0px 10px #c27518;
}

.grid-stack-item-content.btc .apw-chart .lwc-tooltip .date {
	opacity: 1;
}

.grid-stack-item-content.btc .widget-asset-price .apw-period-dropdown {
	background-image: linear-gradient(135deg, rgb(252, 161, 51) 0%, rgb(253, 163, 53) 100%);
	border: 2px solid #ffc074;
}

.grid-stack-item-content.btc .widget-asset-price .apw-chart-type-dropdown {
	background-image: linear-gradient(135deg, rgb(252, 161, 51) 0%, rgb(253, 163, 53) 100%);
	border: 2px solid #ffc074;
}

.grid-stack-item-content.btc .widget-asset-price .apw-sentiment-dot {
	background: rgb(229, 150, 60);
}

/*
*
* Tooltips
*
*/

.grid-stack-item-content.btc .lwc-tooltip {
	background-color: rgba(111, 135, 229, 0.9);
	background-image: linear-gradient(0deg, rgb(233, 152, 55) 0%, rgb(244, 175, 91) 100%);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */

/* ==========================================================================
	ETH
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.eth {
	background-image:
		url("../img/feature/eth-background.png"),
		linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
	background-blend-mode: soft-light, normal;
	background-size: 60%, cover;
	background-position:
		135% center,
		center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.25);
	--apy-chart-text: rgba(255, 255, 255, 0.9);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.9);
	--trade-candle-up: rgba(255, 255, 255, 0.9);
	--trade-candle-down: rgba(255, 123, 123, 0.95);
	--apy-chart-volume: rgba(255, 255, 255, 0.35);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.eth::after {
	border-color: transparent #5873d0 #4f68cb transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.eth a {
	color: #ffffff;
}

.grid-stack-item-content.eth .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.eth .widget-menu-switch-input:checked + .widget-menu-switch {
	background: linear-gradient(90deg, #6180f6, #6a86f0);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.grid-stack-item-content.eth .widget-menu-trigger {
	background: rgba(83, 104, 183, 0.5);
	border: none;
	box-shadow: none;
}

.grid-stack-item-content.eth .widget-menu-dropdown {
	background: rgb(111, 135, 229);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.eth ul.toggle {
	--toggle-track-bg: linear-gradient(180deg, rgb(67, 95, 185) 0%, rgb(84, 104, 182) 100%);
	--toggle-track-border: rgba(179, 127, 46, 0.18);
}

.grid-stack-item-content.eth ul.toggle li.active {
	background-image: linear-gradient(
		180deg,
		rgb(123, 147, 240) 0%,
		rgb(78, 105, 207) 100%
	) !important;
	box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.eth .button {
	background: linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(92, 118, 215) 100%);
	border-top: 1px solid #9baffd;
}

.grid-stack-item-content.eth .blockchain-filter-button {
	background-color: #47a9f0;
}

.grid-stack-item-content.eth .stake-view-toggle {
	background-color: #647dd6;
}

.grid-stack-item-content.eth .widget-liquid-staking.ls-view-data .stake-view-toggle {
	background-color: #647dd6;
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.eth .list .list-item:hover {
	color: rgba(255, 255, 255, 0.5);
}

.grid-stack-item-content.eth .dropdown-content {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
}

#widgets .grid-stack-item-content.eth .dropdown-content input.search.new {
	border: none;
	background-color: #5368b7;
	box-shadow: none;
	background-image:
		url("../img/icon/search.svg"), linear-gradient(180deg, #5368b7 0%, #5368b7 100%) !important;
}

.grid-stack-item-content.eth .list .list-header {
	color: #ffffff;
}

.grid-stack-item-content.eth .list .list-item.secondary {
	background-color: #4e69ce;
}

.grid-stack-item-content.eth .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.eth .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
    border-top-color: #4e69ce;
}

.grid-stack-item-content.eth .dropdown-content::after {
	border-top-color: #7a92ef;
}

.grid-stack-item-content.eth .widget-asset-price .dropdown-content .list-scrollable {
	background-image: linear-gradient(180deg, #5368b7 0%, #5368b7 100%) !important;
}

/*
*
* Liquid staking and asset inputs
*
*/

.grid-stack-item-content.eth .stake-actions-container {
	background-image: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background-color: rgba(255, 255, 255, 0.05);
	transition: border 0.3s ease;
}

.widget-liquid-staking .input-asset .stake-asset.multi-chain.eth .variable-stake-asset::after {
	background-color: #5368b7;
}

.grid-stack-item-content.eth .input-asset .asset {
	border: 2px solid #5368b7;
	background-color: #5368b7;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.eth .input-asset input[type="text"] {
	border: 2px solid #5368b7;
	background-color: #5368b7;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.eth .ls-connect-inline {
	color: #d3dcff;
}

.grid-stack-item-content.eth .input-asset .asset::after {
	content: url(../img/icon/arrow-down-eth.svg);
}

.grid-stack-item-content.eth .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background: rgb(111, 135, 229);
}

.grid-stack-item-content.eth .instant-amounts li {
	background: #383533;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.eth .instant-amounts li:hover {
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.grid-stack-item-content.eth .stake-chart-metadata {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background-color: rgba(255, 255, 255, 0.05);
	transition: border 0.3s ease;
}

.grid-stack-item-content.eth .widget-liquid-staking .lsd-chart-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background-color: rgba(255, 255, 255, 0.05);
	transition: border 0.3s ease;
}

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.eth .apw-chart .lwc-tooltip .date {
	opacity: 1;
}

.grid-stack-item-content.eth .widget-asset-price .apw-period-dropdown {
	background-image: linear-gradient(135deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
	border: 2px solid #7992ef;
}

.grid-stack-item-content.eth .widget-asset-price .apw-chart-type-dropdown {
	background-image: linear-gradient(135deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
	border: 2px solid #7992ef;
}

.grid-stack-item-content.eth .widget-asset-price .is-pos .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}

.grid-stack-item-content.eth .widget-asset-price .apw-meta-card {
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.grid-stack-item-content.eth .widget-asset-price .apw-sentiment-dot {
	background: rgb(93, 122, 214);
}

/*
*
* Tooltips
*
*/

.grid-stack-item-content.eth .lwc-tooltip {
	background-color: rgba(111, 135, 229, 0.9);
	background-image: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.25) 0%,
		rgb(255, 255, 255, 0) 100%
	);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/*
*
* Vault widget
*
*/

.grid-stack-item-content.eth .widget-vault {
  --vault-input-accent: #7b93f0;
  --vault-bar-color: rgba(35, 55, 160, 0.85);
  --chain-badge-bg-field: #5368b7;
  --chain-badge-bg-row: #5368b7;

  --vault-bar-start: rgb(83, 104, 183);
  --vault-bar-end:   rgb(48, 70, 145);

  --vault-tooltip-base:   rgba(111, 135, 229, 0.96);
  --vault-tooltip-tint:   rgb(123, 147, 240);
  --vault-tooltip-border: rgba(123, 147, 240, 0.45);
}

/* Active-pill gradient applies to every toggle in the widget. !important
   wins over the global ETH ul.toggle li.active rule (also !important). */
.grid-stack-item-content.eth .widget-vault ul.toggle li.active {
  background: linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.eth .widget-vault .vault-actions-container {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
}

.grid-stack-item-content.eth .widget-vault .vault-actions-container .input-asset .asset,
.grid-stack-item-content.eth .widget-vault .vault-actions-container .input-asset input[type="text"] {
  border: 2px solid #5368b7;
  background-color: #5368b7;
  box-shadow: none;
  color: #ffffff;
}

.grid-stack-item-content.eth .widget-vault .input-asset .asset::after {
  content: url(../img/icon/arrow-down-eth.svg);
}

.grid-stack-item-content.eth .widget-vault .vault-input-footer {
  background-color: #4459a3;
  border-top-color: rgba(255, 255, 255, 0.18);
}

.grid-stack-item-content.eth .widget-vault .vw-connect,
.grid-stack-item-content.eth .widget-vault .vw-connect-inline {
  color: #d3dcff;
}

.grid-stack-item-content.eth .widget-vault .vault-chart-metadata,
.grid-stack-item-content.eth .widget-vault .vault-overview-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
}

.grid-stack-item-content.eth .widget-vault .vault-overview-card:hover {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.grid-stack-item-content.eth .widget-vault .instant-amounts {
  background: rgb(111, 135, 229);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
}

.grid-stack-item-content.eth .widget-vault .instant-amounts li {
  background: linear-gradient(0deg, rgb(78, 105, 207) 0%, rgb(123, 147, 240) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.eth .widget-vault .vault-view-toggle {
  background-color: #647dd6;
}

.grid-stack-item-content.eth .widget-vault .vault-selector-trigger,
.grid-stack-item-content.eth .widget-vault .vault-header-trigger {
    color: #d3dcff;
}

/* Branding segmented — matches the active-pill gradient. Kept as its
   own rule because the option is a <button>, not <li>. */
.grid-stack-item-content.eth .widget-vault .vault-brand-segmented__option.is-active {
  background: linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
  color: #ffffff;
}

.grid-stack-item-content.eth .widget-vault .vault-chain-pill::after {
  content: url(../img/icon/arrow-down-eth.svg);
}

.grid-stack-item-content.eth .widget-vault .dropdown-content .list-scrollable {
	background: #5368b7 !important;
}

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */


/* ==========================================================================
   JitoSOL (vault brand)
========================================================================== */

.grid-stack-item-content.jitosol {
	background-color: #45A280;
	background-image: linear-gradient(180deg, rgb(124, 209, 136) 0%, rgb(61, 155, 126) 100%);
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
}

.grid-stack-item-content.jitosol::after {
	border-color: transparent #45A280 #45A280 transparent;
}

.grid-stack-item-content.jitosol a {
	color: #cfeede;
}

.grid-stack-item-content.jitosol .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.jitosol .list .list-item.secondary {
	background-color: #3d9b7e;
}

.grid-stack-item-content.jitosol .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.jitosol .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #3d9b7e;
}

.grid-stack-item-content.jitosol .widget-vault {
	--vault-input-accent: #7cd188;
    --chain-badge-bg-field: #2d6e58;
    --chain-badge-bg-row:   #2d6e58;
	--vault-bar-start: rgb(31, 84, 64);
    --vault-bar-end:   rgb(15, 50, 38);
	--vault-tooltip-base:   rgba(69, 162, 128, 0.96);
	--vault-tooltip-tint:   rgb(124, 209, 136);
	--vault-tooltip-border: rgba(124, 209, 136, 0.45);
}

.grid-stack-item-content.jitosol .widget-vault ul.toggle li.active {
	background: linear-gradient(180deg, rgb(124, 209, 136) 0%, rgb(61, 155, 126) 100%) !important;
	color: #ffffff !important;
	box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.jitosol .widget-vault .vault-actions-container {
	background-image: none;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(45, 110, 88);
}

.grid-stack-item-content.jitosol .widget-vault .vault-actions-container .input-asset .asset,
.grid-stack-item-content.jitosol .widget-vault .vault-actions-container .input-asset input[type="text"] {
	border: 2px solid #2d6e58;
	background-color: #2d6e58;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.jitosol .widget-vault .input-asset .asset::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.jitosol .widget-vault .vault-input-footer {
	background-color: #245a48;
	border-top-color: rgba(255, 255, 255, 0.2);
}

.grid-stack-item-content.jitosol .widget-vault .vw-connect,
.grid-stack-item-content.jitosol .widget-vault .vw-connect-inline {
	color: #cfeede;
}

.grid-stack-item-content.jitosol .widget-vault .vault-chart-metadata {
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(45, 110, 88);
}

.grid-stack-item-content.jitosol .widget-vault .vault-overview-card {
	background-color: transparent;
    box-shadow: none;
}

.grid-stack-item-content.jitosol .widget-vault .vault-overview-card:hover {
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.grid-stack-item-content.jitosol .widget-vault .instant-amounts {
	background: rgb(61, 155, 126);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(45, 110, 88);
}

.grid-stack-item-content.jitosol .widget-vault .instant-amounts li {
	background: linear-gradient(0deg, rgb(61, 155, 126) 0%, rgb(124, 209, 136) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.jitosol .widget-vault .vault-view-toggle {
	background-color: #3d9b7e;
}

.grid-stack-item-content.jitosol .widget-vault .vault-brand-segmented__option.is-active {
	background: linear-gradient(180deg, rgb(124, 209, 136) 0%, rgb(61, 155, 126) 100%);
	color: #ffffff;
}

.grid-stack-item-content.jitosol .widget-vault .dropdown-content .list-scrollable {
	background: #2d6e58 !important;
}

.grid-stack-item-content.jitosol .dropdown-content {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, rgb(124, 209, 136) 0%, rgb(61, 155, 126) 100%);
}
.grid-stack-item-content.jitosol .dropdown-content::after {
    border-top-color: rgb(124, 209, 136);
}
#widgets .grid-stack-item-content.jitosol .dropdown-content input.search.new {
    border: none;
    background-color: #2d6e58;
    box-shadow: none;
    background-image:
        url("../img/icon/search.svg"),
        linear-gradient(180deg, #2d6e58 0%, #2d6e58 100%) !important;
}

.grid-stack-item-content.jitosol .widget-menu-trigger {
    background: rgba(45, 110, 88, 0.6);
    border: none;
    box-shadow: none;
}
.grid-stack-item-content.jitosol .widget-menu-dropdown {
    background: linear-gradient(180deg, rgb(124, 209, 136) 0%, rgb(61, 155, 126) 100%);
    border-color: rgba(255, 255, 255, 0.25);
}
.grid-stack-item-content.jitosol .widget-menu-switch-input:checked + .widget-menu-switch {
    background: linear-gradient(90deg, #6dc488, #45a280);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.grid-stack-item-content.jitosol .button {
    background: linear-gradient(180deg, rgb(124, 209, 136) 0%, rgb(61, 155, 126) 100%);
    border-top: 1px solid #a8e6b8;
}

/* ==========================================================================
	S
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.s {
	background-image:
		url("../img/feature/s-background.svg"), url("../img/feature/s-background-1.png");
	background-blend-mode: soft-light, normal;
	background-size: 100%, cover;
	background-position:
		150px center,
		center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 203, 103, 0.34);
	--apy-chart-bottom: rgba(33, 78, 129, 0.08);
	--apy-chart-line: rgba(254, 154, 76, 0.96);
	--apy-chart-label-bg: rgba(20, 20, 22, 0.94);
	--apy-chart-label-text: #fff3e5;
	--apy-chart-border: rgba(255, 203, 103, 0.28);
	--apy-chart-text: rgba(255, 243, 229, 0.92);
	--apy-chart-text-candle: rgba(255, 243, 229, 0.92);
	--trade-candle-up: rgba(248, 159, 69, 0.94);
	--trade-candle-down: rgba(52, 91, 138, 0.92);
	--trade-candle-border-up: rgba(248, 159, 69, 1);
	--trade-candle-border-down: rgba(52, 91, 138, 1);
	--trade-candle-wick-up: rgba(248, 159, 69, 0.96);
	--trade-candle-wick-down: rgba(52, 91, 138, 0.96);
	--trade-candle-price-line: rgba(248, 159, 69, 0.72);
	--apy-chart-volume: rgba(248, 159, 69, 0.24);
	--apy-chart-volume-up: rgba(248, 159, 69, 0.32);
	--apy-chart-volume-down: rgba(52, 91, 138, 0.36);
}

.widget-preview-shell .grid-stack-item-content.s {
	--apy-chart-border: rgba(255, 203, 103, 0.28);
	--apy-chart-text: rgba(255, 243, 229, 0.92);
	--apy-chart-text-candle: rgba(255, 243, 229, 0.92);
	--apy-chart-top: rgba(255, 203, 103, 0.34);
	--apy-chart-bottom: rgba(33, 78, 129, 0.08);
	--apy-chart-line: rgba(254, 154, 76, 0.96);
	--apy-chart-label-bg: rgba(20, 20, 22, 0.94);
	--apy-chart-label-text: #fff3e5;
	--trade-candle-up: rgba(248, 159, 69, 0.94);
	--trade-candle-down: rgba(52, 91, 138, 0.92);
	--trade-candle-border-up: rgba(248, 159, 69, 1);
	--trade-candle-border-down: rgba(52, 91, 138, 1);
	--trade-candle-wick-up: rgba(248, 159, 69, 0.96);
	--trade-candle-wick-down: rgba(52, 91, 138, 0.96);
	--trade-candle-price-line: rgba(248, 159, 69, 0.72);
	--apy-chart-volume: rgba(248, 159, 69, 0.24);
	--apy-chart-volume-up: rgba(248, 159, 69, 0.32);
	--apy-chart-volume-down: rgba(52, 91, 138, 0.36);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.s::after {
	border-color: transparent #453d31 #453d31 transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.s a {
	color: hsl(33, 100%, 92%);
}

.grid-stack-item-content.s .dropdown::after {
	content: url(../img/icon/arrow-down-s.svg);
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.s .widget-menu-trigger {
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.9) 0%, rgba(26, 26, 28, 0.9) 100%);
}

.grid-stack-item-content.s .widget-menu-dropdown {
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
}

/*
*
* Buttons and segmented controls
*
*/

#widgets .grid-stack-item-content.s .button {
	border: 1px solid transparent;
	border-radius: 9999px;
	background:
		linear-gradient(rgba(22, 25, 31, 0.78), rgba(22, 25, 31, 0.78)) padding-box,
		linear-gradient(90deg, #ffcb67, #ed5409, #506179, #214e81, #214e81, #506179, #ed5409, #ffcb67)
			border-box;
	background-size:
		100% 100%,
		200% 100%;
	box-shadow:
		0 0 18px rgba(252, 189, 93, 0.16),
		0 0 18px rgba(33, 78, 129, 0.18);
}

#widgets .grid-stack-item-content.s ul.toggle li {
	background: linear-gradient(135deg, rgba(26, 26, 28, 0.25) 0%, rgba(26, 26, 28, 0.25) 100%);
	border: 1px solid transparent;
	transition: border 0.2s ease;
}

#widgets .grid-stack-item-content.s ul.toggle li.active {
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(22, 25, 31, 0.78), rgba(22, 25, 31, 0.78)) padding-box,
		linear-gradient(90deg, #ffcb67, #ed5409, #506179, #214e81, #214e81, #506179, #ed5409, #ffcb67)
			border-box;
	background-size:
		100% 100%,
		200% 100%;
	background-position:
		0 0,
		0 0;
	transition: border 0.3s ease;
}

#widgets .grid-stack-item-content.s ul.toggle {
	--toggle-track-bg: linear-gradient(180deg, rgb(24, 26, 30) 0%, rgb(24, 26, 30) 100%);
	--toggle-track-border: rgba(179, 127, 46, 0.18);
}

#widgets .grid-stack-item-content.s ul.toggle li:hover {
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(22, 25, 31, 0.78), rgba(22, 25, 31, 0.78)) padding-box,
		linear-gradient(90deg, #ffcb67, #ed5409, #506179, #214e81, #214e81, #506179, #ed5409, #ffcb67)
			border-box;
	background-size:
		100% 100%,
		200% 100%;
	background-position:
		0 0,
		0 0;
	transition: border 0.3s ease;
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.s .dropdown-content {
	border: 1px solid rgba(67, 67, 67, 0.75);
	background-image: linear-gradient(135deg, rgb(25, 25, 29) 0%, rgb(28, 25, 27) 100%);
}

.grid-stack-item-content.s .list .list-item.secondary {
	background-color: #28282d;
}

.grid-stack-item-content.s .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #28282d;
}

.grid-stack-item-content.s .dropdown-content::after {
	border-top-color: #28282d;
}

#widgets .grid-stack-item-content.s .dropdown-content input.search.new {
	border: none;
	background-color: #131315;
	box-shadow: none;
	background-image:
		url("../img/icon/search.svg"), linear-gradient(180deg, #131315 0%, #131315 100%) !important;
}

.grid-stack-item-content.s .widget-asset-price .dropdown-content .list-scrollable {
	background-image: linear-gradient(180deg, #131315 0%, #131315 100%) !important;
	box-shadow: 0px 10px 15px 0px rgb(19, 19, 21) inset;
}

/*
*
* Liquid staking and asset inputs
*
*/

.grid-stack-item-content.s .stake-actions-container {
	background-image: linear-gradient(135deg, rgba(25, 25, 29, 0.5) 0%, rgba(28, 25, 27, 0.5) 100%);
	border: 1px solid rgba(95, 95, 95, 0.5);
	background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.s .input-asset .asset {
	border: none;
	box-shadow: none;
	color: #ffffff;
	background-color: #131315;
}

.grid-stack-item-content.s .input-asset input[type="text"] {
	border: none;
	box-shadow: none;
	color: #ffffff;
	background-color: #131315;
}

.grid-stack-item-content.s .input-asset .asset::after {
	content: url(../img/icon/arrow-down-s.svg);
}

.grid-stack-item-content.s .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
}

.grid-stack-item-content.s .instant-amounts li {
	background: #383533;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.s .instant-amounts li:hover {
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.grid-stack-item-content.s .stake-chart-metadata {
	border: 1px solid rgba(95, 95, 95, 0.5);
	background-color: rgba(255, 255, 255, 0.05);
	background-image: linear-gradient(135deg, rgba(25, 25, 29, 0.5) 0%, rgba(28, 25, 27, 0.5) 100%);
}

.grid-stack-item-content.s .widget-liquid-staking .lsd-chart-card {
	border: 1px solid rgba(95, 95, 95, 0.5);
	background-color: rgba(255, 255, 255, 0.05);
	background-image: linear-gradient(135deg, rgba(25, 25, 29, 0.5) 0%, rgba(28, 25, 27, 0.5) 100%);
}

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.s .apw-asset-trigger {
	color: #ffffff;
}

.grid-stack-item-content.s .widget-asset-price .price-chart-metadata .apw-meta-card {
	border: 1px solid rgba(95, 95, 95, 0.5);
	background-color: rgba(255, 255, 255, 0.05);
	background-image: linear-gradient(135deg, rgba(25, 25, 29, 0.5) 0%, rgba(28, 25, 27, 0.5) 100%);
}

/*
*
* Tooltips
*
*/

.grid-stack-item-content.s .lwc-tooltip {
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */

/* ==========================================================================
	SODA
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.sodax {
	background-color: #a55c55;
	background-image:
	url("../img/feature/sodax-background.svg"),
	linear-gradient(135deg, rgb(176, 102, 95) 0%, rgb(149, 80, 73) 100%);
	background-blend-mode: soft-light, normal;
	background-size: 100%, cover;
	background-position:
		150px center,
		center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 217, 47, 0.32);
	--apy-chart-bottom: rgba(255, 217, 47, 0.08);
	--apy-chart-line: rgba(255, 217, 47, 0.96);
	--apy-chart-label-bg: rgba(40, 18, 16, 0.94);
	--apy-chart-label-text: #fff7d6;
	--apy-chart-border: rgba(255, 217, 47, 0.28);
	--apy-chart-text: rgba(255, 247, 214, 0.92);
	--apy-chart-text-candle: rgba(255, 247, 214, 0.92);
	--trade-candle-up: rgba(255, 217, 47, 0.94);
	--trade-candle-down: rgba(220, 110, 105, 0.92);
	--trade-candle-border-up: rgba(255, 217, 47, 1);
	--trade-candle-border-down: rgba(220, 110, 105, 1);
	--trade-candle-wick-up: rgba(255, 217, 47, 0.96);
	--trade-candle-wick-down: rgba(220, 110, 105, 0.96);
	--trade-candle-price-line: rgba(255, 217, 47, 0.72);
	--apy-chart-volume: rgba(255, 217, 47, 0.24);
	--apy-chart-volume-up: rgba(255, 217, 47, 0.32);
	--apy-chart-volume-down: rgba(220, 110, 105, 0.36);
}

.widget-preview-shell .grid-stack-item-content.sodax {
	--apy-chart-border: rgba(255, 217, 47, 0.28);
	--apy-chart-text: rgba(255, 247, 214, 0.92);
	--apy-chart-text-candle: rgba(255, 247, 214, 0.92);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.sodax::after {
	border-color: transparent #8e4d47 #8e4d47 transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.sodax ::-webkit-input-placeholder {
	color: rgba(255, 247, 214, 0.5);
}

.grid-stack-item-content.sodax :-ms-input-placeholder {
	color: rgba(255, 247, 214, 0.5);
}

.grid-stack-item-content.sodax ::placeholder {
	color: rgba(255, 247, 214, 0.5);
}

.grid-stack-item-content.sodax a {
	color: #ffd92f;
}

.grid-stack-item-content.sodax .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.sodax .widget-menu-trigger {
	background: rgba(94, 48, 44, 0.8);
}

.grid-stack-item-content.sodax .widget-menu-dropdown {
	background-image: linear-gradient(135deg, rgb(149, 80, 73) 0%, rgb(126, 66, 61) 100%);
	border-color: rgba(255, 217, 47, 0.32);
	box-shadow: 0px 22px 60px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .widget-menu-switch-input:checked + .widget-menu-switch {
	background: linear-gradient(90deg, #ffd92f, #ffe04d);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.sodax .button {
	color: #3a1f1c;
	background: linear-gradient(0deg, rgb(247, 200, 26) 0%, rgb(255, 217, 47) 100%);
	border: 1px solid #ffe978;
}

.grid-stack-item-content.sodax ul.toggle {
	--toggle-track-bg: linear-gradient(180deg, rgb(126, 66, 61) 0%, rgb(142, 77, 71) 100%);
	--toggle-track-border: rgba(255, 217, 47, 0.18);
	--toggle-item-text: rgba(255, 247, 214, 0.72);
	--toggle-item-hover-text: #ffffff;
	--toggle-item-active-text: #3a1f1c;
	--toggle-item-active-bg: linear-gradient(180deg, #ffe04d 0%, #ffd92f 100%);
	--toggle-item-active-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 8px 18px rgba(40, 18, 16, 0.25),
		0 0 18px rgba(255, 217, 47, 0.28);
}

.grid-stack-item-content.sodax ul.toggle li.active {
	background-image: linear-gradient(180deg, #ffe04d 0%, #ffd92f 100%) !important;
	color: #3a1f1c !important;
}

.grid-stack-item-content.sodax ul.toggle li:not(.active):hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.sodax .dropdown-content {
	border: 1px solid rgba(255, 217, 47, 0.4);
	background-image: linear-gradient(135deg, rgb(176, 102, 95) 0%, rgb(149, 80, 73) 100%);
	box-shadow: 0px 10px 25px 0px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .dropdown-content::after {
	border-top-color: rgb(176, 102, 95);
}

.grid-stack-item-content.sodax .dropdown-content .list-scrollable {
	background-color: #7e423d;
	background-image: linear-gradient(0deg, rgb(126, 66, 61) 0%, rgb(126, 66, 61) 100%);
	box-shadow: 0px 10px 15px 0px rgba(40, 18, 16, 0.25) inset;
}

#widgets .grid-stack-item-content.sodax .dropdown-content .search.new {
	background-image:
		url("../img/icon/search1.svg"),
		linear-gradient(0deg, rgb(126, 66, 61) 0%, rgb(126, 66, 61) 100%) !important;
	box-shadow: 0px 10px 15px 0px rgba(40, 18, 16, 0.25) inset;
	color: #ffffff;
}

.grid-stack-item-content.sodax .widget-asset-price .dropdown-content .list-scrollable {
	background-image: linear-gradient(180deg, #7e423d 0%, #7e423d 100%) !important;
}

.grid-stack-item-content.sodax .list .list-header {
	color: rgba(255, 247, 214, 0.85);
}

.grid-stack-item-content.sodax .list .list-item:hover {
	color: #ffd92f;
}

.grid-stack-item-content.sodax .list .list-item.secondary {
	background-color: #8e4d47;
}

.grid-stack-item-content.sodax .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.sodax .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #8e4d47;
}

/*
*
* Liquid staking and asset inputs
*
*/

.grid-stack-item-content.sodax .stake-actions-container {
	background-image: none;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.32);
	box-shadow: 0px 3px 65px 0px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .input-asset .asset {
	border: 2px solid #7e423d;
	background-color: #7e423d;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sodax .input-asset input[type="text"] {
	border: 2px solid #7e423d;
	background-color: #7e423d;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sodax .input-asset .asset::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.sodax .ls-connect-inline {
	color: #ffd92f;
}

.grid-stack-item-content.sodax .stake-view-toggle {
	background-color: #7e423d;
}

.grid-stack-item-content.sodax .widget-liquid-staking.ls-view-data .stake-view-toggle {
	background-color: #7e423d;
}

.grid-stack-item-content.sodax .instant-amounts {
	border: 1px solid rgba(255, 217, 47, 0.32);
	background-image: linear-gradient(135deg, rgb(149, 80, 73) 0%, rgb(126, 66, 61) 100%);
	box-shadow: 0px 3px 65px 0px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .instant-amounts li {
	background: linear-gradient(0deg, rgb(247, 200, 26) 0%, rgb(255, 217, 47) 100%);
	color: #3a1f1c;
}

.grid-stack-item-content.sodax .stake-chart-metadata {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.32);
	box-shadow: 0px 3px 65px 0px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .widget-liquid-staking .lsd-chart-card {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.32);
	box-shadow: 0px 3px 65px 0px rgba(40, 18, 16, 0.45);
}

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.sodax .apw-asset-trigger,
.grid-stack-item-content.sodax .apw-asset-trigger.apw-asset-trigger--header {
	color: #ffffff;
}

.grid-stack-item-content.sodax .widget-asset-price .apw-meta-card,
.grid-stack-item-content.sodax .widget-asset-price .price-chart-metadata .apw-meta-card {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.28);
	box-shadow: 0px 3px 35px 0px rgba(40, 18, 16, 0.4);
}

.grid-stack-item-content.sodax .widget-asset-price .apw-sentiment-dot {
	background: #ffd92f;
}

.grid-stack-item-content.sodax .widget-asset-price .is-pos .apw-summary-change-value {
	color: #ffd92f;
	-webkit-text-fill-color: initial;
}

.grid-stack-item-content.sodax .widget-asset-price .is-neg .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}

.grid-stack-item-content.sodax .widget-asset-price .apw-period-dropdown,
.grid-stack-item-content.sodax .widget-asset-price .apw-chart-type-dropdown {
	background-image: linear-gradient(135deg, rgb(176, 102, 95) 0%, rgb(149, 80, 73) 100%);
	border: 2px solid rgba(255, 217, 47, 0.5);
}

/*
*
* Tooltips
*
*/

.grid-stack-item-content.sodax .lwc-tooltip {
	background-color: rgba(149, 80, 73, 0.9);
	background-image: linear-gradient(
		135deg,
		rgba(255, 217, 47, 0.18) 0%,
		rgba(255, 217, 47, 0) 100%
	);
	border-radius: 10px;
	color: #ffffff;
	box-shadow: 7px 7px 25px 0px rgba(40, 18, 16, 0.35);
	border: 1px solid rgba(255, 217, 47, 0.4);
}

/*
*
* Vault widget
*
*/

.grid-stack-item-content.sodax .widget-vault {
  --vault-input-accent: #ffd92f;
  --chain-badge-bg-field: #7e423d;
  --chain-badge-bg-row: #7e423d;

  /* Bar gradient — matches the SODAX vault active-pill gradient. */
  --vault-bar-start: #ffd92f;
  --vault-bar-end:   #ffb84d;

  /* Tooltip — mirrors the SODAX .widget-menu-dropdown (brown base with
     yellow accent border). */
  --vault-tooltip-base:   rgba(126, 66, 61, 0.96);
  --vault-tooltip-tint:   rgba(255, 217, 47, 1);
  --vault-tooltip-border: rgba(255, 217, 47, 0.32);
}

/* Active-pill gradient applies to every toggle in the widget. !important
   wins over the global SODAX ul.toggle li.active rule (also !important). */
.grid-stack-item-content.sodax .widget-vault ul.toggle li.active {
  background: linear-gradient(90deg, #ffd92f, #ffb84d) !important;
  color: #2a1810 !important;
}

.grid-stack-item-content.sodax .widget-vault .vault-actions-container {
	background-image: none;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.32);
	box-shadow: 0px 3px 65px 0px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .widget-vault .vault-actions-container .input-asset .asset {
	border: 2px solid #7e423d;
	background-color: #7e423d;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sodax .widget-vault .vault-actions-container .input-asset input[type="text"] {
	border: 2px solid #7e423d;
	background-color: #7e423d;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sodax .widget-vault .input-asset .asset::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.sodax .widget-vault .vault-input-footer {
	background-color: #6f3934;
	border-top-color: rgba(255, 217, 47, 0.2);
}

.grid-stack-item-content.sodax .widget-vault .vw-connect,
.grid-stack-item-content.sodax .widget-vault .vw-connect-inline {
	color: #ffd92f;
}

.grid-stack-item-content.sodax .widget-vault .vault-chart-metadata {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.32);
	box-shadow: 0px 3px 65px 0px rgba(40, 18, 16, 0.45);
}

.grid-stack-item-content.sodax .widget-vault .vault-overview-card {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 217, 47, 0.32);
}

.grid-stack-item-content.sodax .widget-vault .vault-overview-card:hover {
	border: 1px solid rgba(255, 217, 47, 0.7);
	background-color: rgba(255, 255, 255, 0.12);
}

.grid-stack-item-content.sodax .widget-vault .vault-overview-card__rate {
	color: #ffd92f;
}

.grid-stack-item-content.sodax .widget-vault .vault-capacity-warning {
	background: rgba(255, 217, 47, 0.08);
	border: 1px solid rgba(255, 217, 47, 0.35);
	color: #ffe04d;
}

.grid-stack-item-content.sodax .widget-vault .instant-amounts {
	border: 1px solid rgba(255, 217, 47, 0.32);
	background-image: linear-gradient(135deg, rgb(149, 80, 73) 0%, rgb(126, 66, 61) 100%);
}

.grid-stack-item-content.sodax .widget-vault .instant-amounts li {
	background: linear-gradient(0deg, rgb(247, 200, 26) 0%, rgb(255, 217, 47) 100%);
	color: #3a1f1c;
}

.grid-stack-item-content.sodax .widget-vault .vault-view-toggle {
	background-color: #7e423d;
}

.grid-stack-item-content.sodax .widget-vault.vw-view-data .vault-view-toggle {
	background-color: #7e423d;
}

.grid-stack-item-content.sodax .widget-vault .vault-selector-trigger,
.grid-stack-item-content.sodax .widget-vault .vault-header-trigger {
    color: #ffd92f;
}

.grid-stack-item-content.sodax .widget-vault .vault-brand-segmented__option.is-active {
	background: linear-gradient(90deg, #ffd92f, #ffb84d);
	color: #2a1810;
}

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */

/* ==========================================================================
	SOL
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.sol {
	background-image:
		url("../img/feature/sol-background.svg"), url("../img/feature/sol-background.png");
	background-blend-mode: soft-light, normal;
	background-size: 100%, cover;
	background-position:
		150px center,
		center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

.widget-preview-shell .grid-stack-item-content.sol {
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.sol::after {
	border-color: transparent #6c32a4 #6c32a4 transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.sol .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.sol a {
	color: #ffffff;
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.sol .widget-menu-trigger {
	background: rgb(117, 71, 159);
	border: none;
	box-shadow: none;
}

.grid-stack-item-content.sol .widget-menu-dropdown {
	background: rgb(117, 71, 159);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.sol .button {
	background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
	border-top: 1px solid #d2bdec;
}

.grid-stack-item-content.sol .stake-view-toggle {
	background-color: #8647d1;
}

.grid-stack-item-content.sol .widget-liquid-staking.ls-view-data .stake-view-toggle {
	background-color: #8647d1;
}

.grid-stack-item-content.sol ul.toggle li {
	background: linear-gradient(0deg, rgba(109, 62, 149, 0.25) 0%, rgba(182, 130, 234, 0.25) 100%);
}

.grid-stack-item-content.sol ul.toggle li.active {
	background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
	border-top: none;
}

.grid-stack-item-content.sol ul.toggle li:hover {
	background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
	border-top: none;
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.sol .dropdown-content {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, rgb(113, 69, 184) 0%, rgb(78, 37, 137) 100%);
}

.grid-stack-item-content.sol .dropdown-content::after {
	border-top-color: #7f55c1;
}

#widgets .grid-stack-item-content.sol .dropdown-content input.search.new {
	border: none;
	background-color: #5368b7;
	box-shadow: none;
	background-image:
		url("../img/icon/search1.svg"), linear-gradient(180deg, #452f6c 0%, #452f6c 100%) !important;
}

.grid-stack-item-content.sol .list .list-item.secondary {
	background-color: #754bb7;
}

.grid-stack-item-content.sol .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.sol .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
    border-top-color: #754bb7;
}

.grid-stack-item-content.sol .widget-asset-price .dropdown-content .list-scrollable {
	background-image: linear-gradient(180deg, #452f6c 0%, #452f6c 100%) !important;
}

/*
*
* Liquid staking and asset inputs
*
*/

.grid-stack-item-content.sol .stake-actions-container {
	background-image: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
	background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.sol .stake-chart-metadata {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
	background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.sol .widget-liquid-staking .lsd-chart-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
	background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.sol .input-asset .asset {
	border: 2px solid #452f6c;
	background-color: #452f6c;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sol .input-asset input[type="text"] {
	border: 2px solid #452f6c;
	background-color: #452f6c;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sol .ls-connect-inline {
	color: #e9d4ff;
}

.grid-stack-item-content.sol .input-asset .asset::after {
	content: url(../img/icon/arrow-down-sol.svg);
}

.grid-stack-item-content.sol .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, rgb(113, 69, 184) 0%, rgb(78, 37, 137) 100%);
}

.grid-stack-item-content.sol .instant-amounts li {
	background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
}

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.sol .widget-asset-price .price-chart-metadata {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background-color: rgba(255, 255, 255, 0.05);
}

/*
*
* Tooltips
*
*/

.grid-stack-item-content.sol .lwc-tooltip {
	background: rgba(117, 71, 159, 0.95);
	background-image: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.25) 0%,
		rgb(255, 255, 255, 0) 100%
	);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/*
*
* Vault widget
*
*/

.grid-stack-item-content.sol .widget-vault {
  --vault-input-accent: #b682ea;
  --vault-bar-color: rgba(140, 80, 200, 0.85);
  --chain-badge-bg-field: #452f6c;   /* exact */
  --chain-badge-bg-row: #452f6c;

  /* Bar gradient — top = lighter purple (pill top), bottom = darker. */
  --vault-bar-start: rgb(182, 130, 234);
  --vault-bar-end:   rgb(109, 62, 149);

  /* Tooltip — matches the SOL .widget-menu-dropdown solid purple base. */
  --vault-tooltip-base:   rgba(117, 71, 159, 0.96);
  --vault-tooltip-tint:   rgb(182, 130, 234);
  --vault-tooltip-border: rgba(182, 130, 234, 0.45);
}

/* Active-pill gradient applies to every toggle in the widget, not just
   the deposit/withdraw mode pills. */
.grid-stack-item-content.sol .widget-vault ul.toggle li.active {
  background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%) !important;
  color: #ffffff !important;
}

.grid-stack-item-content.sol .widget-vault .vault-actions-container {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
}

.grid-stack-item-content.sol .widget-vault .vault-actions-container .input-asset .asset,
.grid-stack-item-content.sol .widget-vault .vault-actions-container .input-asset input[type="text"] {
  border: 2px solid #452f6c;
  background-color: #452f6c;
  box-shadow: none;
  color: #ffffff;
}

.grid-stack-item-content.sol .widget-vault .input-asset .asset::after {
  content: url(../img/icon/arrow-down-sol.svg);
}

.grid-stack-item-content.sol .widget-vault .vault-input-footer {
  background-color: #3a275c;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.grid-stack-item-content.sol .widget-vault .vw-connect,
.grid-stack-item-content.sol .widget-vault .vw-connect-inline {
  color: #e9d4ff;
}

.grid-stack-item-content.sol .widget-vault .vault-chart-metadata,
.grid-stack-item-content.sol .widget-vault .vault-overview-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
}

.grid-stack-item-content.sol .widget-vault .vault-overview-card:hover {
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.grid-stack-item-content.sol .widget-vault .instant-amounts {
  background: linear-gradient(180deg, rgb(113, 69, 184) 0%, rgb(78, 37, 137) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
}

.grid-stack-item-content.sol .widget-vault .instant-amounts li {
  background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.sol .widget-vault .vault-view-toggle {
  background-color: #8647d1;
}

.grid-stack-item-content.sol .widget-vault .vault-selector-trigger,
.grid-stack-item-content.sol .widget-vault .vault-header-trigger {
    color: #e9d4ff;
}

.grid-stack-item-content.sol .widget-vault .vault-brand-segmented__option.is-active {
  background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
  color: #ffffff;
}

.grid-stack-item-content.sol .widget-vault .vault-chain-pill::after {
  content: url(../img/icon/arrow-down-sol.svg);
}

.grid-stack-item-content.sol .widget-vault .dropdown-content .list-scrollable {
	background: #452f6c !important;
}

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */

/* ==========================================================================
	SUI
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.sui {
	background-image:
		url("../img/feature/sui-background.svg"),
		linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
	background-blend-mode: soft-light, normal;
	background-size: 90%, cover;
	background-position: 250% center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

.widget-preview-shell .grid-stack-item-content.sui {
	background-image:
		url("../img/feature/sui-background.svg"),
		linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
	background-blend-mode: soft-light, normal;
	background-size: 90%, cover;
	background-position: 250% center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.sui::after {
	border-color: transparent #63b3ff #63b3ff transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.sui .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.sui a {
	color: #ffffff;
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.sui .widget-menu-trigger {
	background: rgba(25, 118, 185, 0.25);
	border: none;
	box-shadow: none;
}

.grid-stack-item-content.sui .widget-menu-dropdown {
	background: rgba(109, 185, 240, 0.95);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.sui ul.toggle {
	-toggle-track-border: 1px solid rgba(255, 255, 255, 0.25);
	--toggle-track-bg: linear-gradient(0deg, rgb(41, 133, 194) 0%, rgb(66, 141, 192) 100%);
}

.grid-stack-item-content.sui ul.toggle li.active {
	background-image: linear-gradient(
		0deg,
		rgb(58, 172, 248) 0%,
		rgb(111, 188, 240) 100%
	) !important;
	box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.sui .button {
	background: linear-gradient(0deg, rgb(90, 180, 240) 0%, rgb(144, 211, 255) 100%);
	border-top: 1px solid #c1f0ff;
}

.grid-stack-item-content.sui .blockchain-filter-button {
	background-color: #47a9f0;
}

.grid-stack-item-content.sui .stake-view-toggle {
	background-color: #47a9f0;
}

.grid-stack-item-content.sui .widget-liquid-staking.ls-view-data .stake-view-toggle {
	background-color: #47a9f0;
}

.grid-stack-item-content.sui ul.toggle li {
	background: linear-gradient(0deg, rgba(90, 180, 240, 0.25) 0%, rgba(144, 211, 255, 0.25) 100%);
}

.grid-stack-item-content.sui ul.toggle li.active {
	background: linear-gradient(0deg, rgb(90, 180, 240) 0%, rgb(144, 211, 255) 100%);
	border-top: none;
}

.grid-stack-item-content.sui ul.toggle li:hover {
	background: linear-gradient(0deg, rgb(90, 180, 240) 0%, rgb(144, 211, 255) 100%);
	border-top: none;
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.sui .dropdown-content {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
}

#widgets .grid-stack-item-content.sui .dropdown-content input.search.new {
	border: none;
	background-color: #57aae2;
	background-image:
		url("../img/icon/search.svg"), linear-gradient(180deg, #57aae2 0%, #57aae2 100%) !important;
	box-shadow: 0px 10px 15px 0px rgba(1, 0, 42, 0.15) inset;
}

#widgets .grid-stack-item-content.sui .widget-asset-price .dropdown-content .list-scrollable {
	box-shadow: 0px 10px 15px 0px rgba(1, 0, 42, 0.15) inset;
}

.grid-stack-item-content.sui .list .list-header {
	color: #ffffff;
}

.grid-stack-item-content.sui .list .list-item.secondary {
	background-color: #41a4e5;
}

.grid-stack-item-content.sui .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.sui .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
    border-top-color: #41a4e5;
}

.grid-stack-item-content.sui .dropdown-content::after {
	border-top-color: #6ebff4;
}

.grid-stack-item-content.sui .widget-asset-price .dropdown-content .list-scrollable {
	background-image: linear-gradient(180deg, #57aae2 0%, #57aae2 100%) !important;
}

/*
*
* Liquid staking and asset inputs
*
*/

.grid-stack-item-content.sui .stake-actions-container {
	background-image: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgba(78, 162, 255, 0.95);
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
}

.grid-stack-item-content.sui .input-asset .asset {
	border: 2px solid #aadcff;
	background-color: #aadcff;
	box-shadow: none;
	color: #ffffff;
	text-shadow: 2px 2px 10px #93c3ea;
}

.grid-stack-item-content.sui .input-asset input[type="text"] {
	border: 2px solid #aadcff;
	background-color: #aadcff;
	box-shadow: none;
	color: #ffffff;
	text-shadow: 2px 2px 10px #93c3ea;
}

.grid-stack-item-content.sui .ls-connect-inline {
	color: #a3eeff;
}

.grid-stack-item-content.sui .input-asset .asset::after {
	content: url(../img/icon/arrow-down-sui.svg);
}

.grid-stack-item-content.sui .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background: rgba(109, 185, 240, 0.95);
}

.grid-stack-item-content.sui .instant-amounts li {
	background: linear-gradient(0deg, rgb(90, 180, 240) 0%, rgb(144, 211, 255) 100%);
}

.grid-stack-item-content.sui .stake-chart-metadata {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgba(78, 162, 255, 0.95);
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
}

.grid-stack-item-content.sui .widget-liquid-staking .lsd-chart-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgba(78, 162, 255, 0.95);
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
}

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.sui .widget-asset-price .apw-meta-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgba(78, 162, 255, 0.95);
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
}

.grid-stack-item-content.sui .widget-asset-price .apw-sentiment-dot {
	background: rgb(73, 178, 244);
}

.grid-stack-item-content.sui .widget-asset-price .is-pos .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: inherit;
}

.grid-stack-item-content.sui  .widget-asset-price .is-neg .apw-summary-change-value {
	color: #ffffff;
	-webkit-text-fill-color: initial;
}

/*
*
* Tooltips
*
*/

.grid-stack-item-content.sui .lwc-tooltip {
	background: rgba(109, 185, 240, 0.2);
	background-image: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.25) 0%,
		rgb(255, 255, 255, 0) 100%
	);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(5px);
}

/*
*
* Vault widget
*
*/

.grid-stack-item-content.sui .widget-vault {
  --vault-input-accent: #ffffff;
  --vault-bar-color: rgba(15, 80, 145, 0.85);
  --chain-badge-bg-field: #2e7fb8;
  --chain-badge-bg-row: #57aae2;

  --vault-bar-start: rgb(46, 127, 184);
  --vault-bar-end:   rgb(20, 88, 138);

  /* Tooltip — matches the SUI .widget-menu-dropdown light-blue base.
     White border keeps continuity with the existing SUI brand tooltip. */
  --vault-tooltip-base:   rgba(109, 185, 240, 0.95);
  --vault-tooltip-tint:   rgba(255, 255, 255, 1);
  --vault-tooltip-border: rgba(255, 255, 255, 0.5);
}

/* Active-pill gradient applies to every toggle in the widget. !important
   wins over the global SUI ul.toggle li.active rule (also !important). */
.grid-stack-item-content.sui .widget-vault ul.toggle li.active {
  background: linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.sui .widget-vault .vault-actions-container {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0px 3px 65px 0px rgb(20, 90, 160);
}

.grid-stack-item-content.sui .widget-vault .vault-actions-container .input-asset .asset,
.grid-stack-item-content.sui .widget-vault .vault-actions-container .input-asset input[type="text"] {
  border: 2px solid #2e7fb8;
  background-color: #2e7fb8;
  box-shadow: none;
  color: #ffffff;
}

.grid-stack-item-content.sui .widget-vault .input-asset .asset::after {
  content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.sui .widget-vault .vault-input-footer {
  background-color: #266a9c;
  border-top-color: rgba(255, 255, 255, 0.25);
}

.grid-stack-item-content.sui .widget-vault .vault-selector-trigger,
.grid-stack-item-content.sui .widget-vault .vault-header-trigger,
.grid-stack-item-content.sui .widget-vault .vault-header-trigger__name,
.grid-stack-item-content.sui .widget-vault .vw-connect,
.grid-stack-item-content.sui .widget-vault .vw-connect-inline {
    color: #a3eeff;
}

.grid-stack-item-content.sui .widget-vault .vault-chart-metadata,
.grid-stack-item-content.sui .widget-vault .vault-overview-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0px 3px 65px 0px rgb(20, 90, 160);
}

.grid-stack-item-content.sui .widget-vault .vault-overview-card:hover {
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.grid-stack-item-content.sui .widget-vault .instant-amounts {
  background: rgb(58, 130, 200);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0px 3px 65px 0px rgb(20, 90, 160);
}

.grid-stack-item-content.sui .widget-vault .instant-amounts li {
  background: linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.sui .widget-vault .vault-view-toggle {
  background-color: #3aacf8;
}

.grid-stack-item-content.sui .widget-vault .vault-selector-trigger,
.grid-stack-item-content.sui .widget-vault .vault-header-trigger {
    color: #ffffff;
}

/* Branding segmented — matches the active-pill gradient. Kept as its
   own rule because the option is a <button>, not <li>. */
.grid-stack-item-content.sui .widget-vault .vault-brand-segmented__option.is-active {
  background: linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
  color: #ffffff;
}

.grid-stack-item-content.sui .widget-vault .vault-chain-pill::after {
  content: url(../img/icon/arrow-down-sui.svg);
}

.grid-stack-item-content.sui .widget-vault .dropdown-content .list-scrollable {
	background: #57aae2 !important;
}


/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */


/* ==========================================================================
   weETH (vault brand)
========================================================================== */

.grid-stack-item-content.weeth {
	background-color: #7062E7;
	background-image: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%);
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
}

.grid-stack-item-content.weeth::after {
	border-color: transparent #7062E7 #7062E7 transparent;
}

.grid-stack-item-content.weeth a {
	color: #e3d9ff;
}

.grid-stack-item-content.weeth .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.weeth .list .list-item.secondary {
	background-color: #5a4dbf;
}

.grid-stack-item-content.weeth .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.weeth .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #5a4dbf;
}

.grid-stack-item-content.weeth .widget-vault {
	--vault-input-accent: #9c54eb;
    --chain-badge-bg-field: #4a3da0;
    --chain-badge-bg-row:   #4a3da0;
	--vault-bar-start: rgb(40, 28, 100);
    --vault-bar-end:   rgb(25, 15, 65);
	--vault-tooltip-base:   rgba(112, 98, 231, 0.96);
	--vault-tooltip-tint:   rgb(156, 84, 235);
	--vault-tooltip-border: rgba(156, 84, 235, 0.45);
}

.grid-stack-item-content.weeth .widget-vault ul.toggle li.active {
	background: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%) !important;
	color: #ffffff !important;
	box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.weeth .widget-vault .vault-actions-container {
	background-image: none;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(74, 61, 160);
}

.grid-stack-item-content.weeth .widget-vault .vault-actions-container .input-asset .asset,
.grid-stack-item-content.weeth .widget-vault .vault-actions-container .input-asset input[type="text"] {
	border: 2px solid #4a3da0;
	background-color: #4a3da0;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.weeth .widget-vault .input-asset .asset::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.weeth .widget-vault .vault-input-footer {
	background-color: #3a2d8c;
	border-top-color: rgba(255, 255, 255, 0.2);
}

.grid-stack-item-content.weeth .widget-vault .vw-connect,
.grid-stack-item-content.weeth .widget-vault .vw-connect-inline {
	color: #e3d9ff;
}

.grid-stack-item-content.weeth .widget-vault .vault-chart-metadata {
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(74, 61, 160);
}

.grid-stack-item-content.weeth .widget-vault .vault-overview-card {
	background-color: transparent;
    box-shadow: none;
}

.grid-stack-item-content.weeth .widget-vault .vault-overview-card:hover {
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.grid-stack-item-content.weeth .widget-vault .instant-amounts {
	background: rgb(90, 77, 191);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(74, 61, 160);
}

.grid-stack-item-content.weeth .widget-vault .instant-amounts li {
	background: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.weeth .widget-vault .vault-view-toggle {
	background-color: #5a4dbf;
}

.grid-stack-item-content.weeth .widget-vault .vault-brand-segmented__option.is-active {
	background: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%);
	color: #ffffff;
}

.grid-stack-item-content.weeth .widget-vault .dropdown-content .list-scrollable {
	background: #4a3da0 !important;
}

.grid-stack-item-content.weeth .dropdown-content {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%);
}
.grid-stack-item-content.weeth .dropdown-content::after {
    border-top-color: rgb(112, 98, 231);
}
#widgets .grid-stack-item-content.weeth .dropdown-content input.search.new {
    border: none;
    background-color: #4a3da0;
    box-shadow: none;
    background-image:
        url("../img/icon/search.svg"),
        linear-gradient(180deg, #4a3da0 0%, #4a3da0 100%) !important;
}

.grid-stack-item-content.weeth .widget-menu-trigger {
    background: rgba(74, 61, 160, 0.6);
    border: none;
    box-shadow: none;
}
.grid-stack-item-content.weeth .widget-menu-dropdown {
    background: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%);
    border-color: rgba(255, 255, 255, 0.25);
}
.grid-stack-item-content.weeth .widget-menu-switch-input:checked + .widget-menu-switch {
    background: linear-gradient(90deg, #7062e7, #9c54eb);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.grid-stack-item-content.weeth .button {
    background: linear-gradient(135deg, rgb(47, 179, 247) 0%, rgb(156, 84, 235) 100%);
    border-top: 1px solid #c8b8ff;
}

/* ==========================================================================
   wstETH (vault brand)
========================================================================== */

.grid-stack-item-content.wsteth {
	background-color: #0078cc;
	background-image: linear-gradient(180deg, rgb(102, 200, 255) 0%, rgb(0, 122, 204) 100%);
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
}

.grid-stack-item-content.wsteth::after {
	border-color: transparent #0078cc #0078cc transparent;
}

.grid-stack-item-content.wsteth a {
	color: #cce8ff;
}

.grid-stack-item-content.wsteth .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.wsteth .list .list-item.secondary {
	background-color: #1a78bd;
}

.grid-stack-item-content.wsteth .list .list-item.parent + .list-item.secondary .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.wsteth .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #1a78bd;
}

.grid-stack-item-content.wsteth .widget-vault {
	--vault-input-accent: #66c8ff;
    --chain-badge-bg-field: #1a6cb0;
    --chain-badge-bg-row:   #1a6cb0;
	--vault-bar-start: rgb(8, 60, 100);
    --vault-bar-end:   rgb(4, 35, 70);
	--vault-tooltip-base:   rgba(0, 122, 204, 0.96);
	--vault-tooltip-tint:   rgb(102, 200, 255);
	--vault-tooltip-border: rgba(102, 200, 255, 0.45);
}

.grid-stack-item-content.wsteth .widget-vault ul.toggle li.active {
	background: linear-gradient(180deg, rgb(102, 200, 255) 0%, rgb(0, 122, 204) 100%) !important;
	color: #ffffff !important;
	box-shadow: 0px 10px 25px 0px rgba(1, 0, 42, 0.35) !important;
}

.grid-stack-item-content.wsteth .widget-vault .vault-actions-container {
	background-image: none;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(20, 90, 160);
}

.grid-stack-item-content.wsteth .widget-vault .vault-actions-container .input-asset .asset,
.grid-stack-item-content.wsteth .widget-vault .vault-actions-container .input-asset input[type="text"] {
	border: 2px solid #1a6cb0;
	background-color: #1a6cb0;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.wsteth .widget-vault .input-asset .asset::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.wsteth .widget-vault .vault-input-footer {
	background-color: #155a96;
	border-top-color: rgba(255, 255, 255, 0.2);
}

.grid-stack-item-content.wsteth .widget-vault .vw-connect,
.grid-stack-item-content.wsteth .widget-vault .vw-connect-inline {
	color: #cce8ff;
}

.grid-stack-item-content.wsteth .widget-vault .vault-chart-metadata {
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(20, 90, 160);
}

.grid-stack-item-content.wsteth .widget-vault .vault-overview-card {
	background-color: transparent;
    box-shadow: none;
}

.grid-stack-item-content.wsteth .widget-vault .vault-overview-card:hover {
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.grid-stack-item-content.wsteth .widget-vault .instant-amounts {
	background: rgb(46, 127, 184);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0px 3px 65px 0px rgb(20, 90, 160);
}

.grid-stack-item-content.wsteth .widget-vault .instant-amounts li {
	background: linear-gradient(0deg, rgb(0, 122, 204) 0%, rgb(102, 200, 255) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-stack-item-content.wsteth .widget-vault .vault-view-toggle {
	background-color: #1a78bd;
}

.grid-stack-item-content.wsteth .widget-vault .vault-brand-segmented__option.is-active {
	background: linear-gradient(180deg, rgb(102, 200, 255) 0%, rgb(0, 122, 204) 100%);
	color: #ffffff;
}

.grid-stack-item-content.wsteth .widget-vault .dropdown-content .list-scrollable {
	background: #1a6cb0 !important;
}

.grid-stack-item-content.wsteth .dropdown-content {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, rgb(102, 200, 255) 0%, rgb(0, 122, 204) 100%);
}
.grid-stack-item-content.wsteth .dropdown-content::after {
    border-top-color: rgb(102, 200, 255);
}
#widgets .grid-stack-item-content.wsteth .dropdown-content input.search.new {
    border: none;
    background-color: #1a6cb0;
    box-shadow: none;
    background-image:
        url("../img/icon/search.svg"),
        linear-gradient(180deg, #1a6cb0 0%, #1a6cb0 100%) !important;
}

.grid-stack-item-content.wsteth .widget-menu-trigger {
    background: rgba(0, 92, 153, 0.6);
    border: none;
    box-shadow: none;
}
.grid-stack-item-content.wsteth .widget-menu-dropdown {
    background: linear-gradient(180deg, rgb(102, 200, 255) 0%, rgb(0, 122, 204) 100%);
    border-color: rgba(255, 255, 255, 0.25);
}
.grid-stack-item-content.wsteth .widget-menu-switch-input:checked + .widget-menu-switch {
    background: linear-gradient(90deg, #00a3ff, #66c8ff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.grid-stack-item-content.wsteth .button {
    background: linear-gradient(180deg, rgb(102, 200, 255) 0%, rgb(0, 122, 204) 100%);
    border-top: 1px solid #99d6ff;
}

/* ==========================================================================
	XLM
========================================================================== */

/*
*
* Brand shell and chart variables
*
*/

.grid-stack-item-content.xlm {
	background-image:
		url("../img/feature/xlm-background.svg"),
		linear-gradient(0deg, rgb(19, 19, 19) 0%, rgb(33, 33, 33) 100%);
	background-blend-mode: soft-light, normal;
	background-size: 70%, cover;
	background-position:
		175px center,
		center;
	background-repeat: no-repeat, no-repeat;
	--apy-chart-top: rgba(255, 255, 255, 0.35);
	--apy-chart-bottom: rgba(255, 255, 255, 0.15);
	--apy-chart-line: rgba(255, 255, 255, 0.9);
	--apy-chart-label-bg: rgba(255, 255, 255, 0.85);
	--apy-chart-label-text: #ffffff;
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

.widget-preview-shell .grid-stack-item-content.xlm {
	--apy-chart-border: rgba(255, 255, 255, 0.28);
	--apy-chart-text: rgba(255, 255, 255, 0.92);
	--apy-chart-text-candle: rgba(255, 255, 255, 0.92);
}

/*
*
* Resize handle accent
*
*/

.grid-stack-item-content.xlm::after {
	border-color: transparent rgb(63, 63, 63) rgb(63, 63, 63) transparent;
}

/*
*
* Text, links, and arrows
*
*/

.grid-stack-item-content.xlm .dropdown::after {
	content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.xlm a {
	color: rgb(253, 218, 36);
}

/*
*
* Context menu
*
*/

.grid-stack-item-content.xlm .widget-menu-trigger {
	background: rgb(41, 41, 41);
}

.grid-stack-item-content.xlm .widget-menu-dropdown {
	background-image: linear-gradient(0deg, rgb(24, 24, 24) 0%, rgb(33, 33, 33) 100%);
	border-color: rgb(41, 41, 41);
	box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.35);
}

/*
*
* Buttons and segmented controls
*
*/

.grid-stack-item-content.xlm ul.toggle li {
	background-color: #134563;
	background-image: linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(41, 41, 41) 100%);
	background-size: 150%;
	box-shadow: 0px 10px 10px 0px rgba(1, 0, 42, 0.01);
	transition: background-image 0.3s ease;
}

.grid-stack-item-content.xlm ul.toggle li.active {
	color: rgb(15, 15, 15);
	background-image: linear-gradient(0deg, rgb(253, 218, 36) 0%, rgb(253, 218, 36) 100%);
}

.grid-stack-item-content.xlm ul.toggle li:hover {
	color: rgb(15, 15, 15);
	background-image: linear-gradient(0deg, rgb(253, 218, 36) 0%, rgb(253, 218, 36) 100%);
}

/*
*
* Dropdowns, search, and lists
*
*/

.grid-stack-item-content.xlm .dropdown-content {
	background-image: linear-gradient(0deg, rgb(19, 19, 19) 0%, rgb(33, 33, 33) 100%);
	border-color: rgb(41, 41, 41);
	box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.35);
}

.grid-stack-item-content.xlm .dropdown-content .list-scrollable {
	background-color: rgb(41, 41, 41);
	background-image: linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(41, 41, 41) 100%);
	box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15) inset;
}

#widgets .grid-stack-item-content.xlm .dropdown-content .search.new {
	background-image:
		url("../img/icon/search1.svg"), linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(41, 41, 41) 100%) !important;
	box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15) inset;
}

.grid-stack-item-content.xlm .list .list-item.secondary {
	background-color: #383838;
}

.grid-stack-item-content.xlm
	.list
	.list-item.parent
	+ .list-item.secondary
	.grid-cell:nth-of-type(1)::after {
	border-top-color: #383838;
}

.grid-stack-item-content.xlm .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #383838;
}

/*
*
* Liquid staking and asset inputs
*
*/

/* No styles yet. */

/*
*
* Asset price widget
*
*/

.grid-stack-item-content.xlm .apw-asset-trigger.apw-asset-trigger--header {
	color: #ffffff;
}

.grid-stack-item-content.xlm .widget-asset-price .price-chart-metadata {
	border: 1px solid rgba(255, 255, 255, 0.25);
}

/*
*
* Tooltips
*
*/

/* No styles yet. */

/*
*
* Miscellaneous / follow-up styling
*
*/

/* No styles yet. */

/* ==========================================================================
	Conflict Manager
	========================================================================== */

#modal-conflict-confirm .modal-content {
	background-image: url(../img/feature/background-broadcast-static.svg);
	background-size: 200%;
	background-repeat: no-repeat;
	background-position: center -400px;
}

.conflict-manager {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 18px;
	margin-bottom: 10px;
	padding: 15px 25px;
	border: 1px solid rgba(255, 123, 123, 0.5);
	border-radius: 25px;
	background-color: #0c2a4d;
	background-image: linear-gradient(171deg, rgba(255, 123, 123, 0.18) 0%, rgba(255, 123, 123, 0) 50%);
	background-size: 150%;
	position: relative;
	overflow: visible;
	z-index: 5;
}

.conflict-manager.hide {
	display: none !important;
}

.conflict-manager__copy {
	flex: 0 1 380px;
	min-width: 240px;
	display: grid;
	gap: 3px;
}

.conflict-manager__title,
.conflict-manager__message {
	margin: 0;
}

.conflict-manager__title {
	color: #ffffff;
	font-family: "tex-gyre-adventor-bold", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.2;
}

.conflict-manager__message {
	color: rgba(255, 255, 255, 0.68);
	font-size: 12px;
	line-height: 1.35;
}

.conflict-versions {
	--conflict-version-gutter: 5px;
	--conflict-keep-overhang: 13px; /* Half of the 26px Keep button */

	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 404px;
	min-width: 404px;
	max-width: 100%;
	box-sizing: border-box;

	/*
	 * Extend the scrollable clipping area upwards for the Keep button,
	 * then pull the container back up so the capsules still have an
	 * apparent 5px gutter above and below.
	 */
	padding:
		calc(var(--conflict-version-gutter) + var(--conflict-keep-overhang))
		var(--conflict-version-gutter)
		var(--conflict-version-gutter);

	margin-top: calc(-1 * var(--conflict-keep-overhang));

	overflow-x: auto;
	overflow-y: hidden;
	scroll-padding-inline: 12px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.conflict-versions::-webkit-scrollbar {
	display: none;
}

.conflict-version-wrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 184px;
	width: 184px;
	z-index: 0;
}

.conflict-version-wrap.is-active {
	z-index: 1;
}

.conflict-version {
	appearance: none;
	position: relative;
	display: inline-grid;
	grid-template-rows: auto 28px;
	align-items: center;
	justify-items: center;
	gap: 7px;
	flex: 0 0 auto;
	width: 184px;
	min-height: 78px;
	box-sizing: border-box;
	padding: 20px 5px 5px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.045);
	color: #ffffff;
	font: inherit;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(1, 0, 42, 0.1);
	transition:
		background 140ms ease,
		border-color 140ms ease,
		box-shadow 140ms ease,
		transform 140ms ease;
}

.conflict-version:hover {
	background: rgba(255, 255, 255, 0.075);
}

.conflict-version-wrap.is-active .conflict-version {
	background: rgba(44, 169, 183, 0.18);
	border-color: rgba(44, 169, 183, 1);
	box-shadow: 0 10px 24px rgba(1, 0, 42, 0.18);
}

.conflict-version:focus-visible {
	outline: 2px solid rgba(44, 169, 183, 1);
	outline-offset: 2px;
}

.conflict-version__timestamp {
	font-size: 12px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.88);
	white-space: nowrap;
}

.conflict-version__chains {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 28px;
	pointer-events: none;
}

.conflict-version__chain {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
}

.conflict-version__chain img {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.conflict-version-action {
	appearance: none;
	position: absolute;
	top: -0;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	color: #ffffff;
	font-family: "tex-gyre-adventor-bold", system-ui, sans-serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 22px rgba(1, 0, 42, 0.32);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) scale(0.96);
	pointer-events: none;
	cursor: pointer;
	z-index: 6;
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		filter 140ms ease,
		visibility 0s linear 140ms;
}

.conflict-version-confirm {
	left: 50%;
	width: auto;
	min-width: 76px;
	height: 26px;
	padding: 0 15px;
	background: linear-gradient(0deg, rgb(39,153,166) 0%, rgb(46,181,196) 100%);
	font-size: 12px;
}

/* The active conflict always shows its centred confirmation button. */
.conflict-version-wrap.is-active .conflict-version-confirm {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
	transition-delay: 0s;
}

.conflict-version-action:hover {
	filter: brightness(1.05);
}

.conflict-version-action:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.conflict-version,
	.conflict-version-action {
		transition: none !important;
	}
}

/* ==========================================================================
	Widget Manager (Spaces)
	========================================================================== */

.widget-manager {
	/* original chrome */
	background: linear-gradient(135deg, rgba(32, 121, 143, 1) 0%, rgba(19, 70, 109, 1) 100%);
	border: 1px solid #1d4c75;
	border-radius: 25px;
	margin-bottom: 11px;
	background-color: #0c2a4d;
	background-image: linear-gradient(171deg, rgba(44, 169, 183, 0.37) 0%, rgba(44, 169, 183, 0) 50%);
	background-size: 150%;

	/* layout */
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;

	/* popover previews */
	position: relative;
	overflow: visible;
	z-index: 4;
}

/* Allow the dashboard content column to shrink inside the outer flex grid.
   Without this, the no-wrap Spaces row becomes the column's minimum width and
   expands the page before .wm-pages gets a chance to scroll. */
#widgets .wrapper > .grid-cell:last-child {
	min-width: 0;
}

/* Pages strip */
.widget-manager > .button {
	flex: 0 0 auto;
}

.wm-pages {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 0 0;
	margin-top: -10px;

	/* Keep the Spaces strip horizontal-only once its contents exceed the rail. */
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.wm-pages::-webkit-scrollbar {
	display: none;
}

/* Wrapper so we can overlay a real delete button without nesting buttons */
.wm-space-wrap {
	position: relative;
	display: inline-flex;
	z-index: 0;
}

/* “Space” chip button */
.wm-space {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;

	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0;

	padding: 8px 12px;
	border-radius: 999px;
}

.wm-space:hover {
	background: rgba(255, 255, 255, 0.07);
}

.wm-space.is-active {
	background: rgba(44, 169, 183, 0.18);
	border-color: rgba(44, 169, 183, 1);
}

/* Label */
.wm-space-name {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	line-height: 1;
}

/* Thumbnail becomes a popover (removed from layout) */
.wm-space-thumb {
	width: 170px;
	height: 70px;
	border-radius: 10px;
	border: 1px solid rgba(44, 169, 183, 1);
	background: rgb(26, 68, 99);
	box-shadow: 0 12px 30px rgba(1, 0, 42, 0.25);
	overflow: hidden;
	padding: 6px;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: 6px;
	gap: 2px;
	position: fixed;
	left: var(--wm-thumb-left, -9999px);
	top: var(--wm-thumb-top, -9999px);
	transform: translateX(-50%) translateY(-6px) scale(0.96);
	transform-origin: top center;
	opacity: 0;
	pointer-events: none;
	z-index: 1000;
	transition:
		opacity 140ms ease,
		transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When a real screenshot is available, show it instead of the layout grid */
.wm-space-thumb.has-shot {
	display: block;
	padding: 0;
}

.wm-space-thumb.has-shot .wm-space-thumb-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover; /* or "contain" if you prefer letterboxing */
	border-radius: 10px; /* matches thumb radius */
}

.wm-thumb-item {
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.16);
}

/* Active thumb outline
.wm-space.is-active .wm-space-thumb {
	outline: 2px solid rgba(44, 169, 183, 0.95);
} */

/* Add (+) preview */
.wm-space--add .wm-space-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.75);
}

/* Keep a visible "+" on the chip */
.wm-space--add .wm-space-name::before {
	content: "+";
	display: inline-block;
	margin-right: 8px;
	font-size: 14px;
	line-height: 1;
}

/* Helps the label feel centered when we give it a min-width during rename */
.wm-space-name {
	min-width: 0;
	text-align: center;
}

/* Inline rename: expand the label area in-place */
.wm-space-wrap.is-renaming {
	flex-shrink: 0; /* keep it from being squeezed while editing */
}

.wm-space-wrap.is-renaming .wm-space-name[contenteditable="true"] {
	cursor: text;
	caret-color: #fff;
	min-width: 140px;
	border-radius: 10px;
	outline: none;
	transition: min-width 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wm-space-wrap.is-renaming .wm-space-name[contenteditable="true"] {
		transition: none !important;
	}
}

/* While renaming, keep the thumbnail popover hidden (prevents weird hover/focus effects) */
.wm-space-wrap.is-renaming .wm-space-thumb {
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateX(-50%) translateY(-6px) scale(0.96) !important;
}
.wm-space-wrap.is-renaming .wm-space-edit,
.wm-space-wrap.is-renaming .wm-space-delete {
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Show popover preview on hover/focus OR during drop targeting */
.wm-space-wrap:hover .wm-space-thumb,
.wm-space-wrap:focus-within .wm-space-thumb,
.wm-space-wrap.is-drop-target .wm-space-thumb {
	opacity: 1;
	transform: translateX(-50%) translateY(0) scale(1);
	pointer-events: auto;
}

/* Ensure hovered item sits above neighbors */
.wm-space-wrap:hover,
.wm-space-wrap:focus-within,
.wm-space--add:hover,
.wm-space--add:focus-within {
	z-index: 10;
}

/* Drop target highlight */
.wm-space-wrap.is-drop-target .wm-space-thumb,
.wm-space--add.is-drop-target .wm-space-thumb {
	outline: 2px solid rgba(44, 169, 183, 0.95);
	outline-offset: 2px;
}

.wm-space-wrap.is-drop-target .wm-space,
.wm-space--add.is-drop-target {
	background: rgba(44, 169, 183, 0.18);
	border-color: rgba(44, 169, 183, 0.85);
}

.wm-space-wrap.is-dragging {
	opacity: 0.65;
}

/* ==========================================================================
	Widget Manager onboarding (shown before first widget is added)
	========================================================================== */

.wm-pages--onboarding {
	align-items: center;
}

/* The hint pill that sits where Spaces chips normally appear */
.wm-onboarding {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	line-height: 1;
	position: relative;
	white-space: nowrap;
}

.wm-onboarding__arrow {
	font-size: 18px;
	line-height: 1;
	transform: translateY(-1px);
	opacity: 0.95;
}

/* --------------------------------------------------------------------------
	Page delete (hover “×”)
	-------------------------------------------------------------------------- */

.wm-space-delete {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 123, 123, 1);
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 6;
	padding-bottom: 3px;
	opacity: 0;
	transform: scale(0.92);
	pointer-events: none;
	box-shadow: 0px 20px 25px 0px rgba(1, 0, 42, 0.25);
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		filter 140ms ease;
}

/* Show on hover (and keyboard focus) */
.wm-space-wrap:hover .wm-space-delete,
.wm-space-wrap:focus-within .wm-space-delete,
.wm-space-delete:hover,
.wm-space-delete:focus-visible {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.wm-space-delete:hover {
	filter: brightness(1.05);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wm-space-thumb,
	.wm-space-delete {
		transition: none !important;
	}
}

/* --------------------------------------------------------------------------
	Space edit
	-------------------------------------------------------------------------- */

.wm-space-edit {
	position: absolute;
	top: -10px;
	left: -10px;

	width: 20px;
	height: 20px;
	border-radius: 999px;
	border: 0;

	background: rgba(44, 169, 183, 1);
	color: #fff;

	display: flex;
	display: none;
	align-items: center;
	justify-content: center;

	cursor: pointer;
	z-index: 6;

	opacity: 0;
	transform: scale(0.92);
	pointer-events: none;

	box-shadow: 0px 20px 25px 0px rgba(1, 0, 42, 0.25);
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		filter 140ms ease;
}

.wm-space-edit svg {
	width: 12px;
	height: 12px;
	fill: rgba(255, 255, 255, 0.95);
}

.wm-space-wrap:hover .wm-space-edit,
.wm-space-wrap:focus-within .wm-space-edit,
.wm-space-edit:hover,
.wm-space-edit:focus-visible {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.wm-space-edit:hover {
	filter: brightness(1.05);
}

.wm-space-edit:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

/* ==========================================================================
	Widget catalogue (sheet)
	========================================================================== */

#widget-catalogue {
	position: fixed;
	inset: 0;
	z-index: 5000;

	/* Keep it in the render tree so transitions can run */
	display: block;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.3s;

	/* JS can override this (SHEET.style.setProperty('--wc-preview-w', '...px')) */
	--wc-preview-w: 380px;
}

#widget-catalogue[aria-hidden="false"] {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

/* Backdrop */
#widget-catalogue .wc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.3s ease;
}

#widget-catalogue[aria-hidden="false"] .wc__backdrop {
	opacity: 1;
}

/* Panel */
#widget-catalogue .wc__panel {
	position: absolute;
	left: 50%;
	bottom: 0;

	width: min(1280px, 94vw);
	height: min(86vh, 900px);

	transform: translateX(-50%) translateY(100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform;

	display: flex;
	flex-direction: column;
	overflow: hidden;

	border-radius: 25px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;

	background-color: #0c2a4d;
	background-image: linear-gradient(171deg, rgba(44, 169, 183, 0.37) 0%, rgba(44, 169, 183, 0) 50%);
	background-size: 150%;

	margin-bottom: 0;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

#widget-catalogue[aria-hidden="false"] .wc__panel {
	transform: translateX(-50%) translateY(0);
}

/* Header */
#widget-catalogue .wc__header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;

	padding: 16px 18px;
	z-index: 5;

	border-bottom: 1px solid rgba(255, 255, 255, 0.06);

	box-shadow:
		0 2.8px 2.2px rgba(0, 0, 0, 0.017),
		0 6.7px 5.3px rgba(0, 0, 0, 0.024),
		0 12.5px 10px rgba(0, 0, 0, 0.03),
		0 22.3px 17.9px rgba(0, 0, 0, 0.036),
		0 41.8px 33.4px rgba(0, 0, 0, 0.043),
		0 100px 80px rgba(0, 0, 0, 0.06);
}

#widget-catalogue .wc__search {
	width: 100%;
	padding: 10px 12px;

	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);

	color: #fff;
	font-family: "tex-gyre-adventor-regular";
	font-weight: normal;
	outline: none;
}

#widget-catalogue .wc__close {
	background: transparent;
	color: #fff;
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

/* Body */
#widget-catalogue .wc__body {
	height: 100%;
	min-height: 0;
	display: grid;
	gap: 0;
	grid-template-columns: 240px minmax(0, 1fr);
}

/* Make sure both columns can scroll correctly */
#widget-catalogue .widget-navigation,
#widget-catalogue .wc__grid {
	min-height: 0;
}

/* Prevent the grid column from forcing overflow (important for CSS grid) */
#widget-catalogue .wc__grid {
	min-width: 0;
}

/* Categories rail */
#widget-catalogue .widget-navigation {
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	overflow: auto;
	padding: 12px 0;
}

#widget-catalogue .widget-navigation .widget-categories {
	list-style: none;
	margin: 0;
	padding: 0;
}

#widget-catalogue .widget-categories li {
	padding: 10px 16px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.75);
}

#widget-catalogue .widget-categories li.is-active {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	#widget-catalogue,
	#widget-catalogue .wc__backdrop,
	#widget-catalogue .wc__panel {
		transition: none !important;
	}
}

/* --------------------------------------------------------------------------
	Boutique widget catalogue layout
	-------------------------------------------------------------------------- */

/* Grid becomes a vertical list of rows */
#widget-catalogue .wc__grid {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 18px 18px 30px;
	overflow: auto;

	/* New styles */
	padding-right: 0;
}

/* One widget per row */
#widget-catalogue .wc-row {
	display: grid;
	grid-template-columns: minmax(240px, 325px) minmax(0, 1fr);
	gap: 25px;
	align-items: center;
	padding: 20px 0 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: -20px;
	margin-bottom: 0;
}

#widget-catalogue .wc-row:last-child {
	border-bottom: 0;
	padding-bottom: 8px;
}

#widget-catalogue .wc-row__meta {
	min-width: 0;
}

#widget-catalogue .wc-row__title {
	margin: 0 0 12px;
	font-size: 34px;
	line-height: 1.05;
	color: #fff;
}

#widget-catalogue .wc-row__desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.5;
	font-size: 14px;
	max-width: 42ch;
}

#widget-catalogue .wc-row__tags {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#widget-catalogue .wc-tag {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
}

/* Right side: horizontally scrollable rail */
#widget-catalogue .wc-row__rail {
	min-width: 0;
	position: relative;
}

#widget-catalogue .wc-row__previews {
	display: flex;
	gap: 20px;

	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;

	padding: 10px 54px 16px;
	scroll-padding: 0 54px;

	border-radius: 15px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);

	min-width: 0;

	/* Disabled (explicitly) */
	scroll-snap-type: none !important;

	/* New styles */
	padding-top: 0;
	padding-bottom: 0;
	border-radius: 0;
	background: none;
	border: none;
}

#widget-catalogue .wc-row__previews::-webkit-scrollbar {
	height: 10px;
}

#widget-catalogue .wc-row__previews::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
}

#widget-catalogue .wc-row__previews::-webkit-scrollbar-track {
	background: transparent;
}

/* Individual preview cell */
#widget-catalogue .wc-preview {
	position: relative;
	flex: 0 0 auto;
	padding-top: 18px; /* room for the floating + button */
	scroll-snap-align: none !important;
}

/* Scaled frame (layout size) */
#widget-catalogue .wc-preview__frame {
	width: var(--frame-w, 380px);
	height: var(--frame-h, 280px);
	position: relative;
	border-radius: 25px;
}

/* The “real” preview is absolutely positioned and scaled down */
#widget-catalogue .wc-preview__frame .widget-preview-shell.grid-stack {
	margin: 0 !important;
	position: absolute;
	top: 0;
	left: 0;

	width: var(--preview-w, 380px);
	height: var(--preview-h, 280px);

	transform: scale(var(--scale, 1));
	transform-origin: top left;
}

/* Preview host: explicit size from JS:
	style="--preview-w:XXXpx; --preview-h:YYYpx" */
#widget-catalogue .widget-preview-shell.grid-stack {
	margin: 0 !important; /* neutralize .grid-stack { margin: 0 -10px } */
	position: relative;

	width: min(100%, var(--preview-w, var(--wc-preview-w, 380px)));
	height: var(--preview-h, 280px);
}

/* Neutralize GridStack positioning */
#widget-catalogue .widget-preview-shell.grid-stack > .grid-stack-item {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;

	top: 0 !important;
	left: 0 !important;
	transform: none !important;
	margin: 0 !important;
}

/* Make the preview “cell” fill and behave like a real dashboard cell */
#widget-catalogue .widget-preview-shell.grid-stack > .grid-stack-item > .grid-stack-item-content {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;

	box-sizing: border-box;

	/* Keep your widget chrome */
	padding: 25px;
	border-radius: 25px;

	/* Container queries should behave like the dashboard */
	container-type: inline-size;

	/* Avoid accidentally becoming a flex container */
	display: block !important;

	/* Matches the shadow used in previews */
	box-shadow:
		0 2.8px 2.2px rgba(0, 0, 0, 0.017),
		0 6.7px 5.3px rgba(0, 0, 0, 0.024),
		0 12.5px 10px rgba(0, 0, 0, 0.03),
		0 22.3px 17.9px rgba(0, 0, 0, 0.036),
		0 41.8px 33.4px rgba(0, 0, 0, 0.043),
		0 100px 80px rgba(0, 0, 0, 0.06);
}

/* Widget shell fills the preview */
#widget-catalogue .widget-preview-shell .bal-widget {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

#widget-catalogue .widget-preview-shell .bal-widget .widget-content {
	min-width: 0;
	min-height: 0;
}

/* Common flex/grid overflow guard (Trade benefits from this) */
#widget-catalogue .widget-preview-shell .grid,
#widget-catalogue .widget-preview-shell .grid-cell {
	min-width: 0;
	min-height: 0;
}

/* Keep the widget menu visible but disable interaction (feels more “real”) */
#widget-catalogue .widget-preview-shell .widget-menu {
	pointer-events: none;
	opacity: 0.7;
}

#widget-catalogue .widget-preview-shell .widget-menu-dropdown {
	display: none !important;
}

/* Size badge */
#widget-catalogue .wc-preview__badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 5;

	font-size: 11px;
	color: rgba(255, 255, 255, 0.9);

	padding: 5px 9px;
	border-radius: 999px;

	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
}

/* Floating “+” on hover/focus */
#widget-catalogue .wc-preview__add {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, 0) scale(0.92);

	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 0;

	background: rgba(44, 169, 183, 0.95);
	color: #fff;
	font-size: 22px;
	line-height: 1;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	box-shadow: 0 14px 35px rgba(1, 0, 42, 0.35);

	opacity: 0;
	pointer-events: none;
	transition:
		opacity 140ms ease,
		transform 140ms ease,
		filter 140ms ease;
	z-index: 10;
}

#widget-catalogue .wc-preview:hover .wc-preview__add,
#widget-catalogue .wc-preview:focus-within .wc-preview__add {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0) scale(1);
}

#widget-catalogue .wc-preview__add:hover {
	filter: brightness(1.04);
}

#widget-catalogue .wc-preview__add:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 3px;
}

/* Rail arrows (prev/next) */
#widget-catalogue .wc-row__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);

	width: 38px;
	height: 38px;
	border-radius: 999px;

	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.25);
	color: #fff;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	cursor: pointer;
	z-index: 25;

	backdrop-filter: blur(6px);
	box-shadow: 0 14px 35px rgba(1, 0, 42, 0.35);
}

#widget-catalogue .wc-row__nav--prev {
	left: 12px;
}

#widget-catalogue .wc-row__nav--next {
	right: 12px;
}

#widget-catalogue .wc-row__nav span {
	font-size: 22px;
	line-height: 1;
	transform: translateY(-1px);
}

#widget-catalogue .wc-row__nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

#widget-catalogue .wc-row__nav:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 3px;
}

/* Responsive: stack meta above rail if panel gets narrow */
@media (max-width: 980px) {
	#widget-catalogue .wc-row {
		grid-template-columns: 1fr;
		gap: 16px;
		align-items: start;
	}

	#widget-catalogue .wc-row__desc {
		max-width: none;
	}
}

/* ==========================================================================
	Widget defaults
	========================================================================== */

.grid-stack-item > .grid-stack-item-content {
	container-type: inline-size;
}

.widget-header {
	margin-bottom: 15px;
	z-index: 3;
}

.widget-header > .grid > .grid-cell:last-of-type {
	max-width: 50px;
}

.widget-content {
	margin-bottom: 0;
}

/* ==========================================================================
	Market interest widget styles
	========================================================================== */

/* Make the widget fill its gridstack cell */
.bal-widget.widget-market-interest {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.bal-widget.widget-market-interest .widget-header {
	flex: 0 0 auto;
}

.bal-widget.widget-market-interest .widget-content {
	flex: 1 1 auto;
	min-height: 0;
}

/* Layout: chart row grows; empty state sits below. */
.widget-market-interest .widget-content {
	display: grid;
	grid-template-rows: minmax(50px, 1fr) auto;
	gap: 12px;
	height: 100%;
	min-height: 0;
}

/* Side-by-side row inside the card */
.widget-market-interest .chart-market-interest-container > .grid {
	display: flex;
	align-items: stretch;
	height: 100%;
	min-height: 0;
}

/* Flex children may shrink */
.widget-market-interest .chart-market-interest-container .grid > .grid-cell {
	min-width: 0;
	min-height: 0;
}

/* The chart element itself stretches */
.widget-market-interest .lwc-chart {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	background: transparent !important;
}

/* Empty state */
.widget-market-interest .empty-msg {
	color: #9aa4bf;
	margin: 6px 0 0;
	display: none;
}

/* Layout */
.widget-market-interest {
	--bars: 12;
}

.widget-market-interest .chart-market-interest-container {
	position: relative;
	border-radius: 12px;
	padding: 20px;
	min-height: 180px;
	height: 100%;
	overflow: hidden;
	min-width: 0;
}

.widget-market-interest .chart-market-interest-container::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
	background-image: linear-gradient(135deg, rgb(32, 121, 143) 0%, rgb(23, 86, 120) 100%);
	opacity: 0.75;
	transition: opacity 0.3s ease;
	background-size: 100%;
}

.widget-market-interest .chart-market-interest-container::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border: 1px solid #fff;
	border-radius: 20px;
	box-sizing: border-box;
	mix-blend-mode: soft-light;
	opacity: 0.35;
}

.widget-market-interest .metadata-group {
	flex-direction: column;
}

/* Metadata */
.widget-market-interest
	.widget-content
	.chart-market-interest-container
	.grid
	> .grid-cell:last-of-type {
	max-width: 200px;
	text-align: center;
}

.widget-market-interest .market-interest-dollar {
	font-size: 30px;
}

.widget-market-interest .asset-box {
	background-color: rgba(12, 42, 77, 0.5);
	border-radius: 10px;
	padding: 10px;
	margin-top: 15px;
}

.widget-market-interest .market-amount-dollar {
	font-size: 16px;
	margin-bottom: 15px;
}

/* Market assets */
.widget-market-interest .market-assets {
	padding-left: 0;
	margin: 0;
}

.widget-market-interest .market-assets li {
	display: inline-block;
	height: 25px;
	width: 25px;
	background-image: url(../img/logo/default-asset.png);
	background-size: contain;
	border-radius: 100px;
}

.widget-market-interest .market-assets li + li {
	margin-left: 5px;
}

/* ==========================================================================
	Asset Interest widget styles
	========================================================================== */

.widget-asset-interest .widget-content {
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: 12px;
	height: 100%;
}

/* Controls row */
.widget-asset-interest .widget-asset-interest__controls {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
}

.widget-asset-interest .asset-select {
	width: 100%;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.widget-asset-interest .side-toggle {
	display: inline-flex;
	gap: 6px;
}

.widget-asset-interest .side-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #cfd2ff;
	padding: 7px 10px;
	border-radius: 10px;
	cursor: pointer;
}

.widget-asset-interest .side-btn.active {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
}

/* KPI row */
.widget-asset-interest .metric__label {
	color: #9aa4bf;
	font-size: 12px;
	line-height: 1.2;
}

.widget-asset-interest .metric__value {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

/* Chart card */
.widget-asset-interest .chart-asset-interest-container {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	padding: 12px;
	min-height: 160px;
	height: 100%;
	overflow: hidden;
}

/* The chart element stretches */
.widget-asset-interest .lwc-chart {
	width: 100%;
	height: 100%;
	background: transparent !important;
}

/* (Preserved from your current cascade) shrink/guard + explicit height */
.widget-asset-interest .widget-content,
.widget-asset-interest .chart-asset-interest-container,
.widget-asset-interest .chart-asset-interest-container .lwc-chart {
	min-width: 0;
	min-height: 0;
	height: 150px;
}

/* ==========================================================================
	Recent activity widget
	========================================================================== */

.bal-widget.widget-recent-activity {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.widget-recent-activity .widget-header {
	flex: 0 0 auto;
}

.widget-recent-activity .widget-content {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 10px;
}

.widget-recent-activity .widget-activity-list {
	height: 100%;
	overflow: auto;
	min-height: 0;
}

.widget-recent-activity .activity-onboarding-widget.hide {
	display: none;
}

/* Optional: pre-icon styles */
.widget-recent-activity .list.activity .list-item > .grid-cell:first-of-type p:first-of-type {
	position: relative;
}

.widget-recent-activity
	.list.activity
	.list-item
	> .grid-cell:first-of-type
	p:first-of-type::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.9;
	display: none;
}

.widget-recent-activity
	.list
	.list-item:not(.parent):not(.secondary)
	.grid-cell:nth-of-type(1)::before {
	margin-top: 18px;
}

/* ==========================================================================
	Wallet allocation (donut) widget
	========================================================================== */

.bal-widget.widget-wallet-pie {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.widget-wallet-pie .widget-header {
	flex: 0 0 auto;
}

.widget-wallet-pie .widget-content {
	flex: 1 1 auto;
	min-height: 0;
}

/* Layout wrapper: chart area + optional empty-state line */
.wallet-pie__wrap {
	height: 100%;
	min-height: 0;
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 8px;
}

/* Chart host fills available height */
.wallet-pie__canvas {
	position: relative;
	height: 100%;
	min-height: 0;
}

/* Critical: ensure the canvas always follows its container size */
.wallet-pie__canvas canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
	max-width: none;
	max-height: none;
}

/* Empty state line */
.wallet-pie__empty {
	color: #9aa4bf;
	margin: 4px 0 0;
	display: none;
}

.wallet-pie__empty.hide {
	display: none;
}

/* ==========================================================================
	Wallet list widget styles
	========================================================================== */

.widget-wallet-list .list.wallet .list-header {
	position: relative;
	margin-top: 0;
	background-color: transparent;
}

/* keep legacy dropdown styles from forcing a max-height */
.widget-wallet-list .list-scrollable {
	max-height: initial;
}

/* Make the widget fill its gridstack cell */
.bal-widget.widget-wallet-list {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.widget-wallet-list .widget-header {
	flex: 0 0 auto;
}

.widget-wallet-list .widget-content {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* Scrolling region fills the content area */
.grid-stack .widget-wallet-list .list-scrollable {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	max-height: none;
	height: auto;

	background-color: #0c2a4d;
	border-radius: 20px;
	padding: 15px;
	padding-top: 0;
	box-shadow: 0px 10px 15px 0px rgba(1, 0, 42, 0.25) inset;
	background-image:
		url("../img/icon/search2.svg"), linear-gradient(0deg, rgb(10, 37, 69) 0%, rgb(14, 50, 81) 100%);
	font-size: 14px;
}

/* Sticky list header inside the widget */
.widget-wallet-list .list-scrollable .list-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 4;
	margin: 0 -15px 10px;
	padding: 10px 15px 5px;
	background-image: linear-gradient(0deg, rgb(10, 37, 69) 0%, rgb(14, 50, 81) 100%);
	box-shadow: 0 6px 10px rgba(1, 0, 42, 0.25);
	margin-bottom: 0;
}

/* Let the scroller handle overflow */
.widget-wallet-list .list.wallet {
	overflow: visible;
}

/* ==========================================================================
	Responsive styles
	========================================================================== */

/* Container query placeholders (keep/remove as you like)
@container (max-width: 700px) {}
@container (min-width: 500px) {}
@container (max-width: 500px) {}
*/

@container (max-width: 300px) {
	.widget-market-interest {
		--bars: 8;
	}

	.widget-market-interest .chart-market-interest-container > .grid {
		flex-direction: column-reverse;
	}

	.widget-market-interest .metadata-group {
		flex-direction: initial;
		align-items: center;
	}

	.widget-market-interest
		.widget-content
		.chart-market-interest-container
		.grid
		> .grid-cell:last-of-type {
		max-width: initial;
	}

	.widget-market-interest .asset-box {
		margin-top: 0;
		padding: 5px;
	}

	.widget-market-interest .market-amount-dollar {
		display: none;
	}

	.widget-market-interest .market-assets {
		margin-top: 5px;
	}
}

/* Page responsive styles */
/* The dashboard now stays visible below 1100px; GridStack reduces the column count instead. */
.responsive-message {
	display: none;
}

@media (max-width: 1100px) {
	.conflict-manager {
		gap: 14px;
	}

	.conflict-manager__copy {
		flex-basis: 330px;
	}

	.conflict-versions {
		flex-basis: 404px;
	}

	.widget-manager {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.wm-pages {
		flex: 1 1 320px;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;

		/* Keep the Spaces strip horizontal-only. */
		overflow-x: auto;
		overflow-y: hidden;

		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.wm-pages::-webkit-scrollbar {
		display: none;
	}

	/* Keep the remove control horizontally inside its chip. */
	.wm-pages .wm-space-delete {
		right: 0;
	}
}

@media (max-width: 720px) {
	.conflict-manager {
		flex-wrap: wrap;
		gap: 6px;
		padding: 8px 12px;
		border-radius: 20px;
	}

	.conflict-manager__copy {
		flex: 1 1 100%;
		min-width: 0;
	}

	.conflict-versions {
		flex: 1 1 100%;
		min-width: 0;
		width: 100%;
		padding: 18px 12px 4px;
	}

	.conflict-version-wrap {
		flex-basis: 172px;
		width: 172px;
	}

	.conflict-version {
		width: 172px;
		min-height: 74px;
		padding: 8px 12px 7px;
		border-radius: 28px;
	}

	.conflict-version__chains {
		gap: 7px;
		min-height: 26px;
	}

	.conflict-version__chain,
	.conflict-version__chain img {
		flex-basis: 26px;
		width: 26px;
		height: 26px;
	}

	.grid-stack {
		margin: 0;
	}

	.grid-stack-item-content {
		padding: 18px;
		border-radius: 22px;
	}

	.widget-manager {
		gap: 10px;
		padding: 12px;
		border-radius: 20px;
	}

	.widget-manager > .button {
		flex: 0 0 auto;
	}

	/* Give Spaces a predictable full-width row beneath Add widget. */
	.wm-pages {
		flex: 1 1 100%;
		width: 100%;
		margin-top: 0;
		background-color: #0c2a4d;
		padding: 10px 15px;
		border-radius: 25px;
		box-shadow: 0px 10px 15px 0px rgba(1, 0, 42, 0.25) inset;
		background-image: linear-gradient(0deg, rgb(10, 37, 69) 0%, rgb(14, 50, 81) 100%);
	}

	.wm-onboarding {
		white-space: normal;
		line-height: 1.3;
	}

	.wm-space {
		padding: 7px 10px;
	}

	.wm-space-thumb {
		width: 140px;
		height: 58px;
	}
}

@media (max-width: 520px) {
	.grid-stack-item-content {
		padding: 15px;
		border-radius: 20px;
	}

	.widget-header {
		margin-bottom: 12px;
	}

	#widget-catalogue .wc__panel {
		width: 100vw;
		height: 100dvh;
		border-radius: 0;
	}

	#widget-catalogue .wc__body {
		grid-template-columns: 1fr;
	}

	#widget-catalogue .widget-navigation {
		max-height: 96px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	#widget-catalogue .wc-row__previews {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ==========================================================================
	Conflict preview: hard read-only dashboard
	========================================================================== */

body.conflict-preview-locked #open-widget-catalogue {
	opacity: 0.62;
	pointer-events: none;
}

body.conflict-preview-locked .grid-stack,
body.conflict-preview-locked .grid-stack.grid-stack-static {
	background: transparent;
	user-select: none;
}

/* Visual treatment only: fade the complete widget uniformly. */
body.conflict-preview-locked .grid-stack .grid-stack-item-content,
.grid-stack-item-content.conflict-preview-card-locked {
	opacity: 0.5;
}

body:not(.conflict-preview-locked) .grid-stack .grid-stack-item-content {
	transition: opacity 180ms ease;
}

body.conflict-preview-locked .grid-stack .ui-resizable-handle,
body.conflict-preview-locked .grid-stack .widget-menu-trigger,
body.conflict-preview-locked .grid-stack .widget-menu-dropdown {
	visibility: hidden !important;
}

/* ==========================================================================
	Fix chromium issues
========================================================================== */

#widget-catalogue .widget-preview-shell,
#widget-catalogue .widget-preview-shell *,
#widget-catalogue .widget-preview-shell *::before,
#widget-catalogue .widget-preview-shell *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
