:root {
	--bg: #0b1220;
	--panel: #141c2e;
	--border: #24304a;
	--text: #e7ecf3;
	--muted: #93a1b8;
	--accent: #2d8cff;
	--danger: #e5484d;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	padding: 0 1.25rem 3rem;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 760px;
	margin: 0 auto;
	padding: 1.5rem 0;
}

h1 {
	font-size: 1.35rem;
	margin: 0;
}

section {
	max-width: 760px;
	margin: 0 auto;
}

.controls {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: flex-end;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 1rem;
}

label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
	color: var(--muted);
}

select,
input[type="date"] {
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.5rem 0.6rem;
	font-size: 0.95rem;
	min-width: 220px;
}

button,
.button {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0.55rem 0.9rem;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
}

button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

button.ghost {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--muted);
}

button.danger {
	background: var(--danger);
}

.bulk {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 1.25rem 0 0.5rem;
}

.bulk label {
	flex-direction: row;
	align-items: center;
	gap: 0.4rem;
	color: var(--text);
	font-size: 0.95rem;
}

.hint {
	color: var(--muted);
	font-size: 0.82rem;
	margin: 0.75rem 0 0;
}

.status {
	color: var(--muted);
	min-height: 1.25rem;
	font-size: 0.9rem;
}

.status.error {
	color: var(--danger);
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.75rem 0.9rem;
}

li .body {
	flex: 1;
}

li .meta {
	font-size: 0.78rem;
	color: var(--muted);
	margin-bottom: 0.2rem;
}

li.sent-by-me {
	border-color: #2f4a74;
}

#load-more {
	margin-top: 1rem;
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
}
