/* ============================================================
   BinaWeb Dashboard — purple neo-brutalist app shell
   Left slide panel + overview / profile / projects panels.
   ============================================================ */

.bw-dash {
	--bwd-ink: #241046;
	--bwd-ink-soft: #5b4a78;
	--bwd-ink-deep: #150627;
	--bwd-violet: #6d28d9;
	--bwd-violet-light: #8b5cf6;
	--bwd-violet-deep: #4c1d95;
	--bwd-mist: #f8f5ff;
	--bwd-yellow: #ffd21e;
	--bwd-yellow-soft: #ffe066;
	--bwd-white: #ffffff;
	--bwd-shadow: 5px 5px 0 0 var(--bwd-yellow);
	--bwd-shadow-sm: 3px 3px 0 0 var(--bwd-ink);
	--bwd-radius: 18px;

	position: relative;
	display: grid;
	grid-template-columns: 292px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	max-width: 1420px;
	margin: 0 auto;
	padding: 40px clamp(16px, 4vw, 48px) 80px;
	color: #f6f2ff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	transition: grid-template-columns 0.35s ease, gap 0.35s ease;
}

.bw-dash *,
.bw-dash *::before,
.bw-dash *::after {
	box-sizing: border-box;
}

.bw-dash h1,
.bw-dash h2,
.bw-dash h3,
.bw-dash h4 {
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin: 0;
}

.bw-dash a {
	color: inherit;
}

/* ---------- Left slide panel ---------- */
.bw-dash-panel {
	position: sticky;
	top: 96px;
	align-self: start;
	width: 292px;
	max-height: calc(100dvh - 200px);
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 22px 18px 18px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: linear-gradient(170deg, #3a1d6b 0%, #241046 55%, #150627 100%);
	border: 2px solid var(--bwd-ink);
	border-radius: 22px;
	box-shadow: 6px 6px 0 0 var(--bwd-yellow);
	transition: transform 0.35s ease, opacity 0.28s ease;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 210, 30, 0.4) transparent;
}

.bw-dash--collapsed {
	grid-template-columns: 0 minmax(0, 1fr);
	gap: 0;
}

.bw-dash--collapsed .bw-dash-panel {
	transform: translateX(-110%);
	opacity: 0;
	pointer-events: none;
}

.bw-dash-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bw-dash-mark {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	background: var(--bwd-yellow);
	color: var(--bwd-ink);
	border: 2px solid var(--bwd-ink);
	border-radius: 12px;
	box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.35);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
}

.bw-dash-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.bw-dash-brand-text strong {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}

.bw-dash-brand-text small {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(246, 242, 255, 0.55);
}

.bw-dash-panel-close {
	display: none;
	margin-left: auto;
	width: 34px;
	height: 34px;
	border: 2px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 0.85rem;
	cursor: pointer;
}

/* Identity block */
.bw-dash-identity {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
}

.bw-dash-identity-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.bw-dash-identity-name {
	font-size: 0.86rem;
	font-weight: 700;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bw-dash-identity-mail {
	font-size: 0.7rem;
	color: rgba(246, 242, 255, 0.55);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bw-dash-chip {
	flex-shrink: 0;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(246, 242, 255, 0.75);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bw-dash-chip--ok {
	background: rgba(255, 210, 30, 0.16);
	border-color: rgba(255, 210, 30, 0.5);
	color: var(--bwd-yellow);
}

/* Avatars */
.bw-dash-avatar {
	position: relative;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, var(--bwd-violet-light), var(--bwd-violet-deep));
	border: 2px solid var(--bwd-yellow);
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
	line-height: 1;
}

.bw-dash-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bw-dash-avatar--sm {
	width: 38px;
	height: 38px;
	font-size: 0.85rem;
}

/* Navigation */
.bw-dash-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bw-dash-nav-label {
	margin: 12px 4px 4px;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(246, 242, 255, 0.4);
}

.bw-dash-nav-label:first-child {
	margin-top: 0;
}

.bw-dash-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 2px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: rgba(246, 242, 255, 0.8);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.bw-dash-nav-item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transform: translateX(2px);
}

.bw-dash-nav-item.is-active {
	background: var(--bwd-yellow);
	border-color: var(--bwd-ink);
	color: var(--bwd-ink);
	box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.4);
}

