:root {
	color: #252146;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

* {
	box-sizing: border-box;
}

html {
	background: #e8e8ec;
}

body {
	min-width: 320px;
	min-height: 100dvh;
	margin: 0;
	background: #fff;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

button {
	font: inherit;
}

.app-shell {
	width: 100%;
	min-height: 100dvh;
	padding-bottom: env(safe-area-inset-bottom);
	background: #fff;
}

.app-header {
	position: sticky;
	z-index: 10;
	top: 0;
	padding-top: env(safe-area-inset-top);
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 1px 5px rgba(25, 24, 48, .12);
	backdrop-filter: blur(14px);
}

.navigation {
	display: grid;
	height: 38px;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 0 15px 2px 12px;
}

.navigation h1 {
	margin: 0;
	color: #292255;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.25px;
	white-space: nowrap;
}

.back-link {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	color: #35c4aa;
	font-size: 13px;
	text-decoration: none;
}

.back-link svg {
	width: 8px;
	height: 17px;
	margin-right: 3px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.search-button {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	justify-self: end;
	padding: 0;
	border: 0;
	background: transparent;
	color: #22bfa5;
	cursor: pointer;
}

.search-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2.7;
}

.account-summary {
	display: grid;
	height: 30px;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 0 18px;
	border-top: 1px solid #eeeeF2;
	color: #9a9ba7;
	font-size: 11px;
}

.account-summary strong {
	color: #3cc89e;
	font-size: 14px;
	font-weight: 600;
}

.forecast {
	justify-self: end;
	padding: 2px 5px;
	background: #e7faf4;
	color: #48bea1;
	font-size: 10px;
}

.transaction-group h2 {
	height: 22px;
	margin: 0;
	padding: 5px 17px 0;
	background: #f2f2f6;
	color: #625b87;
	font-size: 10px;
	font-weight: 600;
}

.transaction-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.transaction {
	display: grid;
	min-height: 50px;
	grid-template-columns: 29px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	margin-left: 17px;
	padding: 5px 17px 5px 0;
	border-bottom: 1px solid #ebebef;
}

.transaction:last-child {
	border-bottom: 0;
}

.merchant-logo {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	font-weight: 800;
	line-height: 1;
}

.netflix {
	color: #777;
	font-family: Georgia, serif;
	font-size: 21px;
}

.train {
	width: 22px;
	height: 17px;
	border: 2px solid #999;
	border-radius: 1px;
	color: #888;
	font-size: 10px;
}

.adac {
	background: #dedee0;
	color: #888;
	font-size: 6px;
}

.one-and-one {
	background: #07509b;
	color: #fff;
	font-size: 12px;
}

.rossmann {
	border: 2px solid #d92c5c;
	border-radius: 50%;
	color: #d92c5c;
	font-size: 16px;
}

.saturn {
	background: #08090b;
	color: #ec5a34;
	font-size: 20px;
}

.starbucks {
	border-radius: 50%;
	background: #168466;
	color: #fff;
	font-size: 13px;
}

.subway {
	border-radius: 50%;
	background: #008f4c;
	color: #ffd638;
	font-size: 14px;
}

.transaction-copy {
	min-width: 0;
}

.transaction-copy h3 {
	margin: 0 0 3px;
	overflow: hidden;
	color: #514b71;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -.12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.transaction-copy p {
	margin: 0;
	overflow: hidden;
	color: #9a99a4;
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.transaction-copy p span {
	margin-left: 7px;
	color: #b1b0ba;
}

.transaction-copy .transaction-note {
	margin-top: 2px;
	color: #6e6889;
	font-size: 10px;
	font-style: italic;
}

.amount,
.amount-block {
	color: #50486e;
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.amount-block {
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 2px;
}

.amount-block span {
	color: #a8a7b0;
	font-size: 10px;
	font-weight: 400;
}

@media (min-width: 540px) {
	body {
		display: grid;
		place-items: start center;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}
