:root {
	--primary-bg-color: #6c5ffc;
	--workspace-ink: #252b48;
	--workspace-muted: #8890a7;
	--workspace-border: #e9ebf2;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #f5f6fa;
	color: var(--workspace-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible {
	outline: 3px solid #9e94ff;
	outline-offset: 5px;
}

.app-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.workspace-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 20;
	width: 248px;
	padding: 35px 23px;
	border-right: 1px solid var(--workspace-border);
	background: #fff;
}

.workspace-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 0 7px;
	color: #5045bf;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 2px;
	line-height: 1.2;
}

.brand-symbol {
	font-size: 41px;
	font-weight: 400;
}

.workspace-brand small {
	display: block;
	margin-top: 6px;
	color: #969bb2;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 2.3px;
}

.sidebar-label {
	margin: 57px 14px 18px;
	color: #a2a7b9;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.8px;
}

.workspace-nav-link {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 15px;
	border-radius: 7px;
	color: #737b96;
	font-size: 13px;
	font-weight: 600;
}

.workspace-nav-link.active {
	background: #eeecff;
	color: #6c5ffc;
}

.workspace-nav-link .app-icon {
	width: 19px;
	height: 19px;
}

.nav-indicator {
	width: 6px;
	height: 6px;
	margin-left: auto;
	border-radius: 50%;
	background: currentColor;
}

.sidebar-note {
	position: absolute;
	right: 23px;
	bottom: 30px;
	left: 23px;
	padding: 23px 18px 0;
	border-top: 1px solid #eeeff5;
}

.note-icon {
	display: block;
	margin-bottom: 16px;
	color: #948acb;
}

.sidebar-note strong {
	font-size: 12px;
	font-weight: 600;
}

.sidebar-note p {
	margin: 9px 0 22px;
	color: #959bb0;
	font-size: 11px;
	line-height: 1.9;
}

.sidebar-version {
	color: #b0b5c6;
	font-size: 8px;
	letter-spacing: 1.4px;
}

.workspace-body {
	min-height: 100vh;
	margin-left: 248px;
	display: flex;
	flex-direction: column;
}

.workspace-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	padding: 0 38px;
	border-bottom: 1px solid var(--workspace-border);
	background: #fff;
}

.topbar-location, .topbar-profile {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 12px;
	color: #959bb0;
}

.topbar-location strong {
	color: #5e657f;
	font-weight: 500;
}

.breadcrumb-divider {
	color: #d2d5e0;
}

.local-label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 10px;
}

.local-label > span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #8c81e9;
}

.profile-avatar {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 4px solid #f3f1ff;
	border-radius: 50%;
	background: #e4dffe;
	color: #7a6ec7;
	font-size: 11px;
	font-weight: 700;
}

.menu-toggle {
	display: none;
	padding: 5px;
	border: none;
	background: transparent;
	color: #6c5ffc;
}

.workspace-main {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 39px 38px 32px;
	flex: 1;
}

.dashboard-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
}

.eyebrow {
	margin: 0 0 10px;
	color: #9399af;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1.8px;
}

.dashboard-heading .eyebrow {
	color: #8c80d8;
}

.dashboard-heading h1 {
	margin: 0;
	font-size: 29px;
	font-weight: 700;
	letter-spacing: -1px;
}

.dashboard-heading h1 > span {
	color: #6c5ffc;
}

.heading-description {
	margin: 11px 0 0;
	color: #9197ad;
	font-size: 12px;
	line-height: 1.7;
}

.connection-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 13px;
	border: 1px solid #f0e3cc;
	border-radius: 6px;
	background: #fffaf1;
	color: #b09562;
	font-size: 10px;
	white-space: nowrap;
}

.connection-label > span, .small-dot {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #d4b077;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 26px;
}

.card {
	margin-bottom: 0;
	border: 1px solid var(--workspace-border);
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 3px 14px rgb(27 30 70 / 2%);
}

.summary-card {
	padding: 23px;
}

.summary-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: #858ca4;
	font-size: 11px;
}

.summary-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 9px;
}

.purple {
	background: #efedff;
	color: #8274df;
}

.blue {
	background: #eaf2ff;
	color: #7595cc;
}

.green {
	background: #e9f7f4;
	color: #66b6a7;
}

.amber {
	background: #fff5e7;
	color: #d5ac70;
}

.summary-value {
	display: block;
	margin: 13px 0 10px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
}

.summary-card:last-child .summary-value {
	font-size: 24px;
	margin-top: 17px;
}

.summary-card p {
	margin: 0;
	color: #a0a6b9;
	font-size: 10px;
	line-height: 1.7;
}