.bw-dash-nav-icon {
	flex-shrink: 0;
	width: 22px;
	text-align: center;
	font-size: 0.95rem;
}

.bw-dash-nav-count {
	margin-left: auto;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(255, 210, 30, 0.2);
	color: var(--bwd-yellow);
	font-size: 0.68rem;
	font-weight: 800;
}

.bw-dash-nav-item.is-active .bw-dash-nav-count {
	background: var(--bwd-ink);
	color: var(--bwd-yellow);
}

.bw-dash-nav-external {
	margin-left: auto;
	font-size: 0.8rem;
	opacity: 0.6;
}

.bw-dash-panel-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bw-dash-logout {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 2px solid rgba(255, 93, 93, 0.4);
	border-radius: 12px;
	color: #ffb3b3;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.18s ease;
}

.bw-dash-logout:hover {
	background: rgba(255, 93, 93, 0.14);
	color: #ffd6d6;
}

.bw-dash-panel-foot small {
	font-size: 0.66rem;
	color: rgba(246, 242, 255, 0.35);
	text-align: center;
}

.bw-dash-scrim {
	display: none;
}

/* ---------- Main column ---------- */
.bw-dash-main {
	min-width: 0;
}

.bw-dash-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.bw-dash-toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	background: var(--bwd-yellow);
	color: var(--bwd-ink);
	border: 2px solid var(--bwd-ink);
	border-radius: 12px;
	box-shadow: var(--bwd-shadow-sm);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bw-dash-toggle:hover {
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 0 var(--bwd-ink);
}

.bw-dash-toggle:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 0 var(--bwd-ink);
}

.bw-dash-toggle-bars,
.bw-dash-toggle-bars::before,
.bw-dash-toggle-bars::after {
	display: block;
	width: 15px;
	height: 2px;
	background: var(--bwd-ink);
	border-radius: 2px;
	content: '';
	position: relative;
}

.bw-dash-toggle-bars::before {
	position: absolute;
	top: -5px;
}

.bw-dash-toggle-bars::after {
	position: absolute;
	top: 5px;
}

.bw-dash-topbar-title {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.bw-dash-eyebrow {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bwd-yellow);
}

.bw-dash-crumb {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
}

.bw-dash-topbar-user {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.bw-dash-topbar-name {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(246, 242, 255, 0.8);
}

/* Panels */
.bw-dash-view {
	animation: bw-dash-in 0.3s ease both;
}

.bw-dash-view[hidden] {
	display: none;
}

@keyframes bw-dash-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Hero ---------- */
.bw-dash-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 26px;
	align-items: center;
	padding: 28px;
	margin-bottom: 20px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--bwd-violet-deep) 0%, var(--bwd-violet) 55%, var(--bwd-violet-light) 100%);
	border: 2px solid var(--bwd-ink);
	border-radius: 22px;
	box-shadow: 6px 6px 0 0 var(--bwd-yellow);
}

.bw-dash-hero::after {
	content: '';
	position: absolute;
	top: -140px;
	right: -90px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 210, 30, 0.35), transparent 68%);
	pointer-events: none;
}

.bw-dash-hero-copy {
	position: relative;
	z-index: 1;
}

.bw-dash-hero-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(21, 6, 39, 0.35);
	border: 1px solid rgba(255, 210, 30, 0.45);
	color: var(--bwd-yellow);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bw-dash-hero-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
	margin-bottom: 8px !important;
}

.bw-dash-hero-sub {
	max-width: 52ch;
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
	line-height: 1.6;
}

