:root {
	--accent: #1f6feb;
	--muted: #6b7280;
	--card-bg: #ffffff;
	--bg: #f3f6fb;
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
		Arial;
	background: var(--bg);
	color: #111827;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 24px;
}

/* Topbar */
.topbar {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 18px;
}
.title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-right: 12px;
}
.search {
	flex: 1;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e6e9ee;
	background: white;
	outline: none;
}
.search:focus {
	box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.08);
	border-color: var(--accent);
}

/* layout */
.container {
	max-width: 1000px;
	margin: 0 auto;
}

/* sections */
.section-title {
	font-weight: 600;
	margin: 14px 0 8px;
	font-size: 0.95rem;
	color: var(--muted);
}

/* grid of cards */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

/* card */
.card {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
	display: flex;
	gap: 12px;
	align-items: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

/* avatar */
.avatar {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.05rem;
	color: white;
	background: linear-gradient(135deg, #6ee7b7, #3b82f6);
	flex-shrink: 0;
	overflow: hidden;
}

/* info */
.info {
	flex: 1;
	min-width: 0;
}
.name {
	font-weight: 700;
	font-size: 1rem;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sub {
	margin-top: 4px;
	font-size: 0.9rem;
	color: var(--muted);
}

/* actions (fav) */
.actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}
.btn-fav {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 6px;
}
.btn-fav.active {
	color: #f59e0b;
	transform: scale(1.08);
}
.empty {
	padding: 36px;
	text-align: center;
	color: var(--muted);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent);
}
