.table-hero td,
.table-hero th {
	white-space: nowrap;
}

.badge-online {
	background: #198754;
}

.badge-offline {
	background: #6c757d;
}

.badge-banned {
	background: #dc3545;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	background: #198754;
	animation: hero-pulse 1.5s infinite;
}

@keyframes hero-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}

.map-change-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.map-change-form-row {
	display: flex;
	gap: 0.35rem;
	align-items: center;
}

.map-change-feedback {
	display: block;
	line-height: 1.2;
	max-width: 11rem;
	white-space: normal;
}

.map-change-feedback.is-ok {
	color: #198754 !important;
}

.map-change-feedback.is-error {
	color: #dc3545 !important;
}

.map-change-feedback.is-warn {
	color: #fd7e14 !important;
}

.map-online-hint {
	max-width: 11rem;
	line-height: 1.2;
}

.map-change-form input {
	width: 70px;
}

.hero-location-scroll {
	max-height: 280px;
	overflow-y: auto;
}

.hero-location-list .location-row {
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-location-list .location-row:last-child {
	border-bottom: none;
}

.hero-location-list .location-bar {
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.2);
	margin-top: 0.35rem;
	overflow: hidden;
}

.hero-location-list .location-bar-fill {
	height: 100%;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 2px;
	transition: width 0.4s ease;
}

.hero-world-map-wrap {
	padding: 0.75rem 1rem 0.25rem;
	overflow: hidden;
}

.hero-world-map {
	width: 100%;
	height: 320px;
	min-height: 320px;
	background: transparent;
	position: relative;
}

.hero-world-map--primary {
	height: 320px;
	min-height: 320px;
}

#world-map.jvm-container,
#world-map .jvm-container {
	width: 100% !important;
	height: 100% !important;
	min-height: 320px;
}

#world-map svg {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.hero-world-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hero-world-map-legend--primary .hero-world-map-chip {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.hero-world-map-legend--primary .hero-world-map-chip strong {
	color: #fff;
}

.hero-world-map-legend--primary .text-muted {
	color: rgba(255, 255, 255, 0.65) !important;
}

.jvm-tooltip {
	background: #111 !important;
	border: none !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
	border-radius: 0.5rem !important;
	padding: 0.5rem 0.65rem !important;
	font-size: 0.85rem !important;
}

#world-map .jvm-marker-label {
	pointer-events: none;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

#world-map .jvm-zoom-btn {
	background: rgba(255, 255, 255, 0.18) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	color: #fff !important;
}

.hero-world-map-chip {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	background: color-mix(in srgb, var(--chip-bg, #dc3545) 18%, var(--bs-body-bg));
	border: 1px solid color-mix(in srgb, var(--chip-bg, #dc3545) 45%, transparent);
}

.hero-world-map-chip strong {
	color: var(--chip-bg, #dc3545);
}

.hero-world-map-tooltip {
	text-align: left;
	line-height: 1.35;
}

.hero-world-map-tooltip .hero-map-tooltip-online {
	color: #ff6b6b;
	font-weight: 700;
	font-size: 0.95rem;
	margin-top: 0.15rem;
}

.hero-world-map-tooltip .hero-map-tooltip-login {
	color: #ffb3b3;
	font-weight: 600;
	margin-top: 0.15rem;
}

@keyframes hero-map-glow {
	0%,
	100% {
		filter: drop-shadow(0 0 3px rgba(255, 71, 87, 0.65)) drop-shadow(0 0 8px rgba(220, 53, 69, 0.45));
	}
	50% {
		filter: drop-shadow(0 0 8px rgba(255, 107, 107, 1)) drop-shadow(0 0 18px rgba(220, 53, 69, 0.85));
	}
}

#world-map path.hero-map-online {
	animation: hero-map-glow 1.6s ease-in-out infinite;
	stroke: #ff8787 !important;
	stroke-width: 1.4px !important;
}

#world-map path.hero-map-login {
	stroke: rgba(255, 120, 120, 0.55) !important;
	stroke-width: 1px !important;
}

.hero-server-card {
	border-left: 4px solid #6c757d;
	transition: border-color 0.3s ease;
}

.hero-server-card.is-online {
	border-left-color: #198754;
}

.hero-server-card.is-offline {
	border-left-color: #dc3545;
}

.hero-server-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #6c757d;
	flex-shrink: 0;
}

.hero-server-card.is-online .hero-server-dot {
	background: #198754;
	animation: hero-pulse 1.5s infinite;
}

.hero-server-card.is-offline .hero-server-dot {
	background: #dc3545;
}

.hero-server-actions {
	flex-shrink: 0;
}

.hero-start-server-btn {
	font-weight: 600;
	white-space: normal;
	text-align: left;
	max-width: 280px;
}

.hero-start-server-btn:not(:disabled) {
	box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.35);
}

.hero-server-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.hero-channel-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	background: var(--bs-secondary-bg);
	border: 1px solid var(--bs-border-color);
}

