body:has(#shell) {
	margin: 0;
	background: #f8f5ee;
}
#shell {
	--bg: #f8f5ee;
	--bg-2: #f1ede3;
	--bg-3: #e9e4d8;
	--surface: #ffffff;
	--line: #e7e1d4;
	--line-2: #d6cfbf;
	--ink: #10231e;
	--ink-2: #34443f;
	--muted: #64716c;
	--faint: #8b958f;
	--green: #2e9b45;
	--green-600: #23803a;
	--green-700: #1b6830;
	--green-50: #ebf6e8;
	--green-100: #d3ebce;
	--green-300: #8fcb8a;
	--side: #133a2b;
	--side-2: #1c4a37;
	--side-3: #245a44;
	--side-ink: #e2eee6;
	--side-muted: #97b9a6;
	--amber: #8f5a0e;
	--amber-50: #fbf0da;
	--amber-200: #f0d29a;
	--red: #ae3622;
	--red-50: #fbe6e1;
	--blue: #245f98;
	--blue-50: #e4edf7;
	--blue-300: #8fb3d9;
	--paid: #b9ddb4;
	--font:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--fs-xs: 12px;
	--fs-sm: 13px;
	--fs-md: 14px;
	--fs-lg: 16px;
	--fs-xl: 19px;
	--fs-2xl: 24px;
	--fs-3xl: 30px;
	--s1: 4px;
	--s2: 8px;
	--s3: 12px;
	--s4: 16px;
	--s5: 20px;
	--s6: 24px;
	--s8: 32px;
	--s10: 40px;
	--r-sm: 7px;
	--r-md: 10px;
	--r-lg: 14px;
	--r-pill: 999px;
	--sh-1: 0 1px 2px rgba(16, 35, 30, 0.05), 0 1px 1px rgba(16, 35, 30, 0.03);
	--sh-2: 0 8px 24px rgba(16, 35, 30, 0.1), 0 2px 6px rgba(16, 35, 30, 0.06);
	--sh-3: 0 24px 64px rgba(16, 35, 30, 0.24), 0 6px 18px rgba(16, 35, 30, 0.1);
	--demo-h: 0px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
