.dmm-profile {
	--dmm-ink: #000;
	--dmm-muted: #666;
	--dmm-gold: #d99a0b;
	--dmm-line: #b9b4aa;
	--dmm-gap: 40px;
	display: flex;
	flex-direction: column;
	gap: var(--dmm-gap);
	color: var(--dmm-ink);
}

.dmm-profile > .dmm-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--dmm-gap);
	min-width: 0;
}

.dmm-head { 
	display: flex; 
	align-items: center; 
	gap: 30px; 
}

.dmm-avatar { 
	width: 100px; 
	height: 100px; 
	flex: none; 
	border-radius: 50%; 
	object-fit: cover; 
	background: #e9e2d3; 
}

.dmm-avatar--ph { 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	font-size: 28px; 
	color: #7a705c; 
}

.dmm-id { 
	flex: 1; 
	min-width: 0; 
}

.dmm-name { 
	margin: 0 !important; 
	font-size: 36px !important; 
	line-height: 1.2 !important; 
	overflow-wrap: anywhere;
	color: var(--theme-palette-color-1) !important;
}

.dmm-since {
	color: var(--theme-palette-color-5) !important;
	margin: 0 !important;
}

.dmm-settings {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	flex: none;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-4);
	text-decoration: none;
}
.dmm-settings svg { flex: none; }

.dmm-settings:hover {
	background: var(--theme-palette-color-2);
	color: var(--theme-palette-color-4);
}
.dmm-profile .dmm-counts, .dmm-profile .dmm-bio { margin: 0; padding: 0; }
.dmm-counts { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 16px; color: var(--dmm-muted); }
.dmm-counts strong { color: var(--dmm-ink); }
.dmm-bio { white-space: pre-line; overflow-wrap: anywhere; }

/* Inherit the same boxed content width as the header/list. Extend only the paint. */
.dmm-tabs {
	position: relative;
	isolation: isolate;
	background: var(--theme-palette-color-1, #000);
}
.dmm-tabs::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--theme-palette-color-1, #000);
	box-shadow: 0 0 0 100vmax var(--theme-palette-color-1, #000);
	clip-path: inset(0 -100vmax);
}
.dmm-tabs .dmm-wrap {
	display: flex;
	flex-wrap: nowrap;
	min-width: 0;
	gap: 0;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: thin;
	scrollbar-color: var(--theme-palette-color-2, #d89511) transparent;
}
.dmm-tabs .dmm-wrap::-webkit-scrollbar-thumb {
	background-color: var(--theme-palette-color-2, #d89511);
	border-radius: 3px;
}
.dmm-tabs a {
	flex: none;
	padding: 10px 25px 12px 25px !important;
	color: var(--theme-palette-color-4, #fff);
	text-decoration: none;
	font-size: 16px;
	cursor: pointer;
	border-radius: 0 !important;
	transition: background 0.2s, color 0.3s;
}
.dmm-tabs a:hover,
.dmm-tabs a.is-active {
	background: var(--theme-palette-color-2, #d89511);
	color: var(--theme-palette-color-4, #fff);
}

.dmm-profile .dmm-list { margin: 0; padding: 0; }
.dmm-profile.is-loading .dmm-list { opacity: .45; }
.dmm-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dmm-item { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; border-bottom: 1px solid var(--dmm-line); }
.dmm-item:last-of-type { border-bottom: 0; }
.dmm-date { margin: 0; padding: 0; font-size: 14px; color: var(--dmm-muted); }
.dmm-item-title { margin: 0; padding: 0; font-size: 24px; line-height: 1.3; }
.dmm-item-title a { color: inherit; text-decoration: none; }
.dmm-item-title a:hover { text-decoration: underline; }
.dmm-excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--dmm-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dmm-empty { margin: 0; padding: 0; color: var(--dmm-muted); }
.dmm-pager { display: flex; justify-content: space-between; gap: 16px; }
.dmm-pager a { color: var(--dmm-ink); text-decoration: none; padding: 8px 0; }
.dmm-pager a:hover { text-decoration: underline; }

@media (max-width: 768px) {
	.dmm-tabs .dmm-wrap { -webkit-overflow-scrolling: touch; }
	.dmm-tabs a { font-size: 14px; padding: 8px 12px; }
}

@media (max-width: 600px) {
	.dmm-profile { --dmm-gap: 30px; }
	.dmm-head {
		display: grid;
		grid-template-columns: 70px minmax(0, 1fr);
		padding-top: 0;
	}
	.dmm-avatar { width: 70px; height: 70px; }
	.dmm-name { font-size: 26px !important; }
	.dmm-settings {
		grid-column: 1 / -1;
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
	}
	.dmm-counts { column-gap: 15px; }
	.dmm-item-title { font-size: 20px; }
}