.dashboard-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 24px;
}

.strategy-overview, .account-overview {
	padding: 27px;
}

.panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 25px;
}

.panel-heading .eyebrow {
	font-size: 8px;
	letter-spacing: 1.6px;
}

.panel-heading h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 650;
}

.panel-count {
	padding: 6px 10px;
	border-radius: 5px;
	background: #f5f5fa;
	color: #959ab0;
	font-size: 9px;
}

.panel-heading > .app-icon {
	color: #b1b6ca;
}

.strategy-list {
	display: grid;
	gap: 17px;
}

.strategy-card {
	padding: 21px;
	border: 1px solid #eaecf4;
	border-radius: 8px;
	background: linear-gradient(125deg, #fff, #fcfcff);
}

.strategy-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ticker-symbol {
	display: grid;
	place-items: center;
	width: 39px;
	height: 39px;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 700;
}

.strategy-card h3 {
	margin: 0 0 5px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .2px;
}

.strategy-card h3 span {
	margin-left: 5px;
	color: #a4a9bb;
	font-size: 9px;
	font-weight: 500;
}

.strategy-card-header p {
	margin: 0;
	color: #a0a6ba;
	font-size: 9px;
}

.strategy-status {
	margin-left: auto;
	padding: 4px 7px;
	border: 1px solid #e9eaf2;
	border-radius: 4px;
	color: #a0a5b7;
	font-size: 8px;
	white-space: nowrap;
}

.strategy-card-details {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	margin-top: 21px;
	padding-top: 18px;
	border-top: 1px solid #eff0f6;
}

.strategy-card-details > div {
	padding-left: 16px;
	border-left: 1px solid #eeeff6;
}

.strategy-card-details > div:first-child {
	padding-left: 0;
	border: 0;
}

.strategy-card-details span {
	display: block;
	margin-bottom: 7px;
	color: #a1a7b9;
	font-size: 9px;
}

.strategy-card-details strong {
	font-size: 11px;
	font-weight: 600;
}

.panel-footnote {
	margin: 20px 0 0;
	color: #a7adbf;
	font-size: 9px;
	line-height: 1.7;
}

.account-overview {
	display: flex;
	flex-direction: column;
}

.account-empty-state {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 295px;
	padding: 20px 0;
	text-align: center;
}

.empty-illustration {
	position: relative;
	display: grid;
	place-items: center;
	width: 110px;
	height: 100px;
	margin-bottom: 15px;
}

.empty-circle {
	position: absolute;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #f6f4ff;
}

.empty-illustration > .app-icon {
	z-index: 1;
	width: 59px;
	height: 59px;
	color: #afa4e6;
	transform: rotate(-8deg);
	stroke-width: 1.1;
}

.empty-plus {
	position: absolute;
	right: 6px;
	bottom: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #8e80db;
	color: #fff;
	font-size: 17px;
}

.account-empty-state h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
}

.account-empty-state p {
	margin: 0 0 20px;
	color: #a0a6b9;
	font-size: 11px;
	line-height: 1.9;
}

.empty-caption {
	padding: 8px 15px;
	border-radius: 5px;
	background: #f4f4f8;
	color: #a3a8ba;
	font-size: 10px;
}

.account-panel-footer {
	margin-top: 16px;
	padding-top: 19px;
	border-top: 1px solid #eeeff5;
	color: #a5abbd;
	font-size: 9px;
	line-height: 1.7;
}

.account-panel-footer .small-dot {
	margin-right: 5px;
	background: #b8b0dc;
}

.dashboard-notice {
	display: flex;
	align-items: center;
	gap: 17px;
	margin-top: 25px;
	padding: 22px 25px;
	border: 1px solid #e4e0f4;
	border-radius: 8px;
	background: #f0eef9;
}

.notice-icon {
	display: grid;
	place-items: center;
	width: 41px;
	height: 41px;
	border: 1px solid #ded8f3;
	border-radius: 9px;
	color: #9385c6;
}

.dashboard-notice strong {
	color: #7b6ba8;
	font-size: 12px;
	font-weight: 600;
}

.dashboard-notice p {
	margin: 6px 0 0;
	color: #a096b7;
	font-size: 10px;
	line-height: 1.7;
}

.notice-tag {
	margin-left: auto;
	color: #a096bb;
	font-size: 8px;
	letter-spacing: 1px;
	white-space: nowrap;
}

.workspace-footer {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	padding: 20px 38px;
	border-top: 1px solid #e9ebf2;
	color: #a9afc0;
	font-size: 9px;
	letter-spacing: .6px;
}

.footer-divider {
	margin: 0 7px;
	color: #cccfdc;
}

