#tm-spin {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99999;
	backdrop-filter: blur(4px);
}
#tm-spin.on {
	display: flex;
	animation: tm-fade-in 0.18s ease;
}
.tm-ring {
	width: 56px;
	height: 56px;
	border: 4px solid rgba(255, 255, 255, 0.18);
	border-top-color: #e85800;
	border-radius: 50%;
	animation: tm-spin 0.7s linear infinite;
}
@keyframes tm-spin {
	to { transform: rotate(360deg); }
}
@keyframes tm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes tm-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
#rl-content:not([hidden]) {
	animation: tm-rise 0.28s ease;
}
.messageListItem,
.b-message-list-wrapper .e-item {
	animation: tm-rise 0.22s ease;
}
.LoginView form {
	animation: tm-rise 0.3s ease;
}

.tm-admin-btn {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9000;
	background: #e85800;
	color: #fff;
	font-weight: 700;
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,0,0,.35);
	transition: transform .12s ease, filter .12s ease;
}
.tm-admin-btn:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}
.tm-admin-btn:active {
	transform: scale(.97);
}
.tm-admin-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 9001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(4px);
}
.tm-admin-scrim.on { display: flex; animation: tm-fade-in .18s ease; }
.tm-admin-modal {
	width: min(720px, 100%);
	max-height: min(88vh, 820px);
	overflow: auto;
	background: linear-gradient(180deg, #2f2f2f, #222);
	color: #fff;
	border: 1px solid #555;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 24px 60px rgba(0,0,0,.45);
	animation: tm-rise .22s ease;
}
.tm-admin-modal h2 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
}
.tm-admin-modal label {
	display: block;
	font-weight: 700;
	margin: 10px 0 4px;
	color: #fff;
}
.tm-admin-modal input, .tm-admin-modal select {
	width: 100%;
	box-sizing: border-box;
	background: #1c1c1c;
	color: #fff;
	font-weight: 700;
	border: 1px solid #555;
	border-radius: 8px;
	padding: 10px 12px;
}
.tm-admin-row {
	display: flex;
	gap: 8px;
	align-items: center;
}
.tm-admin-row input { flex: 1; }
.tm-admin-suffix {
	font-weight: 800;
	white-space: nowrap;
	color: #fff;
}
.tm-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.tm-admin-modal button {
	background: #3a3a3a;
	color: #fff;
	font-weight: 800;
	border: 1px solid #555;
	border-radius: 10px;
	padding: 10px 14px;
	cursor: pointer;
}
.tm-admin-modal button:hover { filter: brightness(1.15); }
.tm-admin-modal .tm-go {
	background: #e85800;
	border-color: #e85800;
}
.tm-admin-list {
	margin-top: 16px;
	border-top: 1px solid #444;
	padding-top: 10px;
	max-height: 320px;
	overflow: auto;
}
.tm-admin-item {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #3a3a3a;
	font-weight: 700;
}
.tm-admin-item .meta { color: #ccc; font-size: 12px; }
.tm-admin-pw {
	margin-top: 12px;
	background: #1c1c1c;
	border: 1px dashed #e85800;
	border-radius: 10px;
	padding: 12px;
	font-weight: 800;
	word-break: break-all;
}
.tm-admin-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tm-admin-tabs button.on { background: #e85800; border-color: #e85800; }
#tm-mail-toast {
	position: fixed;
	right: 18px;
	bottom: 72px;
	z-index: 100000;
	background: #1c1c1c;
	color: #fff;
	font-weight: 800;
	border: 1px solid #555;
	border-radius: 12px;
	padding: 12px 16px;
	max-width: min(420px, 90vw);
	display: none;
	box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
#tm-mail-toast.on { display: block; animation: tm-rise .2s ease; }
#tm-mail-toast.err { border-color: #c44; }