.hero-channel-pill.is-online {
	border-color: rgba(25, 135, 84, 0.35);
	background: rgba(25, 135, 84, 0.08);
}

.hero-channel-pill.is-offline {
	opacity: 0.75;
}

.hero-channel-pill .channel-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #6c757d;
}

.hero-channel-pill.is-online .channel-dot {
	background: #198754;
}

.hero-channel-pill.is-offline .channel-dot {
	background: #dc3545;
}

.hero-error-dropdown {
	min-width: 360px;
	max-width: 440px;
}

.hero-error-list-scroll {
	max-height: 420px;
	overflow-y: auto;
}

.hero-error-detail-preview {
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 4.5em;
	overflow: hidden;
}

.hero-error-detail,
.hero-error-meta {
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 240px;
	overflow: auto;
	margin-bottom: 0;
}

.hero-error-item {
	white-space: normal;
}

.hero-error-item + .hero-error-item {
	border-top: 1px solid var(--bs-border-color);
}

#heroErrorBell .navbar-badge,
.hero-error-bell-slot .navbar-badge {
	position: absolute;
	top: 4px;
	right: 0;
	font-size: 0.65rem;
}

.app-header.navbar,
.app-header .navbar-nav {
	overflow: visible;
}

.hero-error-bell-slot.dropdown {
	position: static;
}

.hero-error-bell-slot .dropdown-menu {
	z-index: 1055;
}

.hero-brand-logo {
	object-fit: contain;
}

.hero-login-logo {
	display: block;
	max-width: min(280px, 80vw);
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

.hero-login-page {
	min-height: 100vh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: #000;
	color: #e5e5e5;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hero-login-backdrop {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
		radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.03), transparent 45%),
		linear-gradient(180deg, #000 0%, #0a0a0a 50%, #000 100%);
	z-index: 0;
}

.hero-login-shell {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
}

.hero-login-card {
	background: #111;
	border: 1px solid #2a2a2a;
	border-radius: 1.25rem;
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.65),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	padding: 2rem 1.75rem 1.5rem;
}

.hero-login-header {
	margin-bottom: 1.5rem;
}

.hero-login-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 1rem 0 0.25rem;
	color: #fafafa;
	letter-spacing: -0.02em;
}

.hero-login-subtitle {
	margin: 0;
	font-size: 0.925rem;
	color: #737373;
}

.hero-login-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hero-login-field .form-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #a3a3a3;
	margin-bottom: 0.35rem;
}

.hero-login-field .input-group-text {
	background: #0a0a0a;
	border-color: #333;
	color: #a3a3a3;
}

.hero-login-field .form-control {
	background: #0a0a0a;
	border-color: #333;
	color: #f5f5f5;
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
}

.hero-login-field .form-control::placeholder {
	color: #525252;
}