.skip-link {
	position: fixed;
	top: -80px;
	left: 20px;
	z-index: 100;
	padding: 12px;
	background: #fff;
	color: #5045bf;
}

.skip-link:focus {
	top: 12px;
}

#blazor-error-ui {
	display: none;
	position: fixed;
	inset: auto 0 0;
	z-index: 100;
	padding: 15px;
	background: #fff5df;
	text-align: center;
}

@media (max-width: 1150px) {
	.workspace-sidebar {
		width: 215px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.workspace-body {
		margin-left: 215px;
	}

	.workspace-main {
		padding: 28px 24px;
	}

	.workspace-topbar, .workspace-footer {
		padding-right: 24px;
		padding-left: 24px;
	}

	.summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dashboard-columns {
		grid-template-columns: 1fr;
	}

	.account-empty-state {
		min-height: 230px;
	}
}

@media (max-width: 700px) {
	.workspace-sidebar {
		top: 68px;
		width: 230px;
		border-top: 1px solid var(--workspace-border);
		transform: translateX(-100%);
		transition: transform .18s ease;
	}

	.menu-open .workspace-sidebar {
		transform: translateX(0);
	}

	.workspace-body {
		margin-left: 0;
	}

	.menu-toggle {
		display: grid;
		place-items: center;
	}

	.workspace-topbar {
		min-height: 68px;
		padding: 0 17px;
	}

	.topbar-location {
		gap: 11px;
		font-size: 11px;
	}

	.topbar-location > span:first-of-type,
	.breadcrumb-divider,
	.local-label,
	.sidebar-note {
		display: none;
	}

	.sidebar-label {
		margin-top: 36px;
	}

	.workspace-main {
		padding: 28px 17px;
	}

	.dashboard-heading {
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 23px;
	}

	.dashboard-heading h1 {
		font-size: 23px;
	}

	.dashboard-heading .eyebrow {
		font-size: 7px;
		letter-spacing: 1.2px;
	}

	.heading-description {
		max-width: 205px;
		font-size: 10px;
	}

	.connection-label {
		margin-top: 17px;
		padding: 7px 8px;
		font-size: 8px;
	}

	.summary-grid {
		gap: 11px;
		margin-bottom: 19px;
	}

	.summary-card {
		padding: 15px;
	}

	.summary-topline {
		font-size: 10px;
	}

	.summary-icon {
		width: 28px;
		height: 28px;
	}

	.summary-icon .app-icon {
		width: 17px;
		height: 17px;
	}

	.summary-card p {
		font-size: 9px;
	}

	.strategy-overview, .account-overview {
		padding: 21px;
	}

	.strategy-card {
		padding: 17px;
	}

	.strategy-card-header {
		gap: 10px;
	}

	.strategy-card-header p {
		font-size: 8px;
	}

	.strategy-card-details strong {
		font-size: 10px;
	}

	.strategy-card-details > div {
		padding-left: 12px;
	}

	.dashboard-notice {
		gap: 13px;
		padding: 18px;
	}

	.notice-icon {
		flex-shrink: 0;
	}

	.notice-tag {
		display: none;
	}

	.workspace-footer {
		padding: 18px;
		font-size: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.workspace-sidebar {
		transition: none;
	}
}

.authentication-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	padding: 38px 18px;
	background: radial-gradient(ellipse at top, #eeebff, #f5f6fa 65%);
}

.authentication-brand {
	color: #5b4fc5;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 3px;
}

.authentication-content {
	width: min(100%, 540px);
}

.authentication-card {
	padding: 38px;
	text-align: center;
}

.authentication-card h1 {
	margin: 12px 0 18px;
	font-size: 25px;
	font-weight: 700;
}

.authentication-card h2 {
	font-size: 18px;
	margin: 0 0 20px;
}

.authentication-card p {
	color: #737b94;
	font-size: 13px;
	line-height: 1.9;
}

.authentication-emblem {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 24px auto;
	border-radius: 18px;
	background: #eeebff;
	color: #8677d9;
}

.authentication-emblem .app-icon {
	width: 32px;
	height: 32px;
}

.authentication-card form > label {
	display: block;
	margin: 18px 0 8px;
	text-align: left;
	font-size: 12px;
}

.authentication-card .form-control {
	padding: 12px;
	margin-bottom: 20px;
}

.authentication-card .btn-primary {
	width: 100%;
	padding: 12px;
	margin-top: 8px;
	border-color: #6c5ffc;
	background: #6c5ffc;
}

.authentication-divider {
	margin: 28px 0;
	border-top: 1px solid #edeef6;
}

.authentication-card .authentication-caption,
.authentication-shell footer {
	color: #9298ad;
	font-size: 11px;
	line-height: 1.9;
}

.authentication-text-link, .authentication-back {
	display: block;
	margin-top: 24px;
	color: #786bc3;
	font-size: 12px;
	text-align: center;
}

.authentication-card .auth-message {
	margin-top: 16px;
	color: #7565b1;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.authentication-checkbox {
	line-height: 1.8;
}

.authentication-checkbox input {
	margin-right: 6px;
}

.passkey-list {
	padding: 0;
	list-style: none;
}

.passkey-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid #edeef6;
	font-size: 13px;
}

.passkey-list li > span {
	overflow-wrap: anywhere;
}

.session-controls {
	display: flex;
	gap: 12px;
	font-size: 11px;
}

.session-logout {
	padding: 0;
	border: none;
	background: transparent;
	color: #786bc3;
}

@media (max-width: 700px) {
	.authentication-card {
		padding: 26px;
	}

	.session-controls {
		font-size: 10px;
		gap: 8px;
	}

	.topbar-profile .profile-avatar {
		display: none;
	}
}

.account-heading,
.account-section-heading,
.account-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.account-heading {
	margin-bottom: 28px;
}

.account-heading h1 {
	font-size: 30px;
	font-weight: 700;
}

.account-heading p,
.account-caption,
.account-item > p {
	color: #718096;
}

.account-panel {
	padding: 28px;
	margin-bottom: 24px;
	border-radius: 18px;
	border: 1px solid #e8edf3;
}

.account-panel h2 {
	font-size: 20px;
	font-weight: 650;
}

.account-empty {
	padding: 34px 12px;
	text-align: center;
}

.account-empty h3,
.account-item h3 {
	font-size: 18px;
}

.account-list-grid,
.account-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.account-item,
.account-strategy-field {
	padding: 20px;
	border: 1px solid #e6ebf2;
	border-radius: 12px;
}

.account-tag,
.account-status {
	font-size: 12px;
	color: #52699b;
}

.account-amounts {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
}

.account-amounts dd {
	margin: 0;
	font-weight: 600;
}

.account-fieldset {
	margin: 24px 0;
	padding: 0;
	border: 0;
}

.account-fieldset legend {
	font-size: 16px;
	font-weight: 650;
	margin-bottom: 16px;
}

.account-fieldset label {
	display: block;
	font-size: 14px;
	margin-bottom: 14px;
}

.account-fieldset input:not([type="checkbox"]),
.account-fieldset select {
	display: block;
	min-height: 46px;
	font: inherit;
	width: 100%;
	margin-top: 8px;
	padding: 11px 14px;
	border: 1px solid #dce3ed;
	border-radius: 8px;
	background: #fff;
	color: #26354b;
}

.account-fieldset input:focus,
.account-fieldset select:focus {
	outline: 2px solid #b7b6ee;
	outline-offset: 2px;
}

.account-fieldset input:read-only,
.account-fieldset input:disabled,
.account-fieldset select:disabled {
	background: #f5f7fa;
}

.account-strategy-choice span {
	display: block;
	margin-top: 5px;
	color: #718096;
}

.account-notice {
	padding: 14px 16px;
	border-radius: 8px;
	background: #f1f4fc;
	color: #4e5c7b;
	line-height: 1.8;
}

.account-notice a {
	margin-left: 8px;
}

.account-reserve {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	background: #f6f8fb;
	border-radius: 8px;
}

.account-reserve output {
	font-weight: 600;
}

.account-button {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 8px;
	border: 0;
	background: #6259ca;
	color: white;
	font-weight: 600;
}

.account-button:hover {
	background: #5046ad;
	color: white;
}

.account-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.account-message {
	color: #a63a42;
	margin-top: 16px;
}

@media (max-width: 760px) {
	.account-heading,
	.account-form-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.account-list-grid,
	.account-field-grid {
		grid-template-columns: 1fr;
	}

	.account-panel {
		padding: 20px;
	}
}

.workspace-nav-link:not(.active) .nav-indicator {
	visibility: hidden;
}

/* Compact account management and manual holdings forms. */
.account-list-grid {
	align-items: start;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 14px;
}
.account-list-grid .account-item {
	padding: 16px;
}
.account-card-details {
	margin: 12px 0;
}
.account-card-details summary {
	cursor: pointer;
	color: #405ac5;
	margin-bottom: 8px;
}
.account-item > a {
	display: inline-block;
	margin: 4px 12px 0 0;
}
.manual-holding-row {
	border: 1px solid #dce2ed;
	padding: 16px;
	margin: 12px 0;
	border-radius: 10px;
}
