*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:root {
	--bg: #0a0a0a;
	--surface: #111;
	--border: #1a1a1a;
	--border-hover: #282828;
	--text-primary: #ededed;
	--text-secondary: #6e6e6e;
	--text-tertiary: #444;
	--text-dim: #2a2a2a;
	--font:
		"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
		Arial, sans-serif;
}

html {
	background: var(--bg);
	color: var(--text-primary);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	overflow-y: scroll;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 80px 16px 64px;
}

/* Header */

.header {
	max-width: 560px;
	width: 100%;
	margin-bottom: 28px;
}

.header h1 {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.header p {
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 400;
}

.header .count {
	color: var(--text-tertiary);
	font-variant-numeric: tabular-nums;
}

/* Search */

.search-wrapper {
	max-width: 560px;
	width: 100%;
	position: relative;
	margin-bottom: 12px;
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	color: var(--text-tertiary);
	pointer-events: none;
}

.search-wrapper input {
	width: 100%;
	padding: 8px 40px 8px 34px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text-primary);
	font-family: var(--font);
	font-size: 13px;
	outline: none;
	transition: border-color 150ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.search-wrapper input::placeholder {
	color: var(--text-tertiary);
}

.search-wrapper input:focus {
	border-color: var(--border-hover);
}

.search-kbd {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	padding: 1px 6px;
	font-family: var(--font);
	font-size: 11px;
	color: var(--text-tertiary);
	border: 1px solid var(--border);
	border-radius: 4px;
	line-height: 1.4;
	pointer-events: none;
	transition: opacity 150ms ease;
}

.search-wrapper input:focus ~ .search-kbd {
	opacity: 0;
}

/* Tabs */

.tabs {
	max-width: 560px;
	width: 100%;
	display: flex;
	gap: 2px;
	margin-bottom: 12px;
}

.tab {
	padding: 6px 14px;
	font-family: var(--font);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-tertiary);
	background: none;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tab:hover {
	color: var(--text-secondary);
}

.tab.active {
	color: var(--text-primary);
	background: var(--surface);
	border-color: var(--border);
}

.tab-count {
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: var(--text-tertiary);
}

/* List container */

.list-container {
	max-width: 560px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}

.list-container:empty {
	display: none;
}

.account-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--bg);
	text-decoration: none;
	color: inherit;
	transition: background 150ms ease;
	cursor: pointer;
	animation: fadeIn 300ms ease both;
}

.account-row.no-animate {
	animation: none;
}

.account-row:hover {
	background: var(--surface);
}

.row-index {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--text-dim);
	width: 16px;
	flex-shrink: 0;
	text-align: right;
	align-self: flex-start;
	padding-top: 1px;
	transition: color 150ms ease;
}

.account-row:hover .row-index {
	color: var(--text-tertiary);
}

.account-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.account-handle {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.account-tag {
	font-size: 11px;
	color: var(--text-tertiary);
	white-space: nowrap;
	padding: 1px 7px;
	border: 1px solid var(--border);
	border-radius: 10px;
	flex-shrink: 0;
	letter-spacing: 0.01em;
}

.account-reason {
	font-size: 12px;
	line-height: 1.5;
	color: var(--text-secondary);
}

.arrow-icon {
	width: 14px;
	height: 14px;
	color: var(--text-dim);
	flex-shrink: 0;
	align-self: flex-start;
	margin-top: 2px;
	transition: color 150ms ease;
}

.account-row:hover .arrow-icon {
	color: var(--text-secondary);
}

/* Empty state */

.empty-state {
	max-width: 560px;
	width: 100%;
	text-align: center;
	padding: 40px 16px;
	font-size: 13px;
	color: var(--text-tertiary);
	border: 1px solid var(--border);
	border-radius: 10px;
}

/* Bottom */

.bottom {
	max-width: 560px;
	width: 100%;
	margin-top: 48px;
	padding: 32px 0;
	border-top: 1px solid var(--border);
	text-align: center;
}

.bottom h2 {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.bottom p {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.bottom a {
	color: var(--text-primary);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1px;
	transition: border-color 150ms ease;
}

.bottom a:hover {
	border-color: var(--text-secondary);
}

.mute-steps {
	margin-top: 14px;
	font-size: 12px;
	color: var(--text-tertiary);
}

.step-sep {
	color: var(--text-dim);
	margin: 0 2px;
}

.contributor-count {
	font-size: 11px;
	color: var(--text-tertiary);
	white-space: nowrap;
	flex-shrink: 0;
}

/* Animation */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Selection */

::selection {
	background: #ffffff12;
}

::-moz-selection {
	background: #ffffff12;
}

/* Scrollbar (webkit) */

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

/* Mobile */

@media (max-width: 480px) {
	body {
		padding: 48px 14px 40px;
	}

	.account-row {
		padding: 12px 14px;
		gap: 12px;
	}

	.account-top {
		flex-wrap: wrap;
		gap: 6px;
	}

}