.bw-dash-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bw-dash-hero-gauge {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.bw-dash-gauge {
	position: relative;
	width: 108px;
	height: 108px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: conic-gradient(var(--bwd-yellow) var(--bwd-pct, 0%), rgba(255, 255, 255, 0.18) 0);
	border: 2px solid rgba(21, 6, 39, 0.4);
}

.bw-dash-gauge::before {
	content: '';
	position: absolute;
	inset: 9px;
	border-radius: 50%;
	background: #35176b;
}

.bw-dash-gauge > span {
	position: relative;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	color: #fff;
}

.bw-dash-hero-gauge p {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
}

.bw-dash-hero-gauge small {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.65);
}

/* ---------- Buttons ---------- */
.bw-dash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 12px;
	border: 2px solid var(--bwd-ink);
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bw-dash-btn--primary {
	background: var(--bwd-yellow);
	color: var(--bwd-ink);
	box-shadow: var(--bwd-shadow-sm);
}

.bw-dash-btn--primary:hover {
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 0 var(--bwd-ink);
	background: var(--bwd-yellow-soft);
}

.bw-dash-btn--primary:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 0 var(--bwd-ink);
}

.bw-dash-btn--ghost {
	background: rgba(21, 6, 39, 0.3);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.bw-dash-btn--ghost:hover {
	background: rgba(21, 6, 39, 0.5);
	border-color: var(--bwd-yellow);
	color: var(--bwd-yellow);
}

.bw-dash-btn--sm {
	padding: 8px 14px;
	font-size: 0.78rem;
}

/* ---------- Stats ---------- */
.bw-dash-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.bw-dash-stat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: var(--bwd-white);
	border: 2px solid var(--bwd-ink);
	border-radius: var(--bwd-radius);
	box-shadow: var(--bwd-shadow);
	color: var(--bwd-ink);
}

.bw-dash-stat-icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	margin-bottom: 6px;
	border: 2px solid var(--bwd-ink);
	border-radius: 10px;
	background: var(--bwd-mist);
	font-size: 0.95rem;
}

.bw-dash-stat strong {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--bwd-ink);
}

.bw-dash-stat > span:last-child {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bwd-ink-soft);
}

.bw-dash-stat--violet {
	background: linear-gradient(135deg, var(--bwd-violet-deep), var(--bwd-violet));
}

.bw-dash-stat--violet strong,
.bw-dash-stat--violet > span:last-child {
	color: #fff;
}

.bw-dash-stat--violet .bw-dash-stat-icon {
	background: rgba(255, 210, 30, 0.16);
	border-color: var(--bwd-yellow);
}

.bw-dash-stat--accent {
	background: var(--bwd-yellow);
}

.bw-dash-stat--accent .bw-dash-stat-icon {
	background: #fff;
}

/* ---------- Cards ---------- */
.bw-dash-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.bw-dash-card {
	padding: 22px;
	background: var(--bwd-white);
	border: 2px solid var(--bwd-ink);
	border-radius: var(--bwd-radius);
	box-shadow: var(--bwd-shadow);
	color: var(--bwd-ink);
}

.bw-dash-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.bw-dash-card-head h3 {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bwd-ink);
}