.hero-login-field .form-control:focus {
	background: #0a0a0a;
	border-color: #525252;
	color: #fafafa;
	box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.hero-login-toggle-password {
	background: #0a0a0a;
	border-color: #333;
	color: #a3a3a3;
}

.hero-login-toggle-password:hover,
.hero-login-toggle-password:focus {
	background: #171717;
	border-color: #525252;
	color: #fafafa;
}

.hero-login-submit {
	padding: 0.7rem 1rem;
	font-weight: 600;
	color: #000;
	background: #fafafa;
	border: 1px solid #fafafa;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-login-submit:hover:not(:disabled) {
	color: #000;
	background: #e5e5e5;
	border-color: #e5e5e5;
}

.hero-login-submit:disabled {
	opacity: 0.6;
}

.hero-login-alert {
	font-size: 0.875rem;
	border-radius: 0.75rem;
	margin-bottom: 1rem;
	background: #1a0a0a;
	border-color: #7f1d1d;
	color: #fca5a5;
}

.hero-login-footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #262626;
	font-size: 0.75rem;
	color: #737373;
}

.login-page .login-logo {
	margin-bottom: 1.25rem;
}

.hero-admin-avatar {
	object-fit: contain;
	background: #fff;
}

.hero-global-search-wrap {
	min-width: 0;
}

.hero-global-search-input-group .form-control:focus {
	box-shadow: none;
}

.hero-global-search-input-group:focus-within {
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
	border-radius: 0.375rem;
}

.hero-global-search-kbd {
	gap: 0.2rem;
}

.hero-global-search-kbd kbd {
	font-size: 0.65rem;
	padding: 0.1rem 0.35rem;
}

.hero-global-search-dropdown {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	z-index: 1060;
	max-height: min(70vh, 420px);
	overflow: auto;
	background: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: 0.75rem;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
	padding: 0.35rem 0;
}

.hero-global-search-section + .hero-global-search-section {
	border-top: 1px solid var(--bs-border-color);
	margin-top: 0.25rem;
	padding-top: 0.25rem;
}

.hero-global-search-section-title {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bs-secondary-color);
	padding: 0.35rem 0.85rem 0.2rem;
}

.hero-global-search-item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.55rem 0.85rem;
	color: inherit;
	text-decoration: none;
}

.hero-global-search-item:hover,
.hero-global-search-item:focus {
	background: rgba(13, 110, 253, 0.08);
	color: inherit;
}

.hero-global-search-item-icon {
	margin-top: 0.15rem;
	color: var(--bs-primary);
	flex-shrink: 0;
}

.hero-global-search-item-body {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.hero-global-search-item-title {
	font-weight: 600;
	line-height: 1.25;
	word-break: break-word;
}

.hero-global-search-item-meta {
	font-size: 0.78rem;
	color: var(--bs-secondary-color);
	line-height: 1.25;
	word-break: break-word;
}

.hero-global-search-empty {
	padding: 0.85rem 1rem;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}

@media (max-width: 767.98px) {
	.hero-global-search-wrap {
		order: 3;
		width: 100%;
		padding-top: 0.35rem;
		padding-bottom: 0.35rem;
	}

	.app-header .container-fluid {
		flex-wrap: wrap;
	}
}

.user-menu .user-body {
	display: none !important;
}

.hero-ticket-thread {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hero-ticket-message {
	border: 1px solid var(--bs-border-color);
	border-radius: 0.75rem;
	padding: 0.85rem 1rem;
	background: var(--bs-body-bg);
}

.hero-ticket-message.is-admin {
	border-color: rgba(13, 110, 253, 0.35);
	background: rgba(13, 110, 253, 0.06);
}

.hero-ticket-message.is-user {
	border-color: rgba(220, 53, 69, 0.25);
}

.hero-ticket-message-head {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.hero-ticket-message-body {
	white-space: pre-wrap;
	word-break: break-word;
}

/* Table Browser (/admin) — table links use .sidebar-table-link in #sidebarMenu */
.sidebar-table-link.active {
	background: rgba(13, 110, 253, 0.18);
	font-weight: 600;
}

.hero-stat-card .hero-stat-value {
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.1;
}

.hero-stat-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	flex-shrink: 0;
}

.hero-table-search {
	min-width: min(100%, 280px);
}

.hero-table-wrap {
	max-height: min(62vh, 720px);
	overflow: auto;
}

#dataTable.table-editable th.col-actions,
#dataTable.table-editable td.col-actions {
	position: sticky;
	right: 0;
	z-index: 2;
	background: var(--bs-body-bg);
	box-shadow: -4px 0 8px rgba(0, 0, 0, 0.06);
	min-width: 96px;
	text-align: center;
}

#dataTable.table-editable tbody tr:hover td.col-actions {
	background: var(--bs-tertiary-bg);
}