#shell {
	font: 14px / 1.5 var(--font);
	color: var(--ink);
	background: var(--bg);
}
@scope (#shell) {
	[hidden] {
		display: none !important;
	}
	html,
	body {
		margin: 0;
	}
	h1,
	h2,
	h3,
	h4,
	p,
	ul,
	ol {
		margin: 0;
	}
	a {
		color: var(--green-700);
	}
	:focus-visible {
		outline: 2px solid var(--green);
		outline-offset: 2px;
	}
	.sr-only {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.mono {
		font-family: var(--mono);
		font-size: 0.92em;
	}
	.muted {
		color: var(--muted);
	}
	.tnum {
		font-variant-numeric: tabular-nums;
	}
	.ico {
		width: 18px;
		height: 18px;
		flex: none;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}
	/* Buttons */
	.btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 36px;
		padding: 0 14px;
		border-radius: var(--r-sm);
		border: 1px solid var(--line-2);
		background: var(--surface);
		color: var(--ink);
		font-weight: 600;
		font-size: var(--fs-sm);
		cursor: pointer;
		white-space: nowrap;
		transition:
			background 0.12s,
			border-color 0.12s,
			color 0.12s;
		text-decoration: none;
	}
	.btn:hover {
		background: var(--bg-2);
	}
	.btn .ico {
		width: 16px;
		height: 16px;
	}
	.btn-primary {
		background: var(--green-600);
		border-color: var(--green-600);
		color: #fff;
	}
	.btn-primary:hover {
		background: var(--green-700);
		border-color: var(--green-700);
	}
	.btn-ghost {
		background: transparent;
		border-color: transparent;
		color: var(--ink-2);
	}
	.btn-ghost:hover {
		background: var(--bg-2);
	}
	.btn.is-loading {
		pointer-events: none;
	}
	.b-green {
		background: var(--green-50);
		color: var(--green-700);
	}
	.b-amber {
		background: var(--amber-50);
		color: var(--amber);
	}
	.b-red {
		background: var(--red-50);
		color: var(--red);
	}
	.b-blue {
		background: var(--blue-50);
		color: var(--blue);
	}
	.b-ink {
		background: var(--ink);
		color: #fff;
	}
	.delta.up {
		color: var(--green-600);
	}
	.delta.down {
		color: var(--red);
	}
	.delta.flat {
		color: var(--muted);
	}
	.delta svg {
		width: 12px;
		height: 12px;
	}

	/* Cards */
	.card {
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--r-lg);
		box-shadow: var(--sh-1);
		min-width: 0;
	}
	.card-h h2 {
		font-size: var(--fs-lg);
		font-weight: 700;
		letter-spacing: -0.005em;
	}
	.card-h .sub {
		font-size: var(--fs-xs);
		color: var(--muted);
	}
	.tab:hover {
		color: var(--ink);
	}
	.tab[aria-selected="true"] {
		color: var(--ink);
		border-bottom-color: var(--green);
	}
	.tab .count {
		background: var(--bg-2);
		border-radius: 999px;
		padding: 0 7px;
		font-size: 11px;
		line-height: 18px;
		color: var(--ink-2);
	}
	.seg {
		display: inline-flex;
		background: var(--bg-2);
		border-radius: 9px;
		padding: 3px;
		gap: 2px;
	}
	.seg button {
		border: 0;
		background: none;
		padding: 5px 10px;
		border-radius: 7px;
		font-size: var(--fs-xs);
		font-weight: 600;
		color: var(--muted);
		cursor: pointer;
		white-space: nowrap;
	}
	.seg button[aria-pressed="true"] {
		background: #fff;
		color: var(--ink);
		box-shadow: var(--sh-1);
	}
	.tbl-wrap {
		overflow-x: auto;
	}
	.tbl {
		width: 100%;
		border-collapse: collapse;
		font-size: var(--fs-sm);
	}
	.tbl th {
		font-size: var(--fs-xs);
		color: var(--muted);
		text-align: left;
		font-weight: 600;
		padding: 10px 12px;
		border-bottom: 1px solid var(--line);
		white-space: nowrap;
	}
	.tbl td {
		padding: 11px 12px;
		border-bottom: 1px solid var(--line);
		vertical-align: middle;
	}
	.tbl tr:last-child td {
		border-bottom: 0;
	}
	.tbl .num {
		text-align: right;
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
	}
	.tbl th:first-child,
	.tbl td:first-child {
		padding-left: 20px;
	}
	.tbl th:last-child,
	.tbl td:last-child {
		padding-right: 20px;
	}

	:scope {
		display: grid;
		grid-template-columns: 252px minmax(0, 1fr);
		min-height: calc(100vh - var(--demo-h));
	}
	#shell[hidden] {
		display: none;
	}
	.sidebar {
		position: sticky;
		top: var(--demo-h);
		height: calc(100vh - var(--demo-h));
		background: var(--side);
		color: var(--side-ink);
		display: flex;
		flex-direction: column;
		padding: 18px 14px 14px;
		overflow-y: auto;
		z-index: 30;
	}
	.sb-brand {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 2px 6px 16px;
		font-weight: 800;
		font-size: 17px;
		letter-spacing: -0.01em;
		color: #fff;
	}
	.sb-logo {
		width: 34px;
		height: 34px;
		border-radius: 9px;
		background: #fff;
		display: grid;
		place-items: center;
		overflow: hidden;
		flex: none;
	}
	.sb-logo img {
		width: 32px;
		height: 32px;
	}
	.sb-site {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		text-align: left;
		background: var(--side-2);
		border: 1px solid var(--side-3);
		border-radius: var(--r-md);
		padding: 8px 10px;
		color: #fff;
		cursor: pointer;
	}
	.sb-site:hover {
		background: var(--side-3);
	}
	.sb-site .k {
		display: block;
		font-size: 11px;
		color: var(--side-muted);
		text-transform: uppercase;
		letter-spacing: 0.06em;
		font-weight: 600;
	}
	.sb-site .v {
		display: block;
		font-weight: 700;
		font-size: var(--fs-sm);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.sb-site .grow {
		flex: 1;
		min-width: 0;
	}
	.sb-nav {
		display: grid;
		gap: 2px;
		margin-top: 14px;
	}
	.nav-label {
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.07em;
		color: var(--side-muted);
		font-weight: 700;
		padding: 14px 10px 6px;
	}
	.nav-item {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		border: 0;
		background: transparent;
		color: var(--side-ink);
		padding: 8px 10px;
		border-radius: 8px;
		font-weight: 600;
		font-size: var(--fs-sm);
		cursor: pointer;
		text-align: left;
	}
	.nav-item:hover {
		background: var(--side-2);
	}
	.nav-item[aria-current="page"] {
		background: var(--green-600);
		color: #fff;
	}
	.nav-item .ico {
		width: 17px;
		height: 17px;
		opacity: 0.9;
	}
	.nav-item .n {
		margin-left: auto;
		font-size: 11px;
		background: rgba(255, 255, 255, 0.12);
		border-radius: 999px;
		padding: 0 7px;
		line-height: 18px;
	}
	.nav-item[aria-current="page"] .n {
		background: rgba(255, 255, 255, 0.22);
	}
	#main {
		min-width: 0;
		display: flex;
		flex-direction: column;
	}
	.mtop {
		display: none;
	}
	.page {
		width: 100%;
		max-width: 1240px;
		margin: 0 auto;
		padding: 28px 36px 72px;
	}
	.ph {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 20px;
		margin-bottom: 22px;
		flex-wrap: wrap;
	}
	.ph-kicker {
		font-size: var(--fs-xs);
		color: var(--muted);
		font-weight: 600;
		display: flex;
		gap: 8px;
		align-items: center;
		margin-bottom: 4px;
	}
	.ph h1 {
		font-size: var(--fs-3xl);
		line-height: 1.15;
		letter-spacing: -0.02em;
		font-weight: 800;
	}
	.ph-sub {
		color: var(--ink-2);
		margin-top: 6px;
		max-width: 680px;
	}
	.ph-actions {
		display: flex;
		gap: 10px;
		align-items: center;
		flex-wrap: wrap;
	}
	.grid {
		display: grid;
		gap: 20px;
	}
	.g-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.g-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.g-21 {
		grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
	}
	.row {
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.between {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.sec-title {
		font-size: var(--fs-lg);
		font-weight: 700;
		margin: 30px 0 12px;
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.site-card {
		display: flex;
		flex-direction: column;
		cursor: pointer;
		text-align: left;
		padding: 0;
		font: inherit;
		color: inherit;
		transition:
			box-shadow 0.15s,
			border-color 0.15s;
		width: 100%;
	}
	.site-card:hover {
		box-shadow: var(--sh-2);
		border-color: var(--line-2);
	}
	.sc-top {
		display: flex;
		gap: 12px;
		align-items: flex-start;
		padding: 18px 20px 0;
		width: 100%;
	}
	.sc-top .grow {
		flex: 1;
		min-width: 0;
	}
	.sc-dom {
		font-size: var(--fs-lg);
		font-weight: 800;
		letter-spacing: -0.01em;
	}
	.sc-co {
		font-size: var(--fs-xs);
		color: var(--muted);
	}
	.sc-mid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr)) 120px;
		gap: 12px;
		align-items: end;
		padding: 16px 20px;
		width: 100%;
	}
	.sc-mid .l {
		font-size: var(--fs-xs);
		color: var(--muted);
	}
	.sc-mid .v {
		font-size: var(--fs-xl);
		font-weight: 800;
		letter-spacing: -0.01em;
		display: flex;
		gap: 6px;
		align-items: baseline;
		flex-wrap: wrap;
	}
	.sc-mid .v .delta {
		font-size: var(--fs-xs);
	}
	.spark {
		width: 120px;
		height: 40px;
		display: block;
	}
	.sc-foot {
		margin-top: auto;
		border-top: 1px solid var(--line);
		padding: 10px 20px;
		font-size: var(--fs-xs);
		color: var(--muted);
		display: flex;
		gap: 12px;
		justify-content: space-between;
		width: 100%;
		flex-wrap: wrap;
	}
	.first-flag {
		font-size: 11px;
		font-weight: 700;
		color: var(--green-700);
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}
	.strip {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--r-lg);
		margin-bottom: 28px;
	}
	.strip > div {
		padding: 14px 18px;
		border-left: 1px solid var(--line);
	}
	.strip > div:first-child {
		border-left: 0;
	}
	.strip .l {
		font-size: var(--fs-xs);
		color: var(--muted);
		font-weight: 600;
	}
	.strip .v {
		font-size: var(--fs-xl);
		font-weight: 800;
	}

	/* Misc */
	.empty {
		padding: 44px 24px;
		text-align: center;
		display: grid;
		justify-items: center;
		gap: 10px;
	}
	.empty .ei {
		width: 52px;
		height: 52px;
		border-radius: 14px;
		background: var(--green-50);
		color: var(--green-700);
		display: grid;
		place-items: center;
	}
	.empty .ei .ico {
		width: 26px;
		height: 26px;
	}
	.empty h3 {
		font-size: var(--fs-lg);
	}
}
#shell,
#shell * {
	box-sizing: border-box;
}
#shell h1,
#shell h2,
#shell p {
	margin-top: 0;
}
#shell a {
	text-decoration: none;
}
#shell button,
#shell input {
	font-family: inherit;
	cursor: pointer;
}
#shell .team-account {
	position: static;
	margin-top: auto;
	width: 100%;
	padding: 14px 0 0;
}
#shell .account-trigger {
	border-top: 1px solid #245a44;
}
#shell .delta {
	font-weight: 700;
	font-size: 13px;
}
#shell .up {
	color: #23803a;
}
#shell .down {
	color: #ae3622;
}
#shell .badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	background: #f1ede3;
	color: #34443f;
}
#shell .dot:before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
#shell .b-green {
	background: #ebf6e8;
	color: #1b6830;
}
#shell .b-blue {
	background: #e4edf7;
	color: #245f98;
}
#shell .b-amber {
	background: #fbf0da;
	color: #8f5a0e;
}
#shell .message {
	display: block;
	color: var(--muted);
	font-size: 13px;
}
#shell .ph-sub {
	margin-bottom: 0;
	margin-top: 6px;
}
#shell .sec-title {
	margin-top: 30px;
}
#shell .site-card {
	overflow-wrap: anywhere;
}
#shell .num {
	text-align: right;
}
#shell .tbl small,
#site-options small {
	display: block;
	color: var(--muted);
	font-size: 11px;
}
#shell .mobile-info {
	display: none;
}
#shell .toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px;
}
#shell input {
	border: 1px solid var(--line-2);
	border-radius: 7px;
	padding: 8px;
	min-width: 0;
}
#shell th button {
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
}
#shell .tab[aria-pressed="true"] {
	color: var(--ink);
	border-color: var(--green);
}
#shell .sb-site,
#shell .mtop .site {
	anchor-name: --site-picker;
}
#site-options {
	position: fixed;
	position-anchor: --site-picker;
	inset: auto;
	margin: 6px 0 0;
	top: anchor(bottom);
	left: clamp(8px, anchor(left), calc(100vw - 296px));
	max-height: 60vh;
	width: min(288px, 95vw);
	overflow: auto;
	border: 1px solid #e7e1d4;
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 8px 24px #10231e22;
}
#site-options a,
#site-options strong {
	display: block;
	padding: 7px 10px;
	color: #10231e;
}
#site-options a:hover {
	background: var(--bg-2);
}
#site-options:has(a) .no-sites {
	display: none;
}
#shell .scrim {
	position: fixed;
	inset: 0;
	background: #10231e66;
	border: 0;
	z-index: 61;
}
@media (max-width: 1180px) and (min-width: 861px) {
	#shell .sc-mid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	#shell .spark-cell {
		grid-column: 1 / -1;
	}
}
@media (max-width: 860px) {
	#shell {
		grid-template-columns: minmax(0, 1fr);
	}
	#shell .sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(288px, 90vw);
		height: 100dvh;
		transform: translateX(-100%);
		z-index: 62;
	}
	#shell.drawer-open .sidebar {
		transform: none;
	}
	#shell .sb-site,
	#shell .hide-sm {
		display: none;
	}
	#shell .mobile-info {
		display: block;
		color: var(--muted);
		font-size: 12px;
	}
	#shell .mtop {
		display: flex;
		align-items: center;
		gap: 8px;
		position: sticky;
		top: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 8px 12px;
		min-height: 56px;
		z-index: 20;
	}
	#shell .mtop .site {
		font-size: var(--fs-xs);
		font-weight: 700;
		border: 1px solid var(--line);
		border-radius: 20px;
		background: white;
		padding: 6px 10px;
	}
	#shell .mtop button:first-child {
		display: inline-grid; place-items: center; width: 36px; height: 36px;
		border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2);
	}
	#shell .mtop .brand {
		display: flex;
		align-items: center;
		gap: 8px;
		font-weight: 800;
	}
	#shell .mtop img {
		width: 28px;
		height: 28px;
	}
	#shell .site {
		margin-left: auto;
		max-width: 46vw;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	#shell .page {
		padding: 18px 16px 72px;
	}
	#shell .ph {
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 16px;
	}
	#shell h1 {
		font-size: 24px;
	}
	#shell .g-2 {
		grid-template-columns: 1fr;
	}
	#shell .strip {
		grid-template-columns: 1fr 1fr;
	}
	#shell .strip > div:nth-child(3) {
		border-left: 0;
	}
	#shell .strip > div:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}
	#shell .sc-mid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 14px 16px;
	}
	#shell .sc-top {
		padding: 16px 16px 0;
	}
	#shell .spark-cell {
		grid-column: 1 / -1;
	}
	#shell .spark {
		width: 100%;
	}
	#shell .tbl td {
		overflow-wrap: anywhere;
	}
}
@media (max-width: 420px) {
	#shell .grid {
		gap: 14px;
	}
}
#shell .tabs {
	display: flex;
	gap: 2px;
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
	padding: 0 12px;
}
#shell .tab {
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	white-space: nowrap;
	padding: 10px 12px;
	font-weight: 600;
	color: var(--muted);
}
#shell .tab[aria-pressed="true"] {
	border-bottom-color: var(--green);
}
#shell .btn-sm {
	height: 30px;
	padding: 0 10px;
	font-size: 12px;
}
#shell .row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
#shell .portfolio-head:has(.ph-actions) {align-items:flex-start;flex-direction:column}
#shell .sb-site{font:inherit;line-height:1.5}
#shell .state-active>span:first-child::before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#2e9b45;box-shadow:0 0 0 3px #d3ebce}
#shell .state-active.has-questions>span:last-child,#shell .state-waiting.has-questions>span:first-child{color:var(--amber);font-weight:600}
#shell .team-account{border-top:1px solid #245a44}
#shell .account-trigger{border:0}

#site-options {
	width: min(240px, calc(100vw - 16px));
	padding: 6px;
	background: var(--surface);
	box-shadow: var(--sh-2);
	left: clamp(8px, anchor(left), calc(100vw - 248px));
}
#site-options:has(input) {
	width: min(360px, calc(100vw - 24px));
	left: clamp(8px, anchor(left), calc(100vw - 368px));
}
#site-options strong {
	padding: 8px 10px 2px;
	text-transform: uppercase;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: .07em;
}
#site-options strong span { text-transform: none; letter-spacing: normal; }
#site-options input { width: calc(100% - 12px); margin: 6px; }
.site-results { max-height: min(340px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
#site-options a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
}
#site-options .site-choice { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#site-options small { font-size: var(--fs-xs); font-weight: 500; }
.site-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }
.site-dot.baseline { background: var(--blue); }
.site-dot.waiting { background: #d9a13b; }
#site-options .no-sites { padding: 10px; color: var(--muted); }
body:has(#shell.drawer-open) { overflow: hidden; }
@media (max-width: 860px) {
	#shell .sb-nav { margin-top: 0; }
	#shell .sidebar { transition: transform .22s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
	#shell *, #shell *::before, #shell *::after { transition-duration: 0s !important; }
}