.bw-dash-link {
	padding: 0;
	background: none;
	border: none;
	color: var(--bwd-violet);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.bw-dash-link:hover {
	text-decoration: underline;
}

.bw-dash-muted {
	font-size: 0.76rem;
	color: var(--bwd-ink-soft);
}

/* Projects */
.bw-dash-projects {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bw-dash-project {
	padding: 13px 15px;
	background: var(--bwd-mist);
	border: 2px solid rgba(36, 16, 70, 0.12);
	border-radius: 13px;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.bw-dash-project:hover {
	border-color: var(--bwd-violet);
	transform: translateX(2px);
}

.bw-dash-project-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.bw-dash-project-head h4 {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--bwd-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bw-dash-status {
	flex-shrink: 0;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(36, 16, 70, 0.07);
	border: 1px solid rgba(36, 16, 70, 0.14);
	color: var(--bwd-ink-soft);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bw-dash-status--new {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.35);
	color: #1d4ed8;
}

.bw-dash-status--in_review {
	background: rgba(245, 158, 11, 0.15);
	border-color: rgba(245, 158, 11, 0.4);
	color: #a16207;
}

.bw-dash-status--in_progress {
	background: rgba(109, 40, 217, 0.12);
	border-color: rgba(109, 40, 217, 0.35);
	color: var(--bwd-violet);
}

.bw-dash-status--completed {
	background: rgba(16, 185, 129, 0.14);
	border-color: rgba(16, 185, 129, 0.4);
	color: #047857;
}

.bw-dash-status--cancelled {
	background: rgba(255, 93, 93, 0.14);
	border-color: rgba(255, 93, 93, 0.4);
	color: #b91c1c;
}

.bw-dash-project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.73rem;
	color: var(--bwd-ink-soft);
}

.bw-dash-project-total {
	margin-left: auto;
	font-weight: 800;
	color: var(--bwd-violet);
}

/* Shortcuts */
.bw-dash-shortcuts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bw-dash-shortcut {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 12px;
	background: var(--bwd-mist);
	border: 2px solid rgba(36, 16, 70, 0.12);
	border-radius: 13px;
	color: var(--bwd-ink);
	font-family: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bw-dash-shortcut:hover {
	border-color: var(--bwd-violet);
	background: #f2ecff;
	transform: translateX(2px);
}

.bw-dash-shortcut-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 2px solid var(--bwd-ink);
	border-radius: 10px;
	font-size: 0.9rem;
}

.bw-dash-shortcut > span:nth-child(2) {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.bw-dash-shortcut strong {
	font-size: 0.84rem;
	font-weight: 700;
}

.bw-dash-shortcut small {
	font-size: 0.71rem;
	color: var(--bwd-ink-soft);
}

.bw-dash-shortcut-arrow {
	margin-left: auto;
	font-size: 0.9rem;
	color: var(--bwd-violet);
}

/* Empty state */
.bw-dash-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 26px 16px;
	text-align: center;
	background: var(--bwd-mist);
	border: 2px dashed rgba(36, 16, 70, 0.2);
	border-radius: 14px;
}

.bw-dash-empty > span {
	font-size: 1.8rem;
}

.bw-dash-empty p {
	margin: 0;
	max-width: 38ch;
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--bwd-ink-soft);
}

/* ---------- Profile panel ---------- */
.bw-dash-card--flush {
	padding-bottom: 18px;
}

.bw-dash-profile .bw-profile-root {
	max-width: none;
	margin: 0;
	padding: 0;
}

.bw-dash-profile .bw-profile-header {
	margin-bottom: 12px;
}

/* Re-skin the profile portal to the purple / yellow theme. */
.bw-dash .bw-profile-card,
.bw-dash .bw-profile-acc {
	background: var(--bwd-mist);
	border: 2px solid rgba(36, 16, 70, 0.14);
	border-radius: 14px;
	box-shadow: 3px 3px 0 0 rgba(36, 16, 70, 0.08);
}

.bw-dash .bw-profile-acc--open {
	border-color: var(--bwd-violet);
}

.bw-dash .bw-profile-header::before {
	background: linear-gradient(90deg, var(--bwd-yellow), var(--bwd-violet));
}

.bw-dash .bw-profile-avatar {
	background: linear-gradient(135deg, var(--bwd-violet), var(--bwd-violet-deep));
	border-color: var(--bwd-ink);
	box-shadow: 3px 3px 0 0 rgba(36, 16, 70, 0.25);
}

.bw-dash .bw-profile-avatar-edit {
	background: var(--bwd-yellow);
	color: var(--bwd-ink);
	border: 2px solid var(--bwd-ink);
	box-shadow: 2px 2px 0 0 rgba(36, 16, 70, 0.3);
}

.bw-dash .bw-profile-root .bw-profile-name {
	color: var(--bwd-ink) !important;
}

.bw-dash .bw-profile-root .bw-profile-email {
	color: var(--bwd-ink-soft) !important;
}

.bw-dash .bw-profile-badge {
	background: #fff;
	border-color: rgba(36, 16, 70, 0.14);
	color: var(--bwd-ink-soft);
}

.bw-dash .bw-profile-badge--verified {
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.35);
	color: #047857;
}

.bw-dash .bw-profile-acc-head {
	color: var(--bwd-ink);
}

.bw-dash .bw-profile-acc-head:hover {
	background: rgba(109, 40, 217, 0.06);
}

.bw-dash .bw-profile-acc-icon,
.bw-dash .bw-profile-acc--projects .bw-profile-acc-icon,
.bw-dash .bw-profile-acc--business .bw-profile-acc-icon,
.bw-dash .bw-profile-acc--policies .bw-profile-acc-icon {
	background: var(--bwd-yellow);
	border: 2px solid var(--bwd-ink);
	color: var(--bwd-ink);
	box-shadow: none;
}

.bw-dash .bw-profile-root .bw-profile-acc-label {
	color: var(--bwd-ink) !important;
}

.bw-dash .bw-profile-root .bw-profile-acc-sub {
	color: var(--bwd-ink-soft) !important;
}

.bw-dash .bw-profile-acc-count {
	background: rgba(109, 40, 217, 0.1);
	border-color: rgba(109, 40, 217, 0.3);
	color: var(--bwd-violet);
}

.bw-dash .bw-profile-acc-chev {
	border-color: var(--bwd-ink);
}

.bw-dash .bw-profile-field label {
	color: var(--bwd-ink-soft);
}

.bw-dash .bw-req {
	color: var(--bwd-violet);
}

.bw-dash .bw-profile-root .bw-form-input {
	background: #fff;
	border: 2px solid rgba(36, 16, 70, 0.14);
	color: var(--bwd-ink);
}

.bw-dash .bw-profile-root .bw-form-input::placeholder {
	color: rgba(36, 16, 70, 0.35);
}

.bw-dash .bw-profile-root .bw-form-input:focus {
	border-color: var(--bwd-violet);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.16);
}