#dataTable tbody tr.row-editable {
	cursor: pointer;
}

#dataTable thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	white-space: nowrap;
}

#dataTable td {
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

.hero-log-viewer {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	line-height: 1.45;
	max-height: min(70vh, 640px);
	overflow: auto;
	padding: 1rem;
	background: var(--bs-tertiary-bg);
	color: var(--bs-body-color);
	white-space: pre-wrap;
	word-break: break-word;
}

/* Game server log viewer */
.hero-game-logs {
	--hero-log-line-no-width: 2.75rem;
}

.hero-game-log-chips-wrap {
	margin-left: -0.25rem;
	margin-right: -0.25rem;
}

.hero-game-log-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 0.25rem 0.25rem 0.5rem;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.hero-game-log-chip {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.65rem;
	background: var(--bs-body-bg);
	color: var(--bs-body-color);
	font-size: 0.8rem;
	scroll-snap-align: start;
	min-width: 7.5rem;
	max-width: 11rem;
}

.hero-game-log-chip.active {
	border-color: var(--bs-primary);
	background: rgba(13, 110, 253, 0.12);
	box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.hero-game-log-chip-label {
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.hero-game-log-chip-size {
	font-size: 0.68rem;
	color: var(--bs-secondary-color);
}

.hero-game-log-panel .card-header {
	background: var(--bs-body-bg);
}

.hero-game-log-toolbar {
	padding-bottom: 0.75rem !important;
}

.hero-game-log-actions .form-select {
	min-width: 6.5rem;
}

.hero-game-log-search .form-control {
	font-size: 0.9rem;
}

.hero-game-log-stats {
	background: var(--bs-tertiary-bg);
}

.hero-game-log-lines {
	max-height: min(65vh, 560px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	background: #0f1419;
	color: #e6edf3;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.hero-game-log-placeholder {
	padding: 2.5rem 1rem;
	text-align: center;
	background: var(--bs-tertiary-bg);
	color: var(--bs-secondary-color);
}

.hero-log-line {
	display: grid;
	grid-template-columns: var(--hero-log-line-no-width) 1.75rem 1fr;
	gap: 0.35rem 0.5rem;
	align-items: start;
	padding: 0.45rem 0.75rem 0.45rem 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	word-break: break-word;
}

.hero-log-line--empty {
	min-height: 0.5rem;
	padding: 0.2rem;
	border-bottom: none;
}

.hero-log-line-no {
	text-align: right;
	color: rgba(255, 255, 255, 0.35);
	font-variant-numeric: tabular-nums;
	font-size: 0.72rem;
	padding-top: 0.1rem;
	user-select: none;
}

.hero-log-line-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.35rem;
	border-radius: 0.35rem;
	font-size: 0.65rem;
	font-weight: 700;
	flex-shrink: 0;
}

.hero-log-line-text {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	min-width: 0;
}

.hero-log-line--success .hero-log-line-badge {
	background: rgba(25, 135, 84, 0.25);
	color: #75d99a;
}

.hero-log-line--success .hero-log-line-text {
	color: #9fdfb8;
}

.hero-log-line--admin .hero-log-line-badge {
	background: rgba(255, 193, 7, 0.2);
	color: #ffc107;
}

.hero-log-line--admin .hero-log-line-text {
	color: #ffe08a;
}

.hero-log-line--login .hero-log-line-badge {
	background: rgba(13, 202, 240, 0.2);
	color: #6edff6;
}

.hero-log-line--login .hero-log-line-text {
	color: #b6effb;
}

.hero-log-line--danger .hero-log-line-badge {
	background: rgba(220, 53, 69, 0.25);
	color: #f1aeb5;
}

.hero-log-line--danger .hero-log-line-text {
	color: #f8a9b2;
}

.hero-log-line--warning .hero-log-line-badge {
	background: rgba(255, 193, 7, 0.25);
	color: #ffc107;
}

.hero-log-line--warning .hero-log-line-text {
	color: #ffe08a;
}

.hero-log-line--default .hero-log-line-badge,
.hero-log-line--dated .hero-log-line-badge {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.45);
}

.hero-log-mark {
	background: rgba(255, 193, 7, 0.45);
	color: inherit;
	padding: 0 0.1em;
	border-radius: 0.15em;
}

.hero-log-file-list {
	max-height: min(70vh, 640px);
	overflow-y: auto;
}

.hero-log-filename {
	font-size: 0.68rem;
	word-break: break-all;
}

.hero-log-file-btn.active {
	background: rgba(13, 110, 253, 0.15);
	border-left: 3px solid var(--bs-primary);
}

@media (max-width: 991.98px) {
	.hero-game-log-panel {
		border-radius: 0.75rem;
	}

	.hero-game-log-toolbar h5 {
		font-size: 1rem;
	}

	.hero-game-log-actions {
		width: 100%;
	}

	.hero-game-log-actions .form-select {
		flex: 1 1 auto;
		min-width: 0;
	}

	.hero-game-log-lines {
		max-height: min(55vh, 480px);
		font-size: 0.78rem;
	}

	.hero-log-line {
		grid-template-columns: 2rem 1.5rem 1fr;
		padding: 0.5rem 0.5rem 0.5rem 0.35rem;
	}
}

@media (max-width: 575.98px) {
	.hero-game-log-chip {
		min-width: 6.5rem;
		padding: 0.5rem 0.65rem;
	}

	.hero-log-line-no {
		display: none;
	}

	.hero-log-line {
		grid-template-columns: 1.5rem 1fr;
	}
}

.hero-health-pre {
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 8rem;
	overflow-y: auto;
	font-size: 0.72rem;
}

.hero-maint-countdown {
	flex: 0 0 auto;
	min-width: 7.5rem;
	max-width: 11rem;
}

.hero-maint-countdown-value {
	font-size: clamp(2.25rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.hero-maint-countdown-unit {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bs-secondary-color);
	line-height: 1.3;
	margin-top: 0.15rem;
}

.hero-maint-countdown-sync {
	font-size: 0.75rem;
	line-height: 1.35;
	margin-top: 0.35rem;
}

.hero-maint-countdown-sub {
	font-size: 0.75rem;
	margin-top: 0.15rem;
}

.hero-maint-discord-preview {
	font-size: 0.85rem;
	background: #1e1e2e;
	color: #e8e8f0;
	padding: 1rem;
	border-radius: 0.5rem;
	white-space: pre-wrap;
}

.hero-discord-preview-host {
	min-height: 4rem;
}

.hero-discord-embed-mock {
	display: flex;
	background: #2b2d31;
	border-radius: 0.5rem;
	overflow: hidden;
	font-size: 0.9rem;
	color: #dbdee1;
}

.hero-discord-embed-accent {
	width: 4px;
	flex-shrink: 0;
	background: #ed4245;
}

.hero-discord-embed-body {
	padding: 0.75rem 1rem 0.85rem;
	flex: 1;
	min-width: 0;
}

.hero-discord-embed-author {
	font-size: 0.8rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.35rem;
}

.hero-discord-embed-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #ed4245;
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

.hero-discord-red {
	color: #ed4245;
	margin: 0.2rem 0;
}

.hero-discord-bold {
	font-weight: 700;
}

.hero-discord-desc {
	color: #dbdee1;
	margin: 0.5rem 0 0;
	white-space: pre-wrap;
}

.hero-discord-diff-block {
	margin-top: 0.5rem;
	padding: 0.5rem 0.65rem;
	background: #1a1c1e;
	border-radius: 0.35rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.45;
}

.hero-discord-diff-line {
	color: #3ddc84;
	white-space: pre-wrap;
}

.hero-discord-title-line {
	font-size: 1.05rem;
	margin-top: 0.35rem;
}

.hero-maint-log-card-header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

@media (min-width: 992px) {
	.hero-maint-log-card-header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.hero-maint-log-card-title {
	min-width: 0;
	flex: 1 1 auto;
}

.hero-maint-log-card-title .card-title {
	line-height: 1.25;
}

.hero-maint-log-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	flex: 0 1 auto;
}

.hero-maint-log-filter {
	width: 8.5rem;
	max-width: 100%;
	flex: 0 1 auto;
}

.hero-maint-log-search {
	width: 9rem;
	max-width: 100%;
	flex: 1 1 8rem;
	min-width: 6rem;
}

.hero-maint-log-stats {
	font-weight: 500;
	font-size: 0.75rem;
	white-space: nowrap;
}

.hero-maint-log-list {
	max-height: min(70vh, 720px);
	overflow-y: auto;
}

.hero-maint-log-entry {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-maint-log-entry:last-child {
	border-bottom: none;
}

.hero-maint-log-entry-head {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

@media (min-width: 576px) {
	.hero-maint-log-entry-head {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 1rem;
	}
}

.hero-maint-log-entry-main {
	min-width: 0;
	flex: 1 1 auto;
}

.hero-maint-log-entry-side {
	flex: 0 0 auto;
	font-size: 0.8125rem;
	color: var(--bs-secondary-color);
	line-height: 1.4;
}

.hero-maint-log-entry-side div + div {
	margin-top: 0.15rem;
}

.hero-maint-log-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem 1rem;
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
}

@media (min-width: 768px) {
	.hero-maint-log-meta {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.hero-maint-log-meta > div {
	min-width: 0;
}

.hero-maint-log-meta dt {
	font-weight: 600;
	color: var(--bs-secondary-color);
	margin: 0 0 0.1rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hero-maint-log-meta dd {
	margin: 0;
	word-break: break-word;
}

.hero-maint-log-desc {
	font-size: 0.875rem;
	line-height: 1.45;
	padding: 0.65rem 0.75rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 0.375rem;
	border-left: 3px solid #ffc107;
	word-break: break-word;
}

/* ── Online Players Slider ── */
.online-slider-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
}
.online-slider-track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex: 1;
	padding: 4px 2px;
}
.online-slider-track::-webkit-scrollbar {
	display: none;
}
.online-slider-arrow {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #b7e4c7;
	background: #fff;
	color: #198754;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s, opacity 0.2s;
	padding: 0;
	font-size: 13px;
}
.online-slider-arrow:hover {
	background: #d1f0de;
}
.online-player-card {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fff9;
	border: 1px solid #b7e4c7;
	border-radius: 8px;
	padding: 8px 12px;
	min-width: 160px;
	max-width: 200px;
	flex-shrink: 0;
	scroll-snap-align: start;
}
.online-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #198754;
	flex-shrink: 0;
	box-shadow: 0 0 5px #198754;
	animation: pulse-green 1.5s infinite;
}
@keyframes pulse-green {
	0%, 100% { opacity: 1; box-shadow: 0 0 4px #198754; }
	50% { opacity: 0.65; box-shadow: 0 0 9px #198754; }
}
.online-player-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	overflow: hidden;
}
.online-player-info strong {
	font-size: 13px;
	color: #0a3622;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.online-player-info small {
	font-size: 11px;
	color: #4a6c5a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