.bw-dash .bw-profile-root .bw-btn-primary {
	background: var(--bwd-yellow);
	border: 2px solid var(--bwd-ink);
	border-radius: 11px;
	color: var(--bwd-ink);
	box-shadow: var(--bwd-shadow-sm);
}

.bw-dash .bw-profile-root .bw-btn-primary:hover {
	background: var(--bwd-yellow-soft);
	box-shadow: 4px 4px 0 0 var(--bwd-ink);
}

.bw-dash .bw-profile-root .bw-profile-project-name {
	color: var(--bwd-ink) !important;
}

.bw-dash .bw-profile-project {
	background: #fff;
	border-color: rgba(36, 16, 70, 0.12);
}

.bw-dash .bw-profile-project:hover {
	background: #fff;
	border-color: var(--bwd-violet);
}

.bw-dash .bw-profile-project-chip,
.bw-dash .bw-profile-project-date,
.bw-dash .bw-profile-project-dev {
	color: var(--bwd-ink-soft);
}

.bw-dash .bw-profile-project-total {
	color: var(--bwd-violet);
}

.bw-dash .bw-profile-empty {
	color: var(--bwd-ink-soft);
}

.bw-dash .bw-profile-root .bw-profile-client-name {
	color: var(--bwd-ink) !important;
}

.bw-dash .bw-profile-client-list li {
	border-bottom-color: rgba(36, 16, 70, 0.1);
}

.bw-dash .bw-profile-client-list span {
	color: var(--bwd-ink-soft);
}

.bw-dash .bw-profile-client-list strong {
	color: var(--bwd-ink);
}

.bw-dash .bw-profile-client-list a {
	color: var(--bwd-violet);
}

.bw-dash .bw-profile-root .bw-profile-policy h4 {
	color: var(--bwd-ink) !important;
}

.bw-dash .bw-profile-root .bw-profile-policy p {
	color: var(--bwd-ink-soft) !important;
}

.bw-dash .bw-profile-message.bw-success {
	color: #047857;
}

.bw-dash .bw-profile-message.bw-error {
	color: #b91c1c;
}

/* ---------- Guest gate ---------- */
.bw-dash--guest {
	display: block;
	max-width: 720px;
	padding-top: 72px;
}

.bw-dash-guest {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 48px 28px;
	text-align: center;
	background: linear-gradient(160deg, #331a5e, #1d0c39);
	border: 2px solid var(--bwd-ink);
	border-radius: 22px;
	box-shadow: 6px 6px 0 0 var(--bwd-yellow);
}

.bw-dash-guest-icon {
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	background: var(--bwd-yellow);
	border: 2px solid var(--bwd-ink);
	border-radius: 16px;
	box-shadow: var(--bwd-shadow-sm);
	font-size: 1.6rem;
}

.bw-dash-guest h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
}

.bw-dash-guest p {
	max-width: 46ch;
	margin: 0 0 8px;
	color: rgba(246, 242, 255, 0.7);
	font-size: 0.88rem;
	line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.bw-dash-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 980px) {
	.bw-dash {
		display: block;
		padding: 28px 16px 60px;
	}

	.bw-dash--collapsed {
		gap: 0;
	}

	.bw-dash-panel {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 1000;
		width: min(320px, 88vw);
		max-height: none;
		height: 100dvh;
		border-radius: 0 20px 20px 0;
		border-left: none;
		box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
		transform: translateX(-105%);
		opacity: 1;
		pointer-events: none;
	}

	.bw-dash--panel-open .bw-dash-panel {
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}

	.bw-dash-panel-close {
		display: grid;
		place-items: center;
	}

	.bw-dash-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 990;
		background: rgba(15, 6, 39, 0.62);
		backdrop-filter: blur(2px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	.bw-dash--panel-open .bw-dash-scrim {
		opacity: 1;
		pointer-events: auto;
	}

	.bw-dash-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.bw-dash-hero-gauge {
		align-items: flex-start;
		flex-direction: row;
		gap: 14px;
		text-align: left;
	}

	.bw-dash-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bw-dash {
		padding: 20px 12px 52px;
	}

	.bw-dash-topbar {
		gap: 10px;
		margin-bottom: 16px;
	}

	.bw-dash-topbar-name {
		display: none;
	}

	.bw-dash-crumb {
		font-size: 1.15rem;
	}

	.bw-dash-hero {
		padding: 20px;
		border-radius: 18px;
	}

	.bw-dash-hero-actions .bw-dash-btn {
		width: 100%;
	}

	.bw-dash-stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.bw-dash-stat {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
		padding: 14px 16px;
	}

	.bw-dash-stat-icon {
		margin-bottom: 0;
	}

	.bw-dash-stat strong {
		font-size: 1.25rem;
	}

	.bw-dash-stat > span:last-child {
		margin-left: auto;
	}

	.bw-dash-card {
		padding: 16px;
	}

	.bw-dash-card-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		margin-bottom: 12px;
	}

	/* Profile portal: keep the inset card look instead of the full-bleed mobile rules. */
	.bw-dash-profile .bw-profile-card,
	.bw-dash-profile .bw-profile-acc {
		border-left: 2px solid rgba(36, 16, 70, 0.14);
		border-right: 2px solid rgba(36, 16, 70, 0.14);
		border-radius: 14px;
	}

	.bw-dash-profile .bw-profile-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.bw-dash-profile .bw-profile-root .bw-btn-primary {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bw-dash,
	.bw-dash-panel,
	.bw-dash-view,
	.bw-dash-shortcut,
	.bw-dash-project,
	.bw-dash-btn,
	.bw-dash-toggle {
		transition: none;
		animation: none;
	}
}
